@azure/storage-file-share 12.9.0-beta.1 → 12.9.0-beta.4
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 +25 -4
- package/README.md +6 -5
- package/dist/index.js +955 -370
- package/dist/index.js.map +1 -1
- package/dist-esm/src/AccountSASSignatureValues.js +2 -2
- package/dist-esm/src/AccountSASSignatureValues.js.map +1 -1
- package/dist-esm/src/Clients.js +236 -112
- package/dist-esm/src/Clients.js.map +1 -1
- package/dist-esm/src/FileDownloadResponse.js +1 -1
- package/dist-esm/src/FileDownloadResponse.js.map +1 -1
- package/dist-esm/src/FileSASSignatureValues.js +1 -1
- package/dist-esm/src/FileSASSignatureValues.js.map +1 -1
- package/dist-esm/src/Pipeline.js +6 -6
- package/dist-esm/src/Pipeline.js.map +1 -1
- package/dist-esm/src/SASQueryParameters.js +2 -2
- package/dist-esm/src/SASQueryParameters.js.map +1 -1
- package/dist-esm/src/ShareServiceClient.js +8 -8
- package/dist-esm/src/ShareServiceClient.js.map +1 -1
- package/dist-esm/src/StorageClient.js.map +1 -1
- package/dist-esm/src/TelemetryPolicyFactory.js +1 -1
- package/dist-esm/src/TelemetryPolicyFactory.js.map +1 -1
- package/dist-esm/src/credentials/StorageSharedKeyCredential.js +1 -3
- package/dist-esm/src/credentials/StorageSharedKeyCredential.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 +246 -0
- package/dist-esm/src/generated/src/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/src/models/parameters.js +103 -37
- 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/index.browser.js.map +1 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/policies/StorageBrowserPolicy.js +1 -1
- package/dist-esm/src/policies/StorageBrowserPolicy.js.map +1 -1
- package/dist-esm/src/policies/StorageRetryPolicy.js +5 -5
- package/dist-esm/src/policies/StorageRetryPolicy.js.map +1 -1
- package/dist-esm/src/policies/StorageSharedKeyCredentialPolicy.js +4 -2
- package/dist-esm/src/policies/StorageSharedKeyCredentialPolicy.js.map +1 -1
- package/dist-esm/src/policies/TelemetryPolicy.js +1 -1
- package/dist-esm/src/policies/TelemetryPolicy.js.map +1 -1
- package/dist-esm/src/utils/Batch.js.map +1 -1
- package/dist-esm/src/utils/RetriableReadableStream.js +1 -2
- package/dist-esm/src/utils/RetriableReadableStream.js.map +1 -1
- package/dist-esm/src/utils/constants.js +8 -8
- package/dist-esm/src/utils/constants.js.map +1 -1
- package/dist-esm/src/utils/tracing.js +2 -2
- package/dist-esm/src/utils/tracing.js.map +1 -1
- package/dist-esm/src/utils/utils.common.js +23 -1
- package/dist-esm/src/utils/utils.common.js.map +1 -1
- package/package.json +41 -43
- package/{typings → types}/3.1/storage-file-share.d.ts +271 -12
- package/{typings → types}/latest/storage-file-share.d.ts +235 -13
package/dist/index.js
CHANGED
@@ -15,6 +15,29 @@ var events = require('events');
|
|
15
15
|
var fs = require('fs');
|
16
16
|
var util = require('util');
|
17
17
|
|
18
|
+
function _interopNamespace(e) {
|
19
|
+
if (e && e.__esModule) return e;
|
20
|
+
var n = Object.create(null);
|
21
|
+
if (e) {
|
22
|
+
Object.keys(e).forEach(function (k) {
|
23
|
+
if (k !== 'default') {
|
24
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
25
|
+
Object.defineProperty(n, k, d.get ? d : {
|
26
|
+
enumerable: true,
|
27
|
+
get: function () { return e[k]; }
|
28
|
+
});
|
29
|
+
}
|
30
|
+
});
|
31
|
+
}
|
32
|
+
n["default"] = e;
|
33
|
+
return Object.freeze(n);
|
34
|
+
}
|
35
|
+
|
36
|
+
var coreHttp__namespace = /*#__PURE__*/_interopNamespace(coreHttp);
|
37
|
+
var os__namespace = /*#__PURE__*/_interopNamespace(os);
|
38
|
+
var fs__namespace = /*#__PURE__*/_interopNamespace(fs);
|
39
|
+
var util__namespace = /*#__PURE__*/_interopNamespace(util);
|
40
|
+
|
18
41
|
// Copyright (c) Microsoft Corporation.
|
19
42
|
// Licensed under the MIT license.
|
20
43
|
/**
|
@@ -311,8 +334,8 @@ function ipRangeToString(ipRange) {
|
|
311
334
|
|
312
335
|
// Copyright (c) Microsoft Corporation.
|
313
336
|
// Licensed under the MIT license.
|
314
|
-
const SDK_VERSION = "12.9.0-beta.
|
315
|
-
const SERVICE_VERSION = "
|
337
|
+
const SDK_VERSION = "12.9.0-beta.4";
|
338
|
+
const SERVICE_VERSION = "2021-04-10";
|
316
339
|
const FILE_MAX_SIZE_BYTES = 4 * 1024 * 1024 * 1024 * 1024; // 4TB
|
317
340
|
const FILE_RANGE_MAX_SIZE_BYTES = 4 * 1024 * 1024; // 4MB
|
318
341
|
const DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS = 5;
|
@@ -322,8 +345,8 @@ const URLConstants = {
|
|
322
345
|
FORCE_BROWSER_NO_CACHE: "_",
|
323
346
|
SHARE_SNAPSHOT: "sharesnapshot",
|
324
347
|
SIGNATURE: "sig",
|
325
|
-
TIMEOUT: "timeout"
|
326
|
-
}
|
348
|
+
TIMEOUT: "timeout",
|
349
|
+
},
|
327
350
|
};
|
328
351
|
const HeaderConstants = {
|
329
352
|
AUTHORIZATION: "authorization",
|
@@ -344,7 +367,7 @@ const HeaderConstants = {
|
|
344
367
|
USER_AGENT: "User-Agent",
|
345
368
|
X_MS_CLIENT_REQUEST_ID: "x-ms-client-request-id",
|
346
369
|
X_MS_COPY_SOURCE: "x-ms-copy-source",
|
347
|
-
X_MS_DATE: "x-ms-date"
|
370
|
+
X_MS_DATE: "x-ms-date",
|
348
371
|
};
|
349
372
|
const StorageFileLoggingAllowedHeaderNames = [
|
350
373
|
"Access-Control-Allow-Origin",
|
@@ -405,7 +428,7 @@ const StorageFileLoggingAllowedHeaderNames = [
|
|
405
428
|
"x-ms-recursive",
|
406
429
|
"x-ms-share-quota",
|
407
430
|
"x-ms-type",
|
408
|
-
"x-ms-write"
|
431
|
+
"x-ms-write",
|
409
432
|
];
|
410
433
|
const StorageFileLoggingAllowedQueryParameters = [
|
411
434
|
"comp",
|
@@ -426,7 +449,7 @@ const StorageFileLoggingAllowedQueryParameters = [
|
|
426
449
|
"st",
|
427
450
|
"sv",
|
428
451
|
"copyid",
|
429
|
-
"restype"
|
452
|
+
"restype",
|
430
453
|
];
|
431
454
|
|
432
455
|
// Copyright (c) Microsoft Corporation.
|
@@ -545,7 +568,7 @@ function extractConnectionStringParts(connectionString) {
|
|
545
568
|
kind: "AccountConnString",
|
546
569
|
url: fileEndpoint,
|
547
570
|
accountName,
|
548
|
-
accountKey
|
571
|
+
accountKey,
|
549
572
|
};
|
550
573
|
}
|
551
574
|
else {
|
@@ -802,8 +825,34 @@ function getShareNameAndPathFromUrl(url) {
|
|
802
825
|
function httpAuthorizationToString(httpAuthorization) {
|
803
826
|
return httpAuthorization ? httpAuthorization.scheme + " " + httpAuthorization.value : undefined;
|
804
827
|
}
|
828
|
+
/**
|
829
|
+
* Set URL path.
|
830
|
+
*
|
831
|
+
* @param url - URL to change path to.
|
832
|
+
* @param path - Path to set into the URL.
|
833
|
+
*/
|
834
|
+
function setURLPath(url, path) {
|
835
|
+
const urlParsed = coreHttp.URLBuilder.parse(url);
|
836
|
+
urlParsed.setPath(path);
|
837
|
+
return urlParsed.toString();
|
838
|
+
}
|
839
|
+
/**
|
840
|
+
* Set URL query string.
|
841
|
+
*
|
842
|
+
* @param url - URL to set query string to.
|
843
|
+
* @param queryString - Query string to set to the URL.
|
844
|
+
*/
|
845
|
+
function setURLQueries(url, queryString) {
|
846
|
+
const urlParsed = coreHttp.URLBuilder.parse(url);
|
847
|
+
urlParsed.setQuery(queryString);
|
848
|
+
return urlParsed.toString();
|
849
|
+
}
|
805
850
|
|
806
851
|
// Copyright (c) Microsoft Corporation.
|
852
|
+
/**
|
853
|
+
* Protocols for generated SAS.
|
854
|
+
*/
|
855
|
+
exports.SASProtocol = void 0;
|
807
856
|
(function (SASProtocol) {
|
808
857
|
/**
|
809
858
|
* Protocol that allows HTTPS only
|
@@ -871,7 +920,7 @@ class SASQueryParameters {
|
|
871
920
|
if (this.ipRangeInner) {
|
872
921
|
return {
|
873
922
|
end: this.ipRangeInner.end,
|
874
|
-
start: this.ipRangeInner.start
|
923
|
+
start: this.ipRangeInner.start,
|
875
924
|
};
|
876
925
|
}
|
877
926
|
return undefined;
|
@@ -897,7 +946,7 @@ class SASQueryParameters {
|
|
897
946
|
"rscd",
|
898
947
|
"rsce",
|
899
948
|
"rscl",
|
900
|
-
"rsct"
|
949
|
+
"rsct",
|
901
950
|
];
|
902
951
|
const queries = [];
|
903
952
|
for (const param of params) {
|
@@ -1006,7 +1055,7 @@ function generateAccountSASQueryParameters(accountSASSignatureValues, sharedKeyC
|
|
1006
1055
|
accountSASSignatureValues.protocol ? accountSASSignatureValues.protocol : "",
|
1007
1056
|
version,
|
1008
1057
|
"",
|
1009
|
-
"" // Account SAS requires an additional newline character
|
1058
|
+
"", // Account SAS requires an additional newline character
|
1010
1059
|
].join("\n");
|
1011
1060
|
}
|
1012
1061
|
else {
|
@@ -1022,7 +1071,7 @@ function generateAccountSASQueryParameters(accountSASSignatureValues, sharedKeyC
|
|
1022
1071
|
accountSASSignatureValues.ipRange ? ipRangeToString(accountSASSignatureValues.ipRange) : "",
|
1023
1072
|
accountSASSignatureValues.protocol ? accountSASSignatureValues.protocol : "",
|
1024
1073
|
version,
|
1025
|
-
"" // Account SAS requires an additional newline character
|
1074
|
+
"", // Account SAS requires an additional newline character
|
1026
1075
|
].join("\n");
|
1027
1076
|
}
|
1028
1077
|
const signature = sharedKeyCredential.computeHMACSHA256(stringToSign);
|
@@ -1257,7 +1306,7 @@ function generateFileSASQueryParameters(fileSASSignatureValues, sharedKeyCredent
|
|
1257
1306
|
fileSASSignatureValues.contentDisposition,
|
1258
1307
|
fileSASSignatureValues.contentEncoding,
|
1259
1308
|
fileSASSignatureValues.contentLanguage,
|
1260
|
-
fileSASSignatureValues.contentType
|
1309
|
+
fileSASSignatureValues.contentType,
|
1261
1310
|
].join("\n");
|
1262
1311
|
const signature = sharedKeyCredential.computeHMACSHA256(stringToSign);
|
1263
1312
|
return new SASQueryParameters(version, signature, verifiedPermissions, undefined, undefined, fileSASSignatureValues.protocol, fileSASSignatureValues.startsOn, fileSASSignatureValues.expiresOn, fileSASSignatureValues.ipRange, fileSASSignatureValues.identifier, resource, fileSASSignatureValues.cacheControl, fileSASSignatureValues.contentDisposition, fileSASSignatureValues.contentEncoding, fileSASSignatureValues.contentLanguage, fileSASSignatureValues.contentType);
|
@@ -1694,6 +1743,13 @@ const SharePropertiesInternal = {
|
|
1694
1743
|
name: "Number"
|
1695
1744
|
}
|
1696
1745
|
},
|
1746
|
+
provisionedBandwidthMiBps: {
|
1747
|
+
serializedName: "ProvisionedBandwidthMiBps",
|
1748
|
+
xmlName: "ProvisionedBandwidthMiBps",
|
1749
|
+
type: {
|
1750
|
+
name: "Number"
|
1751
|
+
}
|
1752
|
+
},
|
1697
1753
|
nextAllowedQuotaDowngradeTime: {
|
1698
1754
|
serializedName: "NextAllowedQuotaDowngradeTime",
|
1699
1755
|
xmlName: "NextAllowedQuotaDowngradeTime",
|
@@ -2640,6 +2696,13 @@ const ShareGetPropertiesHeaders = {
|
|
2640
2696
|
name: "DateTimeRfc1123"
|
2641
2697
|
}
|
2642
2698
|
},
|
2699
|
+
provisionedBandwidthMibps: {
|
2700
|
+
serializedName: "x-ms-share-provisioned-bandwidth-mibps",
|
2701
|
+
xmlName: "x-ms-share-provisioned-bandwidth-mibps",
|
2702
|
+
type: {
|
2703
|
+
name: "Number"
|
2704
|
+
}
|
2705
|
+
},
|
2643
2706
|
leaseDuration: {
|
2644
2707
|
serializedName: "x-ms-lease-duration",
|
2645
2708
|
xmlName: "x-ms-lease-duration",
|
@@ -4436,6 +4499,122 @@ const DirectoryForceCloseHandlesExceptionHeaders = {
|
|
4436
4499
|
}
|
4437
4500
|
}
|
4438
4501
|
};
|
4502
|
+
const DirectoryRenameHeaders = {
|
4503
|
+
serializedName: "Directory_renameHeaders",
|
4504
|
+
type: {
|
4505
|
+
name: "Composite",
|
4506
|
+
className: "DirectoryRenameHeaders",
|
4507
|
+
modelProperties: {
|
4508
|
+
etag: {
|
4509
|
+
serializedName: "etag",
|
4510
|
+
xmlName: "etag",
|
4511
|
+
type: {
|
4512
|
+
name: "String"
|
4513
|
+
}
|
4514
|
+
},
|
4515
|
+
lastModified: {
|
4516
|
+
serializedName: "last-modified",
|
4517
|
+
xmlName: "last-modified",
|
4518
|
+
type: {
|
4519
|
+
name: "DateTimeRfc1123"
|
4520
|
+
}
|
4521
|
+
},
|
4522
|
+
requestId: {
|
4523
|
+
serializedName: "x-ms-request-id",
|
4524
|
+
xmlName: "x-ms-request-id",
|
4525
|
+
type: {
|
4526
|
+
name: "String"
|
4527
|
+
}
|
4528
|
+
},
|
4529
|
+
version: {
|
4530
|
+
serializedName: "x-ms-version",
|
4531
|
+
xmlName: "x-ms-version",
|
4532
|
+
type: {
|
4533
|
+
name: "String"
|
4534
|
+
}
|
4535
|
+
},
|
4536
|
+
date: {
|
4537
|
+
serializedName: "date",
|
4538
|
+
xmlName: "date",
|
4539
|
+
type: {
|
4540
|
+
name: "DateTimeRfc1123"
|
4541
|
+
}
|
4542
|
+
},
|
4543
|
+
isServerEncrypted: {
|
4544
|
+
serializedName: "x-ms-request-server-encrypted",
|
4545
|
+
xmlName: "x-ms-request-server-encrypted",
|
4546
|
+
type: {
|
4547
|
+
name: "Boolean"
|
4548
|
+
}
|
4549
|
+
},
|
4550
|
+
filePermissionKey: {
|
4551
|
+
serializedName: "x-ms-file-permission-key",
|
4552
|
+
xmlName: "x-ms-file-permission-key",
|
4553
|
+
type: {
|
4554
|
+
name: "String"
|
4555
|
+
}
|
4556
|
+
},
|
4557
|
+
fileAttributes: {
|
4558
|
+
serializedName: "x-ms-file-attributes",
|
4559
|
+
xmlName: "x-ms-file-attributes",
|
4560
|
+
type: {
|
4561
|
+
name: "String"
|
4562
|
+
}
|
4563
|
+
},
|
4564
|
+
fileCreationTime: {
|
4565
|
+
serializedName: "x-ms-file-creation-time",
|
4566
|
+
xmlName: "x-ms-file-creation-time",
|
4567
|
+
type: {
|
4568
|
+
name: "DateTimeRfc1123"
|
4569
|
+
}
|
4570
|
+
},
|
4571
|
+
fileLastWriteTime: {
|
4572
|
+
serializedName: "x-ms-file-last-write-time",
|
4573
|
+
xmlName: "x-ms-file-last-write-time",
|
4574
|
+
type: {
|
4575
|
+
name: "DateTimeRfc1123"
|
4576
|
+
}
|
4577
|
+
},
|
4578
|
+
fileChangeTime: {
|
4579
|
+
serializedName: "x-ms-file-change-time",
|
4580
|
+
xmlName: "x-ms-file-change-time",
|
4581
|
+
type: {
|
4582
|
+
name: "DateTimeRfc1123"
|
4583
|
+
}
|
4584
|
+
},
|
4585
|
+
fileId: {
|
4586
|
+
serializedName: "x-ms-file-id",
|
4587
|
+
xmlName: "x-ms-file-id",
|
4588
|
+
type: {
|
4589
|
+
name: "String"
|
4590
|
+
}
|
4591
|
+
},
|
4592
|
+
fileParentId: {
|
4593
|
+
serializedName: "x-ms-file-parent-id",
|
4594
|
+
xmlName: "x-ms-file-parent-id",
|
4595
|
+
type: {
|
4596
|
+
name: "String"
|
4597
|
+
}
|
4598
|
+
}
|
4599
|
+
}
|
4600
|
+
}
|
4601
|
+
};
|
4602
|
+
const DirectoryRenameExceptionHeaders = {
|
4603
|
+
serializedName: "Directory_renameExceptionHeaders",
|
4604
|
+
type: {
|
4605
|
+
name: "Composite",
|
4606
|
+
className: "DirectoryRenameExceptionHeaders",
|
4607
|
+
modelProperties: {
|
4608
|
+
errorCode: {
|
4609
|
+
serializedName: "x-ms-error-code",
|
4610
|
+
xmlName: "x-ms-error-code",
|
4611
|
+
type: {
|
4612
|
+
name: "String"
|
4613
|
+
}
|
4614
|
+
}
|
4615
|
+
}
|
4616
|
+
}
|
4617
|
+
};
|
4439
4618
|
const FileCreateHeaders = {
|
4440
4619
|
serializedName: "File_createHeaders",
|
4441
4620
|
type: {
|
@@ -6132,6 +6311,122 @@ const FileForceCloseHandlesExceptionHeaders = {
|
|
6132
6311
|
}
|
6133
6312
|
}
|
6134
6313
|
};
|
6314
|
+
const FileRenameHeaders = {
|
6315
|
+
serializedName: "File_renameHeaders",
|
6316
|
+
type: {
|
6317
|
+
name: "Composite",
|
6318
|
+
className: "FileRenameHeaders",
|
6319
|
+
modelProperties: {
|
6320
|
+
etag: {
|
6321
|
+
serializedName: "etag",
|
6322
|
+
xmlName: "etag",
|
6323
|
+
type: {
|
6324
|
+
name: "String"
|
6325
|
+
}
|
6326
|
+
},
|
6327
|
+
lastModified: {
|
6328
|
+
serializedName: "last-modified",
|
6329
|
+
xmlName: "last-modified",
|
6330
|
+
type: {
|
6331
|
+
name: "DateTimeRfc1123"
|
6332
|
+
}
|
6333
|
+
},
|
6334
|
+
requestId: {
|
6335
|
+
serializedName: "x-ms-request-id",
|
6336
|
+
xmlName: "x-ms-request-id",
|
6337
|
+
type: {
|
6338
|
+
name: "String"
|
6339
|
+
}
|
6340
|
+
},
|
6341
|
+
version: {
|
6342
|
+
serializedName: "x-ms-version",
|
6343
|
+
xmlName: "x-ms-version",
|
6344
|
+
type: {
|
6345
|
+
name: "String"
|
6346
|
+
}
|
6347
|
+
},
|
6348
|
+
date: {
|
6349
|
+
serializedName: "date",
|
6350
|
+
xmlName: "date",
|
6351
|
+
type: {
|
6352
|
+
name: "DateTimeRfc1123"
|
6353
|
+
}
|
6354
|
+
},
|
6355
|
+
isServerEncrypted: {
|
6356
|
+
serializedName: "x-ms-request-server-encrypted",
|
6357
|
+
xmlName: "x-ms-request-server-encrypted",
|
6358
|
+
type: {
|
6359
|
+
name: "Boolean"
|
6360
|
+
}
|
6361
|
+
},
|
6362
|
+
filePermissionKey: {
|
6363
|
+
serializedName: "x-ms-file-permission-key",
|
6364
|
+
xmlName: "x-ms-file-permission-key",
|
6365
|
+
type: {
|
6366
|
+
name: "String"
|
6367
|
+
}
|
6368
|
+
},
|
6369
|
+
fileAttributes: {
|
6370
|
+
serializedName: "x-ms-file-attributes",
|
6371
|
+
xmlName: "x-ms-file-attributes",
|
6372
|
+
type: {
|
6373
|
+
name: "String"
|
6374
|
+
}
|
6375
|
+
},
|
6376
|
+
fileCreationTime: {
|
6377
|
+
serializedName: "x-ms-file-creation-time",
|
6378
|
+
xmlName: "x-ms-file-creation-time",
|
6379
|
+
type: {
|
6380
|
+
name: "DateTimeRfc1123"
|
6381
|
+
}
|
6382
|
+
},
|
6383
|
+
fileLastWriteTime: {
|
6384
|
+
serializedName: "x-ms-file-last-write-time",
|
6385
|
+
xmlName: "x-ms-file-last-write-time",
|
6386
|
+
type: {
|
6387
|
+
name: "DateTimeRfc1123"
|
6388
|
+
}
|
6389
|
+
},
|
6390
|
+
fileChangeTime: {
|
6391
|
+
serializedName: "x-ms-file-change-time",
|
6392
|
+
xmlName: "x-ms-file-change-time",
|
6393
|
+
type: {
|
6394
|
+
name: "DateTimeRfc1123"
|
6395
|
+
}
|
6396
|
+
},
|
6397
|
+
fileId: {
|
6398
|
+
serializedName: "x-ms-file-id",
|
6399
|
+
xmlName: "x-ms-file-id",
|
6400
|
+
type: {
|
6401
|
+
name: "String"
|
6402
|
+
}
|
6403
|
+
},
|
6404
|
+
fileParentId: {
|
6405
|
+
serializedName: "x-ms-file-parent-id",
|
6406
|
+
xmlName: "x-ms-file-parent-id",
|
6407
|
+
type: {
|
6408
|
+
name: "String"
|
6409
|
+
}
|
6410
|
+
}
|
6411
|
+
}
|
6412
|
+
}
|
6413
|
+
};
|
6414
|
+
const FileRenameExceptionHeaders = {
|
6415
|
+
serializedName: "File_renameExceptionHeaders",
|
6416
|
+
type: {
|
6417
|
+
name: "Composite",
|
6418
|
+
className: "FileRenameExceptionHeaders",
|
6419
|
+
modelProperties: {
|
6420
|
+
errorCode: {
|
6421
|
+
serializedName: "x-ms-error-code",
|
6422
|
+
xmlName: "x-ms-error-code",
|
6423
|
+
type: {
|
6424
|
+
name: "String"
|
6425
|
+
}
|
6426
|
+
}
|
6427
|
+
}
|
6428
|
+
}
|
6429
|
+
};
|
6135
6430
|
|
6136
6431
|
var Mappers = /*#__PURE__*/Object.freeze({
|
6137
6432
|
__proto__: null,
|
@@ -6216,6 +6511,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
6216
6511
|
DirectoryListHandlesExceptionHeaders: DirectoryListHandlesExceptionHeaders,
|
6217
6512
|
DirectoryForceCloseHandlesHeaders: DirectoryForceCloseHandlesHeaders,
|
6218
6513
|
DirectoryForceCloseHandlesExceptionHeaders: DirectoryForceCloseHandlesExceptionHeaders,
|
6514
|
+
DirectoryRenameHeaders: DirectoryRenameHeaders,
|
6515
|
+
DirectoryRenameExceptionHeaders: DirectoryRenameExceptionHeaders,
|
6219
6516
|
FileCreateHeaders: FileCreateHeaders,
|
6220
6517
|
FileCreateExceptionHeaders: FileCreateExceptionHeaders,
|
6221
6518
|
FileDownloadHeaders: FileDownloadHeaders,
|
@@ -6249,7 +6546,9 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
6249
6546
|
FileListHandlesHeaders: FileListHandlesHeaders,
|
6250
6547
|
FileListHandlesExceptionHeaders: FileListHandlesExceptionHeaders,
|
6251
6548
|
FileForceCloseHandlesHeaders: FileForceCloseHandlesHeaders,
|
6252
|
-
FileForceCloseHandlesExceptionHeaders: FileForceCloseHandlesExceptionHeaders
|
6549
|
+
FileForceCloseHandlesExceptionHeaders: FileForceCloseHandlesExceptionHeaders,
|
6550
|
+
FileRenameHeaders: FileRenameHeaders,
|
6551
|
+
FileRenameExceptionHeaders: FileRenameExceptionHeaders
|
6253
6552
|
});
|
6254
6553
|
|
6255
6554
|
/*
|
@@ -6335,7 +6634,7 @@ const timeoutInSeconds = {
|
|
6335
6634
|
const version = {
|
6336
6635
|
parameterPath: "version",
|
6337
6636
|
mapper: {
|
6338
|
-
defaultValue: "
|
6637
|
+
defaultValue: "2021-04-10",
|
6339
6638
|
isConstant: true,
|
6340
6639
|
serializedName: "x-ms-version",
|
6341
6640
|
type: {
|
@@ -6897,14 +7196,110 @@ const handleId = {
|
|
6897
7196
|
}
|
6898
7197
|
}
|
6899
7198
|
};
|
6900
|
-
const
|
6901
|
-
parameterPath: "
|
7199
|
+
const comp11 = {
|
7200
|
+
parameterPath: "comp",
|
6902
7201
|
mapper: {
|
6903
|
-
|
6904
|
-
|
6905
|
-
|
7202
|
+
defaultValue: "rename",
|
7203
|
+
isConstant: true,
|
7204
|
+
serializedName: "comp",
|
6906
7205
|
type: {
|
6907
|
-
name: "
|
7206
|
+
name: "String"
|
7207
|
+
}
|
7208
|
+
}
|
7209
|
+
};
|
7210
|
+
const renameSource = {
|
7211
|
+
parameterPath: "renameSource",
|
7212
|
+
mapper: {
|
7213
|
+
serializedName: "x-ms-file-rename-source",
|
7214
|
+
required: true,
|
7215
|
+
xmlName: "x-ms-file-rename-source",
|
7216
|
+
type: {
|
7217
|
+
name: "String"
|
7218
|
+
}
|
7219
|
+
}
|
7220
|
+
};
|
7221
|
+
const replaceIfExists = {
|
7222
|
+
parameterPath: ["options", "replaceIfExists"],
|
7223
|
+
mapper: {
|
7224
|
+
serializedName: "x-ms-file-rename-replace-if-exists",
|
7225
|
+
xmlName: "x-ms-file-rename-replace-if-exists",
|
7226
|
+
type: {
|
7227
|
+
name: "Boolean"
|
7228
|
+
}
|
7229
|
+
}
|
7230
|
+
};
|
7231
|
+
const ignoreReadOnly = {
|
7232
|
+
parameterPath: ["options", "ignoreReadOnly"],
|
7233
|
+
mapper: {
|
7234
|
+
serializedName: "x-ms-file-rename-ignore-readonly",
|
7235
|
+
xmlName: "x-ms-file-rename-ignore-readonly",
|
7236
|
+
type: {
|
7237
|
+
name: "Boolean"
|
7238
|
+
}
|
7239
|
+
}
|
7240
|
+
};
|
7241
|
+
const sourceLeaseId = {
|
7242
|
+
parameterPath: ["options", "sourceLeaseAccessConditions", "sourceLeaseId"],
|
7243
|
+
mapper: {
|
7244
|
+
serializedName: "x-ms-source-lease-id",
|
7245
|
+
xmlName: "x-ms-source-lease-id",
|
7246
|
+
type: {
|
7247
|
+
name: "String"
|
7248
|
+
}
|
7249
|
+
}
|
7250
|
+
};
|
7251
|
+
const destinationLeaseId = {
|
7252
|
+
parameterPath: [
|
7253
|
+
"options",
|
7254
|
+
"destinationLeaseAccessConditions",
|
7255
|
+
"destinationLeaseId"
|
7256
|
+
],
|
7257
|
+
mapper: {
|
7258
|
+
serializedName: "x-ms-destination-lease-id",
|
7259
|
+
xmlName: "x-ms-destination-lease-id",
|
7260
|
+
type: {
|
7261
|
+
name: "String"
|
7262
|
+
}
|
7263
|
+
}
|
7264
|
+
};
|
7265
|
+
const fileAttributes1 = {
|
7266
|
+
parameterPath: ["options", "copyFileSmbInfo", "fileAttributes"],
|
7267
|
+
mapper: {
|
7268
|
+
serializedName: "x-ms-file-attributes",
|
7269
|
+
xmlName: "x-ms-file-attributes",
|
7270
|
+
type: {
|
7271
|
+
name: "String"
|
7272
|
+
}
|
7273
|
+
}
|
7274
|
+
};
|
7275
|
+
const fileCreationTime = {
|
7276
|
+
parameterPath: ["options", "copyFileSmbInfo", "fileCreationTime"],
|
7277
|
+
mapper: {
|
7278
|
+
serializedName: "x-ms-file-creation-time",
|
7279
|
+
xmlName: "x-ms-file-creation-time",
|
7280
|
+
type: {
|
7281
|
+
name: "String"
|
7282
|
+
}
|
7283
|
+
}
|
7284
|
+
};
|
7285
|
+
const fileLastWriteTime = {
|
7286
|
+
parameterPath: ["options", "copyFileSmbInfo", "fileLastWriteTime"],
|
7287
|
+
mapper: {
|
7288
|
+
serializedName: "x-ms-file-last-write-time",
|
7289
|
+
xmlName: "x-ms-file-last-write-time",
|
7290
|
+
type: {
|
7291
|
+
name: "String"
|
7292
|
+
}
|
7293
|
+
}
|
7294
|
+
};
|
7295
|
+
const fileContentLength = {
|
7296
|
+
parameterPath: "fileContentLength",
|
7297
|
+
mapper: {
|
7298
|
+
serializedName: "x-ms-content-length",
|
7299
|
+
required: true,
|
7300
|
+
xmlName: "x-ms-content-length",
|
7301
|
+
type: {
|
7302
|
+
name: "Number"
|
6908
7303
|
}
|
6909
7304
|
}
|
6910
7305
|
};
|
@@ -7041,7 +7436,7 @@ const accept3 = {
|
|
7041
7436
|
}
|
7042
7437
|
}
|
7043
7438
|
};
|
7044
|
-
const
|
7439
|
+
const comp12 = {
|
7045
7440
|
parameterPath: "comp",
|
7046
7441
|
mapper: {
|
7047
7442
|
defaultValue: "range",
|
@@ -7177,7 +7572,7 @@ const copySourceAuthorization = {
|
|
7177
7572
|
}
|
7178
7573
|
}
|
7179
7574
|
};
|
7180
|
-
const
|
7575
|
+
const comp13 = {
|
7181
7576
|
parameterPath: "comp",
|
7182
7577
|
mapper: {
|
7183
7578
|
defaultValue: "rangelist",
|
@@ -7209,46 +7604,16 @@ const filePermissionCopyMode = {
|
|
7209
7604
|
}
|
7210
7605
|
}
|
7211
7606
|
};
|
7212
|
-
const
|
7607
|
+
const ignoreReadOnly1 = {
|
7213
7608
|
parameterPath: ["options", "copyFileSmbInfo", "ignoreReadOnly"],
|
7214
7609
|
mapper: {
|
7215
|
-
serializedName: "x-ms-file-copy-ignore-
|
7216
|
-
xmlName: "x-ms-file-copy-ignore-
|
7610
|
+
serializedName: "x-ms-file-copy-ignore-readonly",
|
7611
|
+
xmlName: "x-ms-file-copy-ignore-readonly",
|
7217
7612
|
type: {
|
7218
7613
|
name: "Boolean"
|
7219
7614
|
}
|
7220
7615
|
}
|
7221
7616
|
};
|
7222
|
-
const fileAttributes1 = {
|
7223
|
-
parameterPath: ["options", "copyFileSmbInfo", "fileAttributes"],
|
7224
|
-
mapper: {
|
7225
|
-
serializedName: "x-ms-file-attributes",
|
7226
|
-
xmlName: "x-ms-file-attributes",
|
7227
|
-
type: {
|
7228
|
-
name: "String"
|
7229
|
-
}
|
7230
|
-
}
|
7231
|
-
};
|
7232
|
-
const fileCreationTime = {
|
7233
|
-
parameterPath: ["options", "copyFileSmbInfo", "fileCreationTime"],
|
7234
|
-
mapper: {
|
7235
|
-
serializedName: "x-ms-file-creation-time",
|
7236
|
-
xmlName: "x-ms-file-creation-time",
|
7237
|
-
type: {
|
7238
|
-
name: "String"
|
7239
|
-
}
|
7240
|
-
}
|
7241
|
-
};
|
7242
|
-
const fileLastWriteTime = {
|
7243
|
-
parameterPath: ["options", "copyFileSmbInfo", "fileLastWriteTime"],
|
7244
|
-
mapper: {
|
7245
|
-
serializedName: "x-ms-file-last-write-time",
|
7246
|
-
xmlName: "x-ms-file-last-write-time",
|
7247
|
-
type: {
|
7248
|
-
name: "String"
|
7249
|
-
}
|
7250
|
-
}
|
7251
|
-
};
|
7252
7617
|
const setArchiveAttribute = {
|
7253
7618
|
parameterPath: ["options", "copyFileSmbInfo", "setArchiveAttribute"],
|
7254
7619
|
mapper: {
|
@@ -7259,7 +7624,7 @@ const setArchiveAttribute = {
|
|
7259
7624
|
}
|
7260
7625
|
}
|
7261
7626
|
};
|
7262
|
-
const
|
7627
|
+
const comp14 = {
|
7263
7628
|
parameterPath: "comp",
|
7264
7629
|
mapper: {
|
7265
7630
|
defaultValue: "copy",
|
@@ -7318,9 +7683,9 @@ class Service {
|
|
7318
7683
|
setProperties(properties, options) {
|
7319
7684
|
const operationArguments = {
|
7320
7685
|
properties,
|
7321
|
-
options:
|
7686
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7322
7687
|
};
|
7323
|
-
return this.client.sendOperationRequest(operationArguments, setPropertiesOperationSpec);
|
7688
|
+
return this.client.sendOperationRequest(operationArguments, setPropertiesOperationSpec$2);
|
7324
7689
|
}
|
7325
7690
|
/**
|
7326
7691
|
* Gets the properties of a storage account's File service, including properties for Storage Analytics
|
@@ -7329,9 +7694,9 @@ class Service {
|
|
7329
7694
|
*/
|
7330
7695
|
getProperties(options) {
|
7331
7696
|
const operationArguments = {
|
7332
|
-
options:
|
7697
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7333
7698
|
};
|
7334
|
-
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec);
|
7699
|
+
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec$3);
|
7335
7700
|
}
|
7336
7701
|
/**
|
7337
7702
|
* The List Shares Segment operation returns a list of the shares and share snapshots under the
|
@@ -7340,14 +7705,14 @@ class Service {
|
|
7340
7705
|
*/
|
7341
7706
|
listSharesSegment(options) {
|
7342
7707
|
const operationArguments = {
|
7343
|
-
options:
|
7708
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7344
7709
|
};
|
7345
7710
|
return this.client.sendOperationRequest(operationArguments, listSharesSegmentOperationSpec);
|
7346
7711
|
}
|
7347
7712
|
}
|
7348
7713
|
// Operation Specifications
|
7349
|
-
const xmlSerializer = new
|
7350
|
-
const setPropertiesOperationSpec = {
|
7714
|
+
const xmlSerializer$3 = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);
|
7715
|
+
const setPropertiesOperationSpec$2 = {
|
7351
7716
|
path: "/",
|
7352
7717
|
httpMethod: "PUT",
|
7353
7718
|
responses: {
|
@@ -7374,9 +7739,9 @@ const setPropertiesOperationSpec = {
|
|
7374
7739
|
isXML: true,
|
7375
7740
|
contentType: "application/xml; charset=utf-8",
|
7376
7741
|
mediaType: "xml",
|
7377
|
-
serializer: xmlSerializer
|
7742
|
+
serializer: xmlSerializer$3
|
7378
7743
|
};
|
7379
|
-
const getPropertiesOperationSpec = {
|
7744
|
+
const getPropertiesOperationSpec$3 = {
|
7380
7745
|
path: "/",
|
7381
7746
|
httpMethod: "GET",
|
7382
7747
|
responses: {
|
@@ -7397,7 +7762,7 @@ const getPropertiesOperationSpec = {
|
|
7397
7762
|
urlParameters: [url],
|
7398
7763
|
headerParameters: [version, accept1],
|
7399
7764
|
isXML: true,
|
7400
|
-
serializer: xmlSerializer
|
7765
|
+
serializer: xmlSerializer$3
|
7401
7766
|
};
|
7402
7767
|
const listSharesSegmentOperationSpec = {
|
7403
7768
|
path: "/",
|
@@ -7423,7 +7788,7 @@ const listSharesSegmentOperationSpec = {
|
|
7423
7788
|
urlParameters: [url],
|
7424
7789
|
headerParameters: [version, accept1],
|
7425
7790
|
isXML: true,
|
7426
|
-
serializer: xmlSerializer
|
7791
|
+
serializer: xmlSerializer$3
|
7427
7792
|
};
|
7428
7793
|
|
7429
7794
|
/*
|
@@ -7449,9 +7814,9 @@ class Share {
|
|
7449
7814
|
*/
|
7450
7815
|
create(options) {
|
7451
7816
|
const operationArguments = {
|
7452
|
-
options:
|
7817
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7453
7818
|
};
|
7454
|
-
return this.client.sendOperationRequest(operationArguments, createOperationSpec);
|
7819
|
+
return this.client.sendOperationRequest(operationArguments, createOperationSpec$2);
|
7455
7820
|
}
|
7456
7821
|
/**
|
7457
7822
|
* Returns all user-defined metadata and system properties for the specified share or share snapshot.
|
@@ -7460,9 +7825,9 @@ class Share {
|
|
7460
7825
|
*/
|
7461
7826
|
getProperties(options) {
|
7462
7827
|
const operationArguments = {
|
7463
|
-
options:
|
7828
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7464
7829
|
};
|
7465
|
-
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec$
|
7830
|
+
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec$2);
|
7466
7831
|
}
|
7467
7832
|
/**
|
7468
7833
|
* Operation marks the specified share or share snapshot for deletion. The share or share snapshot and
|
@@ -7471,9 +7836,9 @@ class Share {
|
|
7471
7836
|
*/
|
7472
7837
|
delete(options) {
|
7473
7838
|
const operationArguments = {
|
7474
|
-
options:
|
7839
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7475
7840
|
};
|
7476
|
-
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec);
|
7841
|
+
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec$2);
|
7477
7842
|
}
|
7478
7843
|
/**
|
7479
7844
|
* The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for
|
@@ -7482,9 +7847,9 @@ class Share {
|
|
7482
7847
|
*/
|
7483
7848
|
acquireLease(options) {
|
7484
7849
|
const operationArguments = {
|
7485
|
-
options:
|
7850
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7486
7851
|
};
|
7487
|
-
return this.client.sendOperationRequest(operationArguments, acquireLeaseOperationSpec);
|
7852
|
+
return this.client.sendOperationRequest(operationArguments, acquireLeaseOperationSpec$1);
|
7488
7853
|
}
|
7489
7854
|
/**
|
7490
7855
|
* The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for
|
@@ -7495,9 +7860,9 @@ class Share {
|
|
7495
7860
|
releaseLease(leaseId, options) {
|
7496
7861
|
const operationArguments = {
|
7497
7862
|
leaseId,
|
7498
|
-
options:
|
7863
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7499
7864
|
};
|
7500
|
-
return this.client.sendOperationRequest(operationArguments, releaseLeaseOperationSpec);
|
7865
|
+
return this.client.sendOperationRequest(operationArguments, releaseLeaseOperationSpec$1);
|
7501
7866
|
}
|
7502
7867
|
/**
|
7503
7868
|
* The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for
|
@@ -7508,9 +7873,9 @@ class Share {
|
|
7508
7873
|
changeLease(leaseId, options) {
|
7509
7874
|
const operationArguments = {
|
7510
7875
|
leaseId,
|
7511
|
-
options:
|
7876
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7512
7877
|
};
|
7513
|
-
return this.client.sendOperationRequest(operationArguments, changeLeaseOperationSpec);
|
7878
|
+
return this.client.sendOperationRequest(operationArguments, changeLeaseOperationSpec$1);
|
7514
7879
|
}
|
7515
7880
|
/**
|
7516
7881
|
* The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for
|
@@ -7521,7 +7886,7 @@ class Share {
|
|
7521
7886
|
renewLease(leaseId, options) {
|
7522
7887
|
const operationArguments = {
|
7523
7888
|
leaseId,
|
7524
|
-
options:
|
7889
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7525
7890
|
};
|
7526
7891
|
return this.client.sendOperationRequest(operationArguments, renewLeaseOperationSpec);
|
7527
7892
|
}
|
@@ -7532,9 +7897,9 @@ class Share {
|
|
7532
7897
|
*/
|
7533
7898
|
breakLease(options) {
|
7534
7899
|
const operationArguments = {
|
7535
|
-
options:
|
7900
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7536
7901
|
};
|
7537
|
-
return this.client.sendOperationRequest(operationArguments, breakLeaseOperationSpec);
|
7902
|
+
return this.client.sendOperationRequest(operationArguments, breakLeaseOperationSpec$1);
|
7538
7903
|
}
|
7539
7904
|
/**
|
7540
7905
|
* Creates a read-only snapshot of a share.
|
@@ -7542,7 +7907,7 @@ class Share {
|
|
7542
7907
|
*/
|
7543
7908
|
createSnapshot(options) {
|
7544
7909
|
const operationArguments = {
|
7545
|
-
options:
|
7910
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7546
7911
|
};
|
7547
7912
|
return this.client.sendOperationRequest(operationArguments, createSnapshotOperationSpec);
|
7548
7913
|
}
|
@@ -7554,7 +7919,7 @@ class Share {
|
|
7554
7919
|
createPermission(sharePermission, options) {
|
7555
7920
|
const operationArguments = {
|
7556
7921
|
sharePermission,
|
7557
|
-
options:
|
7922
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7558
7923
|
};
|
7559
7924
|
return this.client.sendOperationRequest(operationArguments, createPermissionOperationSpec);
|
7560
7925
|
}
|
@@ -7566,7 +7931,7 @@ class Share {
|
|
7566
7931
|
getPermission(filePermissionKey, options) {
|
7567
7932
|
const operationArguments = {
|
7568
7933
|
filePermissionKey,
|
7569
|
-
options:
|
7934
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7570
7935
|
};
|
7571
7936
|
return this.client.sendOperationRequest(operationArguments, getPermissionOperationSpec);
|
7572
7937
|
}
|
@@ -7576,7 +7941,7 @@ class Share {
|
|
7576
7941
|
*/
|
7577
7942
|
setProperties(options) {
|
7578
7943
|
const operationArguments = {
|
7579
|
-
options:
|
7944
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7580
7945
|
};
|
7581
7946
|
return this.client.sendOperationRequest(operationArguments, setPropertiesOperationSpec$1);
|
7582
7947
|
}
|
@@ -7586,9 +7951,9 @@ class Share {
|
|
7586
7951
|
*/
|
7587
7952
|
setMetadata(options) {
|
7588
7953
|
const operationArguments = {
|
7589
|
-
options:
|
7954
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7590
7955
|
};
|
7591
|
-
return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec);
|
7956
|
+
return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec$2);
|
7592
7957
|
}
|
7593
7958
|
/**
|
7594
7959
|
* Returns information about stored access policies specified on the share.
|
@@ -7596,7 +7961,7 @@ class Share {
|
|
7596
7961
|
*/
|
7597
7962
|
getAccessPolicy(options) {
|
7598
7963
|
const operationArguments = {
|
7599
|
-
options:
|
7964
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7600
7965
|
};
|
7601
7966
|
return this.client.sendOperationRequest(operationArguments, getAccessPolicyOperationSpec);
|
7602
7967
|
}
|
@@ -7606,7 +7971,7 @@ class Share {
|
|
7606
7971
|
*/
|
7607
7972
|
setAccessPolicy(options) {
|
7608
7973
|
const operationArguments = {
|
7609
|
-
options:
|
7974
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7610
7975
|
};
|
7611
7976
|
return this.client.sendOperationRequest(operationArguments, setAccessPolicyOperationSpec);
|
7612
7977
|
}
|
@@ -7616,7 +7981,7 @@ class Share {
|
|
7616
7981
|
*/
|
7617
7982
|
getStatistics(options) {
|
7618
7983
|
const operationArguments = {
|
7619
|
-
options:
|
7984
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7620
7985
|
};
|
7621
7986
|
return this.client.sendOperationRequest(operationArguments, getStatisticsOperationSpec);
|
7622
7987
|
}
|
@@ -7626,15 +7991,15 @@ class Share {
|
|
7626
7991
|
*/
|
7627
7992
|
restore(options) {
|
7628
7993
|
const operationArguments = {
|
7629
|
-
options:
|
7994
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7630
7995
|
};
|
7631
7996
|
return this.client.sendOperationRequest(operationArguments, restoreOperationSpec);
|
7632
7997
|
}
|
7633
7998
|
}
|
7634
7999
|
// Operation Specifications
|
7635
|
-
const xmlSerializer$
|
7636
|
-
const serializer = new
|
7637
|
-
const createOperationSpec = {
|
8000
|
+
const xmlSerializer$2 = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);
|
8001
|
+
const serializer = new coreHttp__namespace.Serializer(Mappers, /* isXml */ false);
|
8002
|
+
const createOperationSpec$2 = {
|
7638
8003
|
path: "/{shareName}",
|
7639
8004
|
httpMethod: "PUT",
|
7640
8005
|
responses: {
|
@@ -7658,9 +8023,9 @@ const createOperationSpec = {
|
|
7658
8023
|
rootSquash
|
7659
8024
|
],
|
7660
8025
|
isXML: true,
|
7661
|
-
serializer: xmlSerializer$
|
8026
|
+
serializer: xmlSerializer$2
|
7662
8027
|
};
|
7663
|
-
const getPropertiesOperationSpec$
|
8028
|
+
const getPropertiesOperationSpec$2 = {
|
7664
8029
|
path: "/{shareName}",
|
7665
8030
|
httpMethod: "GET",
|
7666
8031
|
responses: {
|
@@ -7684,9 +8049,9 @@ const getPropertiesOperationSpec$1 = {
|
|
7684
8049
|
leaseId
|
7685
8050
|
],
|
7686
8051
|
isXML: true,
|
7687
|
-
serializer: xmlSerializer$
|
8052
|
+
serializer: xmlSerializer$2
|
7688
8053
|
};
|
7689
|
-
const deleteOperationSpec = {
|
8054
|
+
const deleteOperationSpec$2 = {
|
7690
8055
|
path: "/{shareName}",
|
7691
8056
|
httpMethod: "DELETE",
|
7692
8057
|
responses: {
|
@@ -7711,9 +8076,9 @@ const deleteOperationSpec = {
|
|
7711
8076
|
deleteSnapshots
|
7712
8077
|
],
|
7713
8078
|
isXML: true,
|
7714
|
-
serializer: xmlSerializer$
|
8079
|
+
serializer: xmlSerializer$2
|
7715
8080
|
};
|
7716
|
-
const acquireLeaseOperationSpec = {
|
8081
|
+
const acquireLeaseOperationSpec$1 = {
|
7717
8082
|
path: "/{shareName}",
|
7718
8083
|
httpMethod: "PUT",
|
7719
8084
|
responses: {
|
@@ -7741,9 +8106,9 @@ const acquireLeaseOperationSpec = {
|
|
7741
8106
|
requestId
|
7742
8107
|
],
|
7743
8108
|
isXML: true,
|
7744
|
-
serializer: xmlSerializer$
|
8109
|
+
serializer: xmlSerializer$2
|
7745
8110
|
};
|
7746
|
-
const releaseLeaseOperationSpec = {
|
8111
|
+
const releaseLeaseOperationSpec$1 = {
|
7747
8112
|
path: "/{shareName}",
|
7748
8113
|
httpMethod: "PUT",
|
7749
8114
|
responses: {
|
@@ -7770,9 +8135,9 @@ const releaseLeaseOperationSpec = {
|
|
7770
8135
|
leaseId1
|
7771
8136
|
],
|
7772
8137
|
isXML: true,
|
7773
|
-
serializer: xmlSerializer$
|
8138
|
+
serializer: xmlSerializer$2
|
7774
8139
|
};
|
7775
|
-
const changeLeaseOperationSpec = {
|
8140
|
+
const changeLeaseOperationSpec$1 = {
|
7776
8141
|
path: "/{shareName}",
|
7777
8142
|
httpMethod: "PUT",
|
7778
8143
|
responses: {
|
@@ -7800,7 +8165,7 @@ const changeLeaseOperationSpec = {
|
|
7800
8165
|
action2
|
7801
8166
|
],
|
7802
8167
|
isXML: true,
|
7803
|
-
serializer: xmlSerializer$
|
8168
|
+
serializer: xmlSerializer$2
|
7804
8169
|
};
|
7805
8170
|
const renewLeaseOperationSpec = {
|
7806
8171
|
path: "/{shareName}",
|
@@ -7829,9 +8194,9 @@ const renewLeaseOperationSpec = {
|
|
7829
8194
|
action3
|
7830
8195
|
],
|
7831
8196
|
isXML: true,
|
7832
|
-
serializer: xmlSerializer$
|
8197
|
+
serializer: xmlSerializer$2
|
7833
8198
|
};
|
7834
|
-
const breakLeaseOperationSpec = {
|
8199
|
+
const breakLeaseOperationSpec$1 = {
|
7835
8200
|
path: "/{shareName}",
|
7836
8201
|
httpMethod: "PUT",
|
7837
8202
|
responses: {
|
@@ -7859,7 +8224,7 @@ const breakLeaseOperationSpec = {
|
|
7859
8224
|
breakPeriod
|
7860
8225
|
],
|
7861
8226
|
isXML: true,
|
7862
|
-
serializer: xmlSerializer$
|
8227
|
+
serializer: xmlSerializer$2
|
7863
8228
|
};
|
7864
8229
|
const createSnapshotOperationSpec = {
|
7865
8230
|
path: "/{shareName}",
|
@@ -7885,7 +8250,7 @@ const createSnapshotOperationSpec = {
|
|
7885
8250
|
metadata
|
7886
8251
|
],
|
7887
8252
|
isXML: true,
|
7888
|
-
serializer: xmlSerializer$
|
8253
|
+
serializer: xmlSerializer$2
|
7889
8254
|
};
|
7890
8255
|
const createPermissionOperationSpec = {
|
7891
8256
|
path: "/{shareName}",
|
@@ -7913,7 +8278,7 @@ const createPermissionOperationSpec = {
|
|
7913
8278
|
],
|
7914
8279
|
isXML: false,
|
7915
8280
|
contentType: "application/xml; charset=utf-8",
|
7916
|
-
serializer: xmlSerializer$
|
8281
|
+
serializer: xmlSerializer$2
|
7917
8282
|
};
|
7918
8283
|
const getPermissionOperationSpec = {
|
7919
8284
|
path: "/{shareName}",
|
@@ -7968,9 +8333,9 @@ const setPropertiesOperationSpec$1 = {
|
|
7968
8333
|
leaseId
|
7969
8334
|
],
|
7970
8335
|
isXML: true,
|
7971
|
-
serializer: xmlSerializer$
|
8336
|
+
serializer: xmlSerializer$2
|
7972
8337
|
};
|
7973
|
-
const setMetadataOperationSpec = {
|
8338
|
+
const setMetadataOperationSpec$2 = {
|
7974
8339
|
path: "/{shareName}",
|
7975
8340
|
httpMethod: "PUT",
|
7976
8341
|
responses: {
|
@@ -7995,7 +8360,7 @@ const setMetadataOperationSpec = {
|
|
7995
8360
|
leaseId
|
7996
8361
|
],
|
7997
8362
|
isXML: true,
|
7998
|
-
serializer: xmlSerializer$
|
8363
|
+
serializer: xmlSerializer$2
|
7999
8364
|
};
|
8000
8365
|
const getAccessPolicyOperationSpec = {
|
8001
8366
|
path: "/{shareName}",
|
@@ -8033,7 +8398,7 @@ const getAccessPolicyOperationSpec = {
|
|
8033
8398
|
leaseId
|
8034
8399
|
],
|
8035
8400
|
isXML: true,
|
8036
|
-
serializer: xmlSerializer$
|
8401
|
+
serializer: xmlSerializer$2
|
8037
8402
|
};
|
8038
8403
|
const setAccessPolicyOperationSpec = {
|
8039
8404
|
path: "/{shareName}",
|
@@ -8063,7 +8428,7 @@ const setAccessPolicyOperationSpec = {
|
|
8063
8428
|
isXML: true,
|
8064
8429
|
contentType: "application/xml; charset=utf-8",
|
8065
8430
|
mediaType: "xml",
|
8066
|
-
serializer: xmlSerializer$
|
8431
|
+
serializer: xmlSerializer$2
|
8067
8432
|
};
|
8068
8433
|
const getStatisticsOperationSpec = {
|
8069
8434
|
path: "/{shareName}",
|
@@ -8090,7 +8455,7 @@ const getStatisticsOperationSpec = {
|
|
8090
8455
|
leaseId
|
8091
8456
|
],
|
8092
8457
|
isXML: true,
|
8093
|
-
serializer: xmlSerializer$
|
8458
|
+
serializer: xmlSerializer$2
|
8094
8459
|
};
|
8095
8460
|
const restoreOperationSpec = {
|
8096
8461
|
path: "/{shareName}",
|
@@ -8118,7 +8483,7 @@ const restoreOperationSpec = {
|
|
8118
8483
|
deletedShareVersion
|
8119
8484
|
],
|
8120
8485
|
isXML: true,
|
8121
|
-
serializer: xmlSerializer$
|
8486
|
+
serializer: xmlSerializer$2
|
8122
8487
|
};
|
8123
8488
|
|
8124
8489
|
/*
|
@@ -8150,7 +8515,7 @@ class Directory {
|
|
8150
8515
|
fileAttributes,
|
8151
8516
|
fileCreatedOn,
|
8152
8517
|
fileLastWriteOn,
|
8153
|
-
options:
|
8518
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8154
8519
|
};
|
8155
8520
|
return this.client.sendOperationRequest(operationArguments, createOperationSpec$1);
|
8156
8521
|
}
|
@@ -8162,9 +8527,9 @@ class Directory {
|
|
8162
8527
|
*/
|
8163
8528
|
getProperties(options) {
|
8164
8529
|
const operationArguments = {
|
8165
|
-
options:
|
8530
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8166
8531
|
};
|
8167
|
-
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec$
|
8532
|
+
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec$1);
|
8168
8533
|
}
|
8169
8534
|
/**
|
8170
8535
|
* Removes the specified empty directory. Note that the directory must be empty before it can be
|
@@ -8173,7 +8538,7 @@ class Directory {
|
|
8173
8538
|
*/
|
8174
8539
|
delete(options) {
|
8175
8540
|
const operationArguments = {
|
8176
|
-
options:
|
8541
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8177
8542
|
};
|
8178
8543
|
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec$1);
|
8179
8544
|
}
|
@@ -8190,9 +8555,9 @@ class Directory {
|
|
8190
8555
|
fileAttributes,
|
8191
8556
|
fileCreatedOn,
|
8192
8557
|
fileLastWriteOn,
|
8193
|
-
options:
|
8558
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8194
8559
|
};
|
8195
|
-
return this.client.sendOperationRequest(operationArguments, setPropertiesOperationSpec
|
8560
|
+
return this.client.sendOperationRequest(operationArguments, setPropertiesOperationSpec);
|
8196
8561
|
}
|
8197
8562
|
/**
|
8198
8563
|
* Updates user defined metadata for the specified directory.
|
@@ -8200,7 +8565,7 @@ class Directory {
|
|
8200
8565
|
*/
|
8201
8566
|
setMetadata(options) {
|
8202
8567
|
const operationArguments = {
|
8203
|
-
options:
|
8568
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8204
8569
|
};
|
8205
8570
|
return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec$1);
|
8206
8571
|
}
|
@@ -8211,7 +8576,7 @@ class Directory {
|
|
8211
8576
|
*/
|
8212
8577
|
listFilesAndDirectoriesSegment(options) {
|
8213
8578
|
const operationArguments = {
|
8214
|
-
options:
|
8579
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8215
8580
|
};
|
8216
8581
|
return this.client.sendOperationRequest(operationArguments, listFilesAndDirectoriesSegmentOperationSpec);
|
8217
8582
|
}
|
@@ -8221,9 +8586,9 @@ class Directory {
|
|
8221
8586
|
*/
|
8222
8587
|
listHandles(options) {
|
8223
8588
|
const operationArguments = {
|
8224
|
-
options:
|
8589
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8225
8590
|
};
|
8226
|
-
return this.client.sendOperationRequest(operationArguments, listHandlesOperationSpec);
|
8591
|
+
return this.client.sendOperationRequest(operationArguments, listHandlesOperationSpec$1);
|
8227
8592
|
}
|
8228
8593
|
/**
|
8229
8594
|
* Closes all handles open for given directory.
|
@@ -8234,13 +8599,25 @@ class Directory {
|
|
8234
8599
|
forceCloseHandles(handleId, options) {
|
8235
8600
|
const operationArguments = {
|
8236
8601
|
handleId,
|
8237
|
-
options:
|
8602
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8238
8603
|
};
|
8239
|
-
return this.client.sendOperationRequest(operationArguments, forceCloseHandlesOperationSpec);
|
8604
|
+
return this.client.sendOperationRequest(operationArguments, forceCloseHandlesOperationSpec$1);
|
8605
|
+
}
|
8606
|
+
/**
|
8607
|
+
* Renames a directory
|
8608
|
+
* @param renameSource Required. Specifies the URI-style path of the source file, up to 2 KB in length.
|
8609
|
+
* @param options The options parameters.
|
8610
|
+
*/
|
8611
|
+
rename(renameSource, options) {
|
8612
|
+
const operationArguments = {
|
8613
|
+
renameSource,
|
8614
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8615
|
+
};
|
8616
|
+
return this.client.sendOperationRequest(operationArguments, renameOperationSpec$1);
|
8240
8617
|
}
|
8241
8618
|
}
|
8242
8619
|
// Operation Specifications
|
8243
|
-
const xmlSerializer$
|
8620
|
+
const xmlSerializer$1 = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);
|
8244
8621
|
const createOperationSpec$1 = {
|
8245
8622
|
path: "/{shareName}/{directory}",
|
8246
8623
|
httpMethod: "PUT",
|
@@ -8266,9 +8643,9 @@ const createOperationSpec$1 = {
|
|
8266
8643
|
fileLastWriteOn
|
8267
8644
|
],
|
8268
8645
|
isXML: true,
|
8269
|
-
serializer: xmlSerializer$
|
8646
|
+
serializer: xmlSerializer$1
|
8270
8647
|
};
|
8271
|
-
const getPropertiesOperationSpec$
|
8648
|
+
const getPropertiesOperationSpec$1 = {
|
8272
8649
|
path: "/{shareName}/{directory}",
|
8273
8650
|
httpMethod: "GET",
|
8274
8651
|
responses: {
|
@@ -8288,7 +8665,7 @@ const getPropertiesOperationSpec$2 = {
|
|
8288
8665
|
urlParameters: [url],
|
8289
8666
|
headerParameters: [version, accept1],
|
8290
8667
|
isXML: true,
|
8291
|
-
serializer: xmlSerializer$
|
8668
|
+
serializer: xmlSerializer$1
|
8292
8669
|
};
|
8293
8670
|
const deleteOperationSpec$1 = {
|
8294
8671
|
path: "/{shareName}/{directory}",
|
@@ -8306,9 +8683,9 @@ const deleteOperationSpec$1 = {
|
|
8306
8683
|
urlParameters: [url],
|
8307
8684
|
headerParameters: [version, accept1],
|
8308
8685
|
isXML: true,
|
8309
|
-
serializer: xmlSerializer$
|
8686
|
+
serializer: xmlSerializer$1
|
8310
8687
|
};
|
8311
|
-
const setPropertiesOperationSpec
|
8688
|
+
const setPropertiesOperationSpec = {
|
8312
8689
|
path: "/{shareName}/{directory}",
|
8313
8690
|
httpMethod: "PUT",
|
8314
8691
|
responses: {
|
@@ -8336,7 +8713,7 @@ const setPropertiesOperationSpec$2 = {
|
|
8336
8713
|
fileLastWriteOn
|
8337
8714
|
],
|
8338
8715
|
isXML: true,
|
8339
|
-
serializer: xmlSerializer$
|
8716
|
+
serializer: xmlSerializer$1
|
8340
8717
|
};
|
8341
8718
|
const setMetadataOperationSpec$1 = {
|
8342
8719
|
path: "/{shareName}/{directory}",
|
@@ -8362,7 +8739,7 @@ const setMetadataOperationSpec$1 = {
|
|
8362
8739
|
metadata
|
8363
8740
|
],
|
8364
8741
|
isXML: true,
|
8365
|
-
serializer: xmlSerializer$
|
8742
|
+
serializer: xmlSerializer$1
|
8366
8743
|
};
|
8367
8744
|
const listFilesAndDirectoriesSegmentOperationSpec = {
|
8368
8745
|
path: "/{shareName}/{directory}",
|
@@ -8394,9 +8771,9 @@ const listFilesAndDirectoriesSegmentOperationSpec = {
|
|
8394
8771
|
includeExtendedInfo
|
8395
8772
|
],
|
8396
8773
|
isXML: true,
|
8397
|
-
serializer: xmlSerializer$
|
8774
|
+
serializer: xmlSerializer$1
|
8398
8775
|
};
|
8399
|
-
const listHandlesOperationSpec = {
|
8776
|
+
const listHandlesOperationSpec$1 = {
|
8400
8777
|
path: "/{shareName}/{directory}",
|
8401
8778
|
httpMethod: "GET",
|
8402
8779
|
responses: {
|
@@ -8423,9 +8800,9 @@ const listHandlesOperationSpec = {
|
|
8423
8800
|
recursive
|
8424
8801
|
],
|
8425
8802
|
isXML: true,
|
8426
|
-
serializer: xmlSerializer$
|
8803
|
+
serializer: xmlSerializer$1
|
8427
8804
|
};
|
8428
|
-
const forceCloseHandlesOperationSpec = {
|
8805
|
+
const forceCloseHandlesOperationSpec$1 = {
|
8429
8806
|
path: "/{shareName}/{directory}",
|
8430
8807
|
httpMethod: "PUT",
|
8431
8808
|
responses: {
|
@@ -8451,7 +8828,43 @@ const forceCloseHandlesOperationSpec = {
|
|
8451
8828
|
handleId
|
8452
8829
|
],
|
8453
8830
|
isXML: true,
|
8454
|
-
serializer: xmlSerializer$
|
8831
|
+
serializer: xmlSerializer$1
|
8832
|
+
};
|
8833
|
+
const renameOperationSpec$1 = {
|
8834
|
+
path: "/{shareName}/{directory}",
|
8835
|
+
httpMethod: "PUT",
|
8836
|
+
responses: {
|
8837
|
+
200: {
|
8838
|
+
headersMapper: DirectoryRenameHeaders
|
8839
|
+
},
|
8840
|
+
default: {
|
8841
|
+
bodyMapper: StorageError,
|
8842
|
+
headersMapper: DirectoryRenameExceptionHeaders
|
8843
|
+
}
|
8844
|
+
},
|
8845
|
+
queryParameters: [
|
8846
|
+
timeoutInSeconds,
|
8847
|
+
restype2,
|
8848
|
+
comp11
|
8849
|
+
],
|
8850
|
+
urlParameters: [url],
|
8851
|
+
headerParameters: [
|
8852
|
+
version,
|
8853
|
+
accept1,
|
8854
|
+
metadata,
|
8855
|
+
filePermission,
|
8856
|
+
filePermissionKey1,
|
8857
|
+
renameSource,
|
8858
|
+
replaceIfExists,
|
8859
|
+
ignoreReadOnly,
|
8860
|
+
sourceLeaseId,
|
8861
|
+
destinationLeaseId,
|
8862
|
+
fileAttributes1,
|
8863
|
+
fileCreationTime,
|
8864
|
+
fileLastWriteTime
|
8865
|
+
],
|
8866
|
+
isXML: true,
|
8867
|
+
serializer: xmlSerializer$1
|
8455
8868
|
};
|
8456
8869
|
|
8457
8870
|
/*
|
@@ -8485,9 +8898,9 @@ class File {
|
|
8485
8898
|
fileAttributes,
|
8486
8899
|
fileCreatedOn,
|
8487
8900
|
fileLastWriteOn,
|
8488
|
-
options:
|
8901
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8489
8902
|
};
|
8490
|
-
return this.client.sendOperationRequest(operationArguments, createOperationSpec
|
8903
|
+
return this.client.sendOperationRequest(operationArguments, createOperationSpec);
|
8491
8904
|
}
|
8492
8905
|
/**
|
8493
8906
|
* Reads or downloads a file from the system, including its metadata and properties.
|
@@ -8495,7 +8908,7 @@ class File {
|
|
8495
8908
|
*/
|
8496
8909
|
download(options) {
|
8497
8910
|
const operationArguments = {
|
8498
|
-
options:
|
8911
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8499
8912
|
};
|
8500
8913
|
return this.client.sendOperationRequest(operationArguments, downloadOperationSpec);
|
8501
8914
|
}
|
@@ -8506,9 +8919,9 @@ class File {
|
|
8506
8919
|
*/
|
8507
8920
|
getProperties(options) {
|
8508
8921
|
const operationArguments = {
|
8509
|
-
options:
|
8922
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8510
8923
|
};
|
8511
|
-
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec
|
8924
|
+
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec);
|
8512
8925
|
}
|
8513
8926
|
/**
|
8514
8927
|
* removes the file from the storage account.
|
@@ -8516,9 +8929,9 @@ class File {
|
|
8516
8929
|
*/
|
8517
8930
|
delete(options) {
|
8518
8931
|
const operationArguments = {
|
8519
|
-
options:
|
8932
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8520
8933
|
};
|
8521
|
-
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec
|
8934
|
+
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec);
|
8522
8935
|
}
|
8523
8936
|
/**
|
8524
8937
|
* Sets HTTP headers on the file.
|
@@ -8533,7 +8946,7 @@ class File {
|
|
8533
8946
|
fileAttributes,
|
8534
8947
|
fileCreatedOn,
|
8535
8948
|
fileLastWriteOn,
|
8536
|
-
options:
|
8949
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8537
8950
|
};
|
8538
8951
|
return this.client.sendOperationRequest(operationArguments, setHttpHeadersOperationSpec);
|
8539
8952
|
}
|
@@ -8543,9 +8956,9 @@ class File {
|
|
8543
8956
|
*/
|
8544
8957
|
setMetadata(options) {
|
8545
8958
|
const operationArguments = {
|
8546
|
-
options:
|
8959
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8547
8960
|
};
|
8548
|
-
return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec
|
8961
|
+
return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec);
|
8549
8962
|
}
|
8550
8963
|
/**
|
8551
8964
|
* [Update] The Lease File operation establishes and manages a lock on a file for write and delete
|
@@ -8554,9 +8967,9 @@ class File {
|
|
8554
8967
|
*/
|
8555
8968
|
acquireLease(options) {
|
8556
8969
|
const operationArguments = {
|
8557
|
-
options:
|
8970
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8558
8971
|
};
|
8559
|
-
return this.client.sendOperationRequest(operationArguments, acquireLeaseOperationSpec
|
8972
|
+
return this.client.sendOperationRequest(operationArguments, acquireLeaseOperationSpec);
|
8560
8973
|
}
|
8561
8974
|
/**
|
8562
8975
|
* [Update] The Lease File operation establishes and manages a lock on a file for write and delete
|
@@ -8567,9 +8980,9 @@ class File {
|
|
8567
8980
|
releaseLease(leaseId, options) {
|
8568
8981
|
const operationArguments = {
|
8569
8982
|
leaseId,
|
8570
|
-
options:
|
8983
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8571
8984
|
};
|
8572
|
-
return this.client.sendOperationRequest(operationArguments, releaseLeaseOperationSpec
|
8985
|
+
return this.client.sendOperationRequest(operationArguments, releaseLeaseOperationSpec);
|
8573
8986
|
}
|
8574
8987
|
/**
|
8575
8988
|
* [Update] The Lease File operation establishes and manages a lock on a file for write and delete
|
@@ -8580,9 +8993,9 @@ class File {
|
|
8580
8993
|
changeLease(leaseId, options) {
|
8581
8994
|
const operationArguments = {
|
8582
8995
|
leaseId,
|
8583
|
-
options:
|
8996
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8584
8997
|
};
|
8585
|
-
return this.client.sendOperationRequest(operationArguments, changeLeaseOperationSpec
|
8998
|
+
return this.client.sendOperationRequest(operationArguments, changeLeaseOperationSpec);
|
8586
8999
|
}
|
8587
9000
|
/**
|
8588
9001
|
* [Update] The Lease File operation establishes and manages a lock on a file for write and delete
|
@@ -8591,9 +9004,9 @@ class File {
|
|
8591
9004
|
*/
|
8592
9005
|
breakLease(options) {
|
8593
9006
|
const operationArguments = {
|
8594
|
-
options:
|
9007
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8595
9008
|
};
|
8596
|
-
return this.client.sendOperationRequest(operationArguments, breakLeaseOperationSpec
|
9009
|
+
return this.client.sendOperationRequest(operationArguments, breakLeaseOperationSpec);
|
8597
9010
|
}
|
8598
9011
|
/**
|
8599
9012
|
* Upload a range of bytes to a file.
|
@@ -8616,7 +9029,7 @@ class File {
|
|
8616
9029
|
range,
|
8617
9030
|
fileRangeWrite,
|
8618
9031
|
contentLength,
|
8619
|
-
options:
|
9032
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8620
9033
|
};
|
8621
9034
|
return this.client.sendOperationRequest(operationArguments, uploadRangeOperationSpec);
|
8622
9035
|
}
|
@@ -8638,7 +9051,7 @@ class File {
|
|
8638
9051
|
range,
|
8639
9052
|
copySource,
|
8640
9053
|
contentLength,
|
8641
|
-
options:
|
9054
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8642
9055
|
};
|
8643
9056
|
return this.client.sendOperationRequest(operationArguments, uploadRangeFromURLOperationSpec);
|
8644
9057
|
}
|
@@ -8648,7 +9061,7 @@ class File {
|
|
8648
9061
|
*/
|
8649
9062
|
getRangeList(options) {
|
8650
9063
|
const operationArguments = {
|
8651
|
-
options:
|
9064
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8652
9065
|
};
|
8653
9066
|
return this.client.sendOperationRequest(operationArguments, getRangeListOperationSpec);
|
8654
9067
|
}
|
@@ -8665,7 +9078,7 @@ class File {
|
|
8665
9078
|
startCopy(copySource, options) {
|
8666
9079
|
const operationArguments = {
|
8667
9080
|
copySource,
|
8668
|
-
options:
|
9081
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8669
9082
|
};
|
8670
9083
|
return this.client.sendOperationRequest(operationArguments, startCopyOperationSpec);
|
8671
9084
|
}
|
@@ -8679,7 +9092,7 @@ class File {
|
|
8679
9092
|
abortCopy(copyId, options) {
|
8680
9093
|
const operationArguments = {
|
8681
9094
|
copyId,
|
8682
|
-
options:
|
9095
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8683
9096
|
};
|
8684
9097
|
return this.client.sendOperationRequest(operationArguments, abortCopyOperationSpec);
|
8685
9098
|
}
|
@@ -8689,9 +9102,9 @@ class File {
|
|
8689
9102
|
*/
|
8690
9103
|
listHandles(options) {
|
8691
9104
|
const operationArguments = {
|
8692
|
-
options:
|
9105
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8693
9106
|
};
|
8694
|
-
return this.client.sendOperationRequest(operationArguments, listHandlesOperationSpec
|
9107
|
+
return this.client.sendOperationRequest(operationArguments, listHandlesOperationSpec);
|
8695
9108
|
}
|
8696
9109
|
/**
|
8697
9110
|
* Closes all handles open for given file
|
@@ -8702,14 +9115,26 @@ class File {
|
|
8702
9115
|
forceCloseHandles(handleId, options) {
|
8703
9116
|
const operationArguments = {
|
8704
9117
|
handleId,
|
8705
|
-
options:
|
9118
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8706
9119
|
};
|
8707
|
-
return this.client.sendOperationRequest(operationArguments, forceCloseHandlesOperationSpec
|
9120
|
+
return this.client.sendOperationRequest(operationArguments, forceCloseHandlesOperationSpec);
|
9121
|
+
}
|
9122
|
+
/**
|
9123
|
+
* Renames a file
|
9124
|
+
* @param renameSource Required. Specifies the URI-style path of the source file, up to 2 KB in length.
|
9125
|
+
* @param options The options parameters.
|
9126
|
+
*/
|
9127
|
+
rename(renameSource, options) {
|
9128
|
+
const operationArguments = {
|
9129
|
+
renameSource,
|
9130
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
9131
|
+
};
|
9132
|
+
return this.client.sendOperationRequest(operationArguments, renameOperationSpec);
|
8708
9133
|
}
|
8709
9134
|
}
|
8710
9135
|
// Operation Specifications
|
8711
|
-
const xmlSerializer
|
8712
|
-
const createOperationSpec
|
9136
|
+
const xmlSerializer = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);
|
9137
|
+
const createOperationSpec = {
|
8713
9138
|
path: "/{shareName}/{directory}/{fileName}",
|
8714
9139
|
httpMethod: "PUT",
|
8715
9140
|
responses: {
|
@@ -8743,7 +9168,7 @@ const createOperationSpec$2 = {
|
|
8743
9168
|
fileContentDisposition
|
8744
9169
|
],
|
8745
9170
|
isXML: true,
|
8746
|
-
serializer: xmlSerializer
|
9171
|
+
serializer: xmlSerializer
|
8747
9172
|
};
|
8748
9173
|
const downloadOperationSpec = {
|
8749
9174
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -8778,9 +9203,9 @@ const downloadOperationSpec = {
|
|
8778
9203
|
rangeGetContentMD5
|
8779
9204
|
],
|
8780
9205
|
isXML: true,
|
8781
|
-
serializer: xmlSerializer
|
9206
|
+
serializer: xmlSerializer
|
8782
9207
|
};
|
8783
|
-
const getPropertiesOperationSpec
|
9208
|
+
const getPropertiesOperationSpec = {
|
8784
9209
|
path: "/{shareName}/{directory}/{fileName}",
|
8785
9210
|
httpMethod: "HEAD",
|
8786
9211
|
responses: {
|
@@ -8800,9 +9225,9 @@ const getPropertiesOperationSpec$3 = {
|
|
8800
9225
|
leaseId
|
8801
9226
|
],
|
8802
9227
|
isXML: true,
|
8803
|
-
serializer: xmlSerializer
|
9228
|
+
serializer: xmlSerializer
|
8804
9229
|
};
|
8805
|
-
const deleteOperationSpec
|
9230
|
+
const deleteOperationSpec = {
|
8806
9231
|
path: "/{shareName}/{directory}/{fileName}",
|
8807
9232
|
httpMethod: "DELETE",
|
8808
9233
|
responses: {
|
@@ -8822,7 +9247,7 @@ const deleteOperationSpec$2 = {
|
|
8822
9247
|
leaseId
|
8823
9248
|
],
|
8824
9249
|
isXML: true,
|
8825
|
-
serializer: xmlSerializer
|
9250
|
+
serializer: xmlSerializer
|
8826
9251
|
};
|
8827
9252
|
const setHttpHeadersOperationSpec = {
|
8828
9253
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -8856,9 +9281,9 @@ const setHttpHeadersOperationSpec = {
|
|
8856
9281
|
fileContentLength1
|
8857
9282
|
],
|
8858
9283
|
isXML: true,
|
8859
|
-
serializer: xmlSerializer
|
9284
|
+
serializer: xmlSerializer
|
8860
9285
|
};
|
8861
|
-
const setMetadataOperationSpec
|
9286
|
+
const setMetadataOperationSpec = {
|
8862
9287
|
path: "/{shareName}/{directory}/{fileName}",
|
8863
9288
|
httpMethod: "PUT",
|
8864
9289
|
responses: {
|
@@ -8879,9 +9304,9 @@ const setMetadataOperationSpec$2 = {
|
|
8879
9304
|
leaseId
|
8880
9305
|
],
|
8881
9306
|
isXML: true,
|
8882
|
-
serializer: xmlSerializer
|
9307
|
+
serializer: xmlSerializer
|
8883
9308
|
};
|
8884
|
-
const acquireLeaseOperationSpec
|
9309
|
+
const acquireLeaseOperationSpec = {
|
8885
9310
|
path: "/{shareName}/{directory}/{fileName}",
|
8886
9311
|
httpMethod: "PUT",
|
8887
9312
|
responses: {
|
@@ -8904,9 +9329,9 @@ const acquireLeaseOperationSpec$1 = {
|
|
8904
9329
|
requestId
|
8905
9330
|
],
|
8906
9331
|
isXML: true,
|
8907
|
-
serializer: xmlSerializer
|
9332
|
+
serializer: xmlSerializer
|
8908
9333
|
};
|
8909
|
-
const releaseLeaseOperationSpec
|
9334
|
+
const releaseLeaseOperationSpec = {
|
8910
9335
|
path: "/{shareName}/{directory}/{fileName}",
|
8911
9336
|
httpMethod: "PUT",
|
8912
9337
|
responses: {
|
@@ -8928,9 +9353,9 @@ const releaseLeaseOperationSpec$1 = {
|
|
8928
9353
|
leaseId1
|
8929
9354
|
],
|
8930
9355
|
isXML: true,
|
8931
|
-
serializer: xmlSerializer
|
9356
|
+
serializer: xmlSerializer
|
8932
9357
|
};
|
8933
|
-
const changeLeaseOperationSpec
|
9358
|
+
const changeLeaseOperationSpec = {
|
8934
9359
|
path: "/{shareName}/{directory}/{fileName}",
|
8935
9360
|
httpMethod: "PUT",
|
8936
9361
|
responses: {
|
@@ -8953,9 +9378,9 @@ const changeLeaseOperationSpec$1 = {
|
|
8953
9378
|
action2
|
8954
9379
|
],
|
8955
9380
|
isXML: true,
|
8956
|
-
serializer: xmlSerializer
|
9381
|
+
serializer: xmlSerializer
|
8957
9382
|
};
|
8958
|
-
const breakLeaseOperationSpec
|
9383
|
+
const breakLeaseOperationSpec = {
|
8959
9384
|
path: "/{shareName}/{directory}/{fileName}",
|
8960
9385
|
httpMethod: "PUT",
|
8961
9386
|
responses: {
|
@@ -8977,7 +9402,7 @@ const breakLeaseOperationSpec$1 = {
|
|
8977
9402
|
action4
|
8978
9403
|
],
|
8979
9404
|
isXML: true,
|
8980
|
-
serializer: xmlSerializer
|
9405
|
+
serializer: xmlSerializer
|
8981
9406
|
};
|
8982
9407
|
const uploadRangeOperationSpec = {
|
8983
9408
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -8992,7 +9417,7 @@ const uploadRangeOperationSpec = {
|
|
8992
9417
|
}
|
8993
9418
|
},
|
8994
9419
|
requestBody: body,
|
8995
|
-
queryParameters: [timeoutInSeconds,
|
9420
|
+
queryParameters: [timeoutInSeconds, comp12],
|
8996
9421
|
urlParameters: [url],
|
8997
9422
|
headerParameters: [
|
8998
9423
|
version,
|
@@ -9006,7 +9431,7 @@ const uploadRangeOperationSpec = {
|
|
9006
9431
|
],
|
9007
9432
|
contentType: "application/octet-stream",
|
9008
9433
|
isXML: true,
|
9009
|
-
serializer: xmlSerializer
|
9434
|
+
serializer: xmlSerializer
|
9010
9435
|
};
|
9011
9436
|
const uploadRangeFromURLOperationSpec = {
|
9012
9437
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -9020,7 +9445,7 @@ const uploadRangeFromURLOperationSpec = {
|
|
9020
9445
|
headersMapper: FileUploadRangeFromURLExceptionHeaders
|
9021
9446
|
}
|
9022
9447
|
},
|
9023
|
-
queryParameters: [timeoutInSeconds,
|
9448
|
+
queryParameters: [timeoutInSeconds, comp12],
|
9024
9449
|
urlParameters: [url],
|
9025
9450
|
headerParameters: [
|
9026
9451
|
version,
|
@@ -9037,7 +9462,7 @@ const uploadRangeFromURLOperationSpec = {
|
|
9037
9462
|
copySourceAuthorization
|
9038
9463
|
],
|
9039
9464
|
isXML: true,
|
9040
|
-
serializer: xmlSerializer
|
9465
|
+
serializer: xmlSerializer
|
9041
9466
|
};
|
9042
9467
|
const getRangeListOperationSpec = {
|
9043
9468
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -9055,7 +9480,7 @@ const getRangeListOperationSpec = {
|
|
9055
9480
|
queryParameters: [
|
9056
9481
|
timeoutInSeconds,
|
9057
9482
|
shareSnapshot,
|
9058
|
-
|
9483
|
+
comp13,
|
9059
9484
|
prevsharesnapshot
|
9060
9485
|
],
|
9061
9486
|
urlParameters: [url],
|
@@ -9066,7 +9491,7 @@ const getRangeListOperationSpec = {
|
|
9066
9491
|
range
|
9067
9492
|
],
|
9068
9493
|
isXML: true,
|
9069
|
-
serializer: xmlSerializer
|
9494
|
+
serializer: xmlSerializer
|
9070
9495
|
};
|
9071
9496
|
const startCopyOperationSpec = {
|
9072
9497
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -9089,16 +9514,16 @@ const startCopyOperationSpec = {
|
|
9089
9514
|
leaseId,
|
9090
9515
|
filePermission,
|
9091
9516
|
filePermissionKey1,
|
9092
|
-
copySource,
|
9093
|
-
filePermissionCopyMode,
|
9094
|
-
ignoreReadOnly,
|
9095
9517
|
fileAttributes1,
|
9096
9518
|
fileCreationTime,
|
9097
9519
|
fileLastWriteTime,
|
9520
|
+
copySource,
|
9521
|
+
filePermissionCopyMode,
|
9522
|
+
ignoreReadOnly1,
|
9098
9523
|
setArchiveAttribute
|
9099
9524
|
],
|
9100
9525
|
isXML: true,
|
9101
|
-
serializer: xmlSerializer
|
9526
|
+
serializer: xmlSerializer
|
9102
9527
|
};
|
9103
9528
|
const abortCopyOperationSpec = {
|
9104
9529
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -9114,7 +9539,7 @@ const abortCopyOperationSpec = {
|
|
9114
9539
|
},
|
9115
9540
|
queryParameters: [
|
9116
9541
|
timeoutInSeconds,
|
9117
|
-
|
9542
|
+
comp14,
|
9118
9543
|
copyId
|
9119
9544
|
],
|
9120
9545
|
urlParameters: [url],
|
@@ -9125,9 +9550,9 @@ const abortCopyOperationSpec = {
|
|
9125
9550
|
copyActionAbortConstant
|
9126
9551
|
],
|
9127
9552
|
isXML: true,
|
9128
|
-
serializer: xmlSerializer
|
9553
|
+
serializer: xmlSerializer
|
9129
9554
|
};
|
9130
|
-
const listHandlesOperationSpec
|
9555
|
+
const listHandlesOperationSpec = {
|
9131
9556
|
path: "/{shareName}/{directory}/{fileName}",
|
9132
9557
|
httpMethod: "GET",
|
9133
9558
|
responses: {
|
@@ -9150,9 +9575,9 @@ const listHandlesOperationSpec$1 = {
|
|
9150
9575
|
urlParameters: [url],
|
9151
9576
|
headerParameters: [version, accept1],
|
9152
9577
|
isXML: true,
|
9153
|
-
serializer: xmlSerializer
|
9578
|
+
serializer: xmlSerializer
|
9154
9579
|
};
|
9155
|
-
const forceCloseHandlesOperationSpec
|
9580
|
+
const forceCloseHandlesOperationSpec = {
|
9156
9581
|
path: "/{shareName}/{directory}/{fileName}",
|
9157
9582
|
httpMethod: "PUT",
|
9158
9583
|
responses: {
|
@@ -9177,7 +9602,39 @@ const forceCloseHandlesOperationSpec$1 = {
|
|
9177
9602
|
handleId
|
9178
9603
|
],
|
9179
9604
|
isXML: true,
|
9180
|
-
serializer: xmlSerializer
|
9605
|
+
serializer: xmlSerializer
|
9606
|
+
};
|
9607
|
+
const renameOperationSpec = {
|
9608
|
+
path: "/{shareName}/{directory}/{fileName}",
|
9609
|
+
httpMethod: "PUT",
|
9610
|
+
responses: {
|
9611
|
+
200: {
|
9612
|
+
headersMapper: FileRenameHeaders
|
9613
|
+
},
|
9614
|
+
default: {
|
9615
|
+
bodyMapper: StorageError,
|
9616
|
+
headersMapper: FileRenameExceptionHeaders
|
9617
|
+
}
|
9618
|
+
},
|
9619
|
+
queryParameters: [timeoutInSeconds, comp11],
|
9620
|
+
urlParameters: [url],
|
9621
|
+
headerParameters: [
|
9622
|
+
version,
|
9623
|
+
accept1,
|
9624
|
+
metadata,
|
9625
|
+
filePermission,
|
9626
|
+
filePermissionKey1,
|
9627
|
+
renameSource,
|
9628
|
+
replaceIfExists,
|
9629
|
+
ignoreReadOnly,
|
9630
|
+
sourceLeaseId,
|
9631
|
+
destinationLeaseId,
|
9632
|
+
fileAttributes1,
|
9633
|
+
fileCreationTime,
|
9634
|
+
fileLastWriteTime
|
9635
|
+
],
|
9636
|
+
isXML: true,
|
9637
|
+
serializer: xmlSerializer
|
9181
9638
|
};
|
9182
9639
|
|
9183
9640
|
// Copyright (c) Microsoft Corporation.
|
@@ -9215,9 +9672,16 @@ class StorageBrowserPolicy extends coreHttp.BaseRequestPolicy {
|
|
9215
9672
|
* @param request -
|
9216
9673
|
*/
|
9217
9674
|
async sendRequest(request) {
|
9218
|
-
{
|
9675
|
+
if (coreHttp.isNode) {
|
9219
9676
|
return this._nextPolicy.sendRequest(request);
|
9220
9677
|
}
|
9678
|
+
if (request.method.toUpperCase() === "GET" || request.method.toUpperCase() === "HEAD") {
|
9679
|
+
request.url = setURLParameter(request.url, URLConstants.Parameters.FORCE_BROWSER_NO_CACHE, new Date().getTime().toString());
|
9680
|
+
}
|
9681
|
+
request.headers.remove(HeaderConstants.COOKIE);
|
9682
|
+
// According to XHR standards, content-length should be fully controlled by browsers
|
9683
|
+
request.headers.remove(HeaderConstants.CONTENT_LENGTH);
|
9684
|
+
return this._nextPolicy.sendRequest(request);
|
9221
9685
|
}
|
9222
9686
|
}
|
9223
9687
|
|
@@ -9238,6 +9702,10 @@ class StorageBrowserPolicyFactory {
|
|
9238
9702
|
}
|
9239
9703
|
|
9240
9704
|
// Copyright (c) Microsoft Corporation.
|
9705
|
+
/**
|
9706
|
+
* RetryPolicy types.
|
9707
|
+
*/
|
9708
|
+
exports.StorageRetryPolicyType = void 0;
|
9241
9709
|
(function (StorageRetryPolicyType) {
|
9242
9710
|
/**
|
9243
9711
|
* Exponential retry. Retry time delay grows exponentially.
|
@@ -9254,7 +9722,7 @@ const DEFAULT_RETRY_OPTIONS = {
|
|
9254
9722
|
maxTries: 4,
|
9255
9723
|
retryDelayInMs: 4 * 1000,
|
9256
9724
|
retryPolicyType: exports.StorageRetryPolicyType.EXPONENTIAL,
|
9257
|
-
tryTimeoutInMs: undefined // Use server side default timeout strategy
|
9725
|
+
tryTimeoutInMs: undefined, // Use server side default timeout strategy
|
9258
9726
|
};
|
9259
9727
|
const RETRY_ABORT_ERROR = new abortController.AbortError("The operation was aborted.");
|
9260
9728
|
/**
|
@@ -9288,7 +9756,7 @@ class StorageRetryPolicy extends coreHttp.BaseRequestPolicy {
|
|
9288
9756
|
: DEFAULT_RETRY_OPTIONS.retryDelayInMs,
|
9289
9757
|
maxRetryDelayInMs: retryOptions.maxRetryDelayInMs && retryOptions.maxRetryDelayInMs >= 0
|
9290
9758
|
? retryOptions.maxRetryDelayInMs
|
9291
|
-
: DEFAULT_RETRY_OPTIONS.maxRetryDelayInMs
|
9759
|
+
: DEFAULT_RETRY_OPTIONS.maxRetryDelayInMs,
|
9292
9760
|
};
|
9293
9761
|
}
|
9294
9762
|
/**
|
@@ -9360,7 +9828,7 @@ class StorageRetryPolicy extends coreHttp.BaseRequestPolicy {
|
|
9360
9828
|
"ENOTFOUND",
|
9361
9829
|
"TIMEOUT",
|
9362
9830
|
"EPIPE",
|
9363
|
-
"REQUEST_SEND_ERROR" // For default xhr based http client provided in ms-rest-js
|
9831
|
+
"REQUEST_SEND_ERROR", // For default xhr based http client provided in ms-rest-js
|
9364
9832
|
];
|
9365
9833
|
if (err) {
|
9366
9834
|
for (const retriableError of retriableErrors) {
|
@@ -9463,7 +9931,7 @@ class TelemetryPolicy extends coreHttp.BaseRequestPolicy {
|
|
9463
9931
|
* @param request -
|
9464
9932
|
*/
|
9465
9933
|
async sendRequest(request) {
|
9466
|
-
{
|
9934
|
+
if (coreHttp.isNode) {
|
9467
9935
|
if (!request.headers) {
|
9468
9936
|
request.headers = new coreHttp.HttpHeaders();
|
9469
9937
|
}
|
@@ -9486,7 +9954,7 @@ class TelemetryPolicyFactory {
|
|
9486
9954
|
*/
|
9487
9955
|
constructor(telemetry) {
|
9488
9956
|
const userAgentInfo = [];
|
9489
|
-
{
|
9957
|
+
if (coreHttp.isNode) {
|
9490
9958
|
if (telemetry) {
|
9491
9959
|
const telemetryString = telemetry.userAgentPrefix || "";
|
9492
9960
|
if (telemetryString.length > 0 && userAgentInfo.indexOf(telemetryString) === -1) {
|
@@ -9499,7 +9967,7 @@ class TelemetryPolicyFactory {
|
|
9499
9967
|
userAgentInfo.push(libInfo);
|
9500
9968
|
}
|
9501
9969
|
// e.g. (NODE-VERSION 4.9.1; Windows_NT 10.0.16299)
|
9502
|
-
const runtimeInfo = `(NODE-VERSION ${process.version}; ${
|
9970
|
+
const runtimeInfo = `(NODE-VERSION ${process.version}; ${os__namespace.type()} ${os__namespace.release()})`;
|
9503
9971
|
if (userAgentInfo.indexOf(runtimeInfo) === -1) {
|
9504
9972
|
userAgentInfo.push(runtimeInfo);
|
9505
9973
|
}
|
@@ -9636,7 +10104,7 @@ class Pipeline {
|
|
9636
10104
|
toServiceClientOptions() {
|
9637
10105
|
return {
|
9638
10106
|
httpClient: this.options.httpClient,
|
9639
|
-
requestPolicyFactories: this.factories
|
10107
|
+
requestPolicyFactories: this.factories,
|
9640
10108
|
};
|
9641
10109
|
}
|
9642
10110
|
}
|
@@ -9666,10 +10134,10 @@ function newPipeline(credential, pipelineOptions = {}) {
|
|
9666
10134
|
coreHttp.logPolicy({
|
9667
10135
|
logger: logger.info,
|
9668
10136
|
allowedHeaderNames: StorageFileLoggingAllowedHeaderNames,
|
9669
|
-
allowedQueryParameters: StorageFileLoggingAllowedQueryParameters
|
9670
|
-
})
|
10137
|
+
allowedQueryParameters: StorageFileLoggingAllowedQueryParameters,
|
10138
|
+
}),
|
9671
10139
|
];
|
9672
|
-
{
|
10140
|
+
if (coreHttp.isNode) {
|
9673
10141
|
// policies only available in Node.js runtime, not in browsers
|
9674
10142
|
factories.push(coreHttp.proxyPolicy(pipelineOptions.proxyOptions));
|
9675
10143
|
factories.push(coreHttp.disableResponseDecompressionPolicy());
|
@@ -9700,7 +10168,9 @@ class StorageSharedKeyCredentialPolicy extends CredentialPolicy {
|
|
9700
10168
|
*/
|
9701
10169
|
signRequest(request) {
|
9702
10170
|
request.headers.set(HeaderConstants.X_MS_DATE, new Date().toUTCString());
|
9703
|
-
if (request.body &&
|
10171
|
+
if (request.body &&
|
10172
|
+
(typeof request.body === "string" || request.body !== undefined) &&
|
10173
|
+
request.body.length > 0) {
|
9704
10174
|
request.headers.set(HeaderConstants.CONTENT_LENGTH, Buffer.byteLength(request.body));
|
9705
10175
|
}
|
9706
10176
|
const stringToSign = [
|
@@ -9715,7 +10185,7 @@ class StorageSharedKeyCredentialPolicy extends CredentialPolicy {
|
|
9715
10185
|
this.getHeaderValueToSign(request, HeaderConstants.IF_MATCH),
|
9716
10186
|
this.getHeaderValueToSign(request, HeaderConstants.IF_NONE_MATCH),
|
9717
10187
|
this.getHeaderValueToSign(request, HeaderConstants.IF_UNMODIFIED_SINCE),
|
9718
|
-
this.getHeaderValueToSign(request, HeaderConstants.RANGE)
|
10188
|
+
this.getHeaderValueToSign(request, HeaderConstants.RANGE),
|
9719
10189
|
].join("\n") +
|
9720
10190
|
"\n" +
|
9721
10191
|
this.getCanonicalizedHeadersString(request) +
|
@@ -9844,9 +10314,7 @@ class StorageSharedKeyCredential extends Credential {
|
|
9844
10314
|
* @param stringToSign -
|
9845
10315
|
*/
|
9846
10316
|
computeHMACSHA256(stringToSign) {
|
9847
|
-
return crypto.createHmac("sha256", this.accountKey)
|
9848
|
-
.update(stringToSign, "utf8")
|
9849
|
-
.digest("base64");
|
10317
|
+
return crypto.createHmac("sha256", this.accountKey).update(stringToSign, "utf8").digest("base64");
|
9850
10318
|
}
|
9851
10319
|
}
|
9852
10320
|
|
@@ -9857,7 +10325,7 @@ class StorageSharedKeyCredential extends Credential {
|
|
9857
10325
|
*/
|
9858
10326
|
const createSpan = coreTracing.createSpanFunction({
|
9859
10327
|
packagePrefix: "Azure.Storage.File",
|
9860
|
-
namespace: "Microsoft.Storage"
|
10328
|
+
namespace: "Microsoft.Storage",
|
9861
10329
|
});
|
9862
10330
|
/**
|
9863
10331
|
* @internal
|
@@ -9871,7 +10339,7 @@ function convertTracingToRequestOptionsBase(options) {
|
|
9871
10339
|
return {
|
9872
10340
|
// By passing spanOptions if they exist at runtime, we're backwards compatible with @azure/core-tracing@preview.13 and earlier.
|
9873
10341
|
spanOptions: (_a = options === null || options === void 0 ? void 0 : options.tracingOptions) === null || _a === void 0 ? void 0 : _a.spanOptions,
|
9874
|
-
tracingContext: (_b = options === null || options === void 0 ? void 0 : options.tracingOptions) === null || _b === void 0 ? void 0 : _b.tracingContext
|
10342
|
+
tracingContext: (_b = options === null || options === void 0 ? void 0 : options.tracingOptions) === null || _b === void 0 ? void 0 : _b.tracingContext,
|
9875
10343
|
};
|
9876
10344
|
}
|
9877
10345
|
|
@@ -9883,8 +10351,8 @@ function convertTracingToRequestOptionsBase(options) {
|
|
9883
10351
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
9884
10352
|
*/
|
9885
10353
|
const packageName = "azure-storage-file-share";
|
9886
|
-
const packageVersion = "12.9.0-beta.
|
9887
|
-
class StorageClientContext extends
|
10354
|
+
const packageVersion = "12.9.0-beta.4";
|
10355
|
+
class StorageClientContext extends coreHttp__namespace.ServiceClient {
|
9888
10356
|
/**
|
9889
10357
|
* Initializes a new instance of the StorageClientContext class.
|
9890
10358
|
* @param url The URL of the service account, share, directory or file that is the target of the
|
@@ -9900,7 +10368,7 @@ class StorageClientContext extends coreHttp.ServiceClient {
|
|
9900
10368
|
options = {};
|
9901
10369
|
}
|
9902
10370
|
if (!options.userAgent) {
|
9903
|
-
const defaultUserAgent =
|
10371
|
+
const defaultUserAgent = coreHttp__namespace.getDefaultUserAgentValue();
|
9904
10372
|
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
|
9905
10373
|
}
|
9906
10374
|
super(undefined, options);
|
@@ -9909,7 +10377,7 @@ class StorageClientContext extends coreHttp.ServiceClient {
|
|
9909
10377
|
// Parameter assignments
|
9910
10378
|
this.url = url;
|
9911
10379
|
// Assigning values to Constant parameters
|
9912
|
-
this.version = options.version || "
|
10380
|
+
this.version = options.version || "2021-04-10";
|
9913
10381
|
this.fileRangeWriteFromUrl = options.fileRangeWriteFromUrl || "update";
|
9914
10382
|
}
|
9915
10383
|
}
|
@@ -10188,8 +10656,7 @@ class RetriableReadableStream extends stream.Readable {
|
|
10188
10656
|
});
|
10189
10657
|
}
|
10190
10658
|
else {
|
10191
|
-
this.emit("error", new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this
|
10192
|
-
.offset - 1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`));
|
10659
|
+
this.emit("error", new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset - 1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`));
|
10193
10660
|
}
|
10194
10661
|
}
|
10195
10662
|
else {
|
@@ -11105,7 +11572,7 @@ async function streamToBuffer(stream, buffer, offset, end, encoding) {
|
|
11105
11572
|
*/
|
11106
11573
|
async function readStreamToLocalFile(rs, file) {
|
11107
11574
|
return new Promise((resolve, reject) => {
|
11108
|
-
const ws =
|
11575
|
+
const ws = fs__namespace.createWriteStream(file);
|
11109
11576
|
rs.on("error", (err) => {
|
11110
11577
|
reject(err);
|
11111
11578
|
});
|
@@ -11121,8 +11588,8 @@ async function readStreamToLocalFile(rs, file) {
|
|
11121
11588
|
*
|
11122
11589
|
* Promisified version of fs.stat().
|
11123
11590
|
*/
|
11124
|
-
const fsStat =
|
11125
|
-
const fsCreateReadStream =
|
11591
|
+
const fsStat = util__namespace.promisify(fs__namespace.stat);
|
11592
|
+
const fsCreateReadStream = fs__namespace.createReadStream;
|
11126
11593
|
|
11127
11594
|
// Copyright (c) Microsoft Corporation.
|
11128
11595
|
/**
|
@@ -11158,11 +11625,14 @@ class ShareClient extends StorageClient {
|
|
11158
11625
|
const extractedCreds = extractConnectionStringParts(urlOrConnectionString);
|
11159
11626
|
const name = credentialOrPipelineOrShareName;
|
11160
11627
|
if (extractedCreds.kind === "AccountConnString") {
|
11161
|
-
{
|
11628
|
+
if (coreHttp.isNode) {
|
11162
11629
|
const sharedKeyCredential = new StorageSharedKeyCredential(extractedCreds.accountName, extractedCreds.accountKey);
|
11163
11630
|
url = appendToURLPath(extractedCreds.url, name);
|
11164
11631
|
pipeline = newPipeline(sharedKeyCredential, options);
|
11165
11632
|
}
|
11633
|
+
else {
|
11634
|
+
throw new Error("Account connection string is only supported in Node.js environment");
|
11635
|
+
}
|
11166
11636
|
}
|
11167
11637
|
else if (extractedCreds.kind === "SASConnString") {
|
11168
11638
|
url = appendToURLPath(extractedCreds.url, name) + "?" + extractedCreds.accountSas;
|
@@ -11211,7 +11681,7 @@ class ShareClient extends StorageClient {
|
|
11211
11681
|
catch (e) {
|
11212
11682
|
span.setStatus({
|
11213
11683
|
code: coreTracing.SpanStatusCode.ERROR,
|
11214
|
-
message: e.message
|
11684
|
+
message: e.message,
|
11215
11685
|
});
|
11216
11686
|
throw e;
|
11217
11687
|
}
|
@@ -11237,13 +11707,13 @@ class ShareClient extends StorageClient {
|
|
11237
11707
|
if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === "ShareAlreadyExists") {
|
11238
11708
|
span.setStatus({
|
11239
11709
|
code: coreTracing.SpanStatusCode.ERROR,
|
11240
|
-
message: "Expected exception when creating a share only if it doesn't already exist."
|
11710
|
+
message: "Expected exception when creating a share only if it doesn't already exist.",
|
11241
11711
|
});
|
11242
11712
|
return Object.assign(Object.assign({ succeeded: false }, (_b = e.response) === null || _b === void 0 ? void 0 : _b.parsedHeaders), { _response: e.response });
|
11243
11713
|
}
|
11244
11714
|
span.setStatus({
|
11245
11715
|
code: coreTracing.SpanStatusCode.ERROR,
|
11246
|
-
message: e.message
|
11716
|
+
message: e.message,
|
11247
11717
|
});
|
11248
11718
|
throw e;
|
11249
11719
|
}
|
@@ -11288,13 +11758,13 @@ class ShareClient extends StorageClient {
|
|
11288
11758
|
const directoryCreateResponse = await directoryClient.create(updatedOptions);
|
11289
11759
|
return {
|
11290
11760
|
directoryClient,
|
11291
|
-
directoryCreateResponse
|
11761
|
+
directoryCreateResponse,
|
11292
11762
|
};
|
11293
11763
|
}
|
11294
11764
|
catch (e) {
|
11295
11765
|
span.setStatus({
|
11296
11766
|
code: coreTracing.SpanStatusCode.ERROR,
|
11297
|
-
message: e.message
|
11767
|
+
message: e.message,
|
11298
11768
|
});
|
11299
11769
|
throw e;
|
11300
11770
|
}
|
@@ -11320,7 +11790,7 @@ class ShareClient extends StorageClient {
|
|
11320
11790
|
catch (e) {
|
11321
11791
|
span.setStatus({
|
11322
11792
|
code: coreTracing.SpanStatusCode.ERROR,
|
11323
|
-
message: e.message
|
11793
|
+
message: e.message,
|
11324
11794
|
});
|
11325
11795
|
throw e;
|
11326
11796
|
}
|
@@ -11346,13 +11816,13 @@ class ShareClient extends StorageClient {
|
|
11346
11816
|
const fileCreateResponse = await fileClient.create(size, updatedOptions);
|
11347
11817
|
return {
|
11348
11818
|
fileClient,
|
11349
|
-
fileCreateResponse
|
11819
|
+
fileCreateResponse,
|
11350
11820
|
};
|
11351
11821
|
}
|
11352
11822
|
catch (e) {
|
11353
11823
|
span.setStatus({
|
11354
11824
|
code: coreTracing.SpanStatusCode.ERROR,
|
11355
|
-
message: e.message
|
11825
|
+
message: e.message,
|
11356
11826
|
});
|
11357
11827
|
throw e;
|
11358
11828
|
}
|
@@ -11390,7 +11860,7 @@ class ShareClient extends StorageClient {
|
|
11390
11860
|
catch (e) {
|
11391
11861
|
span.setStatus({
|
11392
11862
|
code: coreTracing.SpanStatusCode.ERROR,
|
11393
|
-
message: e.message
|
11863
|
+
message: e.message,
|
11394
11864
|
});
|
11395
11865
|
throw e;
|
11396
11866
|
}
|
@@ -11417,13 +11887,13 @@ class ShareClient extends StorageClient {
|
|
11417
11887
|
if (e.statusCode === 404) {
|
11418
11888
|
span.setStatus({
|
11419
11889
|
code: coreTracing.SpanStatusCode.ERROR,
|
11420
|
-
message: "Expected exception when checking share existence"
|
11890
|
+
message: "Expected exception when checking share existence",
|
11421
11891
|
});
|
11422
11892
|
return false;
|
11423
11893
|
}
|
11424
11894
|
span.setStatus({
|
11425
11895
|
code: coreTracing.SpanStatusCode.ERROR,
|
11426
|
-
message: e.message
|
11896
|
+
message: e.message,
|
11427
11897
|
});
|
11428
11898
|
throw e;
|
11429
11899
|
}
|
@@ -11455,7 +11925,7 @@ class ShareClient extends StorageClient {
|
|
11455
11925
|
catch (e) {
|
11456
11926
|
span.setStatus({
|
11457
11927
|
code: coreTracing.SpanStatusCode.ERROR,
|
11458
|
-
message: e.message
|
11928
|
+
message: e.message,
|
11459
11929
|
});
|
11460
11930
|
throw e;
|
11461
11931
|
}
|
@@ -11479,7 +11949,7 @@ class ShareClient extends StorageClient {
|
|
11479
11949
|
catch (e) {
|
11480
11950
|
span.setStatus({
|
11481
11951
|
code: coreTracing.SpanStatusCode.ERROR,
|
11482
|
-
message: e.message
|
11952
|
+
message: e.message,
|
11483
11953
|
});
|
11484
11954
|
throw e;
|
11485
11955
|
}
|
@@ -11505,13 +11975,13 @@ class ShareClient extends StorageClient {
|
|
11505
11975
|
if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === "ShareNotFound") {
|
11506
11976
|
span.setStatus({
|
11507
11977
|
code: coreTracing.SpanStatusCode.ERROR,
|
11508
|
-
message: "Expected exception when deleting a share only if it exists."
|
11978
|
+
message: "Expected exception when deleting a share only if it exists.",
|
11509
11979
|
});
|
11510
11980
|
return Object.assign(Object.assign({ succeeded: false }, (_b = e.response) === null || _b === void 0 ? void 0 : _b.parsedHeaders), { _response: e.response });
|
11511
11981
|
}
|
11512
11982
|
span.setStatus({
|
11513
11983
|
code: coreTracing.SpanStatusCode.ERROR,
|
11514
|
-
message: e.message
|
11984
|
+
message: e.message,
|
11515
11985
|
});
|
11516
11986
|
throw e;
|
11517
11987
|
}
|
@@ -11538,7 +12008,7 @@ class ShareClient extends StorageClient {
|
|
11538
12008
|
catch (e) {
|
11539
12009
|
span.setStatus({
|
11540
12010
|
code: coreTracing.SpanStatusCode.ERROR,
|
11541
|
-
message: e.message
|
12011
|
+
message: e.message,
|
11542
12012
|
});
|
11543
12013
|
throw e;
|
11544
12014
|
}
|
@@ -11569,13 +12039,13 @@ class ShareClient extends StorageClient {
|
|
11569
12039
|
lastModified: response.lastModified,
|
11570
12040
|
requestId: response.requestId,
|
11571
12041
|
signedIdentifiers: [],
|
11572
|
-
version: response.version
|
12042
|
+
version: response.version,
|
11573
12043
|
};
|
11574
12044
|
for (const identifier of response) {
|
11575
12045
|
let accessPolicy = undefined;
|
11576
12046
|
if (identifier.accessPolicy) {
|
11577
12047
|
accessPolicy = {
|
11578
|
-
permissions: identifier.accessPolicy.permissions
|
12048
|
+
permissions: identifier.accessPolicy.permissions,
|
11579
12049
|
};
|
11580
12050
|
if (identifier.accessPolicy.expiresOn) {
|
11581
12051
|
accessPolicy.expiresOn = new Date(identifier.accessPolicy.expiresOn);
|
@@ -11586,7 +12056,7 @@ class ShareClient extends StorageClient {
|
|
11586
12056
|
}
|
11587
12057
|
res.signedIdentifiers.push({
|
11588
12058
|
accessPolicy,
|
11589
|
-
id: identifier.id
|
12059
|
+
id: identifier.id,
|
11590
12060
|
});
|
11591
12061
|
}
|
11592
12062
|
return res;
|
@@ -11594,7 +12064,7 @@ class ShareClient extends StorageClient {
|
|
11594
12064
|
catch (e) {
|
11595
12065
|
span.setStatus({
|
11596
12066
|
code: coreTracing.SpanStatusCode.ERROR,
|
11597
|
-
message: e.message
|
12067
|
+
message: e.message,
|
11598
12068
|
});
|
11599
12069
|
throw e;
|
11600
12070
|
}
|
@@ -11633,9 +12103,9 @@ class ShareClient extends StorageClient {
|
|
11633
12103
|
permissions: (_b = identifier.accessPolicy) === null || _b === void 0 ? void 0 : _b.permissions,
|
11634
12104
|
startsOn: ((_c = identifier.accessPolicy) === null || _c === void 0 ? void 0 : _c.startsOn)
|
11635
12105
|
? truncatedISO8061Date(identifier.accessPolicy.startsOn)
|
11636
|
-
: undefined
|
12106
|
+
: undefined,
|
11637
12107
|
},
|
11638
|
-
id: identifier.id
|
12108
|
+
id: identifier.id,
|
11639
12109
|
});
|
11640
12110
|
}
|
11641
12111
|
return await this.context.setAccessPolicy(Object.assign(Object.assign(Object.assign({}, options), { shareAcl: acl }), convertTracingToRequestOptionsBase(updatedOptions)));
|
@@ -11643,7 +12113,7 @@ class ShareClient extends StorageClient {
|
|
11643
12113
|
catch (e) {
|
11644
12114
|
span.setStatus({
|
11645
12115
|
code: coreTracing.SpanStatusCode.ERROR,
|
11646
|
-
message: e.message
|
12116
|
+
message: e.message,
|
11647
12117
|
});
|
11648
12118
|
throw e;
|
11649
12119
|
}
|
@@ -11665,7 +12135,7 @@ class ShareClient extends StorageClient {
|
|
11665
12135
|
catch (e) {
|
11666
12136
|
span.setStatus({
|
11667
12137
|
code: coreTracing.SpanStatusCode.ERROR,
|
11668
|
-
message: e.message
|
12138
|
+
message: e.message,
|
11669
12139
|
});
|
11670
12140
|
throw e;
|
11671
12141
|
}
|
@@ -11690,7 +12160,7 @@ class ShareClient extends StorageClient {
|
|
11690
12160
|
catch (e) {
|
11691
12161
|
span.setStatus({
|
11692
12162
|
code: coreTracing.SpanStatusCode.ERROR,
|
11693
|
-
message: e.message
|
12163
|
+
message: e.message,
|
11694
12164
|
});
|
11695
12165
|
throw e;
|
11696
12166
|
}
|
@@ -11712,7 +12182,7 @@ class ShareClient extends StorageClient {
|
|
11712
12182
|
catch (e) {
|
11713
12183
|
span.setStatus({
|
11714
12184
|
code: coreTracing.SpanStatusCode.ERROR,
|
11715
|
-
message: e.message
|
12185
|
+
message: e.message,
|
11716
12186
|
});
|
11717
12187
|
throw e;
|
11718
12188
|
}
|
@@ -11736,7 +12206,7 @@ class ShareClient extends StorageClient {
|
|
11736
12206
|
catch (e) {
|
11737
12207
|
span.setStatus({
|
11738
12208
|
code: coreTracing.SpanStatusCode.ERROR,
|
11739
|
-
message: e.message
|
12209
|
+
message: e.message,
|
11740
12210
|
});
|
11741
12211
|
throw e;
|
11742
12212
|
}
|
@@ -11756,13 +12226,13 @@ class ShareClient extends StorageClient {
|
|
11756
12226
|
const { span, updatedOptions } = createSpan("ShareClient-createPermission", options);
|
11757
12227
|
try {
|
11758
12228
|
return await this.context.createPermission({
|
11759
|
-
permission: filePermission
|
12229
|
+
permission: filePermission,
|
11760
12230
|
}, Object.assign({ abortSignal: options.abortSignal }, convertTracingToRequestOptionsBase(updatedOptions)));
|
11761
12231
|
}
|
11762
12232
|
catch (e) {
|
11763
12233
|
span.setStatus({
|
11764
12234
|
code: coreTracing.SpanStatusCode.ERROR,
|
11765
|
-
message: e.message
|
12235
|
+
message: e.message,
|
11766
12236
|
});
|
11767
12237
|
throw e;
|
11768
12238
|
}
|
@@ -11786,7 +12256,7 @@ class ShareClient extends StorageClient {
|
|
11786
12256
|
catch (e) {
|
11787
12257
|
span.setStatus({
|
11788
12258
|
code: coreTracing.SpanStatusCode.ERROR,
|
11789
|
-
message: e.message
|
12259
|
+
message: e.message,
|
11790
12260
|
});
|
11791
12261
|
throw e;
|
11792
12262
|
}
|
@@ -11833,7 +12303,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
11833
12303
|
({
|
11834
12304
|
baseName: this._name,
|
11835
12305
|
shareName: this._shareName,
|
11836
|
-
path: this._path
|
12306
|
+
path: this._path,
|
11837
12307
|
} = getShareNameAndPathFromUrl(this.url));
|
11838
12308
|
this.context = new Directory(this.storageClientContext);
|
11839
12309
|
}
|
@@ -11877,7 +12347,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
11877
12347
|
catch (e) {
|
11878
12348
|
span.setStatus({
|
11879
12349
|
code: coreTracing.SpanStatusCode.ERROR,
|
11880
|
-
message: e.message
|
12350
|
+
message: e.message,
|
11881
12351
|
});
|
11882
12352
|
throw e;
|
11883
12353
|
}
|
@@ -11903,13 +12373,13 @@ class ShareDirectoryClient extends StorageClient {
|
|
11903
12373
|
if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === "ResourceAlreadyExists") {
|
11904
12374
|
span.setStatus({
|
11905
12375
|
code: coreTracing.SpanStatusCode.ERROR,
|
11906
|
-
message: "Expected exception when creating a directory only if it does not already exist."
|
12376
|
+
message: "Expected exception when creating a directory only if it does not already exist.",
|
11907
12377
|
});
|
11908
12378
|
return Object.assign(Object.assign({ succeeded: false }, (_b = e.response) === null || _b === void 0 ? void 0 : _b.parsedHeaders), { _response: e.response });
|
11909
12379
|
}
|
11910
12380
|
span.setStatus({
|
11911
12381
|
code: coreTracing.SpanStatusCode.ERROR,
|
11912
|
-
message: e.message
|
12382
|
+
message: e.message,
|
11913
12383
|
});
|
11914
12384
|
throw e;
|
11915
12385
|
}
|
@@ -11933,7 +12403,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
11933
12403
|
catch (e) {
|
11934
12404
|
span.setStatus({
|
11935
12405
|
code: coreTracing.SpanStatusCode.ERROR,
|
11936
|
-
message: e.message
|
12406
|
+
message: e.message,
|
11937
12407
|
});
|
11938
12408
|
throw e;
|
11939
12409
|
}
|
@@ -11973,13 +12443,13 @@ class ShareDirectoryClient extends StorageClient {
|
|
11973
12443
|
const directoryCreateResponse = await directoryClient.create(updatedOptions);
|
11974
12444
|
return {
|
11975
12445
|
directoryClient,
|
11976
|
-
directoryCreateResponse
|
12446
|
+
directoryCreateResponse,
|
11977
12447
|
};
|
11978
12448
|
}
|
11979
12449
|
catch (e) {
|
11980
12450
|
span.setStatus({
|
11981
12451
|
code: coreTracing.SpanStatusCode.ERROR,
|
11982
|
-
message: e.message
|
12452
|
+
message: e.message,
|
11983
12453
|
});
|
11984
12454
|
throw e;
|
11985
12455
|
}
|
@@ -12005,7 +12475,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
12005
12475
|
catch (e) {
|
12006
12476
|
span.setStatus({
|
12007
12477
|
code: coreTracing.SpanStatusCode.ERROR,
|
12008
|
-
message: e.message
|
12478
|
+
message: e.message,
|
12009
12479
|
});
|
12010
12480
|
throw e;
|
12011
12481
|
}
|
@@ -12029,13 +12499,13 @@ class ShareDirectoryClient extends StorageClient {
|
|
12029
12499
|
const fileCreateResponse = await fileClient.create(size, updatedOptions);
|
12030
12500
|
return {
|
12031
12501
|
fileClient,
|
12032
|
-
fileCreateResponse
|
12502
|
+
fileCreateResponse,
|
12033
12503
|
};
|
12034
12504
|
}
|
12035
12505
|
catch (e) {
|
12036
12506
|
span.setStatus({
|
12037
12507
|
code: coreTracing.SpanStatusCode.ERROR,
|
12038
|
-
message: e.message
|
12508
|
+
message: e.message,
|
12039
12509
|
});
|
12040
12510
|
throw e;
|
12041
12511
|
}
|
@@ -12070,7 +12540,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
12070
12540
|
catch (e) {
|
12071
12541
|
span.setStatus({
|
12072
12542
|
code: coreTracing.SpanStatusCode.ERROR,
|
12073
|
-
message: e.message
|
12543
|
+
message: e.message,
|
12074
12544
|
});
|
12075
12545
|
throw e;
|
12076
12546
|
}
|
@@ -12117,7 +12587,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
12117
12587
|
try {
|
12118
12588
|
await this.getProperties({
|
12119
12589
|
abortSignal: options.abortSignal,
|
12120
|
-
tracingOptions: Object.assign(Object.assign({}, options.tracingOptions), convertTracingToRequestOptionsBase(updatedOptions))
|
12590
|
+
tracingOptions: Object.assign(Object.assign({}, options.tracingOptions), convertTracingToRequestOptionsBase(updatedOptions)),
|
12121
12591
|
});
|
12122
12592
|
return true;
|
12123
12593
|
}
|
@@ -12125,13 +12595,13 @@ class ShareDirectoryClient extends StorageClient {
|
|
12125
12595
|
if (e.statusCode === 404) {
|
12126
12596
|
span.setStatus({
|
12127
12597
|
code: coreTracing.SpanStatusCode.ERROR,
|
12128
|
-
message: "Expected exception when checking directory existence"
|
12598
|
+
message: "Expected exception when checking directory existence",
|
12129
12599
|
});
|
12130
12600
|
return false;
|
12131
12601
|
}
|
12132
12602
|
span.setStatus({
|
12133
12603
|
code: coreTracing.SpanStatusCode.ERROR,
|
12134
|
-
message: e.message
|
12604
|
+
message: e.message,
|
12135
12605
|
});
|
12136
12606
|
throw e;
|
12137
12607
|
}
|
@@ -12156,7 +12626,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
12156
12626
|
catch (e) {
|
12157
12627
|
span.setStatus({
|
12158
12628
|
code: coreTracing.SpanStatusCode.ERROR,
|
12159
|
-
message: e.message
|
12629
|
+
message: e.message,
|
12160
12630
|
});
|
12161
12631
|
throw e;
|
12162
12632
|
}
|
@@ -12180,7 +12650,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
12180
12650
|
catch (e) {
|
12181
12651
|
span.setStatus({
|
12182
12652
|
code: coreTracing.SpanStatusCode.ERROR,
|
12183
|
-
message: e.message
|
12653
|
+
message: e.message,
|
12184
12654
|
});
|
12185
12655
|
throw e;
|
12186
12656
|
}
|
@@ -12207,13 +12677,13 @@ class ShareDirectoryClient extends StorageClient {
|
|
12207
12677
|
((_b = e.details) === null || _b === void 0 ? void 0 : _b.errorCode) === "ParentNotFound") {
|
12208
12678
|
span.setStatus({
|
12209
12679
|
code: coreTracing.SpanStatusCode.ERROR,
|
12210
|
-
message: "Expected exception when deleting a directory only if it exists."
|
12680
|
+
message: "Expected exception when deleting a directory only if it exists.",
|
12211
12681
|
});
|
12212
12682
|
return Object.assign(Object.assign({ succeeded: false }, (_c = e.response) === null || _c === void 0 ? void 0 : _c.parsedHeaders), { _response: e.response });
|
12213
12683
|
}
|
12214
12684
|
span.setStatus({
|
12215
12685
|
code: coreTracing.SpanStatusCode.ERROR,
|
12216
|
-
message: e.message
|
12686
|
+
message: e.message,
|
12217
12687
|
});
|
12218
12688
|
throw e;
|
12219
12689
|
}
|
@@ -12237,7 +12707,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
12237
12707
|
catch (e) {
|
12238
12708
|
span.setStatus({
|
12239
12709
|
code: coreTracing.SpanStatusCode.ERROR,
|
12240
|
-
message: e.message
|
12710
|
+
message: e.message,
|
12241
12711
|
});
|
12242
12712
|
throw e;
|
12243
12713
|
}
|
@@ -12430,7 +12900,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
12430
12900
|
*/
|
12431
12901
|
byPage: (settings = {}) => {
|
12432
12902
|
return this.iterateFilesAndDirectoriesSegments(settings.continuationToken, Object.assign({ maxResults: settings.maxPageSize }, updatedOptions));
|
12433
|
-
}
|
12903
|
+
},
|
12434
12904
|
};
|
12435
12905
|
}
|
12436
12906
|
/**
|
@@ -12453,7 +12923,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
12453
12923
|
catch (e) {
|
12454
12924
|
span.setStatus({
|
12455
12925
|
code: coreTracing.SpanStatusCode.ERROR,
|
12456
|
-
message: e.message
|
12926
|
+
message: e.message,
|
12457
12927
|
});
|
12458
12928
|
throw e;
|
12459
12929
|
}
|
@@ -12608,7 +13078,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
12608
13078
|
*/
|
12609
13079
|
byPage: (settings = {}) => {
|
12610
13080
|
return this.iterateHandleSegments(settings.continuationToken, Object.assign({ maxResults: settings.maxPageSize }, options));
|
12611
|
-
}
|
13081
|
+
},
|
12612
13082
|
};
|
12613
13083
|
}
|
12614
13084
|
/**
|
@@ -12637,7 +13107,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
12637
13107
|
catch (e) {
|
12638
13108
|
span.setStatus({
|
12639
13109
|
code: coreTracing.SpanStatusCode.ERROR,
|
12640
|
-
message: e.message
|
13110
|
+
message: e.message,
|
12641
13111
|
});
|
12642
13112
|
throw e;
|
12643
13113
|
}
|
@@ -12669,7 +13139,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
12669
13139
|
catch (e) {
|
12670
13140
|
span.setStatus({
|
12671
13141
|
code: coreTracing.SpanStatusCode.ERROR,
|
12672
|
-
message: e.message
|
13142
|
+
message: e.message,
|
12673
13143
|
});
|
12674
13144
|
throw e;
|
12675
13145
|
}
|
@@ -12704,7 +13174,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
12704
13174
|
catch (e) {
|
12705
13175
|
span.setStatus({
|
12706
13176
|
code: coreTracing.SpanStatusCode.ERROR,
|
12707
|
-
message: e.message
|
13177
|
+
message: e.message,
|
12708
13178
|
});
|
12709
13179
|
throw e;
|
12710
13180
|
}
|
@@ -12737,7 +13207,69 @@ class ShareDirectoryClient extends StorageClient {
|
|
12737
13207
|
catch (e) {
|
12738
13208
|
span.setStatus({
|
12739
13209
|
code: coreTracing.SpanStatusCode.ERROR,
|
12740
|
-
message: e.message
|
13210
|
+
message: e.message,
|
13211
|
+
});
|
13212
|
+
throw e;
|
13213
|
+
}
|
13214
|
+
finally {
|
13215
|
+
span.end();
|
13216
|
+
}
|
13217
|
+
}
|
13218
|
+
/**
|
13219
|
+
* Renames a directory.
|
13220
|
+
* This API only supports renaming a directory in the same share.
|
13221
|
+
*
|
13222
|
+
* @param destinationPath - Specifies the destination path to rename to. The path will be encoded to put into a URL to specify the destination.
|
13223
|
+
* @param options - Options for the renaming operation.
|
13224
|
+
* @returns Response data for the file renaming operation.
|
13225
|
+
*
|
13226
|
+
* Example usage:
|
13227
|
+
*
|
13228
|
+
* ```js
|
13229
|
+
*
|
13230
|
+
* // Rename the directory
|
13231
|
+
* await diretoryClient.rename(destinationPath);
|
13232
|
+
* console.log("Renamed directory successfully!");
|
13233
|
+
* ```
|
13234
|
+
*/
|
13235
|
+
async rename(destinationPath, options = {}) {
|
13236
|
+
const { span, updatedOptions } = createSpan("ShareDirectoryClient-rename", options);
|
13237
|
+
const split = destinationPath.split("?");
|
13238
|
+
let destinationUrl;
|
13239
|
+
if (split.length === 2) {
|
13240
|
+
const pathOnly = encodeURIComponent(split[0]);
|
13241
|
+
const renameDestination = `/${this.shareName}/${pathOnly}`;
|
13242
|
+
destinationUrl = setURLPath(this.url, renameDestination);
|
13243
|
+
destinationUrl = setURLQueries(destinationUrl, split[1]);
|
13244
|
+
}
|
13245
|
+
else if (split.length === 1) {
|
13246
|
+
const pathOnly = encodeURIComponent(destinationPath);
|
13247
|
+
const renameDestination = `/${this.shareName}/${pathOnly}`;
|
13248
|
+
destinationUrl = setURLPath(this.url, renameDestination);
|
13249
|
+
}
|
13250
|
+
else {
|
13251
|
+
throw new RangeError("Destination path should not contain more than one query string");
|
13252
|
+
}
|
13253
|
+
const destDirectory = new ShareDirectoryClient(destinationUrl, this.pipeline);
|
13254
|
+
try {
|
13255
|
+
const response = await destDirectory.context.rename(this.url, Object.assign(Object.assign({}, updatedOptions), { sourceLeaseAccessConditions: updatedOptions.sourceLeaseAccessConditions
|
13256
|
+
? {
|
13257
|
+
sourceLeaseId: updatedOptions.sourceLeaseAccessConditions.leaseId,
|
13258
|
+
}
|
13259
|
+
: undefined, destinationLeaseAccessConditions: updatedOptions.destinationLeaseAccessConditions
|
13260
|
+
? {
|
13261
|
+
destinationLeaseId: updatedOptions.destinationLeaseAccessConditions.leaseId,
|
13262
|
+
}
|
13263
|
+
: undefined }));
|
13264
|
+
return {
|
13265
|
+
destinationDirectoryClient: destDirectory,
|
13266
|
+
directoryRenameResponse: response,
|
13267
|
+
};
|
13268
|
+
}
|
13269
|
+
catch (e) {
|
13270
|
+
span.setStatus({
|
13271
|
+
code: coreTracing.SpanStatusCode.ERROR,
|
13272
|
+
message: e.message,
|
12741
13273
|
});
|
12742
13274
|
throw e;
|
12743
13275
|
}
|
@@ -12769,7 +13301,7 @@ class ShareFileClient extends StorageClient {
|
|
12769
13301
|
({
|
12770
13302
|
baseName: this._name,
|
12771
13303
|
shareName: this._shareName,
|
12772
|
-
path: this._path
|
13304
|
+
path: this._path,
|
12773
13305
|
} = getShareNameAndPathFromUrl(this.url));
|
12774
13306
|
this.context = new File(this.storageClientContext);
|
12775
13307
|
}
|
@@ -12842,7 +13374,7 @@ class ShareFileClient extends StorageClient {
|
|
12842
13374
|
catch (e) {
|
12843
13375
|
span.setStatus({
|
12844
13376
|
code: coreTracing.SpanStatusCode.ERROR,
|
12845
|
-
message: e.message
|
13377
|
+
message: e.message,
|
12846
13378
|
});
|
12847
13379
|
throw e;
|
12848
13380
|
}
|
@@ -12919,7 +13451,7 @@ class ShareFileClient extends StorageClient {
|
|
12919
13451
|
}
|
12920
13452
|
const downloadFullFile = offset === 0 && !count;
|
12921
13453
|
const res = await this.context.download(Object.assign({ abortSignal: options.abortSignal, requestOptions: {
|
12922
|
-
onDownloadProgress: coreHttp.isNode ? undefined : options.onProgress // for Node.js, progress is reported by RetriableReadableStream
|
13454
|
+
onDownloadProgress: coreHttp.isNode ? undefined : options.onProgress, // for Node.js, progress is reported by RetriableReadableStream
|
12923
13455
|
}, range: downloadFullFile ? undefined : rangeToString({ offset, count }), rangeGetContentMD5: options.rangeGetContentMD5, leaseAccessConditions: options.leaseAccessConditions }, convertTracingToRequestOptionsBase(updatedOptions)));
|
12924
13456
|
// Return browser response immediately
|
12925
13457
|
if (!coreHttp.isNode) {
|
@@ -12941,8 +13473,8 @@ class ShareFileClient extends StorageClient {
|
|
12941
13473
|
const updatedDownloadOptions = {
|
12942
13474
|
range: rangeToString({
|
12943
13475
|
count: offset + res.contentLength - start,
|
12944
|
-
offset: start
|
12945
|
-
})
|
13476
|
+
offset: start,
|
13477
|
+
}),
|
12946
13478
|
};
|
12947
13479
|
// Debug purpose only
|
12948
13480
|
// console.log(
|
@@ -12958,13 +13490,13 @@ class ShareFileClient extends StorageClient {
|
|
12958
13490
|
}, offset, res.contentLength, {
|
12959
13491
|
abortSignal: options.abortSignal,
|
12960
13492
|
maxRetryRequests: options.maxRetryRequests,
|
12961
|
-
onProgress: options.onProgress
|
13493
|
+
onProgress: options.onProgress,
|
12962
13494
|
});
|
12963
13495
|
}
|
12964
13496
|
catch (e) {
|
12965
13497
|
span.setStatus({
|
12966
13498
|
code: coreTracing.SpanStatusCode.ERROR,
|
12967
|
-
message: e.message
|
13499
|
+
message: e.message,
|
12968
13500
|
});
|
12969
13501
|
throw e;
|
12970
13502
|
}
|
@@ -12986,7 +13518,7 @@ class ShareFileClient extends StorageClient {
|
|
12986
13518
|
try {
|
12987
13519
|
await this.getProperties({
|
12988
13520
|
abortSignal: options.abortSignal,
|
12989
|
-
tracingOptions: Object.assign(Object.assign({}, options.tracingOptions), convertTracingToRequestOptionsBase(updatedOptions))
|
13521
|
+
tracingOptions: Object.assign(Object.assign({}, options.tracingOptions), convertTracingToRequestOptionsBase(updatedOptions)),
|
12990
13522
|
});
|
12991
13523
|
return true;
|
12992
13524
|
}
|
@@ -12994,13 +13526,13 @@ class ShareFileClient extends StorageClient {
|
|
12994
13526
|
if (e.statusCode === 404) {
|
12995
13527
|
span.setStatus({
|
12996
13528
|
code: coreTracing.SpanStatusCode.ERROR,
|
12997
|
-
message: "Expected exception when checking file existence"
|
13529
|
+
message: "Expected exception when checking file existence",
|
12998
13530
|
});
|
12999
13531
|
return false;
|
13000
13532
|
}
|
13001
13533
|
span.setStatus({
|
13002
13534
|
code: coreTracing.SpanStatusCode.ERROR,
|
13003
|
-
message: e.message
|
13535
|
+
message: e.message,
|
13004
13536
|
});
|
13005
13537
|
throw e;
|
13006
13538
|
}
|
@@ -13024,7 +13556,7 @@ class ShareFileClient extends StorageClient {
|
|
13024
13556
|
catch (e) {
|
13025
13557
|
span.setStatus({
|
13026
13558
|
code: coreTracing.SpanStatusCode.ERROR,
|
13027
|
-
message: e.message
|
13559
|
+
message: e.message,
|
13028
13560
|
});
|
13029
13561
|
throw e;
|
13030
13562
|
}
|
@@ -13051,7 +13583,7 @@ class ShareFileClient extends StorageClient {
|
|
13051
13583
|
catch (e) {
|
13052
13584
|
span.setStatus({
|
13053
13585
|
code: coreTracing.SpanStatusCode.ERROR,
|
13054
|
-
message: e.message
|
13586
|
+
message: e.message,
|
13055
13587
|
});
|
13056
13588
|
throw e;
|
13057
13589
|
}
|
@@ -13084,7 +13616,7 @@ class ShareFileClient extends StorageClient {
|
|
13084
13616
|
catch (e) {
|
13085
13617
|
span.setStatus({
|
13086
13618
|
code: coreTracing.SpanStatusCode.ERROR,
|
13087
|
-
message: e.message
|
13619
|
+
message: e.message,
|
13088
13620
|
});
|
13089
13621
|
throw e;
|
13090
13622
|
}
|
@@ -13120,13 +13652,13 @@ class ShareFileClient extends StorageClient {
|
|
13120
13652
|
((_b = e.details) === null || _b === void 0 ? void 0 : _b.errorCode) === "ParentNotFound") {
|
13121
13653
|
span.setStatus({
|
13122
13654
|
code: coreTracing.SpanStatusCode.ERROR,
|
13123
|
-
message: "Expected exception when deleting a file only if it exists."
|
13655
|
+
message: "Expected exception when deleting a file only if it exists.",
|
13124
13656
|
});
|
13125
13657
|
return Object.assign(Object.assign({ succeeded: false }, (_c = e.response) === null || _c === void 0 ? void 0 : _c.parsedHeaders), { _response: e.response });
|
13126
13658
|
}
|
13127
13659
|
span.setStatus({
|
13128
13660
|
code: coreTracing.SpanStatusCode.ERROR,
|
13129
|
-
message: e.message
|
13661
|
+
message: e.message,
|
13130
13662
|
});
|
13131
13663
|
throw e;
|
13132
13664
|
}
|
@@ -13156,7 +13688,7 @@ class ShareFileClient extends StorageClient {
|
|
13156
13688
|
catch (e) {
|
13157
13689
|
span.setStatus({
|
13158
13690
|
code: coreTracing.SpanStatusCode.ERROR,
|
13159
|
-
message: e.message
|
13691
|
+
message: e.message,
|
13160
13692
|
});
|
13161
13693
|
throw e;
|
13162
13694
|
}
|
@@ -13188,7 +13720,7 @@ class ShareFileClient extends StorageClient {
|
|
13188
13720
|
catch (e) {
|
13189
13721
|
span.setStatus({
|
13190
13722
|
code: coreTracing.SpanStatusCode.ERROR,
|
13191
|
-
message: e.message
|
13723
|
+
message: e.message,
|
13192
13724
|
});
|
13193
13725
|
throw e;
|
13194
13726
|
}
|
@@ -13215,7 +13747,7 @@ class ShareFileClient extends StorageClient {
|
|
13215
13747
|
catch (e) {
|
13216
13748
|
span.setStatus({
|
13217
13749
|
code: coreTracing.SpanStatusCode.ERROR,
|
13218
|
-
message: e.message
|
13750
|
+
message: e.message,
|
13219
13751
|
});
|
13220
13752
|
throw e;
|
13221
13753
|
}
|
@@ -13263,13 +13795,13 @@ class ShareFileClient extends StorageClient {
|
|
13263
13795
|
throw new RangeError(`offset must be < ${FILE_RANGE_MAX_SIZE_BYTES} bytes`);
|
13264
13796
|
}
|
13265
13797
|
return await this.context.uploadRange(rangeToString({ count: contentLength, offset }), "update", contentLength, Object.assign(Object.assign({ abortSignal: options.abortSignal, contentMD5: options.contentMD5, requestOptions: {
|
13266
|
-
onUploadProgress: options.onProgress
|
13798
|
+
onUploadProgress: options.onProgress,
|
13267
13799
|
}, body: body }, convertTracingToRequestOptionsBase(updatedOptions)), { leaseAccessConditions: options.leaseAccessConditions }));
|
13268
13800
|
}
|
13269
13801
|
catch (e) {
|
13270
13802
|
span.setStatus({
|
13271
13803
|
code: coreTracing.SpanStatusCode.ERROR,
|
13272
|
-
message: e.message
|
13804
|
+
message: e.message,
|
13273
13805
|
});
|
13274
13806
|
throw e;
|
13275
13807
|
}
|
@@ -13301,7 +13833,7 @@ class ShareFileClient extends StorageClient {
|
|
13301
13833
|
catch (e) {
|
13302
13834
|
span.setStatus({
|
13303
13835
|
code: coreTracing.SpanStatusCode.ERROR,
|
13304
|
-
message: e.message
|
13836
|
+
message: e.message,
|
13305
13837
|
});
|
13306
13838
|
throw e;
|
13307
13839
|
}
|
@@ -13328,7 +13860,7 @@ class ShareFileClient extends StorageClient {
|
|
13328
13860
|
catch (e) {
|
13329
13861
|
span.setStatus({
|
13330
13862
|
code: coreTracing.SpanStatusCode.ERROR,
|
13331
|
-
message: e.message
|
13863
|
+
message: e.message,
|
13332
13864
|
});
|
13333
13865
|
throw e;
|
13334
13866
|
}
|
@@ -13354,7 +13886,7 @@ class ShareFileClient extends StorageClient {
|
|
13354
13886
|
catch (e) {
|
13355
13887
|
span.setStatus({
|
13356
13888
|
code: coreTracing.SpanStatusCode.ERROR,
|
13357
|
-
message: e.message
|
13889
|
+
message: e.message,
|
13358
13890
|
});
|
13359
13891
|
throw e;
|
13360
13892
|
}
|
@@ -13376,7 +13908,7 @@ class ShareFileClient extends StorageClient {
|
|
13376
13908
|
catch (e) {
|
13377
13909
|
span.setStatus({
|
13378
13910
|
code: coreTracing.SpanStatusCode.ERROR,
|
13379
|
-
message: e.message
|
13911
|
+
message: e.message,
|
13380
13912
|
});
|
13381
13913
|
throw e;
|
13382
13914
|
}
|
@@ -13404,7 +13936,7 @@ class ShareFileClient extends StorageClient {
|
|
13404
13936
|
catch (e) {
|
13405
13937
|
span.setStatus({
|
13406
13938
|
code: coreTracing.SpanStatusCode.ERROR,
|
13407
|
-
message: e.message
|
13939
|
+
message: e.message,
|
13408
13940
|
});
|
13409
13941
|
throw e;
|
13410
13942
|
}
|
@@ -13428,7 +13960,7 @@ class ShareFileClient extends StorageClient {
|
|
13428
13960
|
catch (e) {
|
13429
13961
|
span.setStatus({
|
13430
13962
|
code: coreTracing.SpanStatusCode.ERROR,
|
13431
|
-
message: e.message
|
13963
|
+
message: e.message,
|
13432
13964
|
});
|
13433
13965
|
throw e;
|
13434
13966
|
}
|
@@ -13446,7 +13978,7 @@ class ShareFileClient extends StorageClient {
|
|
13446
13978
|
async uploadData(data, options = {}) {
|
13447
13979
|
const { span, updatedOptions } = createSpan("ShareFileClient-uploadData", options);
|
13448
13980
|
try {
|
13449
|
-
if (
|
13981
|
+
if (coreHttp.isNode) {
|
13450
13982
|
let buffer;
|
13451
13983
|
if (data instanceof Buffer) {
|
13452
13984
|
buffer = data;
|
@@ -13468,7 +14000,7 @@ class ShareFileClient extends StorageClient {
|
|
13468
14000
|
catch (e) {
|
13469
14001
|
span.setStatus({
|
13470
14002
|
code: coreTracing.SpanStatusCode.ERROR,
|
13471
|
-
message: e.message
|
14003
|
+
message: e.message,
|
13472
14004
|
});
|
13473
14005
|
throw e;
|
13474
14006
|
}
|
@@ -13494,7 +14026,7 @@ class ShareFileClient extends StorageClient {
|
|
13494
14026
|
catch (e) {
|
13495
14027
|
span.setStatus({
|
13496
14028
|
code: coreTracing.SpanStatusCode.ERROR,
|
13497
|
-
message: e.message
|
14029
|
+
message: e.message,
|
13498
14030
|
});
|
13499
14031
|
throw e;
|
13500
14032
|
}
|
@@ -13519,14 +14051,14 @@ class ShareFileClient extends StorageClient {
|
|
13519
14051
|
return () => fsCreateReadStream(filePath, {
|
13520
14052
|
autoClose: true,
|
13521
14053
|
end: count ? offset + count - 1 : Infinity,
|
13522
|
-
start: offset
|
14054
|
+
start: offset,
|
13523
14055
|
});
|
13524
14056
|
}, size, updatedOptions);
|
13525
14057
|
}
|
13526
14058
|
catch (e) {
|
13527
14059
|
span.setStatus({
|
13528
14060
|
code: coreTracing.SpanStatusCode.ERROR,
|
13529
|
-
message: e.message
|
14061
|
+
message: e.message,
|
13530
14062
|
});
|
13531
14063
|
throw e;
|
13532
14064
|
}
|
@@ -13557,7 +14089,7 @@ class ShareFileClient extends StorageClient {
|
|
13557
14089
|
catch (e) {
|
13558
14090
|
span.setStatus({
|
13559
14091
|
code: coreTracing.SpanStatusCode.ERROR,
|
13560
|
-
message: e.message
|
14092
|
+
message: e.message,
|
13561
14093
|
});
|
13562
14094
|
throw e;
|
13563
14095
|
}
|
@@ -13596,7 +14128,7 @@ class ShareFileClient extends StorageClient {
|
|
13596
14128
|
fileHttpHeaders: options.fileHttpHeaders,
|
13597
14129
|
metadata: options.metadata,
|
13598
14130
|
leaseAccessConditions: options.leaseAccessConditions,
|
13599
|
-
tracingOptions: updatedOptions.tracingOptions
|
14131
|
+
tracingOptions: updatedOptions.tracingOptions,
|
13600
14132
|
});
|
13601
14133
|
const numBlocks = Math.floor((size - 1) / options.rangeSize) + 1;
|
13602
14134
|
let transferProgress = 0;
|
@@ -13609,7 +14141,7 @@ class ShareFileClient extends StorageClient {
|
|
13609
14141
|
await this.uploadRange(bodyFactory(start, contentLength), start, contentLength, {
|
13610
14142
|
abortSignal: options.abortSignal,
|
13611
14143
|
leaseAccessConditions: options.leaseAccessConditions,
|
13612
|
-
tracingOptions: updatedOptions.tracingOptions
|
14144
|
+
tracingOptions: updatedOptions.tracingOptions,
|
13613
14145
|
});
|
13614
14146
|
// Update progress after block is successfully uploaded to server, in case of block trying
|
13615
14147
|
transferProgress += contentLength;
|
@@ -13623,7 +14155,7 @@ class ShareFileClient extends StorageClient {
|
|
13623
14155
|
catch (e) {
|
13624
14156
|
span.setStatus({
|
13625
14157
|
code: coreTracing.SpanStatusCode.ERROR,
|
13626
|
-
message: e.message
|
14158
|
+
message: e.message,
|
13627
14159
|
});
|
13628
14160
|
throw e;
|
13629
14161
|
}
|
@@ -13671,7 +14203,7 @@ class ShareFileClient extends StorageClient {
|
|
13671
14203
|
const response = await this.getProperties({
|
13672
14204
|
abortSignal: options.abortSignal,
|
13673
14205
|
leaseAccessConditions: options.leaseAccessConditions,
|
13674
|
-
tracingOptions: updatedOptions.tracingOptions
|
14206
|
+
tracingOptions: updatedOptions.tracingOptions,
|
13675
14207
|
});
|
13676
14208
|
count = response.contentLength - offset;
|
13677
14209
|
if (count < 0) {
|
@@ -13704,7 +14236,7 @@ class ShareFileClient extends StorageClient {
|
|
13704
14236
|
abortSignal: options.abortSignal,
|
13705
14237
|
maxRetryRequests: options.maxRetryRequestsPerRange,
|
13706
14238
|
leaseAccessConditions: options.leaseAccessConditions,
|
13707
|
-
tracingOptions: updatedOptions.tracingOptions
|
14239
|
+
tracingOptions: updatedOptions.tracingOptions,
|
13708
14240
|
});
|
13709
14241
|
const stream = response.readableStreamBody;
|
13710
14242
|
await streamToBuffer(stream, buffer, off - offset, chunkEnd - offset);
|
@@ -13723,7 +14255,7 @@ class ShareFileClient extends StorageClient {
|
|
13723
14255
|
catch (e) {
|
13724
14256
|
span.setStatus({
|
13725
14257
|
code: coreTracing.SpanStatusCode.ERROR,
|
13726
|
-
message: e.message
|
14258
|
+
message: e.message,
|
13727
14259
|
});
|
13728
14260
|
throw e;
|
13729
14261
|
}
|
@@ -13770,7 +14302,7 @@ class ShareFileClient extends StorageClient {
|
|
13770
14302
|
fileHttpHeaders: options.fileHttpHeaders,
|
13771
14303
|
metadata: options.metadata,
|
13772
14304
|
leaseAccessConditions: options.leaseAccessConditions,
|
13773
|
-
tracingOptions: updatedOptions.tracingOptions
|
14305
|
+
tracingOptions: updatedOptions.tracingOptions,
|
13774
14306
|
});
|
13775
14307
|
let transferProgress = 0;
|
13776
14308
|
const scheduler = new BufferScheduler(stream, bufferSize, maxBuffers, async (buffer, offset) => {
|
@@ -13781,7 +14313,7 @@ class ShareFileClient extends StorageClient {
|
|
13781
14313
|
await this.uploadRange(buffer, offset, buffer.length, {
|
13782
14314
|
abortSignal: options.abortSignal,
|
13783
14315
|
leaseAccessConditions: options.leaseAccessConditions,
|
13784
|
-
tracingOptions: updatedOptions.tracingOptions
|
14316
|
+
tracingOptions: updatedOptions.tracingOptions,
|
13785
14317
|
});
|
13786
14318
|
// Update progress after block is successfully uploaded to server, in case of block trying
|
13787
14319
|
transferProgress += buffer.length;
|
@@ -13799,7 +14331,7 @@ class ShareFileClient extends StorageClient {
|
|
13799
14331
|
catch (e) {
|
13800
14332
|
span.setStatus({
|
13801
14333
|
code: coreTracing.SpanStatusCode.ERROR,
|
13802
|
-
message: e.message
|
14334
|
+
message: e.message,
|
13803
14335
|
});
|
13804
14336
|
throw e;
|
13805
14337
|
}
|
@@ -13837,7 +14369,7 @@ class ShareFileClient extends StorageClient {
|
|
13837
14369
|
catch (e) {
|
13838
14370
|
span.setStatus({
|
13839
14371
|
code: coreTracing.SpanStatusCode.ERROR,
|
13840
|
-
message: e.message
|
14372
|
+
message: e.message,
|
13841
14373
|
});
|
13842
14374
|
throw e;
|
13843
14375
|
}
|
@@ -13871,7 +14403,7 @@ class ShareFileClient extends StorageClient {
|
|
13871
14403
|
catch (e) {
|
13872
14404
|
span.setStatus({
|
13873
14405
|
code: coreTracing.SpanStatusCode.ERROR,
|
13874
|
-
message: e.message
|
14406
|
+
message: e.message,
|
13875
14407
|
});
|
13876
14408
|
throw e;
|
13877
14409
|
}
|
@@ -13960,7 +14492,7 @@ class ShareFileClient extends StorageClient {
|
|
13960
14492
|
*/
|
13961
14493
|
byPage: (settings = {}) => {
|
13962
14494
|
return this.iterateHandleSegments(settings.continuationToken, Object.assign({ maxPageSize: settings.maxPageSize }, options));
|
13963
|
-
}
|
14495
|
+
},
|
13964
14496
|
};
|
13965
14497
|
}
|
13966
14498
|
/**
|
@@ -13987,7 +14519,7 @@ class ShareFileClient extends StorageClient {
|
|
13987
14519
|
catch (e) {
|
13988
14520
|
span.setStatus({
|
13989
14521
|
code: coreTracing.SpanStatusCode.ERROR,
|
13990
|
-
message: e.message
|
14522
|
+
message: e.message,
|
13991
14523
|
});
|
13992
14524
|
throw e;
|
13993
14525
|
}
|
@@ -14019,13 +14551,13 @@ class ShareFileClient extends StorageClient {
|
|
14019
14551
|
} while (marker);
|
14020
14552
|
return {
|
14021
14553
|
closedHandlesCount: handlesClosed,
|
14022
|
-
closeFailureCount: numberOfHandlesFailedToClose
|
14554
|
+
closeFailureCount: numberOfHandlesFailedToClose,
|
14023
14555
|
};
|
14024
14556
|
}
|
14025
14557
|
catch (e) {
|
14026
14558
|
span.setStatus({
|
14027
14559
|
code: coreTracing.SpanStatusCode.ERROR,
|
14028
|
-
message: e.message
|
14560
|
+
message: e.message,
|
14029
14561
|
});
|
14030
14562
|
throw e;
|
14031
14563
|
}
|
@@ -14056,7 +14588,7 @@ class ShareFileClient extends StorageClient {
|
|
14056
14588
|
catch (e) {
|
14057
14589
|
span.setStatus({
|
14058
14590
|
code: coreTracing.SpanStatusCode.ERROR,
|
14059
|
-
message: e.message
|
14591
|
+
message: e.message,
|
14060
14592
|
});
|
14061
14593
|
throw e;
|
14062
14594
|
}
|
@@ -14091,6 +14623,68 @@ class ShareFileClient extends StorageClient {
|
|
14091
14623
|
const sas = generateFileSASQueryParameters(Object.assign({ shareName: this.shareName, filePath: this.path }, options), this.credential).toString();
|
14092
14624
|
return appendToURLQuery(this.url, sas);
|
14093
14625
|
}
|
14626
|
+
/**
|
14627
|
+
* Renames a file.
|
14628
|
+
* This API only supports renaming a file in the same share.
|
14629
|
+
*
|
14630
|
+
* @param destinationPath - Specifies the destination path to rename to. The path will be encoded to put into a URL to specify the destination.
|
14631
|
+
* @param options - Options for the renaming operation.
|
14632
|
+
* @returns Response data for the file renaming operation.
|
14633
|
+
*
|
14634
|
+
* Example usage:
|
14635
|
+
*
|
14636
|
+
* ```js
|
14637
|
+
*
|
14638
|
+
* // Rename the file
|
14639
|
+
* await fileClient.rename(destinationPath);
|
14640
|
+
* console.log("Renamed file successfully!");
|
14641
|
+
* ```
|
14642
|
+
*/
|
14643
|
+
async rename(destinationPath, options = {}) {
|
14644
|
+
const { span, updatedOptions } = createSpan("ShareFileClient-rename", options);
|
14645
|
+
const split = destinationPath.split("?");
|
14646
|
+
let destinationUrl;
|
14647
|
+
if (split.length === 2) {
|
14648
|
+
const pathOnly = encodeURIComponent(split[0]);
|
14649
|
+
const renameDestination = `/${this.shareName}/${pathOnly}`;
|
14650
|
+
destinationUrl = setURLPath(this.url, renameDestination);
|
14651
|
+
destinationUrl = setURLQueries(destinationUrl, split[1]);
|
14652
|
+
}
|
14653
|
+
else if (split.length === 1) {
|
14654
|
+
const pathOnly = encodeURIComponent(destinationPath);
|
14655
|
+
const renameDestination = `/${this.shareName}/${pathOnly}`;
|
14656
|
+
destinationUrl = setURLPath(this.url, renameDestination);
|
14657
|
+
}
|
14658
|
+
else {
|
14659
|
+
throw new RangeError("Destination path should not contain more than one query string");
|
14660
|
+
}
|
14661
|
+
const destFile = new ShareFileClient(destinationUrl, this.pipeline);
|
14662
|
+
try {
|
14663
|
+
const response = await destFile.context.rename(this.url, Object.assign(Object.assign({}, updatedOptions), { sourceLeaseAccessConditions: updatedOptions.sourceLeaseAccessConditions
|
14664
|
+
? {
|
14665
|
+
sourceLeaseId: updatedOptions.sourceLeaseAccessConditions.leaseId,
|
14666
|
+
}
|
14667
|
+
: undefined, destinationLeaseAccessConditions: updatedOptions.destinationLeaseAccessConditions
|
14668
|
+
? {
|
14669
|
+
destinationLeaseId: updatedOptions.destinationLeaseAccessConditions.leaseId,
|
14670
|
+
}
|
14671
|
+
: undefined }));
|
14672
|
+
return {
|
14673
|
+
destinationFileClient: destFile,
|
14674
|
+
fileRenameResponse: response,
|
14675
|
+
};
|
14676
|
+
}
|
14677
|
+
catch (e) {
|
14678
|
+
span.setStatus({
|
14679
|
+
code: coreTracing.SpanStatusCode.ERROR,
|
14680
|
+
message: e.message,
|
14681
|
+
});
|
14682
|
+
throw e;
|
14683
|
+
}
|
14684
|
+
finally {
|
14685
|
+
span.end();
|
14686
|
+
}
|
14687
|
+
}
|
14094
14688
|
}
|
14095
14689
|
/**
|
14096
14690
|
* A client that manages leases for a {@link ShareFileClient} or {@link ShareClient}.
|
@@ -14151,7 +14745,7 @@ class ShareLeaseClient {
|
|
14151
14745
|
catch (e) {
|
14152
14746
|
span.setStatus({
|
14153
14747
|
code: coreTracing.SpanStatusCode.ERROR,
|
14154
|
-
message: e.message
|
14748
|
+
message: e.message,
|
14155
14749
|
});
|
14156
14750
|
throw e;
|
14157
14751
|
}
|
@@ -14176,7 +14770,7 @@ class ShareLeaseClient {
|
|
14176
14770
|
catch (e) {
|
14177
14771
|
span.setStatus({
|
14178
14772
|
code: coreTracing.SpanStatusCode.ERROR,
|
14179
|
-
message: e.message
|
14773
|
+
message: e.message,
|
14180
14774
|
});
|
14181
14775
|
throw e;
|
14182
14776
|
}
|
@@ -14199,7 +14793,7 @@ class ShareLeaseClient {
|
|
14199
14793
|
catch (e) {
|
14200
14794
|
span.setStatus({
|
14201
14795
|
code: coreTracing.SpanStatusCode.ERROR,
|
14202
|
-
message: e.message
|
14796
|
+
message: e.message,
|
14203
14797
|
});
|
14204
14798
|
throw e;
|
14205
14799
|
}
|
@@ -14221,7 +14815,7 @@ class ShareLeaseClient {
|
|
14221
14815
|
catch (e) {
|
14222
14816
|
span.setStatus({
|
14223
14817
|
code: coreTracing.SpanStatusCode.ERROR,
|
14224
|
-
message: e.message
|
14818
|
+
message: e.message,
|
14225
14819
|
});
|
14226
14820
|
throw e;
|
14227
14821
|
}
|
@@ -14248,7 +14842,7 @@ class ShareLeaseClient {
|
|
14248
14842
|
catch (e) {
|
14249
14843
|
span.setStatus({
|
14250
14844
|
code: coreTracing.SpanStatusCode.ERROR,
|
14251
|
-
message: e.message
|
14845
|
+
message: e.message,
|
14252
14846
|
});
|
14253
14847
|
throw e;
|
14254
14848
|
}
|
@@ -14315,11 +14909,14 @@ class ShareServiceClient extends StorageClient {
|
|
14315
14909
|
options) {
|
14316
14910
|
const extractedCreds = extractConnectionStringParts(connectionString);
|
14317
14911
|
if (extractedCreds.kind === "AccountConnString") {
|
14318
|
-
{
|
14912
|
+
if (coreHttp.isNode) {
|
14319
14913
|
const sharedKeyCredential = new StorageSharedKeyCredential(extractedCreds.accountName, extractedCreds.accountKey);
|
14320
14914
|
const pipeline = newPipeline(sharedKeyCredential, options);
|
14321
14915
|
return new ShareServiceClient(extractedCreds.url, pipeline);
|
14322
14916
|
}
|
14917
|
+
else {
|
14918
|
+
throw new Error("Account connection string is only supported in Node.js environment");
|
14919
|
+
}
|
14323
14920
|
}
|
14324
14921
|
else if (extractedCreds.kind === "SASConnString") {
|
14325
14922
|
const pipeline = newPipeline(new AnonymousCredential(), options);
|
@@ -14360,13 +14957,13 @@ class ShareServiceClient extends StorageClient {
|
|
14360
14957
|
const shareCreateResponse = await shareClient.create(updatedOptions);
|
14361
14958
|
return {
|
14362
14959
|
shareCreateResponse,
|
14363
|
-
shareClient
|
14960
|
+
shareClient,
|
14364
14961
|
};
|
14365
14962
|
}
|
14366
14963
|
catch (e) {
|
14367
14964
|
span.setStatus({
|
14368
14965
|
code: coreTracing.SpanStatusCode.ERROR,
|
14369
|
-
message: e.message
|
14966
|
+
message: e.message,
|
14370
14967
|
});
|
14371
14968
|
throw e;
|
14372
14969
|
}
|
@@ -14390,7 +14987,7 @@ class ShareServiceClient extends StorageClient {
|
|
14390
14987
|
catch (e) {
|
14391
14988
|
span.setStatus({
|
14392
14989
|
code: coreTracing.SpanStatusCode.ERROR,
|
14393
|
-
message: e.message
|
14990
|
+
message: e.message,
|
14394
14991
|
});
|
14395
14992
|
throw e;
|
14396
14993
|
}
|
@@ -14414,7 +15011,7 @@ class ShareServiceClient extends StorageClient {
|
|
14414
15011
|
catch (e) {
|
14415
15012
|
span.setStatus({
|
14416
15013
|
code: coreTracing.SpanStatusCode.ERROR,
|
14417
|
-
message: e.message
|
15014
|
+
message: e.message,
|
14418
15015
|
});
|
14419
15016
|
throw e;
|
14420
15017
|
}
|
@@ -14439,7 +15036,7 @@ class ShareServiceClient extends StorageClient {
|
|
14439
15036
|
catch (e) {
|
14440
15037
|
span.setStatus({
|
14441
15038
|
code: coreTracing.SpanStatusCode.ERROR,
|
14442
|
-
message: e.message
|
15039
|
+
message: e.message,
|
14443
15040
|
});
|
14444
15041
|
throw e;
|
14445
15042
|
}
|
@@ -14610,7 +15207,7 @@ class ShareServiceClient extends StorageClient {
|
|
14610
15207
|
*/
|
14611
15208
|
byPage: (settings = {}) => {
|
14612
15209
|
return this.listSegments(settings.continuationToken, Object.assign({ maxResults: settings.maxPageSize }, updatedOptions));
|
14613
|
-
}
|
15210
|
+
},
|
14614
15211
|
};
|
14615
15212
|
}
|
14616
15213
|
/**
|
@@ -14645,7 +15242,7 @@ class ShareServiceClient extends StorageClient {
|
|
14645
15242
|
catch (e) {
|
14646
15243
|
span.setStatus({
|
14647
15244
|
code: coreTracing.SpanStatusCode.ERROR,
|
14648
|
-
message: e.message
|
15245
|
+
message: e.message,
|
14649
15246
|
});
|
14650
15247
|
throw e;
|
14651
15248
|
}
|
@@ -14673,7 +15270,7 @@ class ShareServiceClient extends StorageClient {
|
|
14673
15270
|
catch (e) {
|
14674
15271
|
span.setStatus({
|
14675
15272
|
code: coreTracing.SpanStatusCode.ERROR,
|
14676
|
-
message: e.message
|
15273
|
+
message: e.message,
|
14677
15274
|
});
|
14678
15275
|
throw e;
|
14679
15276
|
}
|
@@ -14712,39 +15309,27 @@ class ShareServiceClient extends StorageClient {
|
|
14712
15309
|
|
14713
15310
|
Object.defineProperty(exports, 'BaseRequestPolicy', {
|
14714
15311
|
enumerable: true,
|
14715
|
-
get: function () {
|
14716
|
-
return coreHttp.BaseRequestPolicy;
|
14717
|
-
}
|
15312
|
+
get: function () { return coreHttp.BaseRequestPolicy; }
|
14718
15313
|
});
|
14719
15314
|
Object.defineProperty(exports, 'HttpHeaders', {
|
14720
15315
|
enumerable: true,
|
14721
|
-
get: function () {
|
14722
|
-
return coreHttp.HttpHeaders;
|
14723
|
-
}
|
15316
|
+
get: function () { return coreHttp.HttpHeaders; }
|
14724
15317
|
});
|
14725
15318
|
Object.defineProperty(exports, 'RequestPolicyOptions', {
|
14726
15319
|
enumerable: true,
|
14727
|
-
get: function () {
|
14728
|
-
return coreHttp.RequestPolicyOptions;
|
14729
|
-
}
|
15320
|
+
get: function () { return coreHttp.RequestPolicyOptions; }
|
14730
15321
|
});
|
14731
15322
|
Object.defineProperty(exports, 'RestError', {
|
14732
15323
|
enumerable: true,
|
14733
|
-
get: function () {
|
14734
|
-
return coreHttp.RestError;
|
14735
|
-
}
|
15324
|
+
get: function () { return coreHttp.RestError; }
|
14736
15325
|
});
|
14737
15326
|
Object.defineProperty(exports, 'WebResource', {
|
14738
15327
|
enumerable: true,
|
14739
|
-
get: function () {
|
14740
|
-
return coreHttp.WebResource;
|
14741
|
-
}
|
15328
|
+
get: function () { return coreHttp.WebResource; }
|
14742
15329
|
});
|
14743
15330
|
Object.defineProperty(exports, 'deserializationPolicy', {
|
14744
15331
|
enumerable: true,
|
14745
|
-
get: function () {
|
14746
|
-
return coreHttp.deserializationPolicy;
|
14747
|
-
}
|
15332
|
+
get: function () { return coreHttp.deserializationPolicy; }
|
14748
15333
|
});
|
14749
15334
|
exports.AccountSASPermissions = AccountSASPermissions;
|
14750
15335
|
exports.AccountSASResourceTypes = AccountSASResourceTypes;
|