@azure/storage-file-share 12.9.0-beta.2 → 12.9.0-beta.3
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 +11 -4
 - package/README.md +6 -5
 - package/dist/index.js +942 -373
 - 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 +101 -35
 - package/dist-esm/src/generated/src/models/parameters.js.map +1 -1
 - package/dist-esm/src/generated/src/operations/directory.js +48 -0
 - package/dist-esm/src/generated/src/operations/directory.js.map +1 -1
 - package/dist-esm/src/generated/src/operations/file.js +51 -7
 - package/dist-esm/src/generated/src/operations/file.js.map +1 -1
 - package/dist-esm/src/generated/src/storageClientContext.js +2 -2
 - package/dist-esm/src/generated/src/storageClientContext.js.map +1 -1
 - package/dist-esm/src/generatedModels.js.map +1 -1
 - package/dist-esm/src/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 +1 -1
 - 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-beta. 
     | 
| 
       315 
     | 
    
         
            -
            const SERVICE_VERSION = "2021- 
     | 
| 
      
 337 
     | 
    
         
            +
            const SDK_VERSION = "12.9.0-beta.3";
         
     | 
| 
      
 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,7 +7604,7 @@ const filePermissionCopyMode = { 
     | 
|
| 
       7223 
7604 
     | 
    
         
             
                    }
         
     | 
| 
       7224 
7605 
     | 
    
         
             
                }
         
     | 
| 
       7225 
7606 
     | 
    
         
             
            };
         
     | 
| 
       7226 
     | 
    
         
            -
            const  
     | 
