@azure/storage-file-share 12.9.0-beta.2 → 12.9.0
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 +24 -4
- package/README.md +6 -5
- package/dist/index.js +947 -376
- 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 +232 -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 +267 -4
- package/{typings → types}/latest/storage-file-share.d.ts +231 -4
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
|
315
|
-
const SERVICE_VERSION = "2021-
|
337
|
+
const SDK_VERSION = "12.9.0";
|
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);
|
@@ -4450,6 +4499,122 @@ const DirectoryForceCloseHandlesExceptionHeaders = {
|
|
4450
4499
|
}
|
4451
4500
|
}
|
4452
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
|
+
};
|
4453
4618
|
const FileCreateHeaders = {
|
4454
4619
|
serializedName: "File_createHeaders",
|
4455
4620
|
type: {
|
@@ -6146,6 +6311,122 @@ const FileForceCloseHandlesExceptionHeaders = {
|
|
6146
6311
|
}
|
6147
6312
|
}
|
6148
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
|
+
};
|
6149
6430
|
|
6150
6431
|
var Mappers = /*#__PURE__*/Object.freeze({
|
6151
6432
|
__proto__: null,
|
@@ -6230,6 +6511,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
6230
6511
|
DirectoryListHandlesExceptionHeaders: DirectoryListHandlesExceptionHeaders,
|
6231
6512
|
DirectoryForceCloseHandlesHeaders: DirectoryForceCloseHandlesHeaders,
|
6232
6513
|
DirectoryForceCloseHandlesExceptionHeaders: DirectoryForceCloseHandlesExceptionHeaders,
|
6514
|
+
DirectoryRenameHeaders: DirectoryRenameHeaders,
|
6515
|
+
DirectoryRenameExceptionHeaders: DirectoryRenameExceptionHeaders,
|
6233
6516
|
FileCreateHeaders: FileCreateHeaders,
|
6234
6517
|
FileCreateExceptionHeaders: FileCreateExceptionHeaders,
|
6235
6518
|
FileDownloadHeaders: FileDownloadHeaders,
|
@@ -6263,7 +6546,9 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
6263
6546
|
FileListHandlesHeaders: FileListHandlesHeaders,
|
6264
6547
|
FileListHandlesExceptionHeaders: FileListHandlesExceptionHeaders,
|
6265
6548
|
FileForceCloseHandlesHeaders: FileForceCloseHandlesHeaders,
|
6266
|
-
FileForceCloseHandlesExceptionHeaders: FileForceCloseHandlesExceptionHeaders
|
6549
|
+
FileForceCloseHandlesExceptionHeaders: FileForceCloseHandlesExceptionHeaders,
|
6550
|
+
FileRenameHeaders: FileRenameHeaders,
|
6551
|
+
FileRenameExceptionHeaders: FileRenameExceptionHeaders
|
6267
6552
|
});
|
6268
6553
|
|
6269
6554
|
/*
|
@@ -6349,7 +6634,7 @@ const timeoutInSeconds = {
|
|
6349
6634
|
const version = {
|
6350
6635
|
parameterPath: "version",
|
6351
6636
|
mapper: {
|
6352
|
-
defaultValue: "2021-
|
6637
|
+
defaultValue: "2021-04-10",
|
6353
6638
|
isConstant: true,
|
6354
6639
|
serializedName: "x-ms-version",
|
6355
6640
|
type: {
|
@@ -6911,29 +7196,125 @@ const handleId = {
|
|
6911
7196
|
}
|
6912
7197
|
}
|
6913
7198
|
};
|
6914
|
-
const
|
6915
|
-
parameterPath: "
|
7199
|
+
const comp11 = {
|
7200
|
+
parameterPath: "comp",
|
6916
7201
|
mapper: {
|
6917
|
-
|
6918
|
-
|
6919
|
-
|
7202
|
+
defaultValue: "rename",
|
7203
|
+
isConstant: true,
|
7204
|
+
serializedName: "comp",
|
6920
7205
|
type: {
|
6921
|
-
name: "
|
7206
|
+
name: "String"
|
6922
7207
|
}
|
6923
7208
|
}
|
6924
7209
|
};
|
6925
|
-
const
|
6926
|
-
parameterPath: "
|
7210
|
+
const renameSource = {
|
7211
|
+
parameterPath: "renameSource",
|
6927
7212
|
mapper: {
|
6928
|
-
|
6929
|
-
|
6930
|
-
|
7213
|
+
serializedName: "x-ms-file-rename-source",
|
7214
|
+
required: true,
|
7215
|
+
xmlName: "x-ms-file-rename-source",
|
6931
7216
|
type: {
|
6932
7217
|
name: "String"
|
6933
7218
|
}
|
6934
7219
|
}
|
6935
7220
|
};
|
6936
|
-
const
|
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"
|
7303
|
+
}
|
7304
|
+
}
|
7305
|
+
};
|
7306
|
+
const fileTypeConstant = {
|
7307
|
+
parameterPath: "fileTypeConstant",
|
7308
|
+
mapper: {
|
7309
|
+
defaultValue: "file",
|
7310
|
+
isConstant: true,
|
7311
|
+
serializedName: "x-ms-type",
|
7312
|
+
type: {
|
7313
|
+
name: "String"
|
7314
|
+
}
|
7315
|
+
}
|
7316
|
+
};
|
7317
|
+
const fileContentType = {
|
6937
7318
|
parameterPath: ["options", "fileHttpHeaders", "fileContentType"],
|
6938
7319
|
mapper: {
|
6939
7320
|
serializedName: "x-ms-content-type",
|
@@ -7055,7 +7436,7 @@ const accept3 = {
|
|
7055
7436
|
}
|
7056
7437
|
}
|
7057
7438
|
};
|
7058
|
-
const
|
7439
|
+
const comp12 = {
|
7059
7440
|
parameterPath: "comp",
|
7060
7441
|
mapper: {
|
7061
7442
|
defaultValue: "range",
|
@@ -7191,7 +7572,7 @@ const copySourceAuthorization = {
|
|
7191
7572
|
}
|
7192
7573
|
}
|
7193
7574
|
};
|
7194
|
-
const
|
7575
|
+
const comp13 = {
|
7195
7576
|
parameterPath: "comp",
|
7196
7577
|
mapper: {
|
7197
7578
|
defaultValue: "rangelist",
|
@@ -7223,46 +7604,16 @@ const filePermissionCopyMode = {
|
|
7223
7604
|
}
|
7224
7605
|
}
|
7225
7606
|
};
|
7226
|
-
const
|
7607
|
+
const ignoreReadOnly1 = {
|
7227
7608
|
parameterPath: ["options", "copyFileSmbInfo", "ignoreReadOnly"],
|
7228
7609
|
mapper: {
|
7229
|
-
serializedName: "x-ms-file-copy-ignore-
|
7230
|
-
xmlName: "x-ms-file-copy-ignore-
|
7610
|
+
serializedName: "x-ms-file-copy-ignore-readonly",
|
7611
|
+
xmlName: "x-ms-file-copy-ignore-readonly",
|
7231
7612
|
type: {
|
7232
7613
|
name: "Boolean"
|
7233
7614
|
}
|
7234
7615
|
}
|
7235
7616
|
};
|
7236
|
-
const fileAttributes1 = {
|
7237
|
-
parameterPath: ["options", "copyFileSmbInfo", "fileAttributes"],
|
7238
|
-
mapper: {
|
7239
|
-
serializedName: "x-ms-file-attributes",
|
7240
|
-
xmlName: "x-ms-file-attributes",
|
7241
|
-
type: {
|
7242
|
-
name: "String"
|
7243
|
-
}
|
7244
|
-
}
|
7245
|
-
};
|
7246
|
-
const fileCreationTime = {
|
7247
|
-
parameterPath: ["options", "copyFileSmbInfo", "fileCreationTime"],
|
7248
|
-
mapper: {
|
7249
|
-
serializedName: "x-ms-file-creation-time",
|
7250
|
-
xmlName: "x-ms-file-creation-time",
|
7251
|
-
type: {
|
7252
|
-
name: "String"
|
7253
|
-
}
|
7254
|
-
}
|
7255
|
-
};
|
7256
|
-
const fileLastWriteTime = {
|
7257
|
-
parameterPath: ["options", "copyFileSmbInfo", "fileLastWriteTime"],
|
7258
|
-
mapper: {
|
7259
|
-
serializedName: "x-ms-file-last-write-time",
|
7260
|
-
xmlName: "x-ms-file-last-write-time",
|
7261
|
-
type: {
|
7262
|
-
name: "String"
|
7263
|
-
}
|
7264
|
-
}
|
7265
|
-
};
|
7266
7617
|
const setArchiveAttribute = {
|
7267
7618
|
parameterPath: ["options", "copyFileSmbInfo", "setArchiveAttribute"],
|
7268
7619
|
mapper: {
|
@@ -7273,7 +7624,7 @@ const setArchiveAttribute = {
|
|
7273
7624
|
}
|
7274
7625
|
}
|
7275
7626
|
};
|
7276
|
-
const
|
7627
|
+
const comp14 = {
|
7277
7628
|
parameterPath: "comp",
|
7278
7629
|
mapper: {
|
7279
7630
|
defaultValue: "copy",
|
@@ -7332,9 +7683,9 @@ class Service {
|
|
7332
7683
|
setProperties(properties, options) {
|
7333
7684
|
const operationArguments = {
|
7334
7685
|
properties,
|
7335
|
-
options:
|
7686
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7336
7687
|
};
|
7337
|
-
return this.client.sendOperationRequest(operationArguments, setPropertiesOperationSpec);
|
7688
|
+
return this.client.sendOperationRequest(operationArguments, setPropertiesOperationSpec$2);
|
7338
7689
|
}
|
7339
7690
|
/**
|
7340
7691
|
* Gets the properties of a storage account's File service, including properties for Storage Analytics
|
@@ -7343,9 +7694,9 @@ class Service {
|
|
7343
7694
|
*/
|
7344
7695
|
getProperties(options) {
|
7345
7696
|
const operationArguments = {
|
7346
|
-
options:
|
7697
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7347
7698
|
};
|
7348
|
-
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec);
|
7699
|
+
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec$3);
|
7349
7700
|
}
|
7350
7701
|
/**
|
7351
7702
|
* The List Shares Segment operation returns a list of the shares and share snapshots under the
|
@@ -7354,14 +7705,14 @@ class Service {
|
|
7354
7705
|
*/
|
7355
7706
|
listSharesSegment(options) {
|
7356
7707
|
const operationArguments = {
|
7357
|
-
options:
|
7708
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7358
7709
|
};
|
7359
7710
|
return this.client.sendOperationRequest(operationArguments, listSharesSegmentOperationSpec);
|
7360
7711
|
}
|
7361
7712
|
}
|
7362
7713
|
// Operation Specifications
|
7363
|
-
const xmlSerializer = new
|
7364
|
-
const setPropertiesOperationSpec = {
|
7714
|
+
const xmlSerializer$3 = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);
|
7715
|
+
const setPropertiesOperationSpec$2 = {
|
7365
7716
|
path: "/",
|
7366
7717
|
httpMethod: "PUT",
|
7367
7718
|
responses: {
|
@@ -7388,9 +7739,9 @@ const setPropertiesOperationSpec = {
|
|
7388
7739
|
isXML: true,
|
7389
7740
|
contentType: "application/xml; charset=utf-8",
|
7390
7741
|
mediaType: "xml",
|
7391
|
-
serializer: xmlSerializer
|
7742
|
+
serializer: xmlSerializer$3
|
7392
7743
|
};
|
7393
|
-
const getPropertiesOperationSpec = {
|
7744
|
+
const getPropertiesOperationSpec$3 = {
|
7394
7745
|
path: "/",
|
7395
7746
|
httpMethod: "GET",
|
7396
7747
|
responses: {
|
@@ -7411,7 +7762,7 @@ const getPropertiesOperationSpec = {
|
|
7411
7762
|
urlParameters: [url],
|
7412
7763
|
headerParameters: [version, accept1],
|
7413
7764
|
isXML: true,
|
7414
|
-
serializer: xmlSerializer
|
7765
|
+
serializer: xmlSerializer$3
|
7415
7766
|
};
|
7416
7767
|
const listSharesSegmentOperationSpec = {
|
7417
7768
|
path: "/",
|
@@ -7437,7 +7788,7 @@ const listSharesSegmentOperationSpec = {
|
|
7437
7788
|
urlParameters: [url],
|
7438
7789
|
headerParameters: [version, accept1],
|
7439
7790
|
isXML: true,
|
7440
|
-
serializer: xmlSerializer
|
7791
|
+
serializer: xmlSerializer$3
|
7441
7792
|
};
|
7442
7793
|
|
7443
7794
|
/*
|
@@ -7463,9 +7814,9 @@ class Share {
|
|
7463
7814
|
*/
|
7464
7815
|
create(options) {
|
7465
7816
|
const operationArguments = {
|
7466
|
-
options:
|
7817
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7467
7818
|
};
|
7468
|
-
return this.client.sendOperationRequest(operationArguments, createOperationSpec);
|
7819
|
+
return this.client.sendOperationRequest(operationArguments, createOperationSpec$2);
|
7469
7820
|
}
|
7470
7821
|
/**
|
7471
7822
|
* Returns all user-defined metadata and system properties for the specified share or share snapshot.
|
@@ -7474,9 +7825,9 @@ class Share {
|
|
7474
7825
|
*/
|
7475
7826
|
getProperties(options) {
|
7476
7827
|
const operationArguments = {
|
7477
|
-
options:
|
7828
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7478
7829
|
};
|
7479
|
-
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec$
|
7830
|
+
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec$2);
|
7480
7831
|
}
|
7481
7832
|
/**
|
7482
7833
|
* Operation marks the specified share or share snapshot for deletion. The share or share snapshot and
|
@@ -7485,9 +7836,9 @@ class Share {
|
|
7485
7836
|
*/
|
7486
7837
|
delete(options) {
|
7487
7838
|
const operationArguments = {
|
7488
|
-
options:
|
7839
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7489
7840
|
};
|
7490
|
-
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec);
|
7841
|
+
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec$2);
|
7491
7842
|
}
|
7492
7843
|
/**
|
7493
7844
|
* The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for
|
@@ -7496,9 +7847,9 @@ class Share {
|
|
7496
7847
|
*/
|
7497
7848
|
acquireLease(options) {
|
7498
7849
|
const operationArguments = {
|
7499
|
-
options:
|
7850
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7500
7851
|
};
|
7501
|
-
return this.client.sendOperationRequest(operationArguments, acquireLeaseOperationSpec);
|
7852
|
+
return this.client.sendOperationRequest(operationArguments, acquireLeaseOperationSpec$1);
|
7502
7853
|
}
|
7503
7854
|
/**
|
7504
7855
|
* The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for
|
@@ -7509,9 +7860,9 @@ class Share {
|
|
7509
7860
|
releaseLease(leaseId, options) {
|
7510
7861
|
const operationArguments = {
|
7511
7862
|
leaseId,
|
7512
|
-
options:
|
7863
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7513
7864
|
};
|
7514
|
-
return this.client.sendOperationRequest(operationArguments, releaseLeaseOperationSpec);
|
7865
|
+
return this.client.sendOperationRequest(operationArguments, releaseLeaseOperationSpec$1);
|
7515
7866
|
}
|
7516
7867
|
/**
|
7517
7868
|
* The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for
|
@@ -7522,9 +7873,9 @@ class Share {
|
|
7522
7873
|
changeLease(leaseId, options) {
|
7523
7874
|
const operationArguments = {
|
7524
7875
|
leaseId,
|
7525
|
-
options:
|
7876
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7526
7877
|
};
|
7527
|
-
return this.client.sendOperationRequest(operationArguments, changeLeaseOperationSpec);
|
7878
|
+
return this.client.sendOperationRequest(operationArguments, changeLeaseOperationSpec$1);
|
7528
7879
|
}
|
7529
7880
|
/**
|
7530
7881
|
* The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for
|
@@ -7535,7 +7886,7 @@ class Share {
|
|
7535
7886
|
renewLease(leaseId, options) {
|
7536
7887
|
const operationArguments = {
|
7537
7888
|
leaseId,
|
7538
|
-
options:
|
7889
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7539
7890
|
};
|
7540
7891
|
return this.client.sendOperationRequest(operationArguments, renewLeaseOperationSpec);
|
7541
7892
|
}
|
@@ -7546,9 +7897,9 @@ class Share {
|
|
7546
7897
|
*/
|
7547
7898
|
breakLease(options) {
|
7548
7899
|
const operationArguments = {
|
7549
|
-
options:
|
7900
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7550
7901
|
};
|
7551
|
-
return this.client.sendOperationRequest(operationArguments, breakLeaseOperationSpec);
|
7902
|
+
return this.client.sendOperationRequest(operationArguments, breakLeaseOperationSpec$1);
|
7552
7903
|
}
|
7553
7904
|
/**
|
7554
7905
|
* Creates a read-only snapshot of a share.
|
@@ -7556,7 +7907,7 @@ class Share {
|
|
7556
7907
|
*/
|
7557
7908
|
createSnapshot(options) {
|
7558
7909
|
const operationArguments = {
|
7559
|
-
options:
|
7910
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7560
7911
|
};
|
7561
7912
|
return this.client.sendOperationRequest(operationArguments, createSnapshotOperationSpec);
|
7562
7913
|
}
|
@@ -7568,7 +7919,7 @@ class Share {
|
|
7568
7919
|
createPermission(sharePermission, options) {
|
7569
7920
|
const operationArguments = {
|
7570
7921
|
sharePermission,
|
7571
|
-
options:
|
7922
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7572
7923
|
};
|
7573
7924
|
return this.client.sendOperationRequest(operationArguments, createPermissionOperationSpec);
|
7574
7925
|
}
|
@@ -7580,7 +7931,7 @@ class Share {
|
|
7580
7931
|
getPermission(filePermissionKey, options) {
|
7581
7932
|
const operationArguments = {
|
7582
7933
|
filePermissionKey,
|
7583
|
-
options:
|
7934
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7584
7935
|
};
|
7585
7936
|
return this.client.sendOperationRequest(operationArguments, getPermissionOperationSpec);
|
7586
7937
|
}
|
@@ -7590,7 +7941,7 @@ class Share {
|
|
7590
7941
|
*/
|
7591
7942
|
setProperties(options) {
|
7592
7943
|
const operationArguments = {
|
7593
|
-
options:
|
7944
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7594
7945
|
};
|
7595
7946
|
return this.client.sendOperationRequest(operationArguments, setPropertiesOperationSpec$1);
|
7596
7947
|
}
|
@@ -7600,9 +7951,9 @@ class Share {
|
|
7600
7951
|
*/
|
7601
7952
|
setMetadata(options) {
|
7602
7953
|
const operationArguments = {
|
7603
|
-
options:
|
7954
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7604
7955
|
};
|
7605
|
-
return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec);
|
7956
|
+
return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec$2);
|
7606
7957
|
}
|
7607
7958
|
/**
|
7608
7959
|
* Returns information about stored access policies specified on the share.
|
@@ -7610,7 +7961,7 @@ class Share {
|
|
7610
7961
|
*/
|
7611
7962
|
getAccessPolicy(options) {
|
7612
7963
|
const operationArguments = {
|
7613
|
-
options:
|
7964
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7614
7965
|
};
|
7615
7966
|
return this.client.sendOperationRequest(operationArguments, getAccessPolicyOperationSpec);
|
7616
7967
|
}
|
@@ -7620,7 +7971,7 @@ class Share {
|
|
7620
7971
|
*/
|
7621
7972
|
setAccessPolicy(options) {
|
7622
7973
|
const operationArguments = {
|
7623
|
-
options:
|
7974
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7624
7975
|
};
|
7625
7976
|
return this.client.sendOperationRequest(operationArguments, setAccessPolicyOperationSpec);
|
7626
7977
|
}
|
@@ -7630,7 +7981,7 @@ class Share {
|
|
7630
7981
|
*/
|
7631
7982
|
getStatistics(options) {
|
7632
7983
|
const operationArguments = {
|
7633
|
-
options:
|
7984
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7634
7985
|
};
|
7635
7986
|
return this.client.sendOperationRequest(operationArguments, getStatisticsOperationSpec);
|
7636
7987
|
}
|
@@ -7640,15 +7991,15 @@ class Share {
|
|
7640
7991
|
*/
|
7641
7992
|
restore(options) {
|
7642
7993
|
const operationArguments = {
|
7643
|
-
options:
|
7994
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7644
7995
|
};
|
7645
7996
|
return this.client.sendOperationRequest(operationArguments, restoreOperationSpec);
|
7646
7997
|
}
|
7647
7998
|
}
|
7648
7999
|
// Operation Specifications
|
7649
|
-
const xmlSerializer$
|
7650
|
-
const serializer = new
|
7651
|
-
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 = {
|
7652
8003
|
path: "/{shareName}",
|
7653
8004
|
httpMethod: "PUT",
|
7654
8005
|
responses: {
|
@@ -7672,9 +8023,9 @@ const createOperationSpec = {
|
|
7672
8023
|
rootSquash
|
7673
8024
|
],
|
7674
8025
|
isXML: true,
|
7675
|
-
serializer: xmlSerializer$
|
8026
|
+
serializer: xmlSerializer$2
|
7676
8027
|
};
|
7677
|
-
const getPropertiesOperationSpec$
|
8028
|
+
const getPropertiesOperationSpec$2 = {
|
7678
8029
|
path: "/{shareName}",
|
7679
8030
|
httpMethod: "GET",
|
7680
8031
|
responses: {
|
@@ -7698,9 +8049,9 @@ const getPropertiesOperationSpec$1 = {
|
|
7698
8049
|
leaseId
|
7699
8050
|
],
|
7700
8051
|
isXML: true,
|
7701
|
-
serializer: xmlSerializer$
|
8052
|
+
serializer: xmlSerializer$2
|
7702
8053
|
};
|
7703
|
-
const deleteOperationSpec = {
|
8054
|
+
const deleteOperationSpec$2 = {
|
7704
8055
|
path: "/{shareName}",
|
7705
8056
|
httpMethod: "DELETE",
|
7706
8057
|
responses: {
|
@@ -7725,9 +8076,9 @@ const deleteOperationSpec = {
|
|
7725
8076
|
deleteSnapshots
|
7726
8077
|
],
|
7727
8078
|
isXML: true,
|
7728
|
-
serializer: xmlSerializer$
|
8079
|
+
serializer: xmlSerializer$2
|
7729
8080
|
};
|
7730
|
-
const acquireLeaseOperationSpec = {
|
8081
|
+
const acquireLeaseOperationSpec$1 = {
|
7731
8082
|
path: "/{shareName}",
|
7732
8083
|
httpMethod: "PUT",
|
7733
8084
|
responses: {
|
@@ -7755,9 +8106,9 @@ const acquireLeaseOperationSpec = {
|
|
7755
8106
|
requestId
|
7756
8107
|
],
|
7757
8108
|
isXML: true,
|
7758
|
-
serializer: xmlSerializer$
|
8109
|
+
serializer: xmlSerializer$2
|
7759
8110
|
};
|
7760
|
-
const releaseLeaseOperationSpec = {
|
8111
|
+
const releaseLeaseOperationSpec$1 = {
|
7761
8112
|
path: "/{shareName}",
|
7762
8113
|
httpMethod: "PUT",
|
7763
8114
|
responses: {
|
@@ -7784,9 +8135,9 @@ const releaseLeaseOperationSpec = {
|
|
7784
8135
|
leaseId1
|
7785
8136
|
],
|
7786
8137
|
isXML: true,
|
7787
|
-
serializer: xmlSerializer$
|
8138
|
+
serializer: xmlSerializer$2
|
7788
8139
|
};
|
7789
|
-
const changeLeaseOperationSpec = {
|
8140
|
+
const changeLeaseOperationSpec$1 = {
|
7790
8141
|
path: "/{shareName}",
|
7791
8142
|
httpMethod: "PUT",
|
7792
8143
|
responses: {
|
@@ -7814,7 +8165,7 @@ const changeLeaseOperationSpec = {
|
|
7814
8165
|
action2
|
7815
8166
|
],
|
7816
8167
|
isXML: true,
|
7817
|
-
serializer: xmlSerializer$
|
8168
|
+
serializer: xmlSerializer$2
|
7818
8169
|
};
|
7819
8170
|
const renewLeaseOperationSpec = {
|
7820
8171
|
path: "/{shareName}",
|
@@ -7843,9 +8194,9 @@ const renewLeaseOperationSpec = {
|
|
7843
8194
|
action3
|
7844
8195
|
],
|
7845
8196
|
isXML: true,
|
7846
|
-
serializer: xmlSerializer$
|
8197
|
+
serializer: xmlSerializer$2
|
7847
8198
|
};
|
7848
|
-
const breakLeaseOperationSpec = {
|
8199
|
+
const breakLeaseOperationSpec$1 = {
|
7849
8200
|
path: "/{shareName}",
|
7850
8201
|
httpMethod: "PUT",
|
7851
8202
|
responses: {
|
@@ -7873,7 +8224,7 @@ const breakLeaseOperationSpec = {
|
|
7873
8224
|
breakPeriod
|
7874
8225
|
],
|
7875
8226
|
isXML: true,
|
7876
|
-
serializer: xmlSerializer$
|
8227
|
+
serializer: xmlSerializer$2
|
7877
8228
|
};
|
7878
8229
|
const createSnapshotOperationSpec = {
|
7879
8230
|
path: "/{shareName}",
|
@@ -7899,7 +8250,7 @@ const createSnapshotOperationSpec = {
|
|
7899
8250
|
metadata
|
7900
8251
|
],
|
7901
8252
|
isXML: true,
|
7902
|
-
serializer: xmlSerializer$
|
8253
|
+
serializer: xmlSerializer$2
|
7903
8254
|
};
|
7904
8255
|
const createPermissionOperationSpec = {
|
7905
8256
|
path: "/{shareName}",
|
@@ -7927,7 +8278,7 @@ const createPermissionOperationSpec = {
|
|
7927
8278
|
],
|
7928
8279
|
isXML: false,
|
7929
8280
|
contentType: "application/xml; charset=utf-8",
|
7930
|
-
serializer: xmlSerializer$
|
8281
|
+
serializer: xmlSerializer$2
|
7931
8282
|
};
|
7932
8283
|
const getPermissionOperationSpec = {
|
7933
8284
|
path: "/{shareName}",
|
@@ -7982,9 +8333,9 @@ const setPropertiesOperationSpec$1 = {
|
|
7982
8333
|
leaseId
|
7983
8334
|
],
|
7984
8335
|
isXML: true,
|
7985
|
-
serializer: xmlSerializer$
|
8336
|
+
serializer: xmlSerializer$2
|
7986
8337
|
};
|
7987
|
-
const setMetadataOperationSpec = {
|
8338
|
+
const setMetadataOperationSpec$2 = {
|
7988
8339
|
path: "/{shareName}",
|
7989
8340
|
httpMethod: "PUT",
|
7990
8341
|
responses: {
|
@@ -8009,7 +8360,7 @@ const setMetadataOperationSpec = {
|
|
8009
8360
|
leaseId
|
8010
8361
|
],
|
8011
8362
|
isXML: true,
|
8012
|
-
serializer: xmlSerializer$
|
8363
|
+
serializer: xmlSerializer$2
|
8013
8364
|
};
|
8014
8365
|
const getAccessPolicyOperationSpec = {
|
8015
8366
|
path: "/{shareName}",
|
@@ -8047,7 +8398,7 @@ const getAccessPolicyOperationSpec = {
|
|
8047
8398
|
leaseId
|
8048
8399
|
],
|
8049
8400
|
isXML: true,
|
8050
|
-
serializer: xmlSerializer$
|
8401
|
+
serializer: xmlSerializer$2
|
8051
8402
|
};
|
8052
8403
|
const setAccessPolicyOperationSpec = {
|
8053
8404
|
path: "/{shareName}",
|
@@ -8077,7 +8428,7 @@ const setAccessPolicyOperationSpec = {
|
|
8077
8428
|
isXML: true,
|
8078
8429
|
contentType: "application/xml; charset=utf-8",
|
8079
8430
|
mediaType: "xml",
|
8080
|
-
serializer: xmlSerializer$
|
8431
|
+
serializer: xmlSerializer$2
|
8081
8432
|
};
|
8082
8433
|
const getStatisticsOperationSpec = {
|
8083
8434
|
path: "/{shareName}",
|
@@ -8104,7 +8455,7 @@ const getStatisticsOperationSpec = {
|
|
8104
8455
|
leaseId
|
8105
8456
|
],
|
8106
8457
|
isXML: true,
|
8107
|
-
serializer: xmlSerializer$
|
8458
|
+
serializer: xmlSerializer$2
|
8108
8459
|
};
|
8109
8460
|
const restoreOperationSpec = {
|
8110
8461
|
path: "/{shareName}",
|
@@ -8132,7 +8483,7 @@ const restoreOperationSpec = {
|
|
8132
8483
|
deletedShareVersion
|
8133
8484
|
],
|
8134
8485
|
isXML: true,
|
8135
|
-
serializer: xmlSerializer$
|
8486
|
+
serializer: xmlSerializer$2
|
8136
8487
|
};
|
8137
8488
|
|
8138
8489
|
/*
|
@@ -8164,7 +8515,7 @@ class Directory {
|
|
8164
8515
|
fileAttributes,
|
8165
8516
|
fileCreatedOn,
|
8166
8517
|
fileLastWriteOn,
|
8167
|
-
options:
|
8518
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8168
8519
|
};
|
8169
8520
|
return this.client.sendOperationRequest(operationArguments, createOperationSpec$1);
|
8170
8521
|
}
|
@@ -8176,9 +8527,9 @@ class Directory {
|
|
8176
8527
|
*/
|
8177
8528
|
getProperties(options) {
|
8178
8529
|
const operationArguments = {
|
8179
|
-
options:
|
8530
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8180
8531
|
};
|
8181
|
-
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec$
|
8532
|
+
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec$1);
|
8182
8533
|
}
|
8183
8534
|
/**
|
8184
8535
|
* Removes the specified empty directory. Note that the directory must be empty before it can be
|
@@ -8187,7 +8538,7 @@ class Directory {
|
|
8187
8538
|
*/
|
8188
8539
|
delete(options) {
|
8189
8540
|
const operationArguments = {
|
8190
|
-
options:
|
8541
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8191
8542
|
};
|
8192
8543
|
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec$1);
|
8193
8544
|
}
|
@@ -8204,9 +8555,9 @@ class Directory {
|
|
8204
8555
|
fileAttributes,
|
8205
8556
|
fileCreatedOn,
|
8206
8557
|
fileLastWriteOn,
|
8207
|
-
options:
|
8558
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8208
8559
|
};
|
8209
|
-
return this.client.sendOperationRequest(operationArguments, setPropertiesOperationSpec
|
8560
|
+
return this.client.sendOperationRequest(operationArguments, setPropertiesOperationSpec);
|
8210
8561
|
}
|
8211
8562
|
/**
|
8212
8563
|
* Updates user defined metadata for the specified directory.
|
@@ -8214,7 +8565,7 @@ class Directory {
|
|
8214
8565
|
*/
|
8215
8566
|
setMetadata(options) {
|
8216
8567
|
const operationArguments = {
|
8217
|
-
options:
|
8568
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8218
8569
|
};
|
8219
8570
|
return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec$1);
|
8220
8571
|
}
|
@@ -8225,7 +8576,7 @@ class Directory {
|
|
8225
8576
|
*/
|
8226
8577
|
listFilesAndDirectoriesSegment(options) {
|
8227
8578
|
const operationArguments = {
|
8228
|
-
options:
|
8579
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8229
8580
|
};
|
8230
8581
|
return this.client.sendOperationRequest(operationArguments, listFilesAndDirectoriesSegmentOperationSpec);
|
8231
8582
|
}
|
@@ -8235,9 +8586,9 @@ class Directory {
|
|
8235
8586
|
*/
|
8236
8587
|
listHandles(options) {
|
8237
8588
|
const operationArguments = {
|
8238
|
-
options:
|
8589
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8239
8590
|
};
|
8240
|
-
return this.client.sendOperationRequest(operationArguments, listHandlesOperationSpec);
|
8591
|
+
return this.client.sendOperationRequest(operationArguments, listHandlesOperationSpec$1);
|
8241
8592
|
}
|
8242
8593
|
/**
|
8243
8594
|
* Closes all handles open for given directory.
|
@@ -8248,13 +8599,25 @@ class Directory {
|
|
8248
8599
|
forceCloseHandles(handleId, options) {
|
8249
8600
|
const operationArguments = {
|
8250
8601
|
handleId,
|
8251
|
-
options:
|
8602
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8252
8603
|
};
|
8253
|
-
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);
|
8254
8617
|
}
|
8255
8618
|
}
|
8256
8619
|
// Operation Specifications
|
8257
|
-
const xmlSerializer$
|
8620
|
+
const xmlSerializer$1 = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);
|
8258
8621
|
const createOperationSpec$1 = {
|
8259
8622
|
path: "/{shareName}/{directory}",
|
8260
8623
|
httpMethod: "PUT",
|
@@ -8280,9 +8643,9 @@ const createOperationSpec$1 = {
|
|
8280
8643
|
fileLastWriteOn
|
8281
8644
|
],
|
8282
8645
|
isXML: true,
|
8283
|
-
serializer: xmlSerializer$
|
8646
|
+
serializer: xmlSerializer$1
|
8284
8647
|
};
|
8285
|
-
const getPropertiesOperationSpec$
|
8648
|
+
const getPropertiesOperationSpec$1 = {
|
8286
8649
|
path: "/{shareName}/{directory}",
|
8287
8650
|
httpMethod: "GET",
|
8288
8651
|
responses: {
|
@@ -8302,7 +8665,7 @@ const getPropertiesOperationSpec$2 = {
|
|
8302
8665
|
urlParameters: [url],
|
8303
8666
|
headerParameters: [version, accept1],
|
8304
8667
|
isXML: true,
|
8305
|
-
serializer: xmlSerializer$
|
8668
|
+
serializer: xmlSerializer$1
|
8306
8669
|
};
|
8307
8670
|
const deleteOperationSpec$1 = {
|
8308
8671
|
path: "/{shareName}/{directory}",
|
@@ -8320,9 +8683,9 @@ const deleteOperationSpec$1 = {
|
|
8320
8683
|
urlParameters: [url],
|
8321
8684
|
headerParameters: [version, accept1],
|
8322
8685
|
isXML: true,
|
8323
|
-
serializer: xmlSerializer$
|
8686
|
+
serializer: xmlSerializer$1
|
8324
8687
|
};
|
8325
|
-
const setPropertiesOperationSpec
|
8688
|
+
const setPropertiesOperationSpec = {
|
8326
8689
|
path: "/{shareName}/{directory}",
|
8327
8690
|
httpMethod: "PUT",
|
8328
8691
|
responses: {
|
@@ -8350,7 +8713,7 @@ const setPropertiesOperationSpec$2 = {
|
|
8350
8713
|
fileLastWriteOn
|
8351
8714
|
],
|
8352
8715
|
isXML: true,
|
8353
|
-
serializer: xmlSerializer$
|
8716
|
+
serializer: xmlSerializer$1
|
8354
8717
|
};
|
8355
8718
|
const setMetadataOperationSpec$1 = {
|
8356
8719
|
path: "/{shareName}/{directory}",
|
@@ -8376,7 +8739,7 @@ const setMetadataOperationSpec$1 = {
|
|
8376
8739
|
metadata
|
8377
8740
|
],
|
8378
8741
|
isXML: true,
|
8379
|
-
serializer: xmlSerializer$
|
8742
|
+
serializer: xmlSerializer$1
|
8380
8743
|
};
|
8381
8744
|
const listFilesAndDirectoriesSegmentOperationSpec = {
|
8382
8745
|
path: "/{shareName}/{directory}",
|
@@ -8408,9 +8771,9 @@ const listFilesAndDirectoriesSegmentOperationSpec = {
|
|
8408
8771
|
includeExtendedInfo
|
8409
8772
|
],
|
8410
8773
|
isXML: true,
|
8411
|
-
serializer: xmlSerializer$
|
8774
|
+
serializer: xmlSerializer$1
|
8412
8775
|
};
|
8413
|
-
const listHandlesOperationSpec = {
|
8776
|
+
const listHandlesOperationSpec$1 = {
|
8414
8777
|
path: "/{shareName}/{directory}",
|
8415
8778
|
httpMethod: "GET",
|
8416
8779
|
responses: {
|
@@ -8437,9 +8800,9 @@ const listHandlesOperationSpec = {
|
|
8437
8800
|
recursive
|
8438
8801
|
],
|
8439
8802
|
isXML: true,
|
8440
|
-
serializer: xmlSerializer$
|
8803
|
+
serializer: xmlSerializer$1
|
8441
8804
|
};
|
8442
|
-
const forceCloseHandlesOperationSpec = {
|
8805
|
+
const forceCloseHandlesOperationSpec$1 = {
|
8443
8806
|
path: "/{shareName}/{directory}",
|
8444
8807
|
httpMethod: "PUT",
|
8445
8808
|
responses: {
|
@@ -8465,7 +8828,43 @@ const forceCloseHandlesOperationSpec = {
|
|
8465
8828
|
handleId
|
8466
8829
|
],
|
8467
8830
|
isXML: true,
|
8468
|
-
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
|
8469
8868
|
};
|
8470
8869
|
|
8471
8870
|
/*
|
@@ -8499,9 +8898,9 @@ class File {
|
|
8499
8898
|
fileAttributes,
|
8500
8899
|
fileCreatedOn,
|
8501
8900
|
fileLastWriteOn,
|
8502
|
-
options:
|
8901
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8503
8902
|
};
|
8504
|
-
return this.client.sendOperationRequest(operationArguments, createOperationSpec
|
8903
|
+
return this.client.sendOperationRequest(operationArguments, createOperationSpec);
|
8505
8904
|
}
|
8506
8905
|
/**
|
8507
8906
|
* Reads or downloads a file from the system, including its metadata and properties.
|
@@ -8509,7 +8908,7 @@ class File {
|
|
8509
8908
|
*/
|
8510
8909
|
download(options) {
|
8511
8910
|
const operationArguments = {
|
8512
|
-
options:
|
8911
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8513
8912
|
};
|
8514
8913
|
return this.client.sendOperationRequest(operationArguments, downloadOperationSpec);
|
8515
8914
|
}
|
@@ -8520,9 +8919,9 @@ class File {
|
|
8520
8919
|
*/
|
8521
8920
|
getProperties(options) {
|
8522
8921
|
const operationArguments = {
|
8523
|
-
options:
|
8922
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8524
8923
|
};
|
8525
|
-
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec
|
8924
|
+
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec);
|
8526
8925
|
}
|
8527
8926
|
/**
|
8528
8927
|
* removes the file from the storage account.
|
@@ -8530,9 +8929,9 @@ class File {
|
|
8530
8929
|
*/
|
8531
8930
|
delete(options) {
|
8532
8931
|
const operationArguments = {
|
8533
|
-
options:
|
8932
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8534
8933
|
};
|
8535
|
-
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec
|
8934
|
+
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec);
|
8536
8935
|
}
|
8537
8936
|
/**
|
8538
8937
|
* Sets HTTP headers on the file.
|
@@ -8547,7 +8946,7 @@ class File {
|
|
8547
8946
|
fileAttributes,
|
8548
8947
|
fileCreatedOn,
|
8549
8948
|
fileLastWriteOn,
|
8550
|
-
options:
|
8949
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8551
8950
|
};
|
8552
8951
|
return this.client.sendOperationRequest(operationArguments, setHttpHeadersOperationSpec);
|
8553
8952
|
}
|
@@ -8557,9 +8956,9 @@ class File {
|
|
8557
8956
|
*/
|
8558
8957
|
setMetadata(options) {
|
8559
8958
|
const operationArguments = {
|
8560
|
-
options:
|
8959
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8561
8960
|
};
|
8562
|
-
return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec
|
8961
|
+
return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec);
|
8563
8962
|
}
|
8564
8963
|
/**
|
8565
8964
|
* [Update] The Lease File operation establishes and manages a lock on a file for write and delete
|
@@ -8568,9 +8967,9 @@ class File {
|
|
8568
8967
|
*/
|
8569
8968
|
acquireLease(options) {
|
8570
8969
|
const operationArguments = {
|
8571
|
-
options:
|
8970
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8572
8971
|
};
|
8573
|
-
return this.client.sendOperationRequest(operationArguments, acquireLeaseOperationSpec
|
8972
|
+
return this.client.sendOperationRequest(operationArguments, acquireLeaseOperationSpec);
|
8574
8973
|
}
|
8575
8974
|
/**
|
8576
8975
|
* [Update] The Lease File operation establishes and manages a lock on a file for write and delete
|
@@ -8581,9 +8980,9 @@ class File {
|
|
8581
8980
|
releaseLease(leaseId, options) {
|
8582
8981
|
const operationArguments = {
|
8583
8982
|
leaseId,
|
8584
|
-
options:
|
8983
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8585
8984
|
};
|
8586
|
-
return this.client.sendOperationRequest(operationArguments, releaseLeaseOperationSpec
|
8985
|
+
return this.client.sendOperationRequest(operationArguments, releaseLeaseOperationSpec);
|
8587
8986
|
}
|
8588
8987
|
/**
|
8589
8988
|
* [Update] The Lease File operation establishes and manages a lock on a file for write and delete
|
@@ -8594,9 +8993,9 @@ class File {
|
|
8594
8993
|
changeLease(leaseId, options) {
|
8595
8994
|
const operationArguments = {
|
8596
8995
|
leaseId,
|
8597
|
-
options:
|
8996
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8598
8997
|
};
|
8599
|
-
return this.client.sendOperationRequest(operationArguments, changeLeaseOperationSpec
|
8998
|
+
return this.client.sendOperationRequest(operationArguments, changeLeaseOperationSpec);
|
8600
8999
|
}
|
8601
9000
|
/**
|
8602
9001
|
* [Update] The Lease File operation establishes and manages a lock on a file for write and delete
|
@@ -8605,9 +9004,9 @@ class File {
|
|
8605
9004
|
*/
|
8606
9005
|
breakLease(options) {
|
8607
9006
|
const operationArguments = {
|
8608
|
-
options:
|
9007
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8609
9008
|
};
|
8610
|
-
return this.client.sendOperationRequest(operationArguments, breakLeaseOperationSpec
|
9009
|
+
return this.client.sendOperationRequest(operationArguments, breakLeaseOperationSpec);
|
8611
9010
|
}
|
8612
9011
|
/**
|
8613
9012
|
* Upload a range of bytes to a file.
|
@@ -8630,7 +9029,7 @@ class File {
|
|
8630
9029
|
range,
|
8631
9030
|
fileRangeWrite,
|
8632
9031
|
contentLength,
|
8633
|
-
options:
|
9032
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8634
9033
|
};
|
8635
9034
|
return this.client.sendOperationRequest(operationArguments, uploadRangeOperationSpec);
|
8636
9035
|
}
|
@@ -8652,7 +9051,7 @@ class File {
|
|
8652
9051
|
range,
|
8653
9052
|
copySource,
|
8654
9053
|
contentLength,
|
8655
|
-
options:
|
9054
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8656
9055
|
};
|
8657
9056
|
return this.client.sendOperationRequest(operationArguments, uploadRangeFromURLOperationSpec);
|
8658
9057
|
}
|
@@ -8662,7 +9061,7 @@ class File {
|
|
8662
9061
|
*/
|
8663
9062
|
getRangeList(options) {
|
8664
9063
|
const operationArguments = {
|
8665
|
-
options:
|
9064
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8666
9065
|
};
|
8667
9066
|
return this.client.sendOperationRequest(operationArguments, getRangeListOperationSpec);
|
8668
9067
|
}
|
@@ -8679,7 +9078,7 @@ class File {
|
|
8679
9078
|
startCopy(copySource, options) {
|
8680
9079
|
const operationArguments = {
|
8681
9080
|
copySource,
|
8682
|
-
options:
|
9081
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8683
9082
|
};
|
8684
9083
|
return this.client.sendOperationRequest(operationArguments, startCopyOperationSpec);
|
8685
9084
|
}
|
@@ -8693,7 +9092,7 @@ class File {
|
|
8693
9092
|
abortCopy(copyId, options) {
|
8694
9093
|
const operationArguments = {
|
8695
9094
|
copyId,
|
8696
|
-
options:
|
9095
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8697
9096
|
};
|
8698
9097
|
return this.client.sendOperationRequest(operationArguments, abortCopyOperationSpec);
|
8699
9098
|
}
|
@@ -8703,9 +9102,9 @@ class File {
|
|
8703
9102
|
*/
|
8704
9103
|
listHandles(options) {
|
8705
9104
|
const operationArguments = {
|
8706
|
-
options:
|
9105
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8707
9106
|
};
|
8708
|
-
return this.client.sendOperationRequest(operationArguments, listHandlesOperationSpec
|
9107
|
+
return this.client.sendOperationRequest(operationArguments, listHandlesOperationSpec);
|
8709
9108
|
}
|
8710
9109
|
/**
|
8711
9110
|
* Closes all handles open for given file
|
@@ -8716,14 +9115,26 @@ class File {
|
|
8716
9115
|
forceCloseHandles(handleId, options) {
|
8717
9116
|
const operationArguments = {
|
8718
9117
|
handleId,
|
8719
|
-
options:
|
9118
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8720
9119
|
};
|
8721
|
-
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);
|
8722
9133
|
}
|
8723
9134
|
}
|
8724
9135
|
// Operation Specifications
|
8725
|
-
const xmlSerializer
|
8726
|
-
const createOperationSpec
|
9136
|
+
const xmlSerializer = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);
|
9137
|
+
const createOperationSpec = {
|
8727
9138
|
path: "/{shareName}/{directory}/{fileName}",
|
8728
9139
|
httpMethod: "PUT",
|
8729
9140
|
responses: {
|
@@ -8757,7 +9168,7 @@ const createOperationSpec$2 = {
|
|
8757
9168
|
fileContentDisposition
|
8758
9169
|
],
|
8759
9170
|
isXML: true,
|
8760
|
-
serializer: xmlSerializer
|
9171
|
+
serializer: xmlSerializer
|
8761
9172
|
};
|
8762
9173
|
const downloadOperationSpec = {
|
8763
9174
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -8792,9 +9203,9 @@ const downloadOperationSpec = {
|
|
8792
9203
|
rangeGetContentMD5
|
8793
9204
|
],
|
8794
9205
|
isXML: true,
|
8795
|
-
serializer: xmlSerializer
|
9206
|
+
serializer: xmlSerializer
|
8796
9207
|
};
|
8797
|
-
const getPropertiesOperationSpec
|
9208
|
+
const getPropertiesOperationSpec = {
|
8798
9209
|
path: "/{shareName}/{directory}/{fileName}",
|
8799
9210
|
httpMethod: "HEAD",
|
8800
9211
|
responses: {
|
@@ -8814,9 +9225,9 @@ const getPropertiesOperationSpec$3 = {
|
|
8814
9225
|
leaseId
|
8815
9226
|
],
|
8816
9227
|
isXML: true,
|
8817
|
-
serializer: xmlSerializer
|
9228
|
+
serializer: xmlSerializer
|
8818
9229
|
};
|
8819
|
-
const deleteOperationSpec
|
9230
|
+
const deleteOperationSpec = {
|
8820
9231
|
path: "/{shareName}/{directory}/{fileName}",
|
8821
9232
|
httpMethod: "DELETE",
|
8822
9233
|
responses: {
|
@@ -8836,7 +9247,7 @@ const deleteOperationSpec$2 = {
|
|
8836
9247
|
leaseId
|
8837
9248
|
],
|
8838
9249
|
isXML: true,
|
8839
|
-
serializer: xmlSerializer
|
9250
|
+
serializer: xmlSerializer
|
8840
9251
|
};
|
8841
9252
|
const setHttpHeadersOperationSpec = {
|
8842
9253
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -8870,9 +9281,9 @@ const setHttpHeadersOperationSpec = {
|
|
8870
9281
|
fileContentLength1
|
8871
9282
|
],
|
8872
9283
|
isXML: true,
|
8873
|
-
serializer: xmlSerializer
|
9284
|
+
serializer: xmlSerializer
|
8874
9285
|
};
|
8875
|
-
const setMetadataOperationSpec
|
9286
|
+
const setMetadataOperationSpec = {
|
8876
9287
|
path: "/{shareName}/{directory}/{fileName}",
|
8877
9288
|
httpMethod: "PUT",
|
8878
9289
|
responses: {
|
@@ -8893,9 +9304,9 @@ const setMetadataOperationSpec$2 = {
|
|
8893
9304
|
leaseId
|
8894
9305
|
],
|
8895
9306
|
isXML: true,
|
8896
|
-
serializer: xmlSerializer
|
9307
|
+
serializer: xmlSerializer
|
8897
9308
|
};
|
8898
|
-
const acquireLeaseOperationSpec
|
9309
|
+
const acquireLeaseOperationSpec = {
|
8899
9310
|
path: "/{shareName}/{directory}/{fileName}",
|
8900
9311
|
httpMethod: "PUT",
|
8901
9312
|
responses: {
|
@@ -8918,9 +9329,9 @@ const acquireLeaseOperationSpec$1 = {
|
|
8918
9329
|
requestId
|
8919
9330
|
],
|
8920
9331
|
isXML: true,
|
8921
|
-
serializer: xmlSerializer
|
9332
|
+
serializer: xmlSerializer
|
8922
9333
|
};
|
8923
|
-
const releaseLeaseOperationSpec
|
9334
|
+
const releaseLeaseOperationSpec = {
|
8924
9335
|
path: "/{shareName}/{directory}/{fileName}",
|
8925
9336
|
httpMethod: "PUT",
|
8926
9337
|
responses: {
|
@@ -8942,9 +9353,9 @@ const releaseLeaseOperationSpec$1 = {
|
|
8942
9353
|
leaseId1
|
8943
9354
|
],
|
8944
9355
|
isXML: true,
|
8945
|
-
serializer: xmlSerializer
|
9356
|
+
serializer: xmlSerializer
|
8946
9357
|
};
|
8947
|
-
const changeLeaseOperationSpec
|
9358
|
+
const changeLeaseOperationSpec = {
|
8948
9359
|
path: "/{shareName}/{directory}/{fileName}",
|
8949
9360
|
httpMethod: "PUT",
|
8950
9361
|
responses: {
|
@@ -8967,9 +9378,9 @@ const changeLeaseOperationSpec$1 = {
|
|
8967
9378
|
action2
|
8968
9379
|
],
|
8969
9380
|
isXML: true,
|
8970
|
-
serializer: xmlSerializer
|
9381
|
+
serializer: xmlSerializer
|
8971
9382
|
};
|
8972
|
-
const breakLeaseOperationSpec
|
9383
|
+
const breakLeaseOperationSpec = {
|
8973
9384
|
path: "/{shareName}/{directory}/{fileName}",
|
8974
9385
|
httpMethod: "PUT",
|
8975
9386
|
responses: {
|
@@ -8991,7 +9402,7 @@ const breakLeaseOperationSpec$1 = {
|
|
8991
9402
|
action4
|
8992
9403
|
],
|
8993
9404
|
isXML: true,
|
8994
|
-
serializer: xmlSerializer
|
9405
|
+
serializer: xmlSerializer
|
8995
9406
|
};
|
8996
9407
|
const uploadRangeOperationSpec = {
|
8997
9408
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -9006,7 +9417,7 @@ const uploadRangeOperationSpec = {
|
|
9006
9417
|
}
|
9007
9418
|
},
|
9008
9419
|
requestBody: body,
|
9009
|
-
queryParameters: [timeoutInSeconds,
|
9420
|
+
queryParameters: [timeoutInSeconds, comp12],
|
9010
9421
|
urlParameters: [url],
|
9011
9422
|
headerParameters: [
|
9012
9423
|
version,
|
@@ -9020,7 +9431,7 @@ const uploadRangeOperationSpec = {
|
|
9020
9431
|
],
|
9021
9432
|
contentType: "application/octet-stream",
|
9022
9433
|
isXML: true,
|
9023
|
-
serializer: xmlSerializer
|
9434
|
+
serializer: xmlSerializer
|
9024
9435
|
};
|
9025
9436
|
const uploadRangeFromURLOperationSpec = {
|
9026
9437
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -9034,7 +9445,7 @@ const uploadRangeFromURLOperationSpec = {
|
|
9034
9445
|
headersMapper: FileUploadRangeFromURLExceptionHeaders
|
9035
9446
|
}
|
9036
9447
|
},
|
9037
|
-
queryParameters: [timeoutInSeconds,
|
9448
|
+
queryParameters: [timeoutInSeconds, comp12],
|
9038
9449
|
urlParameters: [url],
|
9039
9450
|
headerParameters: [
|
9040
9451
|
version,
|
@@ -9051,7 +9462,7 @@ const uploadRangeFromURLOperationSpec = {
|
|
9051
9462
|
copySourceAuthorization
|
9052
9463
|
],
|
9053
9464
|
isXML: true,
|
9054
|
-
serializer: xmlSerializer
|
9465
|
+
serializer: xmlSerializer
|
9055
9466
|
};
|
9056
9467
|
const getRangeListOperationSpec = {
|
9057
9468
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -9069,7 +9480,7 @@ const getRangeListOperationSpec = {
|
|
9069
9480
|
queryParameters: [
|
9070
9481
|
timeoutInSeconds,
|
9071
9482
|
shareSnapshot,
|
9072
|
-
|
9483
|
+
comp13,
|
9073
9484
|
prevsharesnapshot
|
9074
9485
|
],
|
9075
9486
|
urlParameters: [url],
|
@@ -9080,7 +9491,7 @@ const getRangeListOperationSpec = {
|
|
9080
9491
|
range
|
9081
9492
|
],
|
9082
9493
|
isXML: true,
|
9083
|
-
serializer: xmlSerializer
|
9494
|
+
serializer: xmlSerializer
|
9084
9495
|
};
|
9085
9496
|
const startCopyOperationSpec = {
|
9086
9497
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -9103,16 +9514,16 @@ const startCopyOperationSpec = {
|
|
9103
9514
|
leaseId,
|
9104
9515
|
filePermission,
|
9105
9516
|
filePermissionKey1,
|
9106
|
-
copySource,
|
9107
|
-
filePermissionCopyMode,
|
9108
|
-
ignoreReadOnly,
|
9109
9517
|
fileAttributes1,
|
9110
9518
|
fileCreationTime,
|
9111
9519
|
fileLastWriteTime,
|
9520
|
+
copySource,
|
9521
|
+
filePermissionCopyMode,
|
9522
|
+
ignoreReadOnly1,
|
9112
9523
|
setArchiveAttribute
|
9113
9524
|
],
|
9114
9525
|
isXML: true,
|
9115
|
-
serializer: xmlSerializer
|
9526
|
+
serializer: xmlSerializer
|
9116
9527
|
};
|
9117
9528
|
const abortCopyOperationSpec = {
|
9118
9529
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -9128,7 +9539,7 @@ const abortCopyOperationSpec = {
|
|
9128
9539
|
},
|
9129
9540
|
queryParameters: [
|
9130
9541
|
timeoutInSeconds,
|
9131
|
-
|
9542
|
+
comp14,
|
9132
9543
|
copyId
|
9133
9544
|
],
|
9134
9545
|
urlParameters: [url],
|
@@ -9139,9 +9550,9 @@ const abortCopyOperationSpec = {
|
|
9139
9550
|
copyActionAbortConstant
|
9140
9551
|
],
|
9141
9552
|
isXML: true,
|
9142
|
-
serializer: xmlSerializer
|
9553
|
+
serializer: xmlSerializer
|
9143
9554
|
};
|
9144
|
-
const listHandlesOperationSpec
|
9555
|
+
const listHandlesOperationSpec = {
|
9145
9556
|
path: "/{shareName}/{directory}/{fileName}",
|
9146
9557
|
httpMethod: "GET",
|
9147
9558
|
responses: {
|
@@ -9164,9 +9575,9 @@ const listHandlesOperationSpec$1 = {
|
|
9164
9575
|
urlParameters: [url],
|
9165
9576
|
headerParameters: [version, accept1],
|
9166
9577
|
isXML: true,
|
9167
|
-
serializer: xmlSerializer
|
9578
|
+
serializer: xmlSerializer
|
9168
9579
|
};
|
9169
|
-
const forceCloseHandlesOperationSpec
|
9580
|
+
const forceCloseHandlesOperationSpec = {
|
9170
9581
|
path: "/{shareName}/{directory}/{fileName}",
|
9171
9582
|
httpMethod: "PUT",
|
9172
9583
|
responses: {
|
@@ -9191,7 +9602,39 @@ const forceCloseHandlesOperationSpec$1 = {
|
|
9191
9602
|
handleId
|
9192
9603
|
],
|
9193
9604
|
isXML: true,
|
9194
|
-
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
|
9195
9638
|
};
|
9196
9639
|
|
9197
9640
|
// Copyright (c) Microsoft Corporation.
|
@@ -9229,9 +9672,16 @@ class StorageBrowserPolicy extends coreHttp.BaseRequestPolicy {
|
|
9229
9672
|
* @param request -
|
9230
9673
|
*/
|
9231
9674
|
async sendRequest(request) {
|
9232
|
-
{
|
9675
|
+
if (coreHttp.isNode) {
|
9233
9676
|
return this._nextPolicy.sendRequest(request);
|
9234
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);
|
9235
9685
|
}
|
9236
9686
|
}
|
9237
9687
|
|
@@ -9252,6 +9702,10 @@ class StorageBrowserPolicyFactory {
|
|
9252
9702
|
}
|
9253
9703
|
|
9254
9704
|
// Copyright (c) Microsoft Corporation.
|
9705
|
+
/**
|
9706
|
+
* RetryPolicy types.
|
9707
|
+
*/
|
9708
|
+
exports.StorageRetryPolicyType = void 0;
|
9255
9709
|
(function (StorageRetryPolicyType) {
|
9256
9710
|
/**
|
9257
9711
|
* Exponential retry. Retry time delay grows exponentially.
|
@@ -9268,7 +9722,7 @@ const DEFAULT_RETRY_OPTIONS = {
|
|
9268
9722
|
maxTries: 4,
|
9269
9723
|
retryDelayInMs: 4 * 1000,
|
9270
9724
|
retryPolicyType: exports.StorageRetryPolicyType.EXPONENTIAL,
|
9271
|
-
tryTimeoutInMs: undefined // Use server side default timeout strategy
|
9725
|
+
tryTimeoutInMs: undefined, // Use server side default timeout strategy
|
9272
9726
|
};
|
9273
9727
|
const RETRY_ABORT_ERROR = new abortController.AbortError("The operation was aborted.");
|
9274
9728
|
/**
|
@@ -9302,7 +9756,7 @@ class StorageRetryPolicy extends coreHttp.BaseRequestPolicy {
|
|
9302
9756
|
: DEFAULT_RETRY_OPTIONS.retryDelayInMs,
|
9303
9757
|
maxRetryDelayInMs: retryOptions.maxRetryDelayInMs && retryOptions.maxRetryDelayInMs >= 0
|
9304
9758
|
? retryOptions.maxRetryDelayInMs
|
9305
|
-
: DEFAULT_RETRY_OPTIONS.maxRetryDelayInMs
|
9759
|
+
: DEFAULT_RETRY_OPTIONS.maxRetryDelayInMs,
|
9306
9760
|
};
|
9307
9761
|
}
|
9308
9762
|
/**
|
@@ -9374,7 +9828,7 @@ class StorageRetryPolicy extends coreHttp.BaseRequestPolicy {
|
|
9374
9828
|
"ENOTFOUND",
|
9375
9829
|
"TIMEOUT",
|
9376
9830
|
"EPIPE",
|
9377
|
-
"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
|
9378
9832
|
];
|
9379
9833
|
if (err) {
|
9380
9834
|
for (const retriableError of retriableErrors) {
|
@@ -9477,7 +9931,7 @@ class TelemetryPolicy extends coreHttp.BaseRequestPolicy {
|
|
9477
9931
|
* @param request -
|
9478
9932
|
*/
|
9479
9933
|
async sendRequest(request) {
|
9480
|
-
{
|
9934
|
+
if (coreHttp.isNode) {
|
9481
9935
|
if (!request.headers) {
|
9482
9936
|
request.headers = new coreHttp.HttpHeaders();
|
9483
9937
|
}
|
@@ -9500,7 +9954,7 @@ class TelemetryPolicyFactory {
|
|
9500
9954
|
*/
|
9501
9955
|
constructor(telemetry) {
|
9502
9956
|
const userAgentInfo = [];
|
9503
|
-
{
|
9957
|
+
if (coreHttp.isNode) {
|
9504
9958
|
if (telemetry) {
|
9505
9959
|
const telemetryString = telemetry.userAgentPrefix || "";
|
9506
9960
|
if (telemetryString.length > 0 && userAgentInfo.indexOf(telemetryString) === -1) {
|
@@ -9513,7 +9967,7 @@ class TelemetryPolicyFactory {
|
|
9513
9967
|
userAgentInfo.push(libInfo);
|
9514
9968
|
}
|
9515
9969
|
// e.g. (NODE-VERSION 4.9.1; Windows_NT 10.0.16299)
|
9516
|
-
const runtimeInfo = `(NODE-VERSION ${process.version}; ${
|
9970
|
+
const runtimeInfo = `(NODE-VERSION ${process.version}; ${os__namespace.type()} ${os__namespace.release()})`;
|
9517
9971
|
if (userAgentInfo.indexOf(runtimeInfo) === -1) {
|
9518
9972
|
userAgentInfo.push(runtimeInfo);
|
9519
9973
|
}
|
@@ -9650,7 +10104,7 @@ class Pipeline {
|
|
9650
10104
|
toServiceClientOptions() {
|
9651
10105
|
return {
|
9652
10106
|
httpClient: this.options.httpClient,
|
9653
|
-
requestPolicyFactories: this.factories
|
10107
|
+
requestPolicyFactories: this.factories,
|
9654
10108
|
};
|
9655
10109
|
}
|
9656
10110
|
}
|
@@ -9680,10 +10134,10 @@ function newPipeline(credential, pipelineOptions = {}) {
|
|
9680
10134
|
coreHttp.logPolicy({
|
9681
10135
|
logger: logger.info,
|
9682
10136
|
allowedHeaderNames: StorageFileLoggingAllowedHeaderNames,
|
9683
|
-
allowedQueryParameters: StorageFileLoggingAllowedQueryParameters
|
9684
|
-
})
|
10137
|
+
allowedQueryParameters: StorageFileLoggingAllowedQueryParameters,
|
10138
|
+
}),
|
9685
10139
|
];
|
9686
|
-
{
|
10140
|
+
if (coreHttp.isNode) {
|
9687
10141
|
// policies only available in Node.js runtime, not in browsers
|
9688
10142
|
factories.push(coreHttp.proxyPolicy(pipelineOptions.proxyOptions));
|
9689
10143
|
factories.push(coreHttp.disableResponseDecompressionPolicy());
|
@@ -9714,7 +10168,9 @@ class StorageSharedKeyCredentialPolicy extends CredentialPolicy {
|
|
9714
10168
|
*/
|
9715
10169
|
signRequest(request) {
|
9716
10170
|
request.headers.set(HeaderConstants.X_MS_DATE, new Date().toUTCString());
|
9717
|
-
if (request.body &&
|
10171
|
+
if (request.body &&
|
10172
|
+
(typeof request.body === "string" || request.body !== undefined) &&
|
10173
|
+
request.body.length > 0) {
|
9718
10174
|
request.headers.set(HeaderConstants.CONTENT_LENGTH, Buffer.byteLength(request.body));
|
9719
10175
|
}
|
9720
10176
|
const stringToSign = [
|
@@ -9729,7 +10185,7 @@ class StorageSharedKeyCredentialPolicy extends CredentialPolicy {
|
|
9729
10185
|
this.getHeaderValueToSign(request, HeaderConstants.IF_MATCH),
|
9730
10186
|
this.getHeaderValueToSign(request, HeaderConstants.IF_NONE_MATCH),
|
9731
10187
|
this.getHeaderValueToSign(request, HeaderConstants.IF_UNMODIFIED_SINCE),
|
9732
|
-
this.getHeaderValueToSign(request, HeaderConstants.RANGE)
|
10188
|
+
this.getHeaderValueToSign(request, HeaderConstants.RANGE),
|
9733
10189
|
].join("\n") +
|
9734
10190
|
"\n" +
|
9735
10191
|
this.getCanonicalizedHeadersString(request) +
|
@@ -9858,9 +10314,7 @@ class StorageSharedKeyCredential extends Credential {
|
|
9858
10314
|
* @param stringToSign -
|
9859
10315
|
*/
|
9860
10316
|
computeHMACSHA256(stringToSign) {
|
9861
|
-
return crypto.createHmac("sha256", this.accountKey)
|
9862
|
-
.update(stringToSign, "utf8")
|
9863
|
-
.digest("base64");
|
10317
|
+
return crypto.createHmac("sha256", this.accountKey).update(stringToSign, "utf8").digest("base64");
|
9864
10318
|
}
|
9865
10319
|
}
|
9866
10320
|
|
@@ -9871,7 +10325,7 @@ class StorageSharedKeyCredential extends Credential {
|
|
9871
10325
|
*/
|
9872
10326
|
const createSpan = coreTracing.createSpanFunction({
|
9873
10327
|
packagePrefix: "Azure.Storage.File",
|
9874
|
-
namespace: "Microsoft.Storage"
|
10328
|
+
namespace: "Microsoft.Storage",
|
9875
10329
|
});
|
9876
10330
|
/**
|
9877
10331
|
* @internal
|
@@ -9885,7 +10339,7 @@ function convertTracingToRequestOptionsBase(options) {
|
|
9885
10339
|
return {
|
9886
10340
|
// By passing spanOptions if they exist at runtime, we're backwards compatible with @azure/core-tracing@preview.13 and earlier.
|
9887
10341
|
spanOptions: (_a = options === null || options === void 0 ? void 0 : options.tracingOptions) === null || _a === void 0 ? void 0 : _a.spanOptions,
|
9888
|
-
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,
|
9889
10343
|
};
|
9890
10344
|
}
|
9891
10345
|
|
@@ -9897,8 +10351,8 @@ function convertTracingToRequestOptionsBase(options) {
|
|
9897
10351
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
9898
10352
|
*/
|
9899
10353
|
const packageName = "azure-storage-file-share";
|
9900
|
-
const packageVersion = "12.9.0
|
9901
|
-
class StorageClientContext extends
|
10354
|
+
const packageVersion = "12.9.0";
|
10355
|
+
class StorageClientContext extends coreHttp__namespace.ServiceClient {
|
9902
10356
|
/**
|
9903
10357
|
* Initializes a new instance of the StorageClientContext class.
|
9904
10358
|
* @param url The URL of the service account, share, directory or file that is the target of the
|
@@ -9914,7 +10368,7 @@ class StorageClientContext extends coreHttp.ServiceClient {
|
|
9914
10368
|
options = {};
|
9915
10369
|
}
|
9916
10370
|
if (!options.userAgent) {
|
9917
|
-
const defaultUserAgent =
|
10371
|
+
const defaultUserAgent = coreHttp__namespace.getDefaultUserAgentValue();
|
9918
10372
|
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
|
9919
10373
|
}
|
9920
10374
|
super(undefined, options);
|
@@ -9923,7 +10377,7 @@ class StorageClientContext extends coreHttp.ServiceClient {
|
|
9923
10377
|
// Parameter assignments
|
9924
10378
|
this.url = url;
|
9925
10379
|
// Assigning values to Constant parameters
|
9926
|
-
this.version = options.version || "2021-
|
10380
|
+
this.version = options.version || "2021-04-10";
|
9927
10381
|
this.fileRangeWriteFromUrl = options.fileRangeWriteFromUrl || "update";
|
9928
10382
|
}
|
9929
10383
|
}
|
@@ -10202,8 +10656,7 @@ class RetriableReadableStream extends stream.Readable {
|
|
10202
10656
|
});
|
10203
10657
|
}
|
10204
10658
|
else {
|
10205
|
-
this.emit("error", new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this
|
10206
|
-
.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}`));
|
10207
10660
|
}
|
10208
10661
|
}
|
10209
10662
|
else {
|
@@ -11119,7 +11572,7 @@ async function streamToBuffer(stream, buffer, offset, end, encoding) {
|
|
11119
11572
|
*/
|
11120
11573
|
async function readStreamToLocalFile(rs, file) {
|
11121
11574
|
return new Promise((resolve, reject) => {
|
11122
|
-
const ws =
|
11575
|
+
const ws = fs__namespace.createWriteStream(file);
|
11123
11576
|
rs.on("error", (err) => {
|
11124
11577
|
reject(err);
|
11125
11578
|
});
|
@@ -11135,8 +11588,8 @@ async function readStreamToLocalFile(rs, file) {
|
|
11135
11588
|
*
|
11136
11589
|
* Promisified version of fs.stat().
|
11137
11590
|
*/
|
11138
|
-
const fsStat =
|
11139
|
-
const fsCreateReadStream =
|
11591
|
+
const fsStat = util__namespace.promisify(fs__namespace.stat);
|
11592
|
+
const fsCreateReadStream = fs__namespace.createReadStream;
|
11140
11593
|
|
11141
11594
|
// Copyright (c) Microsoft Corporation.
|
11142
11595
|
/**
|
@@ -11172,11 +11625,14 @@ class ShareClient extends StorageClient {
|
|
11172
11625
|
const extractedCreds = extractConnectionStringParts(urlOrConnectionString);
|
11173
11626
|
const name = credentialOrPipelineOrShareName;
|
11174
11627
|
if (extractedCreds.kind === "AccountConnString") {
|
11175
|
-
{
|
11628
|
+
if (coreHttp.isNode) {
|
11176
11629
|
const sharedKeyCredential = new StorageSharedKeyCredential(extractedCreds.accountName, extractedCreds.accountKey);
|
11177
11630
|
url = appendToURLPath(extractedCreds.url, name);
|
11178
11631
|
pipeline = newPipeline(sharedKeyCredential, options);
|
11179
11632
|
}
|
11633
|
+
else {
|
11634
|
+
throw new Error("Account connection string is only supported in Node.js environment");
|
11635
|
+
}
|
11180
11636
|
}
|
11181
11637
|
else if (extractedCreds.kind === "SASConnString") {
|
11182
11638
|
url = appendToURLPath(extractedCreds.url, name) + "?" + extractedCreds.accountSas;
|
@@ -11225,7 +11681,7 @@ class ShareClient extends StorageClient {
|
|
11225
11681
|
catch (e) {
|
11226
11682
|
span.setStatus({
|
11227
11683
|
code: coreTracing.SpanStatusCode.ERROR,
|
11228
|
-
message: e.message
|
11684
|
+
message: e.message,
|
11229
11685
|
});
|
11230
11686
|
throw e;
|
11231
11687
|
}
|
@@ -11251,13 +11707,13 @@ class ShareClient extends StorageClient {
|
|
11251
11707
|
if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === "ShareAlreadyExists") {
|
11252
11708
|
span.setStatus({
|
11253
11709
|
code: coreTracing.SpanStatusCode.ERROR,
|
11254
|
-
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.",
|
11255
11711
|
});
|
11256
11712
|
return Object.assign(Object.assign({ succeeded: false }, (_b = e.response) === null || _b === void 0 ? void 0 : _b.parsedHeaders), { _response: e.response });
|
11257
11713
|
}
|
11258
11714
|
span.setStatus({
|
11259
11715
|
code: coreTracing.SpanStatusCode.ERROR,
|
11260
|
-
message: e.message
|
11716
|
+
message: e.message,
|
11261
11717
|
});
|
11262
11718
|
throw e;
|
11263
11719
|
}
|
@@ -11302,13 +11758,13 @@ class ShareClient extends StorageClient {
|
|
11302
11758
|
const directoryCreateResponse = await directoryClient.create(updatedOptions);
|
11303
11759
|
return {
|
11304
11760
|
directoryClient,
|
11305
|
-
directoryCreateResponse
|
11761
|
+
directoryCreateResponse,
|
11306
11762
|
};
|
11307
11763
|
}
|
11308
11764
|
catch (e) {
|
11309
11765
|
span.setStatus({
|
11310
11766
|
code: coreTracing.SpanStatusCode.ERROR,
|
11311
|
-
message: e.message
|
11767
|
+
message: e.message,
|
11312
11768
|
});
|
11313
11769
|
throw e;
|
11314
11770
|
}
|
@@ -11334,7 +11790,7 @@ class ShareClient extends StorageClient {
|
|
11334
11790
|
catch (e) {
|
11335
11791
|
span.setStatus({
|
11336
11792
|
code: coreTracing.SpanStatusCode.ERROR,
|
11337
|
-
message: e.message
|
11793
|
+
message: e.message,
|
11338
11794
|
});
|
11339
11795
|
throw e;
|
11340
11796
|
}
|
@@ -11360,13 +11816,13 @@ class ShareClient extends StorageClient {
|
|
11360
11816
|
const fileCreateResponse = await fileClient.create(size, updatedOptions);
|
11361
11817
|
return {
|
11362
11818
|
fileClient,
|
11363
|
-
fileCreateResponse
|
11819
|
+
fileCreateResponse,
|
11364
11820
|
};
|
11365
11821
|
}
|
11366
11822
|
catch (e) {
|
11367
11823
|
span.setStatus({
|
11368
11824
|
code: coreTracing.SpanStatusCode.ERROR,
|
11369
|
-
message: e.message
|
11825
|
+
message: e.message,
|
11370
11826
|
});
|
11371
11827
|
throw e;
|
11372
11828
|
}
|
@@ -11404,7 +11860,7 @@ class ShareClient extends StorageClient {
|
|
11404
11860
|
catch (e) {
|
11405
11861
|
span.setStatus({
|
11406
11862
|
code: coreTracing.SpanStatusCode.ERROR,
|
11407
|
-
message: e.message
|
11863
|
+
message: e.message,
|
11408
11864
|
});
|
11409
11865
|
throw e;
|
11410
11866
|
}
|
@@ -11431,13 +11887,13 @@ class ShareClient extends StorageClient {
|
|
11431
11887
|
if (e.statusCode === 404) {
|
11432
11888
|
span.setStatus({
|
11433
11889
|
code: coreTracing.SpanStatusCode.ERROR,
|
11434
|
-
message: "Expected exception when checking share existence"
|
11890
|
+
message: "Expected exception when checking share existence",
|
11435
11891
|
});
|
11436
11892
|
return false;
|
11437
11893
|
}
|
11438
11894
|
span.setStatus({
|
11439
11895
|
code: coreTracing.SpanStatusCode.ERROR,
|
11440
|
-
message: e.message
|
11896
|
+
message: e.message,
|
11441
11897
|
});
|
11442
11898
|
throw e;
|
11443
11899
|
}
|
@@ -11469,7 +11925,7 @@ class ShareClient extends StorageClient {
|
|
11469
11925
|
catch (e) {
|
11470
11926
|
span.setStatus({
|
11471
11927
|
code: coreTracing.SpanStatusCode.ERROR,
|
11472
|
-
message: e.message
|
11928
|
+
message: e.message,
|
11473
11929
|
});
|
11474
11930
|
throw e;
|
11475
11931
|
}
|
@@ -11493,7 +11949,7 @@ class ShareClient extends StorageClient {
|
|
11493
11949
|
catch (e) {
|
11494
11950
|
span.setStatus({
|
11495
11951
|
code: coreTracing.SpanStatusCode.ERROR,
|
11496
|
-
message: e.message
|
11952
|
+
message: e.message,
|
11497
11953
|
});
|
11498
11954
|
throw e;
|
11499
11955
|
}
|
@@ -11519,13 +11975,13 @@ class ShareClient extends StorageClient {
|
|
11519
11975
|
if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === "ShareNotFound") {
|
11520
11976
|
span.setStatus({
|
11521
11977
|
code: coreTracing.SpanStatusCode.ERROR,
|
11522
|
-
message: "Expected exception when deleting a share only if it exists."
|
11978
|
+
message: "Expected exception when deleting a share only if it exists.",
|
11523
11979
|
});
|
11524
11980
|
return Object.assign(Object.assign({ succeeded: false }, (_b = e.response) === null || _b === void 0 ? void 0 : _b.parsedHeaders), { _response: e.response });
|
11525
11981
|
}
|
11526
11982
|
span.setStatus({
|
11527
11983
|
code: coreTracing.SpanStatusCode.ERROR,
|
11528
|
-
message: e.message
|
11984
|
+
message: e.message,
|
11529
11985
|
});
|
11530
11986
|
throw e;
|
11531
11987
|
}
|
@@ -11552,7 +12008,7 @@ class ShareClient extends StorageClient {
|
|
11552
12008
|
catch (e) {
|
11553
12009
|
span.setStatus({
|
11554
12010
|
code: coreTracing.SpanStatusCode.ERROR,
|
11555
|
-
message: e.message
|
12011
|
+
message: e.message,
|
11556
12012
|
});
|
11557
12013
|
throw e;
|
11558
12014
|
}
|
@@ -11583,13 +12039,13 @@ class ShareClient extends StorageClient {
|
|
11583
12039
|
lastModified: response.lastModified,
|
11584
12040
|
requestId: response.requestId,
|
11585
12041
|
signedIdentifiers: [],
|
11586
|
-
version: response.version
|
12042
|
+
version: response.version,
|
11587
12043
|
};
|
11588
12044
|
for (const identifier of response) {
|
11589
12045
|
let accessPolicy = undefined;
|
11590
12046
|
if (identifier.accessPolicy) {
|
11591
12047
|
accessPolicy = {
|
11592
|
-
permissions: identifier.accessPolicy.permissions
|
12048
|
+
permissions: identifier.accessPolicy.permissions,
|
11593
12049
|
};
|
11594
12050
|
if (identifier.accessPolicy.expiresOn) {
|
11595
12051
|
accessPolicy.expiresOn = new Date(identifier.accessPolicy.expiresOn);
|
@@ -11600,7 +12056,7 @@ class ShareClient extends StorageClient {
|
|
11600
12056
|
}
|
11601
12057
|
res.signedIdentifiers.push({
|
11602
12058
|
accessPolicy,
|
11603
|
-
id: identifier.id
|
12059
|
+
id: identifier.id,
|
11604
12060
|
});
|
11605
12061
|
}
|
11606
12062
|
return res;
|
@@ -11608,7 +12064,7 @@ class ShareClient extends StorageClient {
|
|
11608
12064
|
catch (e) {
|
11609
12065
|
span.setStatus({
|
11610
12066
|
code: coreTracing.SpanStatusCode.ERROR,
|
11611
|
-
message: e.message
|
12067
|
+
message: e.message,
|
11612
12068
|
});
|
11613
12069
|
throw e;
|
11614
12070
|
}
|
@@ -11647,9 +12103,9 @@ class ShareClient extends StorageClient {
|
|
11647
12103
|
permissions: (_b = identifier.accessPolicy) === null || _b === void 0 ? void 0 : _b.permissions,
|
11648
12104
|
startsOn: ((_c = identifier.accessPolicy) === null || _c === void 0 ? void 0 : _c.startsOn)
|
11649
12105
|
? truncatedISO8061Date(identifier.accessPolicy.startsOn)
|
11650
|
-
: undefined
|
12106
|
+
: undefined,
|
11651
12107
|
},
|
11652
|
-
id: identifier.id
|
12108
|
+
id: identifier.id,
|
11653
12109
|
});
|
11654
12110
|
}
|
11655
12111
|
return await this.context.setAccessPolicy(Object.assign(Object.assign(Object.assign({}, options), { shareAcl: acl }), convertTracingToRequestOptionsBase(updatedOptions)));
|
@@ -11657,7 +12113,7 @@ class ShareClient extends StorageClient {
|
|
11657
12113
|
catch (e) {
|
11658
12114
|
span.setStatus({
|
11659
12115
|
code: coreTracing.SpanStatusCode.ERROR,
|
11660
|
-
message: e.message
|
12116
|
+
message: e.message,
|
11661
12117
|
});
|
11662
12118
|
throw e;
|
11663
12119
|
}
|
@@ -11679,7 +12135,7 @@ class ShareClient extends StorageClient {
|
|
11679
12135
|
catch (e) {
|
11680
12136
|
span.setStatus({
|
11681
12137
|
code: coreTracing.SpanStatusCode.ERROR,
|
11682
|
-
message: e.message
|
12138
|
+
message: e.message,
|
11683
12139
|
});
|
11684
12140
|
throw e;
|
11685
12141
|
}
|
@@ -11704,7 +12160,7 @@ class ShareClient extends StorageClient {
|
|
11704
12160
|
catch (e) {
|
11705
12161
|
span.setStatus({
|
11706
12162
|
code: coreTracing.SpanStatusCode.ERROR,
|
11707
|
-
message: e.message
|
12163
|
+
message: e.message,
|
11708
12164
|
});
|
11709
12165
|
throw e;
|
11710
12166
|
}
|
@@ -11726,7 +12182,7 @@ class ShareClient extends StorageClient {
|
|
11726
12182
|
catch (e) {
|
11727
12183
|
span.setStatus({
|
11728
12184
|
code: coreTracing.SpanStatusCode.ERROR,
|
11729
|
-
message: e.message
|
12185
|
+
message: e.message,
|
11730
12186
|
});
|
11731
12187
|
throw e;
|
11732
12188
|
}
|
@@ -11750,7 +12206,7 @@ class ShareClient extends StorageClient {
|
|
11750
12206
|
catch (e) {
|
11751
12207
|
span.setStatus({
|
11752
12208
|
code: coreTracing.SpanStatusCode.ERROR,
|
11753
|
-
message: e.message
|
12209
|
+
message: e.message,
|
11754
12210
|
});
|
11755
12211
|
throw e;
|
11756
12212
|
}
|
@@ -11770,13 +12226,13 @@ class ShareClient extends StorageClient {
|
|
11770
12226
|
const { span, updatedOptions } = createSpan("ShareClient-createPermission", options);
|
11771
12227
|
try {
|
11772
12228
|
return await this.context.createPermission({
|
11773
|
-
permission: filePermission
|
12229
|
+
permission: filePermission,
|
11774
12230
|
}, Object.assign({ abortSignal: options.abortSignal }, convertTracingToRequestOptionsBase(updatedOptions)));
|
11775
12231
|
}
|
11776
12232
|
catch (e) {
|
11777
12233
|
span.setStatus({
|
11778
12234
|
code: coreTracing.SpanStatusCode.ERROR,
|
11779
|
-
message: e.message
|
12235
|
+
message: e.message,
|
11780
12236
|
});
|
11781
12237
|
throw e;
|
11782
12238
|
}
|
@@ -11800,7 +12256,7 @@ class ShareClient extends StorageClient {
|
|
11800
12256
|
catch (e) {
|
11801
12257
|
span.setStatus({
|
11802
12258
|
code: coreTracing.SpanStatusCode.ERROR,
|
11803
|
-
message: e.message
|
12259
|
+
message: e.message,
|
11804
12260
|
});
|
11805
12261
|
throw e;
|
11806
12262
|
}
|
@@ -11847,7 +12303,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
11847
12303
|
({
|
11848
12304
|
baseName: this._name,
|
11849
12305
|
shareName: this._shareName,
|
11850
|
-
path: this._path
|
12306
|
+
path: this._path,
|
11851
12307
|
} = getShareNameAndPathFromUrl(this.url));
|
11852
12308
|
this.context = new Directory(this.storageClientContext);
|
11853
12309
|
}
|
@@ -11891,7 +12347,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
11891
12347
|
catch (e) {
|
11892
12348
|
span.setStatus({
|
11893
12349
|
code: coreTracing.SpanStatusCode.ERROR,
|
11894
|
-
message: e.message
|
12350
|
+
message: e.message,
|
11895
12351
|
});
|
11896
12352
|
throw e;
|
11897
12353
|
}
|
@@ -11917,13 +12373,13 @@ class ShareDirectoryClient extends StorageClient {
|
|
11917
12373
|
if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === "ResourceAlreadyExists") {
|
11918
12374
|
span.setStatus({
|
11919
12375
|
code: coreTracing.SpanStatusCode.ERROR,
|
11920
|
-
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.",
|
11921
12377
|
});
|
11922
12378
|
return Object.assign(Object.assign({ succeeded: false }, (_b = e.response) === null || _b === void 0 ? void 0 : _b.parsedHeaders), { _response: e.response });
|
11923
12379
|
}
|
11924
12380
|
span.setStatus({
|
11925
12381
|
code: coreTracing.SpanStatusCode.ERROR,
|
11926
|
-
message: e.message
|
12382
|
+
message: e.message,
|
11927
12383
|
});
|
11928
12384
|
throw e;
|
11929
12385
|
}
|
@@ -11947,7 +12403,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
11947
12403
|
catch (e) {
|
11948
12404
|
span.setStatus({
|
11949
12405
|
code: coreTracing.SpanStatusCode.ERROR,
|
11950
|
-
message: e.message
|
12406
|
+
message: e.message,
|
11951
12407
|
});
|
11952
12408
|
throw e;
|
11953
12409
|
}
|
@@ -11987,13 +12443,13 @@ class ShareDirectoryClient extends StorageClient {
|
|
11987
12443
|
const directoryCreateResponse = await directoryClient.create(updatedOptions);
|
11988
12444
|
return {
|
11989
12445
|
directoryClient,
|
11990
|
-
directoryCreateResponse
|
12446
|
+
directoryCreateResponse,
|
11991
12447
|
};
|
11992
12448
|
}
|
11993
12449
|
catch (e) {
|
11994
12450
|
span.setStatus({
|
11995
12451
|
code: coreTracing.SpanStatusCode.ERROR,
|
11996
|
-
message: e.message
|
12452
|
+
message: e.message,
|
11997
12453
|
});
|
11998
12454
|
throw e;
|
11999
12455
|
}
|
@@ -12019,7 +12475,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
12019
12475
|
catch (e) {
|
12020
12476
|
span.setStatus({
|
12021
12477
|
code: coreTracing.SpanStatusCode.ERROR,
|
12022
|
-
message: e.message
|
12478
|
+
message: e.message,
|
12023
12479
|
});
|
12024
12480
|
throw e;
|
12025
12481
|
}
|
@@ -12043,13 +12499,13 @@ class ShareDirectoryClient extends StorageClient {
|
|
12043
12499
|
const fileCreateResponse = await fileClient.create(size, updatedOptions);
|
12044
12500
|
return {
|
12045
12501
|
fileClient,
|
12046
|
-
fileCreateResponse
|
12502
|
+
fileCreateResponse,
|
12047
12503
|
};
|
12048
12504
|
}
|
12049
12505
|
catch (e) {
|
12050
12506
|
span.setStatus({
|
12051
12507
|
code: coreTracing.SpanStatusCode.ERROR,
|
12052
|
-
message: e.message
|
12508
|
+
message: e.message,
|
12053
12509
|
});
|
12054
12510
|
throw e;
|
12055
12511
|
}
|
@@ -12084,7 +12540,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
12084
12540
|
catch (e) {
|
12085
12541
|
span.setStatus({
|
12086
12542
|
code: coreTracing.SpanStatusCode.ERROR,
|
12087
|
-
message: e.message
|
12543
|
+
message: e.message,
|
12088
12544
|
});
|
12089
12545
|
throw e;
|
12090
12546
|
}
|
@@ -12131,7 +12587,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
12131
12587
|
try {
|
12132
12588
|
await this.getProperties({
|
12133
12589
|
abortSignal: options.abortSignal,
|
12134
|
-
tracingOptions: Object.assign(Object.assign({}, options.tracingOptions), convertTracingToRequestOptionsBase(updatedOptions))
|
12590
|
+
tracingOptions: Object.assign(Object.assign({}, options.tracingOptions), convertTracingToRequestOptionsBase(updatedOptions)),
|
12135
12591
|
});
|
12136
12592
|
return true;
|
12137
12593
|
}
|
@@ -12139,13 +12595,13 @@ class ShareDirectoryClient extends StorageClient {
|
|
12139
12595
|
if (e.statusCode === 404) {
|
12140
12596
|
span.setStatus({
|
12141
12597
|
code: coreTracing.SpanStatusCode.ERROR,
|
12142
|
-
message: "Expected exception when checking directory existence"
|
12598
|
+
message: "Expected exception when checking directory existence",
|
12143
12599
|
});
|
12144
12600
|
return false;
|
12145
12601
|
}
|
12146
12602
|
span.setStatus({
|
12147
12603
|
code: coreTracing.SpanStatusCode.ERROR,
|
12148
|
-
message: e.message
|
12604
|
+
message: e.message,
|
12149
12605
|
});
|
12150
12606
|
throw e;
|
12151
12607
|
}
|
@@ -12170,7 +12626,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
12170
12626
|
catch (e) {
|
12171
12627
|
span.setStatus({
|
12172
12628
|
code: coreTracing.SpanStatusCode.ERROR,
|
12173
|
-
message: e.message
|
12629
|
+
message: e.message,
|
12174
12630
|
});
|
12175
12631
|
throw e;
|
12176
12632
|
}
|
@@ -12194,7 +12650,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
12194
12650
|
catch (e) {
|
12195
12651
|
span.setStatus({
|
12196
12652
|
code: coreTracing.SpanStatusCode.ERROR,
|
12197
|
-
message: e.message
|
12653
|
+
message: e.message,
|
12198
12654
|
});
|
12199
12655
|
throw e;
|
12200
12656
|
}
|
@@ -12221,13 +12677,13 @@ class ShareDirectoryClient extends StorageClient {
|
|
12221
12677
|
((_b = e.details) === null || _b === void 0 ? void 0 : _b.errorCode) === "ParentNotFound") {
|
12222
12678
|
span.setStatus({
|
12223
12679
|
code: coreTracing.SpanStatusCode.ERROR,
|
12224
|
-
message: "Expected exception when deleting a directory only if it exists."
|
12680
|
+
message: "Expected exception when deleting a directory only if it exists.",
|
12225
12681
|
});
|
12226
12682
|
return Object.assign(Object.assign({ succeeded: false }, (_c = e.response) === null || _c === void 0 ? void 0 : _c.parsedHeaders), { _response: e.response });
|
12227
12683
|
}
|
12228
12684
|
span.setStatus({
|
12229
12685
|
code: coreTracing.SpanStatusCode.ERROR,
|
12230
|
-
message: e.message
|
12686
|
+
message: e.message,
|
12231
12687
|
});
|
12232
12688
|
throw e;
|
12233
12689
|
}
|
@@ -12251,7 +12707,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
12251
12707
|
catch (e) {
|
12252
12708
|
span.setStatus({
|
12253
12709
|
code: coreTracing.SpanStatusCode.ERROR,
|
12254
|
-
message: e.message
|
12710
|
+
message: e.message,
|
12255
12711
|
});
|
12256
12712
|
throw e;
|
12257
12713
|
}
|
@@ -12444,7 +12900,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
12444
12900
|
*/
|
12445
12901
|
byPage: (settings = {}) => {
|
12446
12902
|
return this.iterateFilesAndDirectoriesSegments(settings.continuationToken, Object.assign({ maxResults: settings.maxPageSize }, updatedOptions));
|
12447
|
-
}
|
12903
|
+
},
|
12448
12904
|
};
|
12449
12905
|
}
|
12450
12906
|
/**
|
@@ -12467,7 +12923,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
12467
12923
|
catch (e) {
|
12468
12924
|
span.setStatus({
|
12469
12925
|
code: coreTracing.SpanStatusCode.ERROR,
|
12470
|
-
message: e.message
|
12926
|
+
message: e.message,
|
12471
12927
|
});
|
12472
12928
|
throw e;
|
12473
12929
|
}
|
@@ -12622,7 +13078,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
12622
13078
|
*/
|
12623
13079
|
byPage: (settings = {}) => {
|
12624
13080
|
return this.iterateHandleSegments(settings.continuationToken, Object.assign({ maxResults: settings.maxPageSize }, options));
|
12625
|
-
}
|
13081
|
+
},
|
12626
13082
|
};
|
12627
13083
|
}
|
12628
13084
|
/**
|
@@ -12651,7 +13107,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
12651
13107
|
catch (e) {
|
12652
13108
|
span.setStatus({
|
12653
13109
|
code: coreTracing.SpanStatusCode.ERROR,
|
12654
|
-
message: e.message
|
13110
|
+
message: e.message,
|
12655
13111
|
});
|
12656
13112
|
throw e;
|
12657
13113
|
}
|
@@ -12683,7 +13139,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
12683
13139
|
catch (e) {
|
12684
13140
|
span.setStatus({
|
12685
13141
|
code: coreTracing.SpanStatusCode.ERROR,
|
12686
|
-
message: e.message
|
13142
|
+
message: e.message,
|
12687
13143
|
});
|
12688
13144
|
throw e;
|
12689
13145
|
}
|
@@ -12718,7 +13174,7 @@ class ShareDirectoryClient extends StorageClient {
|
|
12718
13174
|
catch (e) {
|
12719
13175
|
span.setStatus({
|
12720
13176
|
code: coreTracing.SpanStatusCode.ERROR,
|
12721
|
-
message: e.message
|
13177
|
+
message: e.message,
|
12722
13178
|
});
|
12723
13179
|
throw e;
|
12724
13180
|
}
|
@@ -12751,7 +13207,69 @@ class ShareDirectoryClient extends StorageClient {
|
|
12751
13207
|
catch (e) {
|
12752
13208
|
span.setStatus({
|
12753
13209
|
code: coreTracing.SpanStatusCode.ERROR,
|
12754
|
-
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,
|
12755
13273
|
});
|
12756
13274
|
throw e;
|
12757
13275
|
}
|
@@ -12783,7 +13301,7 @@ class ShareFileClient extends StorageClient {
|
|
12783
13301
|
({
|
12784
13302
|
baseName: this._name,
|
12785
13303
|
shareName: this._shareName,
|
12786
|
-
path: this._path
|
13304
|
+
path: this._path,
|
12787
13305
|
} = getShareNameAndPathFromUrl(this.url));
|
12788
13306
|
this.context = new File(this.storageClientContext);
|
12789
13307
|
}
|
@@ -12856,7 +13374,7 @@ class ShareFileClient extends StorageClient {
|
|
12856
13374
|
catch (e) {
|
12857
13375
|
span.setStatus({
|
12858
13376
|
code: coreTracing.SpanStatusCode.ERROR,
|
12859
|
-
message: e.message
|
13377
|
+
message: e.message,
|
12860
13378
|
});
|
12861
13379
|
throw e;
|
12862
13380
|
}
|
@@ -12933,7 +13451,7 @@ class ShareFileClient extends StorageClient {
|
|
12933
13451
|
}
|
12934
13452
|
const downloadFullFile = offset === 0 && !count;
|
12935
13453
|
const res = await this.context.download(Object.assign({ abortSignal: options.abortSignal, requestOptions: {
|
12936
|
-
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
|
12937
13455
|
}, range: downloadFullFile ? undefined : rangeToString({ offset, count }), rangeGetContentMD5: options.rangeGetContentMD5, leaseAccessConditions: options.leaseAccessConditions }, convertTracingToRequestOptionsBase(updatedOptions)));
|
12938
13456
|
// Return browser response immediately
|
12939
13457
|
if (!coreHttp.isNode) {
|
@@ -12955,8 +13473,8 @@ class ShareFileClient extends StorageClient {
|
|
12955
13473
|
const updatedDownloadOptions = {
|
12956
13474
|
range: rangeToString({
|
12957
13475
|
count: offset + res.contentLength - start,
|
12958
|
-
offset: start
|
12959
|
-
})
|
13476
|
+
offset: start,
|
13477
|
+
}),
|
12960
13478
|
};
|
12961
13479
|
// Debug purpose only
|
12962
13480
|
// console.log(
|
@@ -12972,13 +13490,13 @@ class ShareFileClient extends StorageClient {
|
|
12972
13490
|
}, offset, res.contentLength, {
|
12973
13491
|
abortSignal: options.abortSignal,
|
12974
13492
|
maxRetryRequests: options.maxRetryRequests,
|
12975
|
-
onProgress: options.onProgress
|
13493
|
+
onProgress: options.onProgress,
|
12976
13494
|
});
|
12977
13495
|
}
|
12978
13496
|
catch (e) {
|
12979
13497
|
span.setStatus({
|
12980
13498
|
code: coreTracing.SpanStatusCode.ERROR,
|
12981
|
-
message: e.message
|
13499
|
+
message: e.message,
|
12982
13500
|
});
|
12983
13501
|
throw e;
|
12984
13502
|
}
|
@@ -13000,7 +13518,7 @@ class ShareFileClient extends StorageClient {
|
|
13000
13518
|
try {
|
13001
13519
|
await this.getProperties({
|
13002
13520
|
abortSignal: options.abortSignal,
|
13003
|
-
tracingOptions: Object.assign(Object.assign({}, options.tracingOptions), convertTracingToRequestOptionsBase(updatedOptions))
|
13521
|
+
tracingOptions: Object.assign(Object.assign({}, options.tracingOptions), convertTracingToRequestOptionsBase(updatedOptions)),
|
13004
13522
|
});
|
13005
13523
|
return true;
|
13006
13524
|
}
|
@@ -13008,13 +13526,13 @@ class ShareFileClient extends StorageClient {
|
|
13008
13526
|
if (e.statusCode === 404) {
|
13009
13527
|
span.setStatus({
|
13010
13528
|
code: coreTracing.SpanStatusCode.ERROR,
|
13011
|
-
message: "Expected exception when checking file existence"
|
13529
|
+
message: "Expected exception when checking file existence",
|
13012
13530
|
});
|
13013
13531
|
return false;
|
13014
13532
|
}
|
13015
13533
|
span.setStatus({
|
13016
13534
|
code: coreTracing.SpanStatusCode.ERROR,
|
13017
|
-
message: e.message
|
13535
|
+
message: e.message,
|
13018
13536
|
});
|
13019
13537
|
throw e;
|
13020
13538
|
}
|
@@ -13038,7 +13556,7 @@ class ShareFileClient extends StorageClient {
|
|
13038
13556
|
catch (e) {
|
13039
13557
|
span.setStatus({
|
13040
13558
|
code: coreTracing.SpanStatusCode.ERROR,
|
13041
|
-
message: e.message
|
13559
|
+
message: e.message,
|
13042
13560
|
});
|
13043
13561
|
throw e;
|
13044
13562
|
}
|
@@ -13065,7 +13583,7 @@ class ShareFileClient extends StorageClient {
|
|
13065
13583
|
catch (e) {
|
13066
13584
|
span.setStatus({
|
13067
13585
|
code: coreTracing.SpanStatusCode.ERROR,
|
13068
|
-
message: e.message
|
13586
|
+
message: e.message,
|
13069
13587
|
});
|
13070
13588
|
throw e;
|
13071
13589
|
}
|
@@ -13098,7 +13616,7 @@ class ShareFileClient extends StorageClient {
|
|
13098
13616
|
catch (e) {
|
13099
13617
|
span.setStatus({
|
13100
13618
|
code: coreTracing.SpanStatusCode.ERROR,
|
13101
|
-
message: e.message
|
13619
|
+
message: e.message,
|
13102
13620
|
});
|
13103
13621
|
throw e;
|
13104
13622
|
}
|
@@ -13134,13 +13652,13 @@ class ShareFileClient extends StorageClient {
|
|
13134
13652
|
((_b = e.details) === null || _b === void 0 ? void 0 : _b.errorCode) === "ParentNotFound") {
|
13135
13653
|
span.setStatus({
|
13136
13654
|
code: coreTracing.SpanStatusCode.ERROR,
|
13137
|
-
message: "Expected exception when deleting a file only if it exists."
|
13655
|
+
message: "Expected exception when deleting a file only if it exists.",
|
13138
13656
|
});
|
13139
13657
|
return Object.assign(Object.assign({ succeeded: false }, (_c = e.response) === null || _c === void 0 ? void 0 : _c.parsedHeaders), { _response: e.response });
|
13140
13658
|
}
|
13141
13659
|
span.setStatus({
|
13142
13660
|
code: coreTracing.SpanStatusCode.ERROR,
|
13143
|
-
message: e.message
|
13661
|
+
message: e.message,
|
13144
13662
|
});
|
13145
13663
|
throw e;
|
13146
13664
|
}
|
@@ -13170,7 +13688,7 @@ class ShareFileClient extends StorageClient {
|
|
13170
13688
|
catch (e) {
|
13171
13689
|
span.setStatus({
|
13172
13690
|
code: coreTracing.SpanStatusCode.ERROR,
|
13173
|
-
message: e.message
|
13691
|
+
message: e.message,
|
13174
13692
|
});
|
13175
13693
|
throw e;
|
13176
13694
|
}
|
@@ -13202,7 +13720,7 @@ class ShareFileClient extends StorageClient {
|
|
13202
13720
|
catch (e) {
|
13203
13721
|
span.setStatus({
|
13204
13722
|
code: coreTracing.SpanStatusCode.ERROR,
|
13205
|
-
message: e.message
|
13723
|
+
message: e.message,
|
13206
13724
|
});
|
13207
13725
|
throw e;
|
13208
13726
|
}
|
@@ -13229,7 +13747,7 @@ class ShareFileClient extends StorageClient {
|
|
13229
13747
|
catch (e) {
|
13230
13748
|
span.setStatus({
|
13231
13749
|
code: coreTracing.SpanStatusCode.ERROR,
|
13232
|
-
message: e.message
|
13750
|
+
message: e.message,
|
13233
13751
|
});
|
13234
13752
|
throw e;
|
13235
13753
|
}
|
@@ -13277,13 +13795,13 @@ class ShareFileClient extends StorageClient {
|
|
13277
13795
|
throw new RangeError(`offset must be < ${FILE_RANGE_MAX_SIZE_BYTES} bytes`);
|
13278
13796
|
}
|
13279
13797
|
return await this.context.uploadRange(rangeToString({ count: contentLength, offset }), "update", contentLength, Object.assign(Object.assign({ abortSignal: options.abortSignal, contentMD5: options.contentMD5, requestOptions: {
|
13280
|
-
onUploadProgress: options.onProgress
|
13798
|
+
onUploadProgress: options.onProgress,
|
13281
13799
|
}, body: body }, convertTracingToRequestOptionsBase(updatedOptions)), { leaseAccessConditions: options.leaseAccessConditions }));
|
13282
13800
|
}
|
13283
13801
|
catch (e) {
|
13284
13802
|
span.setStatus({
|
13285
13803
|
code: coreTracing.SpanStatusCode.ERROR,
|
13286
|
-
message: e.message
|
13804
|
+
message: e.message,
|
13287
13805
|
});
|
13288
13806
|
throw e;
|
13289
13807
|
}
|
@@ -13315,7 +13833,7 @@ class ShareFileClient extends StorageClient {
|
|
13315
13833
|
catch (e) {
|
13316
13834
|
span.setStatus({
|
13317
13835
|
code: coreTracing.SpanStatusCode.ERROR,
|
13318
|
-
message: e.message
|
13836
|
+
message: e.message,
|
13319
13837
|
});
|
13320
13838
|
throw e;
|
13321
13839
|
}
|
@@ -13342,7 +13860,7 @@ class ShareFileClient extends StorageClient {
|
|
13342
13860
|
catch (e) {
|
13343
13861
|
span.setStatus({
|
13344
13862
|
code: coreTracing.SpanStatusCode.ERROR,
|
13345
|
-
message: e.message
|
13863
|
+
message: e.message,
|
13346
13864
|
});
|
13347
13865
|
throw e;
|
13348
13866
|
}
|
@@ -13368,7 +13886,7 @@ class ShareFileClient extends StorageClient {
|
|
13368
13886
|
catch (e) {
|
13369
13887
|
span.setStatus({
|
13370
13888
|
code: coreTracing.SpanStatusCode.ERROR,
|
13371
|
-
message: e.message
|
13889
|
+
message: e.message,
|
13372
13890
|
});
|
13373
13891
|
throw e;
|
13374
13892
|
}
|
@@ -13390,7 +13908,7 @@ class ShareFileClient extends StorageClient {
|
|
13390
13908
|
catch (e) {
|
13391
13909
|
span.setStatus({
|
13392
13910
|
code: coreTracing.SpanStatusCode.ERROR,
|
13393
|
-
message: e.message
|
13911
|
+
message: e.message,
|
13394
13912
|
});
|
13395
13913
|
throw e;
|
13396
13914
|
}
|
@@ -13418,7 +13936,7 @@ class ShareFileClient extends StorageClient {
|
|
13418
13936
|
catch (e) {
|
13419
13937
|
span.setStatus({
|
13420
13938
|
code: coreTracing.SpanStatusCode.ERROR,
|
13421
|
-
message: e.message
|
13939
|
+
message: e.message,
|
13422
13940
|
});
|
13423
13941
|
throw e;
|
13424
13942
|
}
|
@@ -13442,7 +13960,7 @@ class ShareFileClient extends StorageClient {
|
|
13442
13960
|
catch (e) {
|
13443
13961
|
span.setStatus({
|
13444
13962
|
code: coreTracing.SpanStatusCode.ERROR,
|
13445
|
-
message: e.message
|
13963
|
+
message: e.message,
|
13446
13964
|
});
|
13447
13965
|
throw e;
|
13448
13966
|
}
|
@@ -13460,7 +13978,7 @@ class ShareFileClient extends StorageClient {
|
|
13460
13978
|
async uploadData(data, options = {}) {
|
13461
13979
|
const { span, updatedOptions } = createSpan("ShareFileClient-uploadData", options);
|
13462
13980
|
try {
|
13463
|
-
if (
|
13981
|
+
if (coreHttp.isNode) {
|
13464
13982
|
let buffer;
|
13465
13983
|
if (data instanceof Buffer) {
|
13466
13984
|
buffer = data;
|
@@ -13482,7 +14000,7 @@ class ShareFileClient extends StorageClient {
|
|
13482
14000
|
catch (e) {
|
13483
14001
|
span.setStatus({
|
13484
14002
|
code: coreTracing.SpanStatusCode.ERROR,
|
13485
|
-
message: e.message
|
14003
|
+
message: e.message,
|
13486
14004
|
});
|
13487
14005
|
throw e;
|
13488
14006
|
}
|
@@ -13508,7 +14026,7 @@ class ShareFileClient extends StorageClient {
|
|
13508
14026
|
catch (e) {
|
13509
14027
|
span.setStatus({
|
13510
14028
|
code: coreTracing.SpanStatusCode.ERROR,
|
13511
|
-
message: e.message
|
14029
|
+
message: e.message,
|
13512
14030
|
});
|
13513
14031
|
throw e;
|
13514
14032
|
}
|
@@ -13533,14 +14051,14 @@ class ShareFileClient extends StorageClient {
|
|
13533
14051
|
return () => fsCreateReadStream(filePath, {
|
13534
14052
|
autoClose: true,
|
13535
14053
|
end: count ? offset + count - 1 : Infinity,
|
13536
|
-
start: offset
|
14054
|
+
start: offset,
|
13537
14055
|
});
|
13538
14056
|
}, size, updatedOptions);
|
13539
14057
|
}
|
13540
14058
|
catch (e) {
|
13541
14059
|
span.setStatus({
|
13542
14060
|
code: coreTracing.SpanStatusCode.ERROR,
|
13543
|
-
message: e.message
|
14061
|
+
message: e.message,
|
13544
14062
|
});
|
13545
14063
|
throw e;
|
13546
14064
|
}
|
@@ -13571,7 +14089,7 @@ class ShareFileClient extends StorageClient {
|
|
13571
14089
|
catch (e) {
|
13572
14090
|
span.setStatus({
|
13573
14091
|
code: coreTracing.SpanStatusCode.ERROR,
|
13574
|
-
message: e.message
|
14092
|
+
message: e.message,
|
13575
14093
|
});
|
13576
14094
|
throw e;
|
13577
14095
|
}
|
@@ -13610,7 +14128,7 @@ class ShareFileClient extends StorageClient {
|
|
13610
14128
|
fileHttpHeaders: options.fileHttpHeaders,
|
13611
14129
|
metadata: options.metadata,
|
13612
14130
|
leaseAccessConditions: options.leaseAccessConditions,
|
13613
|
-
tracingOptions: updatedOptions.tracingOptions
|
14131
|
+
tracingOptions: updatedOptions.tracingOptions,
|
13614
14132
|
});
|
13615
14133
|
const numBlocks = Math.floor((size - 1) / options.rangeSize) + 1;
|
13616
14134
|
let transferProgress = 0;
|
@@ -13623,7 +14141,7 @@ class ShareFileClient extends StorageClient {
|
|
13623
14141
|
await this.uploadRange(bodyFactory(start, contentLength), start, contentLength, {
|
13624
14142
|
abortSignal: options.abortSignal,
|
13625
14143
|
leaseAccessConditions: options.leaseAccessConditions,
|
13626
|
-
tracingOptions: updatedOptions.tracingOptions
|
14144
|
+
tracingOptions: updatedOptions.tracingOptions,
|
13627
14145
|
});
|
13628
14146
|
// Update progress after block is successfully uploaded to server, in case of block trying
|
13629
14147
|
transferProgress += contentLength;
|
@@ -13637,7 +14155,7 @@ class ShareFileClient extends StorageClient {
|
|
13637
14155
|
catch (e) {
|
13638
14156
|
span.setStatus({
|
13639
14157
|
code: coreTracing.SpanStatusCode.ERROR,
|
13640
|
-
message: e.message
|
14158
|
+
message: e.message,
|
13641
14159
|
});
|
13642
14160
|
throw e;
|
13643
14161
|
}
|
@@ -13685,7 +14203,7 @@ class ShareFileClient extends StorageClient {
|
|
13685
14203
|
const response = await this.getProperties({
|
13686
14204
|
abortSignal: options.abortSignal,
|
13687
14205
|
leaseAccessConditions: options.leaseAccessConditions,
|
13688
|
-
tracingOptions: updatedOptions.tracingOptions
|
14206
|
+
tracingOptions: updatedOptions.tracingOptions,
|
13689
14207
|
});
|
13690
14208
|
count = response.contentLength - offset;
|
13691
14209
|
if (count < 0) {
|
@@ -13718,7 +14236,7 @@ class ShareFileClient extends StorageClient {
|
|
13718
14236
|
abortSignal: options.abortSignal,
|
13719
14237
|
maxRetryRequests: options.maxRetryRequestsPerRange,
|
13720
14238
|
leaseAccessConditions: options.leaseAccessConditions,
|
13721
|
-
tracingOptions: updatedOptions.tracingOptions
|
14239
|
+
tracingOptions: updatedOptions.tracingOptions,
|
13722
14240
|
});
|
13723
14241
|
const stream = response.readableStreamBody;
|
13724
14242
|
await streamToBuffer(stream, buffer, off - offset, chunkEnd - offset);
|
@@ -13737,7 +14255,7 @@ class ShareFileClient extends StorageClient {
|
|
13737
14255
|
catch (e) {
|
13738
14256
|
span.setStatus({
|
13739
14257
|
code: coreTracing.SpanStatusCode.ERROR,
|
13740
|
-
message: e.message
|
14258
|
+
message: e.message,
|
13741
14259
|
});
|
13742
14260
|
throw e;
|
13743
14261
|
}
|
@@ -13784,7 +14302,7 @@ class ShareFileClient extends StorageClient {
|
|
13784
14302
|
fileHttpHeaders: options.fileHttpHeaders,
|
13785
14303
|
metadata: options.metadata,
|
13786
14304
|
leaseAccessConditions: options.leaseAccessConditions,
|
13787
|
-
tracingOptions: updatedOptions.tracingOptions
|
14305
|
+
tracingOptions: updatedOptions.tracingOptions,
|
13788
14306
|
});
|
13789
14307
|
let transferProgress = 0;
|
13790
14308
|
const scheduler = new BufferScheduler(stream, bufferSize, maxBuffers, async (buffer, offset) => {
|
@@ -13795,7 +14313,7 @@ class ShareFileClient extends StorageClient {
|
|
13795
14313
|
await this.uploadRange(buffer, offset, buffer.length, {
|
13796
14314
|
abortSignal: options.abortSignal,
|
13797
14315
|
leaseAccessConditions: options.leaseAccessConditions,
|
13798
|
-
tracingOptions: updatedOptions.tracingOptions
|
14316
|
+
tracingOptions: updatedOptions.tracingOptions,
|
13799
14317
|
});
|
13800
14318
|
// Update progress after block is successfully uploaded to server, in case of block trying
|
13801
14319
|
transferProgress += buffer.length;
|
@@ -13813,7 +14331,7 @@ class ShareFileClient extends StorageClient {
|
|
13813
14331
|
catch (e) {
|
13814
14332
|
span.setStatus({
|
13815
14333
|
code: coreTracing.SpanStatusCode.ERROR,
|
13816
|
-
message: e.message
|
14334
|
+
message: e.message,
|
13817
14335
|
});
|
13818
14336
|
throw e;
|
13819
14337
|
}
|
@@ -13851,7 +14369,7 @@ class ShareFileClient extends StorageClient {
|
|
13851
14369
|
catch (e) {
|
13852
14370
|
span.setStatus({
|
13853
14371
|
code: coreTracing.SpanStatusCode.ERROR,
|
13854
|
-
message: e.message
|
14372
|
+
message: e.message,
|
13855
14373
|
});
|
13856
14374
|
throw e;
|
13857
14375
|
}
|
@@ -13885,7 +14403,7 @@ class ShareFileClient extends StorageClient {
|
|
13885
14403
|
catch (e) {
|
13886
14404
|
span.setStatus({
|
13887
14405
|
code: coreTracing.SpanStatusCode.ERROR,
|
13888
|
-
message: e.message
|
14406
|
+
message: e.message,
|
13889
14407
|
});
|
13890
14408
|
throw e;
|
13891
14409
|
}
|
@@ -13974,7 +14492,7 @@ class ShareFileClient extends StorageClient {
|
|
13974
14492
|
*/
|
13975
14493
|
byPage: (settings = {}) => {
|
13976
14494
|
return this.iterateHandleSegments(settings.continuationToken, Object.assign({ maxPageSize: settings.maxPageSize }, options));
|
13977
|
-
}
|
14495
|
+
},
|
13978
14496
|
};
|
13979
14497
|
}
|
13980
14498
|
/**
|
@@ -14001,7 +14519,7 @@ class ShareFileClient extends StorageClient {
|
|
14001
14519
|
catch (e) {
|
14002
14520
|
span.setStatus({
|
14003
14521
|
code: coreTracing.SpanStatusCode.ERROR,
|
14004
|
-
message: e.message
|
14522
|
+
message: e.message,
|
14005
14523
|
});
|
14006
14524
|
throw e;
|
14007
14525
|
}
|
@@ -14033,13 +14551,13 @@ class ShareFileClient extends StorageClient {
|
|
14033
14551
|
} while (marker);
|
14034
14552
|
return {
|
14035
14553
|
closedHandlesCount: handlesClosed,
|
14036
|
-
closeFailureCount: numberOfHandlesFailedToClose
|
14554
|
+
closeFailureCount: numberOfHandlesFailedToClose,
|
14037
14555
|
};
|
14038
14556
|
}
|
14039
14557
|
catch (e) {
|
14040
14558
|
span.setStatus({
|
14041
14559
|
code: coreTracing.SpanStatusCode.ERROR,
|
14042
|
-
message: e.message
|
14560
|
+
message: e.message,
|
14043
14561
|
});
|
14044
14562
|
throw e;
|
14045
14563
|
}
|
@@ -14070,7 +14588,7 @@ class ShareFileClient extends StorageClient {
|
|
14070
14588
|
catch (e) {
|
14071
14589
|
span.setStatus({
|
14072
14590
|
code: coreTracing.SpanStatusCode.ERROR,
|
14073
|
-
message: e.message
|
14591
|
+
message: e.message,
|
14074
14592
|
});
|
14075
14593
|
throw e;
|
14076
14594
|
}
|
@@ -14105,6 +14623,68 @@ class ShareFileClient extends StorageClient {
|
|
14105
14623
|
const sas = generateFileSASQueryParameters(Object.assign({ shareName: this.shareName, filePath: this.path }, options), this.credential).toString();
|
14106
14624
|
return appendToURLQuery(this.url, sas);
|
14107
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
|
+
}
|
14108
14688
|
}
|
14109
14689
|
/**
|
14110
14690
|
* A client that manages leases for a {@link ShareFileClient} or {@link ShareClient}.
|
@@ -14165,7 +14745,7 @@ class ShareLeaseClient {
|
|
14165
14745
|
catch (e) {
|
14166
14746
|
span.setStatus({
|
14167
14747
|
code: coreTracing.SpanStatusCode.ERROR,
|
14168
|
-
message: e.message
|
14748
|
+
message: e.message,
|
14169
14749
|
});
|
14170
14750
|
throw e;
|
14171
14751
|
}
|
@@ -14190,7 +14770,7 @@ class ShareLeaseClient {
|
|
14190
14770
|
catch (e) {
|
14191
14771
|
span.setStatus({
|
14192
14772
|
code: coreTracing.SpanStatusCode.ERROR,
|
14193
|
-
message: e.message
|
14773
|
+
message: e.message,
|
14194
14774
|
});
|
14195
14775
|
throw e;
|
14196
14776
|
}
|
@@ -14213,7 +14793,7 @@ class ShareLeaseClient {
|
|
14213
14793
|
catch (e) {
|
14214
14794
|
span.setStatus({
|
14215
14795
|
code: coreTracing.SpanStatusCode.ERROR,
|
14216
|
-
message: e.message
|
14796
|
+
message: e.message,
|
14217
14797
|
});
|
14218
14798
|
throw e;
|
14219
14799
|
}
|
@@ -14235,7 +14815,7 @@ class ShareLeaseClient {
|
|
14235
14815
|
catch (e) {
|
14236
14816
|
span.setStatus({
|
14237
14817
|
code: coreTracing.SpanStatusCode.ERROR,
|
14238
|
-
message: e.message
|
14818
|
+
message: e.message,
|
14239
14819
|
});
|
14240
14820
|
throw e;
|
14241
14821
|
}
|
@@ -14262,7 +14842,7 @@ class ShareLeaseClient {
|
|
14262
14842
|
catch (e) {
|
14263
14843
|
span.setStatus({
|
14264
14844
|
code: coreTracing.SpanStatusCode.ERROR,
|
14265
|
-
message: e.message
|
14845
|
+
message: e.message,
|
14266
14846
|
});
|
14267
14847
|
throw e;
|
14268
14848
|
}
|
@@ -14329,11 +14909,14 @@ class ShareServiceClient extends StorageClient {
|
|
14329
14909
|
options) {
|
14330
14910
|
const extractedCreds = extractConnectionStringParts(connectionString);
|
14331
14911
|
if (extractedCreds.kind === "AccountConnString") {
|
14332
|
-
{
|
14912
|
+
if (coreHttp.isNode) {
|
14333
14913
|
const sharedKeyCredential = new StorageSharedKeyCredential(extractedCreds.accountName, extractedCreds.accountKey);
|
14334
14914
|
const pipeline = newPipeline(sharedKeyCredential, options);
|
14335
14915
|
return new ShareServiceClient(extractedCreds.url, pipeline);
|
14336
14916
|
}
|
14917
|
+
else {
|
14918
|
+
throw new Error("Account connection string is only supported in Node.js environment");
|
14919
|
+
}
|
14337
14920
|
}
|
14338
14921
|
else if (extractedCreds.kind === "SASConnString") {
|
14339
14922
|
const pipeline = newPipeline(new AnonymousCredential(), options);
|
@@ -14374,13 +14957,13 @@ class ShareServiceClient extends StorageClient {
|
|
14374
14957
|
const shareCreateResponse = await shareClient.create(updatedOptions);
|
14375
14958
|
return {
|
14376
14959
|
shareCreateResponse,
|
14377
|
-
shareClient
|
14960
|
+
shareClient,
|
14378
14961
|
};
|
14379
14962
|
}
|
14380
14963
|
catch (e) {
|
14381
14964
|
span.setStatus({
|
14382
14965
|
code: coreTracing.SpanStatusCode.ERROR,
|
14383
|
-
message: e.message
|
14966
|
+
message: e.message,
|
14384
14967
|
});
|
14385
14968
|
throw e;
|
14386
14969
|
}
|
@@ -14404,7 +14987,7 @@ class ShareServiceClient extends StorageClient {
|
|
14404
14987
|
catch (e) {
|
14405
14988
|
span.setStatus({
|
14406
14989
|
code: coreTracing.SpanStatusCode.ERROR,
|
14407
|
-
message: e.message
|
14990
|
+
message: e.message,
|
14408
14991
|
});
|
14409
14992
|
throw e;
|
14410
14993
|
}
|
@@ -14428,7 +15011,7 @@ class ShareServiceClient extends StorageClient {
|
|
14428
15011
|
catch (e) {
|
14429
15012
|
span.setStatus({
|
14430
15013
|
code: coreTracing.SpanStatusCode.ERROR,
|
14431
|
-
message: e.message
|
15014
|
+
message: e.message,
|
14432
15015
|
});
|
14433
15016
|
throw e;
|
14434
15017
|
}
|
@@ -14453,7 +15036,7 @@ class ShareServiceClient extends StorageClient {
|
|
14453
15036
|
catch (e) {
|
14454
15037
|
span.setStatus({
|
14455
15038
|
code: coreTracing.SpanStatusCode.ERROR,
|
14456
|
-
message: e.message
|
15039
|
+
message: e.message,
|
14457
15040
|
});
|
14458
15041
|
throw e;
|
14459
15042
|
}
|
@@ -14624,7 +15207,7 @@ class ShareServiceClient extends StorageClient {
|
|
14624
15207
|
*/
|
14625
15208
|
byPage: (settings = {}) => {
|
14626
15209
|
return this.listSegments(settings.continuationToken, Object.assign({ maxResults: settings.maxPageSize }, updatedOptions));
|
14627
|
-
}
|
15210
|
+
},
|
14628
15211
|
};
|
14629
15212
|
}
|
14630
15213
|
/**
|
@@ -14659,7 +15242,7 @@ class ShareServiceClient extends StorageClient {
|
|
14659
15242
|
catch (e) {
|
14660
15243
|
span.setStatus({
|
14661
15244
|
code: coreTracing.SpanStatusCode.ERROR,
|
14662
|
-
message: e.message
|
15245
|
+
message: e.message,
|
14663
15246
|
});
|
14664
15247
|
throw e;
|
14665
15248
|
}
|
@@ -14687,7 +15270,7 @@ class ShareServiceClient extends StorageClient {
|
|
14687
15270
|
catch (e) {
|
14688
15271
|
span.setStatus({
|
14689
15272
|
code: coreTracing.SpanStatusCode.ERROR,
|
14690
|
-
message: e.message
|
15273
|
+
message: e.message,
|
14691
15274
|
});
|
14692
15275
|
throw e;
|
14693
15276
|
}
|
@@ -14726,39 +15309,27 @@ class ShareServiceClient extends StorageClient {
|
|
14726
15309
|
|
14727
15310
|
Object.defineProperty(exports, 'BaseRequestPolicy', {
|
14728
15311
|
enumerable: true,
|
14729
|
-
get: function () {
|
14730
|
-
return coreHttp.BaseRequestPolicy;
|
14731
|
-
}
|
15312
|
+
get: function () { return coreHttp.BaseRequestPolicy; }
|
14732
15313
|
});
|
14733
15314
|
Object.defineProperty(exports, 'HttpHeaders', {
|
14734
15315
|
enumerable: true,
|
14735
|
-
get: function () {
|
14736
|
-
return coreHttp.HttpHeaders;
|
14737
|
-
}
|
15316
|
+
get: function () { return coreHttp.HttpHeaders; }
|
14738
15317
|
});
|
14739
15318
|
Object.defineProperty(exports, 'RequestPolicyOptions', {
|
14740
15319
|
enumerable: true,
|
14741
|
-
get: function () {
|
14742
|
-
return coreHttp.RequestPolicyOptions;
|
14743
|
-
}
|
15320
|
+
get: function () { return coreHttp.RequestPolicyOptions; }
|
14744
15321
|
});
|
14745
15322
|
Object.defineProperty(exports, 'RestError', {
|
14746
15323
|
enumerable: true,
|
14747
|
-
get: function () {
|
14748
|
-
return coreHttp.RestError;
|
14749
|
-
}
|
15324
|
+
get: function () { return coreHttp.RestError; }
|
14750
15325
|
});
|
14751
15326
|
Object.defineProperty(exports, 'WebResource', {
|
14752
15327
|
enumerable: true,
|
14753
|
-
get: function () {
|
14754
|
-
return coreHttp.WebResource;
|
14755
|
-
}
|
15328
|
+
get: function () { return coreHttp.WebResource; }
|
14756
15329
|
});
|
14757
15330
|
Object.defineProperty(exports, 'deserializationPolicy', {
|
14758
15331
|
enumerable: true,
|
14759
|
-
get: function () {
|
14760
|
-
return coreHttp.deserializationPolicy;
|
14761
|
-
}
|
15332
|
+
get: function () { return coreHttp.deserializationPolicy; }
|
14762
15333
|
});
|
14763
15334
|
exports.AccountSASPermissions = AccountSASPermissions;
|
14764
15335
|
exports.AccountSASResourceTypes = AccountSASResourceTypes;
|