| 
      
 7607 
     | 
    
         
            +
            const ignoreReadOnly1 = {
         
     | 
| 
       7227 
7608 
     | 
    
         
             
                parameterPath: ["options", "copyFileSmbInfo", "ignoreReadOnly"],
         
     | 
| 
       7228 
7609 
     | 
    
         
             
                mapper: {
         
     | 
| 
       7229 
7610 
     | 
    
         
             
                    serializedName: "x-ms-file-copy-ignore-read-only",
         
     | 
| 
         @@ -7233,36 +7614,6 @@ const ignoreReadOnly = { 
     | 
|
| 
       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());
         
     | 
| 
         @@ -9729,7 +10183,7 @@ class StorageSharedKeyCredentialPolicy extends CredentialPolicy { 
     | 
|
| 
       9729 
10183 
     | 
    
         
             
                        this.getHeaderValueToSign(request, HeaderConstants.IF_MATCH),
         
     | 
| 
       9730 
10184 
     | 
    
         
             
                        this.getHeaderValueToSign(request, HeaderConstants.IF_NONE_MATCH),
         
     | 
| 
       9731 
10185 
     | 
    
         
             
                        this.getHeaderValueToSign(request, HeaderConstants.IF_UNMODIFIED_SINCE),
         
     | 
| 
       9732 
     | 
    
         
            -
                        this.getHeaderValueToSign(request, HeaderConstants.RANGE)
         
     | 
| 
      
 10186 
     | 
    
         
            +
                        this.getHeaderValueToSign(request, HeaderConstants.RANGE),
         
     | 
| 
       9733 
10187 
     | 
    
         
             
                    ].join("\n") +
         
     | 
| 
       9734 
10188 
     | 
    
         
             
                        "\n" +
         
     | 
| 
       9735 
10189 
     | 
    
         
             
                        this.getCanonicalizedHeadersString(request) +
         
     | 
| 
         @@ -9858,9 +10312,7 @@ class StorageSharedKeyCredential extends Credential { 
     | 
|
| 
       9858 
10312 
     | 
    
         
             
                 * @param stringToSign -
         
     | 
| 
       9859 
10313 
     | 
    
         
             
                 */
         
     | 
| 
       9860 
10314 
     | 
    
         
             
                computeHMACSHA256(stringToSign) {
         
     | 
| 
       9861 
     | 
    
         
            -
                    return crypto.createHmac("sha256", this.accountKey)
         
     | 
| 
       9862 
     | 
    
         
            -
                        .update(stringToSign, "utf8")
         
     | 
| 
       9863 
     | 
    
         
            -
                        .digest("base64");
         
     | 
| 
      
 10315 
     | 
    
         
            +
                    return crypto.createHmac("sha256", this.accountKey).update(stringToSign, "utf8").digest("base64");
         
     | 
| 
       9864 
10316 
     | 
    
         
             
                }
         
     | 
| 
       9865 
10317 
     | 
    
         
             
            }
         
     | 
| 
       9866 
10318 
     | 
    
         | 
| 
         @@ -9871,7 +10323,7 @@ class StorageSharedKeyCredential extends Credential { 
     | 
|
| 
       9871 
10323 
     | 
    
         
             
             */
         
     | 
| 
       9872 
10324 
     | 
    
         
             
            const createSpan = coreTracing.createSpanFunction({
         
     | 
| 
       9873 
10325 
     | 
    
         
             
                packagePrefix: "Azure.Storage.File",
         
     | 
| 
       9874 
     | 
    
         
            -
                namespace: "Microsoft.Storage"
         
     | 
| 
      
 10326 
     | 
    
         
            +
                namespace: "Microsoft.Storage",
         
     | 
| 
       9875 
10327 
     | 
    
         
             
            });
         
     | 
| 
       9876 
10328 
     | 
    
         
             
            /**
         
     | 
| 
       9877 
10329 
     | 
    
         
             
             * @internal
         
     | 
| 
         @@ -9885,7 +10337,7 @@ function convertTracingToRequestOptionsBase(options) { 
     | 
|
| 
       9885 
10337 
     | 
    
         
             
                return {
         
     | 
| 
       9886 
10338 
     | 
    
         
             
                    // By passing spanOptions if they exist at runtime, we're backwards compatible with @azure/core-tracing@preview.13 and earlier.
         
     | 
| 
       9887 
10339 
     | 
    
         
             
                    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
         
     | 
| 
      
 10340 
     | 
    
         
            +
                    tracingContext: (_b = options === null || options === void 0 ? void 0 : options.tracingOptions) === null || _b === void 0 ? void 0 : _b.tracingContext,
         
     | 
| 
       9889 
10341 
     | 
    
         
             
                };
         
     | 
| 
       9890 
10342 
     | 
    
         
             
            }
         
     | 
| 
       9891 
10343 
     | 
    
         | 
| 
         @@ -9897,8 +10349,8 @@ function convertTracingToRequestOptionsBase(options) { 
     | 
|
| 
       9897 
10349 
     | 
    
         
             
             * Changes may cause incorrect behavior and will be lost if the code is regenerated.
         
     | 
| 
       9898 
10350 
     | 
    
         
             
             */
         
     | 
| 
       9899 
10351 
     | 
    
         
             
            const packageName = "azure-storage-file-share";
         
     | 
| 
       9900 
     | 
    
         
            -
            const packageVersion = "12.9.0-beta. 
     | 
| 
       9901 
     | 
    
         
            -
            class StorageClientContext extends  
     | 
| 
      
 10352 
     | 
    
         
            +
            const packageVersion = "12.9.0-beta.3";
         
     | 
| 
      
 10353 
     | 
    
         
            +
            class StorageClientContext extends coreHttp__namespace.ServiceClient {
         
     | 
| 
       9902 
10354 
     | 
    
         
             
                /**
         
     | 
| 
       9903 
10355 
     | 
    
         
             
                 * Initializes a new instance of the StorageClientContext class.
         
     | 
| 
       9904 
10356 
     | 
    
         
             
                 * @param url The URL of the service account, share, directory or file that is the target of the
         
     | 
| 
         @@ -9914,7 +10366,7 @@ class StorageClientContext extends coreHttp.ServiceClient { 
     | 
|
| 
       9914 
10366 
     | 
    
         
             
                        options = {};
         
     | 
| 
       9915 
10367 
     | 
    
         
             
                    }
         
     | 
| 
       9916 
10368 
     | 
    
         
             
                    if (!options.userAgent) {
         
     | 
| 
       9917 
     | 
    
         
            -
                        const defaultUserAgent =  
     | 
| 
      
 10369 
     | 
    
         
            +
                        const defaultUserAgent = coreHttp__namespace.getDefaultUserAgentValue();
         
     | 
| 
       9918 
10370 
     | 
    
         
             
                        options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
         
     | 
| 
       9919 
10371 
     | 
    
         
             
                    }
         
     | 
| 
       9920 
10372 
     | 
    
         
             
                    super(undefined, options);
         
     | 
| 
         @@ -9923,7 +10375,7 @@ class StorageClientContext extends coreHttp.ServiceClient { 
     | 
|
| 
       9923 
10375 
     | 
    
         
             
                    // Parameter assignments
         
     | 
| 
       9924 
10376 
     | 
    
         
             
                    this.url = url;
         
     | 
| 
       9925 
10377 
     | 
    
         
             
                    // Assigning values to Constant parameters
         
     | 
| 
       9926 
     | 
    
         
            -
                    this.version = options.version || "2021- 
     | 
| 
      
 10378 
     | 
    
         
            +
                    this.version = options.version || "2021-04-10";
         
     | 
| 
       9927 
10379 
     | 
    
         
             
                    this.fileRangeWriteFromUrl = options.fileRangeWriteFromUrl || "update";
         
     | 
| 
       9928 
10380 
     | 
    
         
             
                }
         
     | 
| 
       9929 
10381 
     | 
    
         
             
            }
         
     | 
| 
         @@ -10202,8 +10654,7 @@ class RetriableReadableStream extends stream.Readable { 
     | 
|
| 
       10202 
10654 
     | 
    
         
             
                                });
         
     | 
| 
       10203 
10655 
     | 
    
         
             
                            }
         
     | 
| 
       10204 
10656 
     | 
    
         
             
                            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}`));
         
     | 
| 
      
 10657 
     | 
    
         
            +
                                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 
10658 
     | 
    
         
             
                            }
         
     | 
| 
       10208 
10659 
     | 
    
         
             
                        }
         
     | 
| 
       10209 
10660 
     | 
    
         
             
                        else {
         
     | 
| 
         @@ -11119,7 +11570,7 @@ async function streamToBuffer(stream, buffer, offset, end, encoding) { 
     | 
|
| 
       11119 
11570 
     | 
    
         
             
             */
         
     | 
| 
       11120 
11571 
     | 
    
         
             
            async function readStreamToLocalFile(rs, file) {
         
     | 
| 
       11121 
11572 
     | 
    
         
             
                return new Promise((resolve, reject) => {
         
     | 
| 
       11122 
     | 
    
         
            -
                    const ws =  
     | 
| 
      
 11573 
     | 
    
         
            +
                    const ws = fs__namespace.createWriteStream(file);
         
     | 
| 
       11123 
11574 
     | 
    
         
             
                    rs.on("error", (err) => {
         
     | 
| 
       11124 
11575 
     | 
    
         
             
                        reject(err);
         
     | 
| 
       11125 
11576 
     | 
    
         
             
                    });
         
     | 
| 
         @@ -11135,8 +11586,8 @@ async function readStreamToLocalFile(rs, file) { 
     | 
|
| 
       11135 
11586 
     | 
    
         
             
             *
         
     | 
| 
       11136 
11587 
     | 
    
         
             
             * Promisified version of fs.stat().
         
     | 
| 
       11137 
11588 
     | 
    
         
             
             */
         
     | 
| 
       11138 
     | 
    
         
            -
            const fsStat =  
     | 
| 
       11139 
     | 
    
         
            -
            const fsCreateReadStream =  
     | 
| 
      
 11589 
     | 
    
         
            +
            const fsStat = util__namespace.promisify(fs__namespace.stat);
         
     | 
| 
      
 11590 
     | 
    
         
            +
            const fsCreateReadStream = fs__namespace.createReadStream;
         
     | 
| 
       11140 
11591 
     | 
    
         | 
| 
       11141 
11592 
     | 
    
         
             
            // Copyright (c) Microsoft Corporation.
         
     | 
| 
       11142 
11593 
     | 
    
         
             
            /**
         
     | 
| 
         @@ -11172,11 +11623,14 @@ class ShareClient extends StorageClient { 
     | 
|
| 
       11172 
11623 
     | 
    
         
             
                        const extractedCreds = extractConnectionStringParts(urlOrConnectionString);
         
     | 
| 
       11173 
11624 
     | 
    
         
             
                        const name = credentialOrPipelineOrShareName;
         
     | 
| 
       11174 
11625 
     | 
    
         
             
                        if (extractedCreds.kind === "AccountConnString") {
         
     | 
| 
       11175 
     | 
    
         
            -
                            {
         
     | 
| 
      
 11626 
     | 
    
         
            +
                            if (coreHttp.isNode) {
         
     | 
| 
       11176 
11627 
     | 
    
         
             
                                const sharedKeyCredential = new StorageSharedKeyCredential(extractedCreds.accountName, extractedCreds.accountKey);
         
     | 
| 
       11177 
11628 
     | 
    
         
             
                                url = appendToURLPath(extractedCreds.url, name);
         
     | 
| 
       11178 
11629 
     | 
    
         
             
                                pipeline = newPipeline(sharedKeyCredential, options);
         
     | 
| 
       11179 
11630 
     | 
    
         
             
                            }
         
     | 
| 
      
 11631 
     | 
    
         
            +
                            else {
         
     | 
| 
      
 11632 
     | 
    
         
            +
                                throw new Error("Account connection string is only supported in Node.js environment");
         
     | 
| 
      
 11633 
     | 
    
         
            +
                            }
         
     | 
| 
       11180 
11634 
     | 
    
         
             
                        }
         
     | 
| 
       11181 
11635 
     | 
    
         
             
                        else if (extractedCreds.kind === "SASConnString") {
         
     | 
| 
       11182 
11636 
     | 
    
         
             
                            url = appendToURLPath(extractedCreds.url, name) + "?" + extractedCreds.accountSas;
         
     | 
| 
         @@ -11225,7 +11679,7 @@ class ShareClient extends StorageClient { 
     | 
|
| 
       11225 
11679 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       11226 
11680 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       11227 
11681 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11228 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 11682 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       11229 
11683 
     | 
    
         
             
                        });
         
     | 
| 
       11230 
11684 
     | 
    
         
             
                        throw e;
         
     | 
| 
       11231 
11685 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -11251,13 +11705,13 @@ class ShareClient extends StorageClient { 
     | 
|
| 
       11251 
11705 
     | 
    
         
             
                        if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === "ShareAlreadyExists") {
         
     | 
| 
       11252 
11706 
     | 
    
         
             
                            span.setStatus({
         
     | 
| 
       11253 
11707 
     | 
    
         
             
                                code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11254 
     | 
    
         
            -
                                message: "Expected exception when creating a share only if it doesn't already exist."
         
     | 
| 
      
 11708 
     | 
    
         
            +
                                message: "Expected exception when creating a share only if it doesn't already exist.",
         
     | 
| 
       11255 
11709 
     | 
    
         
             
                            });
         
     | 
| 
       11256 
11710 
     | 
    
         
             
                            return Object.assign(Object.assign({ succeeded: false }, (_b = e.response) === null || _b === void 0 ? void 0 : _b.parsedHeaders), { _response: e.response });
         
     | 
| 
       11257 
11711 
     | 
    
         
             
                        }
         
     | 
| 
       11258 
11712 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       11259 
11713 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11260 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 11714 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       11261 
11715 
     | 
    
         
             
                        });
         
     | 
| 
       11262 
11716 
     | 
    
         
             
                        throw e;
         
     | 
| 
       11263 
11717 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -11302,13 +11756,13 @@ class ShareClient extends StorageClient { 
     | 
|
| 
       11302 
11756 
     | 
    
         
             
                        const directoryCreateResponse = await directoryClient.create(updatedOptions);
         
     | 
| 
       11303 
11757 
     | 
    
         
             
                        return {
         
     | 
| 
       11304 
11758 
     | 
    
         
             
                            directoryClient,
         
     | 
| 
       11305 
     | 
    
         
            -
                            directoryCreateResponse
         
     | 
| 
      
 11759 
     | 
    
         
            +
                            directoryCreateResponse,
         
     | 
| 
       11306 
11760 
     | 
    
         
             
                        };
         
     | 
| 
       11307 
11761 
     | 
    
         
             
                    }
         
     | 
| 
       11308 
11762 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       11309 
11763 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       11310 
11764 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11311 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 11765 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       11312 
11766 
     | 
    
         
             
                        });
         
     | 
| 
       11313 
11767 
     | 
    
         
             
                        throw e;
         
     | 
| 
       11314 
11768 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -11334,7 +11788,7 @@ class ShareClient extends StorageClient { 
     | 
|
| 
       11334 
11788 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       11335 
11789 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       11336 
11790 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11337 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 11791 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       11338 
11792 
     | 
    
         
             
                        });
         
     | 
| 
       11339 
11793 
     | 
    
         
             
                        throw e;
         
     | 
| 
       11340 
11794 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -11360,13 +11814,13 @@ class ShareClient extends StorageClient { 
     | 
|
| 
       11360 
11814 
     | 
    
         
             
                        const fileCreateResponse = await fileClient.create(size, updatedOptions);
         
     | 
| 
       11361 
11815 
     | 
    
         
             
                        return {
         
     | 
| 
       11362 
11816 
     | 
    
         
             
                            fileClient,
         
     | 
| 
       11363 
     | 
    
         
            -
                            fileCreateResponse
         
     | 
| 
      
 11817 
     | 
    
         
            +
                            fileCreateResponse,
         
     | 
| 
       11364 
11818 
     | 
    
         
             
                        };
         
     | 
| 
       11365 
11819 
     | 
    
         
             
                    }
         
     | 
| 
       11366 
11820 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       11367 
11821 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       11368 
11822 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11369 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 11823 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       11370 
11824 
     | 
    
         
             
                        });
         
     | 
| 
       11371 
11825 
     | 
    
         
             
                        throw e;
         
     | 
| 
       11372 
11826 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -11404,7 +11858,7 @@ class ShareClient extends StorageClient { 
     | 
|
| 
       11404 
11858 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       11405 
11859 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       11406 
11860 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11407 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 11861 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       11408 
11862 
     | 
    
         
             
                        });
         
     | 
| 
       11409 
11863 
     | 
    
         
             
                        throw e;
         
     | 
| 
       11410 
11864 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -11431,13 +11885,13 @@ class ShareClient extends StorageClient { 
     | 
|
| 
       11431 
11885 
     | 
    
         
             
                        if (e.statusCode === 404) {
         
     | 
| 
       11432 
11886 
     | 
    
         
             
                            span.setStatus({
         
     | 
| 
       11433 
11887 
     | 
    
         
             
                                code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11434 
     | 
    
         
            -
                                message: "Expected exception when checking share existence"
         
     | 
| 
      
 11888 
     | 
    
         
            +
                                message: "Expected exception when checking share existence",
         
     | 
| 
       11435 
11889 
     | 
    
         
             
                            });
         
     | 
| 
       11436 
11890 
     | 
    
         
             
                            return false;
         
     | 
| 
       11437 
11891 
     | 
    
         
             
                        }
         
     | 
| 
       11438 
11892 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       11439 
11893 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11440 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 11894 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       11441 
11895 
     | 
    
         
             
                        });
         
     | 
| 
       11442 
11896 
     | 
    
         
             
                        throw e;
         
     | 
| 
       11443 
11897 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -11469,7 +11923,7 @@ class ShareClient extends StorageClient { 
     | 
|
| 
       11469 
11923 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       11470 
11924 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       11471 
11925 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11472 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 11926 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       11473 
11927 
     | 
    
         
             
                        });
         
     | 
| 
       11474 
11928 
     | 
    
         
             
                        throw e;
         
     | 
| 
       11475 
11929 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -11493,7 +11947,7 @@ class ShareClient extends StorageClient { 
     | 
|
| 
       11493 
11947 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       11494 
11948 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       11495 
11949 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11496 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 11950 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       11497 
11951 
     | 
    
         
             
                        });
         
     | 
| 
       11498 
11952 
     | 
    
         
             
                        throw e;
         
     | 
| 
       11499 
11953 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -11519,13 +11973,13 @@ class ShareClient extends StorageClient { 
     | 
|
| 
       11519 
11973 
     | 
    
         
             
                        if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === "ShareNotFound") {
         
     | 
| 
       11520 
11974 
     | 
    
         
             
                            span.setStatus({
         
     | 
| 
       11521 
11975 
     | 
    
         
             
                                code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11522 
     | 
    
         
            -
                                message: "Expected exception when deleting a share only if it exists."
         
     | 
| 
      
 11976 
     | 
    
         
            +
                                message: "Expected exception when deleting a share only if it exists.",
         
     | 
| 
       11523 
11977 
     | 
    
         
             
                            });
         
     | 
| 
       11524 
11978 
     | 
    
         
             
                            return Object.assign(Object.assign({ succeeded: false }, (_b = e.response) === null || _b === void 0 ? void 0 : _b.parsedHeaders), { _response: e.response });
         
     | 
| 
       11525 
11979 
     | 
    
         
             
                        }
         
     | 
| 
       11526 
11980 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       11527 
11981 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11528 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 11982 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       11529 
11983 
     | 
    
         
             
                        });
         
     | 
| 
       11530 
11984 
     | 
    
         
             
                        throw e;
         
     | 
| 
       11531 
11985 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -11552,7 +12006,7 @@ class ShareClient extends StorageClient { 
     | 
|
| 
       11552 
12006 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       11553 
12007 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       11554 
12008 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11555 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 12009 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       11556 
12010 
     | 
    
         
             
                        });
         
     | 
| 
       11557 
12011 
     | 
    
         
             
                        throw e;
         
     | 
| 
       11558 
12012 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -11583,13 +12037,13 @@ class ShareClient extends StorageClient { 
     | 
|
| 
       11583 
12037 
     | 
    
         
             
                            lastModified: response.lastModified,
         
     | 
| 
       11584 
12038 
     | 
    
         
             
                            requestId: response.requestId,
         
     | 
| 
       11585 
12039 
     | 
    
         
             
                            signedIdentifiers: [],
         
     | 
| 
       11586 
     | 
    
         
            -
                            version: response.version
         
     | 
| 
      
 12040 
     | 
    
         
            +
                            version: response.version,
         
     | 
| 
       11587 
12041 
     | 
    
         
             
                        };
         
     | 
| 
       11588 
12042 
     | 
    
         
             
                        for (const identifier of response) {
         
     | 
| 
       11589 
12043 
     | 
    
         
             
                            let accessPolicy = undefined;
         
     | 
| 
       11590 
12044 
     | 
    
         
             
                            if (identifier.accessPolicy) {
         
     | 
| 
       11591 
12045 
     | 
    
         
             
                                accessPolicy = {
         
     | 
| 
       11592 
     | 
    
         
            -
                                    permissions: identifier.accessPolicy.permissions
         
     | 
| 
      
 12046 
     | 
    
         
            +
                                    permissions: identifier.accessPolicy.permissions,
         
     | 
| 
       11593 
12047 
     | 
    
         
             
                                };
         
     | 
| 
       11594 
12048 
     | 
    
         
             
                                if (identifier.accessPolicy.expiresOn) {
         
     | 
| 
       11595 
12049 
     | 
    
         
             
                                    accessPolicy.expiresOn = new Date(identifier.accessPolicy.expiresOn);
         
     | 
| 
         @@ -11600,7 +12054,7 @@ class ShareClient extends StorageClient { 
     | 
|
| 
       11600 
12054 
     | 
    
         
             
                            }
         
     | 
| 
       11601 
12055 
     | 
    
         
             
                            res.signedIdentifiers.push({
         
     | 
| 
       11602 
12056 
     | 
    
         
             
                                accessPolicy,
         
     | 
| 
       11603 
     | 
    
         
            -
                                id: identifier.id
         
     | 
| 
      
 12057 
     | 
    
         
            +
                                id: identifier.id,
         
     | 
| 
       11604 
12058 
     | 
    
         
             
                            });
         
     | 
| 
       11605 
12059 
     | 
    
         
             
                        }
         
     | 
| 
       11606 
12060 
     | 
    
         
             
                        return res;
         
     | 
| 
         @@ -11608,7 +12062,7 @@ class ShareClient extends StorageClient { 
     | 
|
| 
       11608 
12062 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       11609 
12063 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       11610 
12064 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11611 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 12065 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       11612 
12066 
     | 
    
         
             
                        });
         
     | 
| 
       11613 
12067 
     | 
    
         
             
                        throw e;
         
     | 
| 
       11614 
12068 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -11647,9 +12101,9 @@ class ShareClient extends StorageClient { 
     | 
|
| 
       11647 
12101 
     | 
    
         
             
                                    permissions: (_b = identifier.accessPolicy) === null || _b === void 0 ? void 0 : _b.permissions,
         
     | 
| 
       11648 
12102 
     | 
    
         
             
                                    startsOn: ((_c = identifier.accessPolicy) === null || _c === void 0 ? void 0 : _c.startsOn)
         
     | 
| 
       11649 
12103 
     | 
    
         
             
                                        ? truncatedISO8061Date(identifier.accessPolicy.startsOn)
         
     | 
| 
       11650 
     | 
    
         
            -
                                        : undefined
         
     | 
| 
      
 12104 
     | 
    
         
            +
                                        : undefined,
         
     | 
| 
       11651 
12105 
     | 
    
         
             
                                },
         
     | 
| 
       11652 
     | 
    
         
            -
                                id: identifier.id
         
     | 
| 
      
 12106 
     | 
    
         
            +
                                id: identifier.id,
         
     | 
| 
       11653 
12107 
     | 
    
         
             
                            });
         
     | 
| 
       11654 
12108 
     | 
    
         
             
                        }
         
     | 
| 
       11655 
12109 
     | 
    
         
             
                        return await this.context.setAccessPolicy(Object.assign(Object.assign(Object.assign({}, options), { shareAcl: acl }), convertTracingToRequestOptionsBase(updatedOptions)));
         
     | 
| 
         @@ -11657,7 +12111,7 @@ class ShareClient extends StorageClient { 
     | 
|
| 
       11657 
12111 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       11658 
12112 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       11659 
12113 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11660 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 12114 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       11661 
12115 
     | 
    
         
             
                        });
         
     | 
| 
       11662 
12116 
     | 
    
         
             
                        throw e;
         
     | 
| 
       11663 
12117 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -11679,7 +12133,7 @@ class ShareClient extends StorageClient { 
     | 
|
| 
       11679 
12133 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       11680 
12134 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       11681 
12135 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11682 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 12136 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       11683 
12137 
     | 
    
         
             
                        });
         
     | 
| 
       11684 
12138 
     | 
    
         
             
                        throw e;
         
     | 
| 
       11685 
12139 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -11704,7 +12158,7 @@ class ShareClient extends StorageClient { 
     | 
|
| 
       11704 
12158 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       11705 
12159 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       11706 
12160 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11707 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 12161 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       11708 
12162 
     | 
    
         
             
                        });
         
     | 
| 
       11709 
12163 
     | 
    
         
             
                        throw e;
         
     | 
| 
       11710 
12164 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -11726,7 +12180,7 @@ class ShareClient extends StorageClient { 
     | 
|
| 
       11726 
12180 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       11727 
12181 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       11728 
12182 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11729 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 12183 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       11730 
12184 
     | 
    
         
             
                        });
         
     | 
| 
       11731 
12185 
     | 
    
         
             
                        throw e;
         
     | 
| 
       11732 
12186 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -11750,7 +12204,7 @@ class ShareClient extends StorageClient { 
     | 
|
| 
       11750 
12204 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       11751 
12205 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       11752 
12206 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11753 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 12207 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       11754 
12208 
     | 
    
         
             
                        });
         
     | 
| 
       11755 
12209 
     | 
    
         
             
                        throw e;
         
     | 
| 
       11756 
12210 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -11770,13 +12224,13 @@ class ShareClient extends StorageClient { 
     | 
|
| 
       11770 
12224 
     | 
    
         
             
                    const { span, updatedOptions } = createSpan("ShareClient-createPermission", options);
         
     | 
| 
       11771 
12225 
     | 
    
         
             
                    try {
         
     | 
| 
       11772 
12226 
     | 
    
         
             
                        return await this.context.createPermission({
         
     | 
| 
       11773 
     | 
    
         
            -
                            permission: filePermission
         
     | 
| 
      
 12227 
     | 
    
         
            +
                            permission: filePermission,
         
     | 
| 
       11774 
12228 
     | 
    
         
             
                        }, Object.assign({ abortSignal: options.abortSignal }, convertTracingToRequestOptionsBase(updatedOptions)));
         
     | 
| 
       11775 
12229 
     | 
    
         
             
                    }
         
     | 
| 
       11776 
12230 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       11777 
12231 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       11778 
12232 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11779 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 12233 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       11780 
12234 
     | 
    
         
             
                        });
         
     | 
| 
       11781 
12235 
     | 
    
         
             
                        throw e;
         
     | 
| 
       11782 
12236 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -11800,7 +12254,7 @@ class ShareClient extends StorageClient { 
     | 
|
| 
       11800 
12254 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       11801 
12255 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       11802 
12256 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11803 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 12257 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       11804 
12258 
     | 
    
         
             
                        });
         
     | 
| 
       11805 
12259 
     | 
    
         
             
                        throw e;
         
     | 
| 
       11806 
12260 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -11847,7 +12301,7 @@ class ShareDirectoryClient extends StorageClient { 
     | 
|
| 
       11847 
12301 
     | 
    
         
             
                    ({
         
     | 
| 
       11848 
12302 
     | 
    
         
             
                        baseName: this._name,
         
     | 
| 
       11849 
12303 
     | 
    
         
             
                        shareName: this._shareName,
         
     | 
| 
       11850 
     | 
    
         
            -
                        path: this._path
         
     | 
| 
      
 12304 
     | 
    
         
            +
                        path: this._path,
         
     | 
| 
       11851 
12305 
     | 
    
         
             
                    } = getShareNameAndPathFromUrl(this.url));
         
     | 
| 
       11852 
12306 
     | 
    
         
             
                    this.context = new Directory(this.storageClientContext);
         
     | 
| 
       11853 
12307 
     | 
    
         
             
                }
         
     | 
| 
         @@ -11891,7 +12345,7 @@ class ShareDirectoryClient extends StorageClient { 
     | 
|
| 
       11891 
12345 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       11892 
12346 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       11893 
12347 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11894 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 12348 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       11895 
12349 
     | 
    
         
             
                        });
         
     | 
| 
       11896 
12350 
     | 
    
         
             
                        throw e;
         
     | 
| 
       11897 
12351 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -11917,13 +12371,13 @@ class ShareDirectoryClient extends StorageClient { 
     | 
|
| 
       11917 
12371 
     | 
    
         
             
                        if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === "ResourceAlreadyExists") {
         
     | 
| 
       11918 
12372 
     | 
    
         
             
                            span.setStatus({
         
     | 
| 
       11919 
12373 
     | 
    
         
             
                                code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11920 
     | 
    
         
            -
                                message: "Expected exception when creating a directory only if it does not already exist."
         
     | 
| 
      
 12374 
     | 
    
         
            +
                                message: "Expected exception when creating a directory only if it does not already exist.",
         
     | 
| 
       11921 
12375 
     | 
    
         
             
                            });
         
     | 
| 
       11922 
12376 
     | 
    
         
             
                            return Object.assign(Object.assign({ succeeded: false }, (_b = e.response) === null || _b === void 0 ? void 0 : _b.parsedHeaders), { _response: e.response });
         
     | 
| 
       11923 
12377 
     | 
    
         
             
                        }
         
     | 
| 
       11924 
12378 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       11925 
12379 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11926 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 12380 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       11927 
12381 
     | 
    
         
             
                        });
         
     | 
| 
       11928 
12382 
     | 
    
         
             
                        throw e;
         
     | 
| 
       11929 
12383 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -11947,7 +12401,7 @@ class ShareDirectoryClient extends StorageClient { 
     | 
|
| 
       11947 
12401 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       11948 
12402 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       11949 
12403 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11950 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 12404 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       11951 
12405 
     | 
    
         
             
                        });
         
     | 
| 
       11952 
12406 
     | 
    
         
             
                        throw e;
         
     | 
| 
       11953 
12407 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -11987,13 +12441,13 @@ class ShareDirectoryClient extends StorageClient { 
     | 
|
| 
       11987 
12441 
     | 
    
         
             
                        const directoryCreateResponse = await directoryClient.create(updatedOptions);
         
     | 
| 
       11988 
12442 
     | 
    
         
             
                        return {
         
     | 
| 
       11989 
12443 
     | 
    
         
             
                            directoryClient,
         
     | 
| 
       11990 
     | 
    
         
            -
                            directoryCreateResponse
         
     | 
| 
      
 12444 
     | 
    
         
            +
                            directoryCreateResponse,
         
     | 
| 
       11991 
12445 
     | 
    
         
             
                        };
         
     | 
| 
       11992 
12446 
     | 
    
         
             
                    }
         
     | 
| 
       11993 
12447 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       11994 
12448 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       11995 
12449 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       11996 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 12450 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       11997 
12451 
     | 
    
         
             
                        });
         
     | 
| 
       11998 
12452 
     | 
    
         
             
                        throw e;
         
     | 
| 
       11999 
12453 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -12019,7 +12473,7 @@ class ShareDirectoryClient extends StorageClient { 
     | 
|
| 
       12019 
12473 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       12020 
12474 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       12021 
12475 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       12022 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 12476 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       12023 
12477 
     | 
    
         
             
                        });
         
     | 
| 
       12024 
12478 
     | 
    
         
             
                        throw e;
         
     | 
| 
       12025 
12479 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -12043,13 +12497,13 @@ class ShareDirectoryClient extends StorageClient { 
     | 
|
| 
       12043 
12497 
     | 
    
         
             
                        const fileCreateResponse = await fileClient.create(size, updatedOptions);
         
     | 
| 
       12044 
12498 
     | 
    
         
             
                        return {
         
     | 
| 
       12045 
12499 
     | 
    
         
             
                            fileClient,
         
     | 
| 
       12046 
     | 
    
         
            -
                            fileCreateResponse
         
     | 
| 
      
 12500 
     | 
    
         
            +
                            fileCreateResponse,
         
     | 
| 
       12047 
12501 
     | 
    
         
             
                        };
         
     | 
| 
       12048 
12502 
     | 
    
         
             
                    }
         
     | 
| 
       12049 
12503 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       12050 
12504 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       12051 
12505 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       12052 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 12506 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       12053 
12507 
     | 
    
         
             
                        });
         
     | 
| 
       12054 
12508 
     | 
    
         
             
                        throw e;
         
     | 
| 
       12055 
12509 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -12084,7 +12538,7 @@ class ShareDirectoryClient extends StorageClient { 
     | 
|
| 
       12084 
12538 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       12085 
12539 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       12086 
12540 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       12087 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 12541 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       12088 
12542 
     | 
    
         
             
                        });
         
     | 
| 
       12089 
12543 
     | 
    
         
             
                        throw e;
         
     | 
| 
       12090 
12544 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -12131,7 +12585,7 @@ class ShareDirectoryClient extends StorageClient { 
     | 
|
| 
       12131 
12585 
     | 
    
         
             
                    try {
         
     | 
| 
       12132 
12586 
     | 
    
         
             
                        await this.getProperties({
         
     | 
| 
       12133 
12587 
     | 
    
         
             
                            abortSignal: options.abortSignal,
         
     | 
| 
       12134 
     | 
    
         
            -
                            tracingOptions: Object.assign(Object.assign({}, options.tracingOptions), convertTracingToRequestOptionsBase(updatedOptions))
         
     | 
| 
      
 12588 
     | 
    
         
            +
                            tracingOptions: Object.assign(Object.assign({}, options.tracingOptions), convertTracingToRequestOptionsBase(updatedOptions)),
         
     | 
| 
       12135 
12589 
     | 
    
         
             
                        });
         
     | 
| 
       12136 
12590 
     | 
    
         
             
                        return true;
         
     | 
| 
       12137 
12591 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -12139,13 +12593,13 @@ class ShareDirectoryClient extends StorageClient { 
     | 
|
| 
       12139 
12593 
     | 
    
         
             
                        if (e.statusCode === 404) {
         
     | 
| 
       12140 
12594 
     | 
    
         
             
                            span.setStatus({
         
     | 
| 
       12141 
12595 
     | 
    
         
             
                                code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       12142 
     | 
    
         
            -
                                message: "Expected exception when checking directory existence"
         
     | 
| 
      
 12596 
     | 
    
         
            +
                                message: "Expected exception when checking directory existence",
         
     | 
| 
       12143 
12597 
     | 
    
         
             
                            });
         
     | 
| 
       12144 
12598 
     | 
    
         
             
                            return false;
         
     | 
| 
       12145 
12599 
     | 
    
         
             
                        }
         
     | 
| 
       12146 
12600 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       12147 
12601 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       12148 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 12602 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       12149 
12603 
     | 
    
         
             
                        });
         
     | 
| 
       12150 
12604 
     | 
    
         
             
                        throw e;
         
     | 
| 
       12151 
12605 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -12170,7 +12624,7 @@ class ShareDirectoryClient extends StorageClient { 
     | 
|
| 
       12170 
12624 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       12171 
12625 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       12172 
12626 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       12173 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 12627 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       12174 
12628 
     | 
    
         
             
                        });
         
     | 
| 
       12175 
12629 
     | 
    
         
             
                        throw e;
         
     | 
| 
       12176 
12630 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -12194,7 +12648,7 @@ class ShareDirectoryClient extends StorageClient { 
     | 
|
| 
       12194 
12648 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       12195 
12649 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       12196 
12650 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       12197 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 12651 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       12198 
12652 
     | 
    
         
             
                        });
         
     | 
| 
       12199 
12653 
     | 
    
         
             
                        throw e;
         
     | 
| 
       12200 
12654 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -12221,13 +12675,13 @@ class ShareDirectoryClient extends StorageClient { 
     | 
|
| 
       12221 
12675 
     | 
    
         
             
                            ((_b = e.details) === null || _b === void 0 ? void 0 : _b.errorCode) === "ParentNotFound") {
         
     | 
| 
       12222 
12676 
     | 
    
         
             
                            span.setStatus({
         
     | 
| 
       12223 
12677 
     | 
    
         
             
                                code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       12224 
     | 
    
         
            -
                                message: "Expected exception when deleting a directory only if it exists."
         
     | 
| 
      
 12678 
     | 
    
         
            +
                                message: "Expected exception when deleting a directory only if it exists.",
         
     | 
| 
       12225 
12679 
     | 
    
         
             
                            });
         
     | 
| 
       12226 
12680 
     | 
    
         
             
                            return Object.assign(Object.assign({ succeeded: false }, (_c = e.response) === null || _c === void 0 ? void 0 : _c.parsedHeaders), { _response: e.response });
         
     | 
| 
       12227 
12681 
     | 
    
         
             
                        }
         
     | 
| 
       12228 
12682 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       12229 
12683 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       12230 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 12684 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       12231 
12685 
     | 
    
         
             
                        });
         
     | 
| 
       12232 
12686 
     | 
    
         
             
                        throw e;
         
     | 
| 
       12233 
12687 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -12251,7 +12705,7 @@ class ShareDirectoryClient extends StorageClient { 
     | 
|
| 
       12251 
12705 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       12252 
12706 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       12253 
12707 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       12254 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 12708 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       12255 
12709 
     | 
    
         
             
                        });
         
     | 
| 
       12256 
12710 
     | 
    
         
             
                        throw e;
         
     | 
| 
       12257 
12711 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -12444,7 +12898,7 @@ class ShareDirectoryClient extends StorageClient { 
     | 
|
| 
       12444 
12898 
     | 
    
         
             
                         */
         
     | 
| 
       12445 
12899 
     | 
    
         
             
                        byPage: (settings = {}) => {
         
     | 
| 
       12446 
12900 
     | 
    
         
             
                            return this.iterateFilesAndDirectoriesSegments(settings.continuationToken, Object.assign({ maxResults: settings.maxPageSize }, updatedOptions));
         
     | 
| 
       12447 
     | 
    
         
            -
                        }
         
     | 
| 
      
 12901 
     | 
    
         
            +
                        },
         
     | 
| 
       12448 
12902 
     | 
    
         
             
                    };
         
     | 
| 
       12449 
12903 
     | 
    
         
             
                }
         
     | 
| 
       12450 
12904 
     | 
    
         
             
                /**
         
     | 
| 
         @@ -12467,7 +12921,7 @@ class ShareDirectoryClient extends StorageClient { 
     | 
|
| 
       12467 
12921 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       12468 
12922 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       12469 
12923 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       12470 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 12924 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       12471 
12925 
     | 
    
         
             
                        });
         
     | 
| 
       12472 
12926 
     | 
    
         
             
                        throw e;
         
     | 
| 
       12473 
12927 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -12622,7 +13076,7 @@ class ShareDirectoryClient extends StorageClient { 
     | 
|
| 
       12622 
13076 
     | 
    
         
             
                         */
         
     | 
| 
       12623 
13077 
     | 
    
         
             
                        byPage: (settings = {}) => {
         
     | 
| 
       12624 
13078 
     | 
    
         
             
                            return this.iterateHandleSegments(settings.continuationToken, Object.assign({ maxResults: settings.maxPageSize }, options));
         
     | 
| 
       12625 
     | 
    
         
            -
                        }
         
     | 
| 
      
 13079 
     | 
    
         
            +
                        },
         
     | 
| 
       12626 
13080 
     | 
    
         
             
                    };
         
     | 
| 
       12627 
13081 
     | 
    
         
             
                }
         
     | 
| 
       12628 
13082 
     | 
    
         
             
                /**
         
     | 
| 
         @@ -12651,7 +13105,7 @@ class ShareDirectoryClient extends StorageClient { 
     | 
|
| 
       12651 
13105 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       12652 
13106 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       12653 
13107 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       12654 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 13108 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       12655 
13109 
     | 
    
         
             
                        });
         
     | 
| 
       12656 
13110 
     | 
    
         
             
                        throw e;
         
     | 
| 
       12657 
13111 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -12683,7 +13137,7 @@ class ShareDirectoryClient extends StorageClient { 
     | 
|
| 
       12683 
13137 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       12684 
13138 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       12685 
13139 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       12686 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 13140 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       12687 
13141 
     | 
    
         
             
                        });
         
     | 
| 
       12688 
13142 
     | 
    
         
             
                        throw e;
         
     | 
| 
       12689 
13143 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -12718,7 +13172,7 @@ class ShareDirectoryClient extends StorageClient { 
     | 
|
| 
       12718 
13172 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       12719 
13173 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       12720 
13174 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       12721 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 13175 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       12722 
13176 
     | 
    
         
             
                        });
         
     | 
| 
       12723 
13177 
     | 
    
         
             
                        throw e;
         
     | 
| 
       12724 
13178 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -12751,7 +13205,69 @@ class ShareDirectoryClient extends StorageClient { 
     | 
|
| 
       12751 
13205 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       12752 
13206 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       12753 
13207 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       12754 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 13208 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
      
 13209 
     | 
    
         
            +
                        });
         
     | 
| 
      
 13210 
     | 
    
         
            +
                        throw e;
         
     | 
| 
      
 13211 
     | 
    
         
            +
                    }
         
     | 
| 
      
 13212 
     | 
    
         
            +
                    finally {
         
     | 
| 
      
 13213 
     | 
    
         
            +
                        span.end();
         
     | 
| 
      
 13214 
     | 
    
         
            +
                    }
         
     | 
| 
      
 13215 
     | 
    
         
            +
                }
         
     | 
| 
      
 13216 
     | 
    
         
            +
                /**
         
     | 
| 
      
 13217 
     | 
    
         
            +
                 * Renames a directory.
         
     | 
| 
      
 13218 
     | 
    
         
            +
                 * This API only supports renaming a directory in the same share.
         
     | 
| 
      
 13219 
     | 
    
         
            +
                 *
         
     | 
| 
      
 13220 
     | 
    
         
            +
                 * @param destinationPath - Specifies the destination path to rename to. The path will be encoded to put into a URL to specify the destination.
         
     | 
| 
      
 13221 
     | 
    
         
            +
                 * @param options - Options for the renaming operation.
         
     | 
| 
      
 13222 
     | 
    
         
            +
                 * @returns Response data for the file renaming operation.
         
     | 
| 
      
 13223 
     | 
    
         
            +
                 *
         
     | 
| 
      
 13224 
     | 
    
         
            +
                 * Example usage:
         
     | 
| 
      
 13225 
     | 
    
         
            +
                 *
         
     | 
| 
      
 13226 
     | 
    
         
            +
                 * ```js
         
     | 
| 
      
 13227 
     | 
    
         
            +
                 *
         
     | 
| 
      
 13228 
     | 
    
         
            +
                 * // Rename the directory
         
     | 
| 
      
 13229 
     | 
    
         
            +
                 * await diretoryClient.rename(destinationPath);
         
     | 
| 
      
 13230 
     | 
    
         
            +
                 * console.log("Renamed directory successfully!");
         
     | 
| 
      
 13231 
     | 
    
         
            +
                 * ```
         
     | 
| 
      
 13232 
     | 
    
         
            +
                 */
         
     | 
| 
      
 13233 
     | 
    
         
            +
                async rename(destinationPath, options = {}) {
         
     | 
| 
      
 13234 
     | 
    
         
            +
                    const { span, updatedOptions } = createSpan("ShareDirectoryClient-rename", options);
         
     | 
| 
      
 13235 
     | 
    
         
            +
                    const split = destinationPath.split("?");
         
     | 
| 
      
 13236 
     | 
    
         
            +
                    let destinationUrl;
         
     | 
| 
      
 13237 
     | 
    
         
            +
                    if (split.length === 2) {
         
     | 
| 
      
 13238 
     | 
    
         
            +
                        const pathOnly = encodeURIComponent(split[0]);
         
     | 
| 
      
 13239 
     | 
    
         
            +
                        const renameDestination = `/${this.shareName}/${pathOnly}`;
         
     | 
| 
      
 13240 
     | 
    
         
            +
                        destinationUrl = setURLPath(this.url, renameDestination);
         
     | 
| 
      
 13241 
     | 
    
         
            +
                        destinationUrl = setURLQueries(destinationUrl, split[1]);
         
     | 
| 
      
 13242 
     | 
    
         
            +
                    }
         
     | 
| 
      
 13243 
     | 
    
         
            +
                    else if (split.length === 1) {
         
     | 
| 
      
 13244 
     | 
    
         
            +
                        const pathOnly = encodeURIComponent(destinationPath);
         
     | 
| 
      
 13245 
     | 
    
         
            +
                        const renameDestination = `/${this.shareName}/${pathOnly}`;
         
     | 
| 
      
 13246 
     | 
    
         
            +
                        destinationUrl = setURLPath(this.url, renameDestination);
         
     | 
| 
      
 13247 
     | 
    
         
            +
                    }
         
     | 
| 
      
 13248 
     | 
    
         
            +
                    else {
         
     | 
| 
      
 13249 
     | 
    
         
            +
                        throw new RangeError("Destination path should not contain more than one query string");
         
     | 
| 
      
 13250 
     | 
    
         
            +
                    }
         
     | 
| 
      
 13251 
     | 
    
         
            +
                    const destDirectory = new ShareDirectoryClient(destinationUrl, this.pipeline);
         
     | 
| 
      
 13252 
     | 
    
         
            +
                    try {
         
     | 
| 
      
 13253 
     | 
    
         
            +
                        const response = await destDirectory.context.rename(this.url, Object.assign(Object.assign({}, updatedOptions), { sourceLeaseAccessConditions: updatedOptions.sourceLeaseAccessConditions
         
     | 
| 
      
 13254 
     | 
    
         
            +
                                ? {
         
     | 
| 
      
 13255 
     | 
    
         
            +
                                    sourceLeaseId: updatedOptions.sourceLeaseAccessConditions.leaseId,
         
     | 
| 
      
 13256 
     | 
    
         
            +
                                }
         
     | 
| 
      
 13257 
     | 
    
         
            +
                                : undefined, destinationLeaseAccessConditions: updatedOptions.destinationLeaseAccessConditions
         
     | 
| 
      
 13258 
     | 
    
         
            +
                                ? {
         
     | 
| 
      
 13259 
     | 
    
         
            +
                                    destinationLeaseId: updatedOptions.destinationLeaseAccessConditions.leaseId,
         
     | 
| 
      
 13260 
     | 
    
         
            +
                                }
         
     | 
| 
      
 13261 
     | 
    
         
            +
                                : undefined }));
         
     | 
| 
      
 13262 
     | 
    
         
            +
                        return {
         
     | 
| 
      
 13263 
     | 
    
         
            +
                            destinationDirectoryClient: destDirectory,
         
     | 
| 
      
 13264 
     | 
    
         
            +
                            directoryRenameResponse: response,
         
     | 
| 
      
 13265 
     | 
    
         
            +
                        };
         
     | 
| 
      
 13266 
     | 
    
         
            +
                    }
         
     | 
| 
      
 13267 
     | 
    
         
            +
                    catch (e) {
         
     | 
| 
      
 13268 
     | 
    
         
            +
                        span.setStatus({
         
     | 
| 
      
 13269 
     | 
    
         
            +
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
      
 13270 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       12755 
13271 
     | 
    
         
             
                        });
         
     | 
| 
       12756 
13272 
     | 
    
         
             
                        throw e;
         
     | 
| 
       12757 
13273 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -12783,7 +13299,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       12783 
13299 
     | 
    
         
             
                    ({
         
     | 
| 
       12784 
13300 
     | 
    
         
             
                        baseName: this._name,
         
     | 
| 
       12785 
13301 
     | 
    
         
             
                        shareName: this._shareName,
         
     | 
| 
       12786 
     | 
    
         
            -
                        path: this._path
         
     | 
| 
      
 13302 
     | 
    
         
            +
                        path: this._path,
         
     | 
| 
       12787 
13303 
     | 
    
         
             
                    } = getShareNameAndPathFromUrl(this.url));
         
     | 
| 
       12788 
13304 
     | 
    
         
             
                    this.context = new File(this.storageClientContext);
         
     | 
| 
       12789 
13305 
     | 
    
         
             
                }
         
     | 
| 
         @@ -12856,7 +13372,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       12856 
13372 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       12857 
13373 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       12858 
13374 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       12859 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 13375 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       12860 
13376 
     | 
    
         
             
                        });
         
     | 
| 
       12861 
13377 
     | 
    
         
             
                        throw e;
         
     | 
| 
       12862 
13378 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -12933,7 +13449,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       12933 
13449 
     | 
    
         
             
                        }
         
     | 
| 
       12934 
13450 
     | 
    
         
             
                        const downloadFullFile = offset === 0 && !count;
         
     | 
| 
       12935 
13451 
     | 
    
         
             
                        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
         
     | 
| 
      
 13452 
     | 
    
         
            +
                                onDownloadProgress: coreHttp.isNode ? undefined : options.onProgress, // for Node.js, progress is reported by RetriableReadableStream
         
     | 
| 
       12937 
13453 
     | 
    
         
             
                            }, range: downloadFullFile ? undefined : rangeToString({ offset, count }), rangeGetContentMD5: options.rangeGetContentMD5, leaseAccessConditions: options.leaseAccessConditions }, convertTracingToRequestOptionsBase(updatedOptions)));
         
     | 
| 
       12938 
13454 
     | 
    
         
             
                        // Return browser response immediately
         
     | 
| 
       12939 
13455 
     | 
    
         
             
                        if (!coreHttp.isNode) {
         
     | 
| 
         @@ -12955,8 +13471,8 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       12955 
13471 
     | 
    
         
             
                            const updatedDownloadOptions = {
         
     | 
| 
       12956 
13472 
     | 
    
         
             
                                range: rangeToString({
         
     | 
| 
       12957 
13473 
     | 
    
         
             
                                    count: offset + res.contentLength - start,
         
     | 
| 
       12958 
     | 
    
         
            -
                                    offset: start
         
     | 
| 
       12959 
     | 
    
         
            -
                                })
         
     | 
| 
      
 13474 
     | 
    
         
            +
                                    offset: start,
         
     | 
| 
      
 13475 
     | 
    
         
            +
                                }),
         
     | 
| 
       12960 
13476 
     | 
    
         
             
                            };
         
     | 
| 
       12961 
13477 
     | 
    
         
             
                            // Debug purpose only
         
     | 
| 
       12962 
13478 
     | 
    
         
             
                            // console.log(
         
     | 
| 
         @@ -12972,13 +13488,13 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       12972 
13488 
     | 
    
         
             
                        }, offset, res.contentLength, {
         
     | 
| 
       12973 
13489 
     | 
    
         
             
                            abortSignal: options.abortSignal,
         
     | 
| 
       12974 
13490 
     | 
    
         
             
                            maxRetryRequests: options.maxRetryRequests,
         
     | 
| 
       12975 
     | 
    
         
            -
                            onProgress: options.onProgress
         
     | 
| 
      
 13491 
     | 
    
         
            +
                            onProgress: options.onProgress,
         
     | 
| 
       12976 
13492 
     | 
    
         
             
                        });
         
     | 
| 
       12977 
13493 
     | 
    
         
             
                    }
         
     | 
| 
       12978 
13494 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       12979 
13495 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       12980 
13496 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       12981 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 13497 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       12982 
13498 
     | 
    
         
             
                        });
         
     | 
| 
       12983 
13499 
     | 
    
         
             
                        throw e;
         
     | 
| 
       12984 
13500 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13000,7 +13516,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13000 
13516 
     | 
    
         
             
                    try {
         
     | 
| 
       13001 
13517 
     | 
    
         
             
                        await this.getProperties({
         
     | 
| 
       13002 
13518 
     | 
    
         
             
                            abortSignal: options.abortSignal,
         
     | 
| 
       13003 
     | 
    
         
            -
                            tracingOptions: Object.assign(Object.assign({}, options.tracingOptions), convertTracingToRequestOptionsBase(updatedOptions))
         
     | 
| 
      
 13519 
     | 
    
         
            +
                            tracingOptions: Object.assign(Object.assign({}, options.tracingOptions), convertTracingToRequestOptionsBase(updatedOptions)),
         
     | 
| 
       13004 
13520 
     | 
    
         
             
                        });
         
     | 
| 
       13005 
13521 
     | 
    
         
             
                        return true;
         
     | 
| 
       13006 
13522 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13008,13 +13524,13 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13008 
13524 
     | 
    
         
             
                        if (e.statusCode === 404) {
         
     | 
| 
       13009 
13525 
     | 
    
         
             
                            span.setStatus({
         
     | 
| 
       13010 
13526 
     | 
    
         
             
                                code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13011 
     | 
    
         
            -
                                message: "Expected exception when checking file existence"
         
     | 
| 
      
 13527 
     | 
    
         
            +
                                message: "Expected exception when checking file existence",
         
     | 
| 
       13012 
13528 
     | 
    
         
             
                            });
         
     | 
| 
       13013 
13529 
     | 
    
         
             
                            return false;
         
     | 
| 
       13014 
13530 
     | 
    
         
             
                        }
         
     | 
| 
       13015 
13531 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       13016 
13532 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13017 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 13533 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       13018 
13534 
     | 
    
         
             
                        });
         
     | 
| 
       13019 
13535 
     | 
    
         
             
                        throw e;
         
     | 
| 
       13020 
13536 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13038,7 +13554,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13038 
13554 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       13039 
13555 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       13040 
13556 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13041 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 13557 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       13042 
13558 
     | 
    
         
             
                        });
         
     | 
| 
       13043 
13559 
     | 
    
         
             
                        throw e;
         
     | 
| 
       13044 
13560 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13065,7 +13581,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13065 
13581 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       13066 
13582 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       13067 
13583 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13068 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 13584 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       13069 
13585 
     | 
    
         
             
                        });
         
     | 
| 
       13070 
13586 
     | 
    
         
             
                        throw e;
         
     | 
| 
       13071 
13587 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13098,7 +13614,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13098 
13614 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       13099 
13615 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       13100 
13616 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13101 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 13617 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       13102 
13618 
     | 
    
         
             
                        });
         
     | 
| 
       13103 
13619 
     | 
    
         
             
                        throw e;
         
     | 
| 
       13104 
13620 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13134,13 +13650,13 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13134 
13650 
     | 
    
         
             
                            ((_b = e.details) === null || _b === void 0 ? void 0 : _b.errorCode) === "ParentNotFound") {
         
     | 
| 
       13135 
13651 
     | 
    
         
             
                            span.setStatus({
         
     | 
| 
       13136 
13652 
     | 
    
         
             
                                code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13137 
     | 
    
         
            -
                                message: "Expected exception when deleting a file only if it exists."
         
     | 
| 
      
 13653 
     | 
    
         
            +
                                message: "Expected exception when deleting a file only if it exists.",
         
     | 
| 
       13138 
13654 
     | 
    
         
             
                            });
         
     | 
| 
       13139 
13655 
     | 
    
         
             
                            return Object.assign(Object.assign({ succeeded: false }, (_c = e.response) === null || _c === void 0 ? void 0 : _c.parsedHeaders), { _response: e.response });
         
     | 
| 
       13140 
13656 
     | 
    
         
             
                        }
         
     | 
| 
       13141 
13657 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       13142 
13658 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13143 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 13659 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       13144 
13660 
     | 
    
         
             
                        });
         
     | 
| 
       13145 
13661 
     | 
    
         
             
                        throw e;
         
     | 
| 
       13146 
13662 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13170,7 +13686,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13170 
13686 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       13171 
13687 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       13172 
13688 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13173 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 13689 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       13174 
13690 
     | 
    
         
             
                        });
         
     | 
| 
       13175 
13691 
     | 
    
         
             
                        throw e;
         
     | 
| 
       13176 
13692 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13202,7 +13718,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13202 
13718 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       13203 
13719 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       13204 
13720 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13205 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 13721 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       13206 
13722 
     | 
    
         
             
                        });
         
     | 
| 
       13207 
13723 
     | 
    
         
             
                        throw e;
         
     | 
| 
       13208 
13724 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13229,7 +13745,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13229 
13745 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       13230 
13746 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       13231 
13747 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13232 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 13748 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       13233 
13749 
     | 
    
         
             
                        });
         
     | 
| 
       13234 
13750 
     | 
    
         
             
                        throw e;
         
     | 
| 
       13235 
13751 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13277,13 +13793,13 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13277 
13793 
     | 
    
         
             
                            throw new RangeError(`offset must be < ${FILE_RANGE_MAX_SIZE_BYTES} bytes`);
         
     | 
| 
       13278 
13794 
     | 
    
         
             
                        }
         
     | 
| 
       13279 
13795 
     | 
    
         
             
                        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
         
     | 
| 
      
 13796 
     | 
    
         
            +
                                onUploadProgress: options.onProgress,
         
     | 
| 
       13281 
13797 
     | 
    
         
             
                            }, body: body }, convertTracingToRequestOptionsBase(updatedOptions)), { leaseAccessConditions: options.leaseAccessConditions }));
         
     | 
| 
       13282 
13798 
     | 
    
         
             
                    }
         
     | 
| 
       13283 
13799 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       13284 
13800 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       13285 
13801 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13286 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 13802 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       13287 
13803 
     | 
    
         
             
                        });
         
     | 
| 
       13288 
13804 
     | 
    
         
             
                        throw e;
         
     | 
| 
       13289 
13805 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13315,7 +13831,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13315 
13831 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       13316 
13832 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       13317 
13833 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13318 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 13834 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       13319 
13835 
     | 
    
         
             
                        });
         
     | 
| 
       13320 
13836 
     | 
    
         
             
                        throw e;
         
     | 
| 
       13321 
13837 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13342,7 +13858,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13342 
13858 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       13343 
13859 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       13344 
13860 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13345 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 13861 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       13346 
13862 
     | 
    
         
             
                        });
         
     | 
| 
       13347 
13863 
     | 
    
         
             
                        throw e;
         
     | 
| 
       13348 
13864 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13368,7 +13884,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13368 
13884 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       13369 
13885 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       13370 
13886 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13371 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 13887 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       13372 
13888 
     | 
    
         
             
                        });
         
     | 
| 
       13373 
13889 
     | 
    
         
             
                        throw e;
         
     | 
| 
       13374 
13890 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13390,7 +13906,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13390 
13906 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       13391 
13907 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       13392 
13908 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13393 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 13909 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       13394 
13910 
     | 
    
         
             
                        });
         
     | 
| 
       13395 
13911 
     | 
    
         
             
                        throw e;
         
     | 
| 
       13396 
13912 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13418,7 +13934,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13418 
13934 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       13419 
13935 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       13420 
13936 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13421 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 13937 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       13422 
13938 
     | 
    
         
             
                        });
         
     | 
| 
       13423 
13939 
     | 
    
         
             
                        throw e;
         
     | 
| 
       13424 
13940 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13442,7 +13958,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13442 
13958 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       13443 
13959 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       13444 
13960 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13445 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 13961 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       13446 
13962 
     | 
    
         
             
                        });
         
     | 
| 
       13447 
13963 
     | 
    
         
             
                        throw e;
         
     | 
| 
       13448 
13964 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13460,7 +13976,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13460 
13976 
     | 
    
         
             
                async uploadData(data, options = {}) {
         
     | 
| 
       13461 
13977 
     | 
    
         
             
                    const { span, updatedOptions } = createSpan("ShareFileClient-uploadData", options);
         
     | 
| 
       13462 
13978 
     | 
    
         
             
                    try {
         
     | 
| 
       13463 
     | 
    
         
            -
                        if ( 
     | 
| 
      
 13979 
     | 
    
         
            +
                        if (coreHttp.isNode) {
         
     | 
| 
       13464 
13980 
     | 
    
         
             
                            let buffer;
         
     | 
| 
       13465 
13981 
     | 
    
         
             
                            if (data instanceof Buffer) {
         
     | 
| 
       13466 
13982 
     | 
    
         
             
                                buffer = data;
         
     | 
| 
         @@ -13482,7 +13998,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13482 
13998 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       13483 
13999 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       13484 
14000 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13485 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 14001 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       13486 
14002 
     | 
    
         
             
                        });
         
     | 
| 
       13487 
14003 
     | 
    
         
             
                        throw e;
         
     | 
| 
       13488 
14004 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13508,7 +14024,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13508 
14024 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       13509 
14025 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       13510 
14026 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13511 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 14027 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       13512 
14028 
     | 
    
         
             
                        });
         
     | 
| 
       13513 
14029 
     | 
    
         
             
                        throw e;
         
     | 
| 
       13514 
14030 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13533,14 +14049,14 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13533 
14049 
     | 
    
         
             
                            return () => fsCreateReadStream(filePath, {
         
     | 
| 
       13534 
14050 
     | 
    
         
             
                                autoClose: true,
         
     | 
| 
       13535 
14051 
     | 
    
         
             
                                end: count ? offset + count - 1 : Infinity,
         
     | 
| 
       13536 
     | 
    
         
            -
                                start: offset
         
     | 
| 
      
 14052 
     | 
    
         
            +
                                start: offset,
         
     | 
| 
       13537 
14053 
     | 
    
         
             
                            });
         
     | 
| 
       13538 
14054 
     | 
    
         
             
                        }, size, updatedOptions);
         
     | 
| 
       13539 
14055 
     | 
    
         
             
                    }
         
     | 
| 
       13540 
14056 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       13541 
14057 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       13542 
14058 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13543 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 14059 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       13544 
14060 
     | 
    
         
             
                        });
         
     | 
| 
       13545 
14061 
     | 
    
         
             
                        throw e;
         
     | 
| 
       13546 
14062 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13571,7 +14087,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13571 
14087 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       13572 
14088 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       13573 
14089 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13574 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 14090 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       13575 
14091 
     | 
    
         
             
                        });
         
     | 
| 
       13576 
14092 
     | 
    
         
             
                        throw e;
         
     | 
| 
       13577 
14093 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13610,7 +14126,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13610 
14126 
     | 
    
         
             
                            fileHttpHeaders: options.fileHttpHeaders,
         
     | 
| 
       13611 
14127 
     | 
    
         
             
                            metadata: options.metadata,
         
     | 
| 
       13612 
14128 
     | 
    
         
             
                            leaseAccessConditions: options.leaseAccessConditions,
         
     | 
| 
       13613 
     | 
    
         
            -
                            tracingOptions: updatedOptions.tracingOptions
         
     | 
| 
      
 14129 
     | 
    
         
            +
                            tracingOptions: updatedOptions.tracingOptions,
         
     | 
| 
       13614 
14130 
     | 
    
         
             
                        });
         
     | 
| 
       13615 
14131 
     | 
    
         
             
                        const numBlocks = Math.floor((size - 1) / options.rangeSize) + 1;
         
     | 
| 
       13616 
14132 
     | 
    
         
             
                        let transferProgress = 0;
         
     | 
| 
         @@ -13623,7 +14139,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13623 
14139 
     | 
    
         
             
                                await this.uploadRange(bodyFactory(start, contentLength), start, contentLength, {
         
     | 
| 
       13624 
14140 
     | 
    
         
             
                                    abortSignal: options.abortSignal,
         
     | 
| 
       13625 
14141 
     | 
    
         
             
                                    leaseAccessConditions: options.leaseAccessConditions,
         
     | 
| 
       13626 
     | 
    
         
            -
                                    tracingOptions: updatedOptions.tracingOptions
         
     | 
| 
      
 14142 
     | 
    
         
            +
                                    tracingOptions: updatedOptions.tracingOptions,
         
     | 
| 
       13627 
14143 
     | 
    
         
             
                                });
         
     | 
| 
       13628 
14144 
     | 
    
         
             
                                // Update progress after block is successfully uploaded to server, in case of block trying
         
     | 
| 
       13629 
14145 
     | 
    
         
             
                                transferProgress += contentLength;
         
     | 
| 
         @@ -13637,7 +14153,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13637 
14153 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       13638 
14154 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       13639 
14155 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13640 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 14156 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       13641 
14157 
     | 
    
         
             
                        });
         
     | 
| 
       13642 
14158 
     | 
    
         
             
                        throw e;
         
     | 
| 
       13643 
14159 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13685,7 +14201,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13685 
14201 
     | 
    
         
             
                            const response = await this.getProperties({
         
     | 
| 
       13686 
14202 
     | 
    
         
             
                                abortSignal: options.abortSignal,
         
     | 
| 
       13687 
14203 
     | 
    
         
             
                                leaseAccessConditions: options.leaseAccessConditions,
         
     | 
| 
       13688 
     | 
    
         
            -
                                tracingOptions: updatedOptions.tracingOptions
         
     | 
| 
      
 14204 
     | 
    
         
            +
                                tracingOptions: updatedOptions.tracingOptions,
         
     | 
| 
       13689 
14205 
     | 
    
         
             
                            });
         
     | 
| 
       13690 
14206 
     | 
    
         
             
                            count = response.contentLength - offset;
         
     | 
| 
       13691 
14207 
     | 
    
         
             
                            if (count < 0) {
         
     | 
| 
         @@ -13718,7 +14234,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13718 
14234 
     | 
    
         
             
                                    abortSignal: options.abortSignal,
         
     | 
| 
       13719 
14235 
     | 
    
         
             
                                    maxRetryRequests: options.maxRetryRequestsPerRange,
         
     | 
| 
       13720 
14236 
     | 
    
         
             
                                    leaseAccessConditions: options.leaseAccessConditions,
         
     | 
| 
       13721 
     | 
    
         
            -
                                    tracingOptions: updatedOptions.tracingOptions
         
     | 
| 
      
 14237 
     | 
    
         
            +
                                    tracingOptions: updatedOptions.tracingOptions,
         
     | 
| 
       13722 
14238 
     | 
    
         
             
                                });
         
     | 
| 
       13723 
14239 
     | 
    
         
             
                                const stream = response.readableStreamBody;
         
     | 
| 
       13724 
14240 
     | 
    
         
             
                                await streamToBuffer(stream, buffer, off - offset, chunkEnd - offset);
         
     | 
| 
         @@ -13737,7 +14253,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13737 
14253 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       13738 
14254 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       13739 
14255 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13740 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 14256 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       13741 
14257 
     | 
    
         
             
                        });
         
     | 
| 
       13742 
14258 
     | 
    
         
             
                        throw e;
         
     | 
| 
       13743 
14259 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13784,7 +14300,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13784 
14300 
     | 
    
         
             
                            fileHttpHeaders: options.fileHttpHeaders,
         
     | 
| 
       13785 
14301 
     | 
    
         
             
                            metadata: options.metadata,
         
     | 
| 
       13786 
14302 
     | 
    
         
             
                            leaseAccessConditions: options.leaseAccessConditions,
         
     | 
| 
       13787 
     | 
    
         
            -
                            tracingOptions: updatedOptions.tracingOptions
         
     | 
| 
      
 14303 
     | 
    
         
            +
                            tracingOptions: updatedOptions.tracingOptions,
         
     | 
| 
       13788 
14304 
     | 
    
         
             
                        });
         
     | 
| 
       13789 
14305 
     | 
    
         
             
                        let transferProgress = 0;
         
     | 
| 
       13790 
14306 
     | 
    
         
             
                        const scheduler = new BufferScheduler(stream, bufferSize, maxBuffers, async (buffer, offset) => {
         
     | 
| 
         @@ -13795,7 +14311,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13795 
14311 
     | 
    
         
             
                            await this.uploadRange(buffer, offset, buffer.length, {
         
     | 
| 
       13796 
14312 
     | 
    
         
             
                                abortSignal: options.abortSignal,
         
     | 
| 
       13797 
14313 
     | 
    
         
             
                                leaseAccessConditions: options.leaseAccessConditions,
         
     | 
| 
       13798 
     | 
    
         
            -
                                tracingOptions: updatedOptions.tracingOptions
         
     | 
| 
      
 14314 
     | 
    
         
            +
                                tracingOptions: updatedOptions.tracingOptions,
         
     | 
| 
       13799 
14315 
     | 
    
         
             
                            });
         
     | 
| 
       13800 
14316 
     | 
    
         
             
                            // Update progress after block is successfully uploaded to server, in case of block trying
         
     | 
| 
       13801 
14317 
     | 
    
         
             
                            transferProgress += buffer.length;
         
     | 
| 
         @@ -13813,7 +14329,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13813 
14329 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       13814 
14330 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       13815 
14331 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13816 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 14332 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       13817 
14333 
     | 
    
         
             
                        });
         
     | 
| 
       13818 
14334 
     | 
    
         
             
                        throw e;
         
     | 
| 
       13819 
14335 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13851,7 +14367,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13851 
14367 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       13852 
14368 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       13853 
14369 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13854 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 14370 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       13855 
14371 
     | 
    
         
             
                        });
         
     | 
| 
       13856 
14372 
     | 
    
         
             
                        throw e;
         
     | 
| 
       13857 
14373 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13885,7 +14401,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13885 
14401 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       13886 
14402 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       13887 
14403 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       13888 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 14404 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       13889 
14405 
     | 
    
         
             
                        });
         
     | 
| 
       13890 
14406 
     | 
    
         
             
                        throw e;
         
     | 
| 
       13891 
14407 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -13974,7 +14490,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       13974 
14490 
     | 
    
         
             
                         */
         
     | 
| 
       13975 
14491 
     | 
    
         
             
                        byPage: (settings = {}) => {
         
     | 
| 
       13976 
14492 
     | 
    
         
             
                            return this.iterateHandleSegments(settings.continuationToken, Object.assign({ maxPageSize: settings.maxPageSize }, options));
         
     | 
| 
       13977 
     | 
    
         
            -
                        }
         
     | 
| 
      
 14493 
     | 
    
         
            +
                        },
         
     | 
| 
       13978 
14494 
     | 
    
         
             
                    };
         
     | 
| 
       13979 
14495 
     | 
    
         
             
                }
         
     | 
| 
       13980 
14496 
     | 
    
         
             
                /**
         
     | 
| 
         @@ -14001,7 +14517,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       14001 
14517 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       14002 
14518 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       14003 
14519 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       14004 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 14520 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       14005 
14521 
     | 
    
         
             
                        });
         
     | 
| 
       14006 
14522 
     | 
    
         
             
                        throw e;
         
     | 
| 
       14007 
14523 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -14033,13 +14549,13 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       14033 
14549 
     | 
    
         
             
                        } while (marker);
         
     | 
| 
       14034 
14550 
     | 
    
         
             
                        return {
         
     | 
| 
       14035 
14551 
     | 
    
         
             
                            closedHandlesCount: handlesClosed,
         
     | 
| 
       14036 
     | 
    
         
            -
                            closeFailureCount: numberOfHandlesFailedToClose
         
     | 
| 
      
 14552 
     | 
    
         
            +
                            closeFailureCount: numberOfHandlesFailedToClose,
         
     | 
| 
       14037 
14553 
     | 
    
         
             
                        };
         
     | 
| 
       14038 
14554 
     | 
    
         
             
                    }
         
     | 
| 
       14039 
14555 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       14040 
14556 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       14041 
14557 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       14042 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 14558 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       14043 
14559 
     | 
    
         
             
                        });
         
     | 
| 
       14044 
14560 
     | 
    
         
             
                        throw e;
         
     | 
| 
       14045 
14561 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -14070,7 +14586,7 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       14070 
14586 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       14071 
14587 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       14072 
14588 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       14073 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 14589 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       14074 
14590 
     | 
    
         
             
                        });
         
     | 
| 
       14075 
14591 
     | 
    
         
             
                        throw e;
         
     | 
| 
       14076 
14592 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -14105,6 +14621,68 @@ class ShareFileClient extends StorageClient { 
     | 
|
| 
       14105 
14621 
     | 
    
         
             
                    const sas = generateFileSASQueryParameters(Object.assign({ shareName: this.shareName, filePath: this.path }, options), this.credential).toString();
         
     | 
| 
       14106 
14622 
     | 
    
         
             
                    return appendToURLQuery(this.url, sas);
         
     | 
| 
       14107 
14623 
     | 
    
         
             
                }
         
     | 
| 
      
 14624 
     | 
    
         
            +
                /**
         
     | 
| 
      
 14625 
     | 
    
         
            +
                 * Renames a file.
         
     | 
| 
      
 14626 
     | 
    
         
            +
                 * This API only supports renaming a file in the same share.
         
     | 
| 
      
 14627 
     | 
    
         
            +
                 *
         
     | 
| 
      
 14628 
     | 
    
         
            +
                 * @param destinationPath - Specifies the destination path to rename to. The path will be encoded to put into a URL to specify the destination.
         
     | 
| 
      
 14629 
     | 
    
         
            +
                 * @param options - Options for the renaming operation.
         
     | 
| 
      
 14630 
     | 
    
         
            +
                 * @returns Response data for the file renaming operation.
         
     | 
| 
      
 14631 
     | 
    
         
            +
                 *
         
     | 
| 
      
 14632 
     | 
    
         
            +
                 * Example usage:
         
     | 
| 
      
 14633 
     | 
    
         
            +
                 *
         
     | 
| 
      
 14634 
     | 
    
         
            +
                 * ```js
         
     | 
| 
      
 14635 
     | 
    
         
            +
                 *
         
     | 
| 
      
 14636 
     | 
    
         
            +
                 * // Rename the file
         
     | 
| 
      
 14637 
     | 
    
         
            +
                 * await fileClient.rename(destinationPath);
         
     | 
| 
      
 14638 
     | 
    
         
            +
                 * console.log("Renamed file successfully!");
         
     | 
| 
      
 14639 
     | 
    
         
            +
                 * ```
         
     | 
| 
      
 14640 
     | 
    
         
            +
                 */
         
     | 
| 
      
 14641 
     | 
    
         
            +
                async rename(destinationPath, options = {}) {
         
     | 
| 
      
 14642 
     | 
    
         
            +
                    const { span, updatedOptions } = createSpan("ShareFileClient-rename", options);
         
     | 
| 
      
 14643 
     | 
    
         
            +
                    const split = destinationPath.split("?");
         
     | 
| 
      
 14644 
     | 
    
         
            +
                    let destinationUrl;
         
     | 
| 
      
 14645 
     | 
    
         
            +
                    if (split.length === 2) {
         
     | 
| 
      
 14646 
     | 
    
         
            +
                        const pathOnly = encodeURIComponent(split[0]);
         
     | 
| 
      
 14647 
     | 
    
         
            +
                        const renameDestination = `/${this.shareName}/${pathOnly}`;
         
     | 
| 
      
 14648 
     | 
    
         
            +
                        destinationUrl = setURLPath(this.url, renameDestination);
         
     | 
| 
      
 14649 
     | 
    
         
            +
                        destinationUrl = setURLQueries(destinationUrl, split[1]);
         
     | 
| 
      
 14650 
     | 
    
         
            +
                    }
         
     | 
| 
      
 14651 
     | 
    
         
            +
                    else if (split.length === 1) {
         
     | 
| 
      
 14652 
     | 
    
         
            +
                        const pathOnly = encodeURIComponent(destinationPath);
         
     | 
| 
      
 14653 
     | 
    
         
            +
                        const renameDestination = `/${this.shareName}/${pathOnly}`;
         
     | 
| 
      
 14654 
     | 
    
         
            +
                        destinationUrl = setURLPath(this.url, renameDestination);
         
     | 
| 
      
 14655 
     | 
    
         
            +
                    }
         
     | 
| 
      
 14656 
     | 
    
         
            +
                    else {
         
     | 
| 
      
 14657 
     | 
    
         
            +
                        throw new RangeError("Destination path should not contain more than one query string");
         
     | 
| 
      
 14658 
     | 
    
         
            +
                    }
         
     | 
| 
      
 14659 
     | 
    
         
            +
                    const destFile = new ShareFileClient(destinationUrl, this.pipeline);
         
     | 
| 
      
 14660 
     | 
    
         
            +
                    try {
         
     | 
| 
      
 14661 
     | 
    
         
            +
                        const response = await destFile.context.rename(this.url, Object.assign(Object.assign({}, updatedOptions), { sourceLeaseAccessConditions: updatedOptions.sourceLeaseAccessConditions
         
     | 
| 
      
 14662 
     | 
    
         
            +
                                ? {
         
     | 
| 
      
 14663 
     | 
    
         
            +
                                    sourceLeaseId: updatedOptions.sourceLeaseAccessConditions.leaseId,
         
     | 
| 
      
 14664 
     | 
    
         
            +
                                }
         
     | 
| 
      
 14665 
     | 
    
         
            +
                                : undefined, destinationLeaseAccessConditions: updatedOptions.destinationLeaseAccessConditions
         
     | 
| 
      
 14666 
     | 
    
         
            +
                                ? {
         
     | 
| 
      
 14667 
     | 
    
         
            +
                                    destinationLeaseId: updatedOptions.destinationLeaseAccessConditions.leaseId,
         
     | 
| 
      
 14668 
     | 
    
         
            +
                                }
         
     | 
| 
      
 14669 
     | 
    
         
            +
                                : undefined }));
         
     | 
| 
      
 14670 
     | 
    
         
            +
                        return {
         
     | 
| 
      
 14671 
     | 
    
         
            +
                            destinationFileClient: destFile,
         
     | 
| 
      
 14672 
     | 
    
         
            +
                            fileRenameResponse: response,
         
     | 
| 
      
 14673 
     | 
    
         
            +
                        };
         
     | 
| 
      
 14674 
     | 
    
         
            +
                    }
         
     | 
| 
      
 14675 
     | 
    
         
            +
                    catch (e) {
         
     | 
| 
      
 14676 
     | 
    
         
            +
                        span.setStatus({
         
     | 
| 
      
 14677 
     | 
    
         
            +
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
      
 14678 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
      
 14679 
     | 
    
         
            +
                        });
         
     | 
| 
      
 14680 
     | 
    
         
            +
                        throw e;
         
     | 
| 
      
 14681 
     | 
    
         
            +
                    }
         
     | 
| 
      
 14682 
     | 
    
         
            +
                    finally {
         
     | 
| 
      
 14683 
     | 
    
         
            +
                        span.end();
         
     | 
| 
      
 14684 
     | 
    
         
            +
                    }
         
     | 
| 
      
 14685 
     | 
    
         
            +
                }
         
     | 
| 
       14108 
14686 
     | 
    
         
             
            }
         
     | 
| 
       14109 
14687 
     | 
    
         
             
            /**
         
     | 
| 
       14110 
14688 
     | 
    
         
             
             * A client that manages leases for a {@link ShareFileClient} or {@link ShareClient}.
         
     | 
| 
         @@ -14165,7 +14743,7 @@ class ShareLeaseClient { 
     | 
|
| 
       14165 
14743 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       14166 
14744 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       14167 
14745 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       14168 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 14746 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       14169 
14747 
     | 
    
         
             
                        });
         
     | 
| 
       14170 
14748 
     | 
    
         
             
                        throw e;
         
     | 
| 
       14171 
14749 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -14190,7 +14768,7 @@ class ShareLeaseClient { 
     | 
|
| 
       14190 
14768 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       14191 
14769 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       14192 
14770 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       14193 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 14771 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       14194 
14772 
     | 
    
         
             
                        });
         
     | 
| 
       14195 
14773 
     | 
    
         
             
                        throw e;
         
     | 
| 
       14196 
14774 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -14213,7 +14791,7 @@ class ShareLeaseClient { 
     | 
|
| 
       14213 
14791 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       14214 
14792 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       14215 
14793 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       14216 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 14794 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       14217 
14795 
     | 
    
         
             
                        });
         
     | 
| 
       14218 
14796 
     | 
    
         
             
                        throw e;
         
     | 
| 
       14219 
14797 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -14235,7 +14813,7 @@ class ShareLeaseClient { 
     | 
|
| 
       14235 
14813 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       14236 
14814 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       14237 
14815 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       14238 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 14816 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       14239 
14817 
     | 
    
         
             
                        });
         
     | 
| 
       14240 
14818 
     | 
    
         
             
                        throw e;
         
     | 
| 
       14241 
14819 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -14262,7 +14840,7 @@ class ShareLeaseClient { 
     | 
|
| 
       14262 
14840 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       14263 
14841 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       14264 
14842 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       14265 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 14843 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       14266 
14844 
     | 
    
         
             
                        });
         
     | 
| 
       14267 
14845 
     | 
    
         
             
                        throw e;
         
     | 
| 
       14268 
14846 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -14329,11 +14907,14 @@ class ShareServiceClient extends StorageClient { 
     | 
|
| 
       14329 
14907 
     | 
    
         
             
                options) {
         
     | 
| 
       14330 
14908 
     | 
    
         
             
                    const extractedCreds = extractConnectionStringParts(connectionString);
         
     | 
| 
       14331 
14909 
     | 
    
         
             
                    if (extractedCreds.kind === "AccountConnString") {
         
     | 
| 
       14332 
     | 
    
         
            -
                        {
         
     | 
| 
      
 14910 
     | 
    
         
            +
                        if (coreHttp.isNode) {
         
     | 
| 
       14333 
14911 
     | 
    
         
             
                            const sharedKeyCredential = new StorageSharedKeyCredential(extractedCreds.accountName, extractedCreds.accountKey);
         
     | 
| 
       14334 
14912 
     | 
    
         
             
                            const pipeline = newPipeline(sharedKeyCredential, options);
         
     | 
| 
       14335 
14913 
     | 
    
         
             
                            return new ShareServiceClient(extractedCreds.url, pipeline);
         
     | 
| 
       14336 
14914 
     | 
    
         
             
                        }
         
     | 
| 
      
 14915 
     | 
    
         
            +
                        else {
         
     | 
| 
      
 14916 
     | 
    
         
            +
                            throw new Error("Account connection string is only supported in Node.js environment");
         
     | 
| 
      
 14917 
     | 
    
         
            +
                        }
         
     | 
| 
       14337 
14918 
     | 
    
         
             
                    }
         
     | 
| 
       14338 
14919 
     | 
    
         
             
                    else if (extractedCreds.kind === "SASConnString") {
         
     | 
| 
       14339 
14920 
     | 
    
         
             
                        const pipeline = newPipeline(new AnonymousCredential(), options);
         
     | 
| 
         @@ -14374,13 +14955,13 @@ class ShareServiceClient extends StorageClient { 
     | 
|
| 
       14374 
14955 
     | 
    
         
             
                        const shareCreateResponse = await shareClient.create(updatedOptions);
         
     | 
| 
       14375 
14956 
     | 
    
         
             
                        return {
         
     | 
| 
       14376 
14957 
     | 
    
         
             
                            shareCreateResponse,
         
     | 
| 
       14377 
     | 
    
         
            -
                            shareClient
         
     | 
| 
      
 14958 
     | 
    
         
            +
                            shareClient,
         
     | 
| 
       14378 
14959 
     | 
    
         
             
                        };
         
     | 
| 
       14379 
14960 
     | 
    
         
             
                    }
         
     | 
| 
       14380 
14961 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       14381 
14962 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       14382 
14963 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       14383 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 14964 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       14384 
14965 
     | 
    
         
             
                        });
         
     | 
| 
       14385 
14966 
     | 
    
         
             
                        throw e;
         
     | 
| 
       14386 
14967 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -14404,7 +14985,7 @@ class ShareServiceClient extends StorageClient { 
     | 
|
| 
       14404 
14985 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       14405 
14986 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       14406 
14987 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       14407 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 14988 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       14408 
14989 
     | 
    
         
             
                        });
         
     | 
| 
       14409 
14990 
     | 
    
         
             
                        throw e;
         
     | 
| 
       14410 
14991 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -14428,7 +15009,7 @@ class ShareServiceClient extends StorageClient { 
     | 
|
| 
       14428 
15009 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       14429 
15010 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       14430 
15011 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       14431 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 15012 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       14432 
15013 
     | 
    
         
             
                        });
         
     | 
| 
       14433 
15014 
     | 
    
         
             
                        throw e;
         
     | 
| 
       14434 
15015 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -14453,7 +15034,7 @@ class ShareServiceClient extends StorageClient { 
     | 
|
| 
       14453 
15034 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       14454 
15035 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       14455 
15036 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       14456 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 15037 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       14457 
15038 
     | 
    
         
             
                        });
         
     | 
| 
       14458 
15039 
     | 
    
         
             
                        throw e;
         
     | 
| 
       14459 
15040 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -14624,7 +15205,7 @@ class ShareServiceClient extends StorageClient { 
     | 
|
| 
       14624 
15205 
     | 
    
         
             
                         */
         
     | 
| 
       14625 
15206 
     | 
    
         
             
                        byPage: (settings = {}) => {
         
     | 
| 
       14626 
15207 
     | 
    
         
             
                            return this.listSegments(settings.continuationToken, Object.assign({ maxResults: settings.maxPageSize }, updatedOptions));
         
     | 
| 
       14627 
     | 
    
         
            -
                        }
         
     | 
| 
      
 15208 
     | 
    
         
            +
                        },
         
     | 
| 
       14628 
15209 
     | 
    
         
             
                    };
         
     | 
| 
       14629 
15210 
     | 
    
         
             
                }
         
     | 
| 
       14630 
15211 
     | 
    
         
             
                /**
         
     | 
| 
         @@ -14659,7 +15240,7 @@ class ShareServiceClient extends StorageClient { 
     | 
|
| 
       14659 
15240 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       14660 
15241 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       14661 
15242 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       14662 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 15243 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       14663 
15244 
     | 
    
         
             
                        });
         
     | 
| 
       14664 
15245 
     | 
    
         
             
                        throw e;
         
     | 
| 
       14665 
15246 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -14687,7 +15268,7 @@ class ShareServiceClient extends StorageClient { 
     | 
|
| 
       14687 
15268 
     | 
    
         
             
                    catch (e) {
         
     | 
| 
       14688 
15269 
     | 
    
         
             
                        span.setStatus({
         
     | 
| 
       14689 
15270 
     | 
    
         
             
                            code: coreTracing.SpanStatusCode.ERROR,
         
     | 
| 
       14690 
     | 
    
         
            -
                            message: e.message
         
     | 
| 
      
 15271 
     | 
    
         
            +
                            message: e.message,
         
     | 
| 
       14691 
15272 
     | 
    
         
             
                        });
         
     | 
| 
       14692 
15273 
     | 
    
         
             
                        throw e;
         
     | 
| 
       14693 
15274 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -14726,39 +15307,27 @@ class ShareServiceClient extends StorageClient { 
     | 
|
| 
       14726 
15307 
     | 
    
         | 
| 
       14727 
15308 
     | 
    
         
             
            Object.defineProperty(exports, 'BaseRequestPolicy', {
         
     | 
| 
       14728 
15309 
     | 
    
         
             
                enumerable: true,
         
     | 
| 
       14729 
     | 
    
         
            -
                get: function () {
         
     | 
| 
       14730 
     | 
    
         
            -
                    return coreHttp.BaseRequestPolicy;
         
     | 
| 
       14731 
     | 
    
         
            -
                }
         
     | 
| 
      
 15310 
     | 
    
         
            +
                get: function () { return coreHttp.BaseRequestPolicy; }
         
     | 
| 
       14732 
15311 
     | 
    
         
             
            });
         
     | 
| 
       14733 
15312 
     | 
    
         
             
            Object.defineProperty(exports, 'HttpHeaders', {
         
     | 
| 
       14734 
15313 
     | 
    
         
             
                enumerable: true,
         
     | 
| 
       14735 
     | 
    
         
            -
                get: function () {
         
     | 
| 
       14736 
     | 
    
         
            -
                    return coreHttp.HttpHeaders;
         
     | 
| 
       14737 
     | 
    
         
            -
                }
         
     | 
| 
      
 15314 
     | 
    
         
            +
                get: function () { return coreHttp.HttpHeaders; }
         
     | 
| 
       14738 
15315 
     | 
    
         
             
            });
         
     | 
| 
       14739 
15316 
     | 
    
         
             
            Object.defineProperty(exports, 'RequestPolicyOptions', {
         
     | 
| 
       14740 
15317 
     | 
    
         
             
                enumerable: true,
         
     | 
| 
       14741 
     | 
    
         
            -
                get: function () {
         
     | 
| 
       14742 
     | 
    
         
            -
                    return coreHttp.RequestPolicyOptions;
         
     | 
| 
       14743 
     | 
    
         
            -
                }
         
     | 
| 
      
 15318 
     | 
    
         
            +
                get: function () { return coreHttp.RequestPolicyOptions; }
         
     | 
| 
       14744 
15319 
     | 
    
         
             
            });
         
     | 
| 
       14745 
15320 
     | 
    
         
             
            Object.defineProperty(exports, 'RestError', {
         
     | 
| 
       14746 
15321 
     | 
    
         
             
                enumerable: true,
         
     | 
| 
       14747 
     | 
    
         
            -
                get: function () {
         
     | 
| 
       14748 
     | 
    
         
            -
                    return coreHttp.RestError;
         
     | 
| 
       14749 
     | 
    
         
            -
                }
         
     | 
| 
      
 15322 
     | 
    
         
            +
                get: function () { return coreHttp.RestError; }
         
     | 
| 
       14750 
15323 
     | 
    
         
             
            });
         
     | 
| 
       14751 
15324 
     | 
    
         
             
            Object.defineProperty(exports, 'WebResource', {
         
     | 
| 
       14752 
15325 
     | 
    
         
             
                enumerable: true,
         
     | 
| 
       14753 
     | 
    
         
            -
                get: function () {
         
     | 
| 
       14754 
     | 
    
         
            -
                    return coreHttp.WebResource;
         
     | 
| 
       14755 
     | 
    
         
            -
                }
         
     | 
| 
      
 15326 
     | 
    
         
            +
                get: function () { return coreHttp.WebResource; }
         
     | 
| 
       14756 
15327 
     | 
    
         
             
            });
         
     | 
| 
       14757 
15328 
     | 
    
         
             
            Object.defineProperty(exports, 'deserializationPolicy', {
         
     | 
| 
       14758 
15329 
     | 
    
         
             
                enumerable: true,
         
     | 
| 
       14759 
     | 
    
         
            -
                get: function () {
         
     | 
| 
       14760 
     | 
    
         
            -
                    return coreHttp.deserializationPolicy;
         
     | 
| 
       14761 
     | 
    
         
            -
                }
         
     | 
| 
      
 15330 
     | 
    
         
            +
                get: function () { return coreHttp.deserializationPolicy; }
         
     | 
| 
       14762 
15331 
     | 
    
         
             
            });
         
     | 
| 
       14763 
15332 
     | 
    
         
             
            exports.AccountSASPermissions = AccountSASPermissions;
         
     | 
| 
       14764 
15333 
     | 
    
         
             
            exports.AccountSASResourceTypes = AccountSASResourceTypes;
         
     |