@azure/storage-file-share 12.28.0-beta.1 → 12.29.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/AccountSASPermissions.d.ts +1 -1
- package/dist/browser/AccountSASPermissions.js +2 -2
- package/dist/browser/AccountSASPermissions.js.map +1 -1
- package/dist/browser/AccountSASResourceTypes.d.ts +1 -1
- package/dist/browser/AccountSASResourceTypes.js +1 -1
- package/dist/browser/AccountSASResourceTypes.js.map +1 -1
- package/dist/browser/AccountSASSignatureValues.d.ts +3 -3
- package/dist/browser/AccountSASSignatureValues.js +1 -1
- package/dist/browser/AccountSASSignatureValues.js.map +1 -1
- package/dist/browser/Clients.d.ts +53 -53
- package/dist/browser/Clients.d.ts.map +1 -1
- package/dist/browser/Clients.js +52 -51
- package/dist/browser/Clients.js.map +1 -1
- package/dist/browser/FileSASSignatureValues.d.ts +1 -1
- package/dist/browser/FileSASSignatureValues.js.map +1 -1
- package/dist/browser/FileSystemAttributes.d.ts +1 -1
- package/dist/browser/FileSystemAttributes.js +1 -1
- package/dist/browser/FileSystemAttributes.js.map +1 -1
- package/dist/browser/Pipeline.d.ts.map +1 -1
- package/dist/browser/Pipeline.js +2 -1
- package/dist/browser/Pipeline.js.map +1 -1
- package/dist/browser/Range.d.ts +1 -1
- package/dist/browser/Range.js.map +1 -1
- package/dist/browser/SASQueryParameters.d.ts +1 -1
- package/dist/browser/SASQueryParameters.js.map +1 -1
- package/dist/browser/ShareSASPermissions.d.ts +1 -1
- package/dist/browser/ShareSASPermissions.js +1 -1
- package/dist/browser/ShareSASPermissions.js.map +1 -1
- package/dist/browser/ShareServiceClient.d.ts +4 -4
- package/dist/browser/ShareServiceClient.js +4 -4
- package/dist/browser/ShareServiceClient.js.map +1 -1
- package/dist/browser/StorageRetryPolicyFactory.d.ts +1 -1
- package/dist/browser/StorageRetryPolicyFactory.js.map +1 -1
- package/dist/browser/generated/src/models/index.d.ts +62 -52
- package/dist/browser/generated/src/models/index.d.ts.map +1 -1
- package/dist/browser/generated/src/models/index.js +2 -0
- package/dist/browser/generated/src/models/index.js.map +1 -1
- package/dist/browser/generated/src/models/mappers.d.ts.map +1 -1
- package/dist/browser/generated/src/models/mappers.js +1779 -1730
- package/dist/browser/generated/src/models/mappers.js.map +1 -1
- package/dist/browser/generated/src/models/parameters.js +388 -388
- package/dist/browser/generated/src/models/parameters.js.map +1 -1
- package/dist/browser/generated/src/operations/directory.js +52 -52
- package/dist/browser/generated/src/operations/directory.js.map +1 -1
- package/dist/browser/generated/src/operations/file.js +113 -113
- package/dist/browser/generated/src/operations/file.js.map +1 -1
- package/dist/browser/generated/src/operations/service.js +18 -18
- package/dist/browser/generated/src/operations/service.js.map +1 -1
- package/dist/browser/generated/src/operations/share.js +104 -104
- package/dist/browser/generated/src/operations/share.js.map +1 -1
- package/dist/browser/generated/src/operationsInterfaces/directory.js.map +1 -1
- package/dist/browser/generated/src/operationsInterfaces/file.js.map +1 -1
- package/dist/browser/generated/src/operationsInterfaces/service.js.map +1 -1
- package/dist/browser/generated/src/operationsInterfaces/share.js.map +1 -1
- package/dist/browser/generated/src/storageClient.d.ts.map +1 -1
- package/dist/browser/generated/src/storageClient.js +5 -5
- package/dist/browser/generated/src/storageClient.js.map +1 -1
- package/dist/browser/policies/StorageRetryPolicy.d.ts.map +1 -1
- package/dist/browser/policies/StorageRetryPolicy.js +15 -17
- package/dist/browser/policies/StorageRetryPolicy.js.map +1 -1
- package/dist/browser/policies/StorageRetryPolicyV2.d.ts.map +1 -1
- package/dist/browser/policies/StorageRetryPolicyV2.js +15 -17
- package/dist/browser/policies/StorageRetryPolicyV2.js.map +1 -1
- package/dist/browser/utils/constants.js +2 -2
- package/dist/browser/utils/constants.js.map +1 -1
- package/dist/browser/utils/utils.common.d.ts +2 -2
- package/dist/browser/utils/utils.common.js +2 -2
- package/dist/browser/utils/utils.common.js.map +1 -1
- package/dist/commonjs/AccountSASPermissions.d.ts +1 -1
- package/dist/commonjs/AccountSASPermissions.js +2 -2
- package/dist/commonjs/AccountSASPermissions.js.map +1 -1
- package/dist/commonjs/AccountSASResourceTypes.d.ts +1 -1
- package/dist/commonjs/AccountSASResourceTypes.js +1 -1
- package/dist/commonjs/AccountSASResourceTypes.js.map +1 -1
- package/dist/commonjs/AccountSASSignatureValues.d.ts +3 -3
- package/dist/commonjs/AccountSASSignatureValues.js +1 -1
- package/dist/commonjs/AccountSASSignatureValues.js.map +1 -1
- package/dist/commonjs/Clients.d.ts +53 -53
- package/dist/commonjs/Clients.d.ts.map +1 -1
- package/dist/commonjs/Clients.js +52 -51
- package/dist/commonjs/Clients.js.map +1 -1
- package/dist/commonjs/FileSASSignatureValues.d.ts +1 -1
- package/dist/commonjs/FileSASSignatureValues.js.map +1 -1
- package/dist/commonjs/FileSystemAttributes.d.ts +1 -1
- package/dist/commonjs/FileSystemAttributes.js +1 -1
- package/dist/commonjs/FileSystemAttributes.js.map +1 -1
- package/dist/commonjs/Pipeline.d.ts.map +1 -1
- package/dist/commonjs/Pipeline.js +1 -0
- package/dist/commonjs/Pipeline.js.map +1 -1
- package/dist/commonjs/Range.d.ts +1 -1
- package/dist/commonjs/Range.js.map +1 -1
- package/dist/commonjs/SASQueryParameters.d.ts +1 -1
- package/dist/commonjs/SASQueryParameters.js.map +1 -1
- package/dist/commonjs/ShareSASPermissions.d.ts +1 -1
- package/dist/commonjs/ShareSASPermissions.js +1 -1
- package/dist/commonjs/ShareSASPermissions.js.map +1 -1
- package/dist/commonjs/ShareServiceClient.d.ts +4 -4
- package/dist/commonjs/ShareServiceClient.js +4 -4
- package/dist/commonjs/ShareServiceClient.js.map +1 -1
- package/dist/commonjs/StorageRetryPolicyFactory.d.ts +1 -1
- package/dist/commonjs/StorageRetryPolicyFactory.js.map +1 -1
- package/dist/commonjs/generated/src/models/index.d.ts +62 -52
- package/dist/commonjs/generated/src/models/index.d.ts.map +1 -1
- package/dist/commonjs/generated/src/models/index.js +2 -0
- package/dist/commonjs/generated/src/models/index.js.map +1 -1
- package/dist/commonjs/generated/src/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/generated/src/models/mappers.js +1779 -1730
- package/dist/commonjs/generated/src/models/mappers.js.map +1 -1
- package/dist/commonjs/generated/src/models/parameters.js +387 -387
- package/dist/commonjs/generated/src/models/parameters.js.map +1 -1
- package/dist/commonjs/generated/src/operations/directory.js +52 -52
- package/dist/commonjs/generated/src/operations/directory.js.map +1 -1
- package/dist/commonjs/generated/src/operations/file.js +113 -113
- package/dist/commonjs/generated/src/operations/file.js.map +1 -1
- package/dist/commonjs/generated/src/operations/service.js +18 -18
- package/dist/commonjs/generated/src/operations/service.js.map +1 -1
- package/dist/commonjs/generated/src/operations/share.js +104 -104
- package/dist/commonjs/generated/src/operations/share.js.map +1 -1
- package/dist/commonjs/generated/src/operationsInterfaces/directory.js.map +1 -1
- package/dist/commonjs/generated/src/operationsInterfaces/file.js.map +1 -1
- package/dist/commonjs/generated/src/operationsInterfaces/service.js.map +1 -1
- package/dist/commonjs/generated/src/operationsInterfaces/share.js.map +1 -1
- package/dist/commonjs/generated/src/storageClient.d.ts.map +1 -1
- package/dist/commonjs/generated/src/storageClient.js +4 -4
- package/dist/commonjs/generated/src/storageClient.js.map +1 -1
- package/dist/commonjs/policies/StorageRetryPolicy.d.ts.map +1 -1
- package/dist/commonjs/policies/StorageRetryPolicy.js +14 -16
- package/dist/commonjs/policies/StorageRetryPolicy.js.map +1 -1
- package/dist/commonjs/policies/StorageRetryPolicyV2.d.ts.map +1 -1
- package/dist/commonjs/policies/StorageRetryPolicyV2.js +14 -16
- package/dist/commonjs/policies/StorageRetryPolicyV2.js.map +1 -1
- package/dist/commonjs/utils/constants.js +2 -2
- package/dist/commonjs/utils/constants.js.map +1 -1
- package/dist/commonjs/utils/utils.common.d.ts +2 -2
- package/dist/commonjs/utils/utils.common.js +2 -2
- package/dist/commonjs/utils/utils.common.js.map +1 -1
- package/dist/esm/AccountSASPermissions.d.ts +1 -1
- package/dist/esm/AccountSASPermissions.js +2 -2
- package/dist/esm/AccountSASPermissions.js.map +1 -1
- package/dist/esm/AccountSASResourceTypes.d.ts +1 -1
- package/dist/esm/AccountSASResourceTypes.js +1 -1
- package/dist/esm/AccountSASResourceTypes.js.map +1 -1
- package/dist/esm/AccountSASSignatureValues.d.ts +3 -3
- package/dist/esm/AccountSASSignatureValues.js +1 -1
- package/dist/esm/AccountSASSignatureValues.js.map +1 -1
- package/dist/esm/Clients.d.ts +53 -53
- package/dist/esm/Clients.d.ts.map +1 -1
- package/dist/esm/Clients.js +52 -51
- package/dist/esm/Clients.js.map +1 -1
- package/dist/esm/FileSASSignatureValues.d.ts +1 -1
- package/dist/esm/FileSASSignatureValues.js.map +1 -1
- package/dist/esm/FileSystemAttributes.d.ts +1 -1
- package/dist/esm/FileSystemAttributes.js +1 -1
- package/dist/esm/FileSystemAttributes.js.map +1 -1
- package/dist/esm/Pipeline.d.ts.map +1 -1
- package/dist/esm/Pipeline.js +2 -1
- package/dist/esm/Pipeline.js.map +1 -1
- package/dist/esm/Range.d.ts +1 -1
- package/dist/esm/Range.js.map +1 -1
- package/dist/esm/SASQueryParameters.d.ts +1 -1
- package/dist/esm/SASQueryParameters.js.map +1 -1
- package/dist/esm/ShareSASPermissions.d.ts +1 -1
- package/dist/esm/ShareSASPermissions.js +1 -1
- package/dist/esm/ShareSASPermissions.js.map +1 -1
- package/dist/esm/ShareServiceClient.d.ts +4 -4
- package/dist/esm/ShareServiceClient.js +4 -4
- package/dist/esm/ShareServiceClient.js.map +1 -1
- package/dist/esm/StorageRetryPolicyFactory.d.ts +1 -1
- package/dist/esm/StorageRetryPolicyFactory.js.map +1 -1
- package/dist/esm/generated/src/models/index.d.ts +62 -52
- package/dist/esm/generated/src/models/index.d.ts.map +1 -1
- package/dist/esm/generated/src/models/index.js +2 -0
- package/dist/esm/generated/src/models/index.js.map +1 -1
- package/dist/esm/generated/src/models/mappers.d.ts.map +1 -1
- package/dist/esm/generated/src/models/mappers.js +1779 -1730
- package/dist/esm/generated/src/models/mappers.js.map +1 -1
- package/dist/esm/generated/src/models/parameters.js +388 -388
- package/dist/esm/generated/src/models/parameters.js.map +1 -1
- package/dist/esm/generated/src/operations/directory.js +52 -52
- package/dist/esm/generated/src/operations/directory.js.map +1 -1
- package/dist/esm/generated/src/operations/file.js +113 -113
- package/dist/esm/generated/src/operations/file.js.map +1 -1
- package/dist/esm/generated/src/operations/service.js +18 -18
- package/dist/esm/generated/src/operations/service.js.map +1 -1
- package/dist/esm/generated/src/operations/share.js +104 -104
- package/dist/esm/generated/src/operations/share.js.map +1 -1
- package/dist/esm/generated/src/operationsInterfaces/directory.js.map +1 -1
- package/dist/esm/generated/src/operationsInterfaces/file.js.map +1 -1
- package/dist/esm/generated/src/operationsInterfaces/service.js.map +1 -1
- package/dist/esm/generated/src/operationsInterfaces/share.js.map +1 -1
- package/dist/esm/generated/src/storageClient.d.ts.map +1 -1
- package/dist/esm/generated/src/storageClient.js +5 -5
- package/dist/esm/generated/src/storageClient.js.map +1 -1
- package/dist/esm/policies/StorageRetryPolicy.d.ts.map +1 -1
- package/dist/esm/policies/StorageRetryPolicy.js +15 -17
- package/dist/esm/policies/StorageRetryPolicy.js.map +1 -1
- package/dist/esm/policies/StorageRetryPolicyV2.d.ts.map +1 -1
- package/dist/esm/policies/StorageRetryPolicyV2.js +15 -17
- package/dist/esm/policies/StorageRetryPolicyV2.js.map +1 -1
- package/dist/esm/utils/constants.js +2 -2
- package/dist/esm/utils/constants.js.map +1 -1
- package/dist/esm/utils/utils.common.d.ts +2 -2
- package/dist/esm/utils/utils.common.js +2 -2
- package/dist/esm/utils/utils.common.js.map +1 -1
- package/dist/react-native/AccountSASPermissions.d.ts +1 -1
- package/dist/react-native/AccountSASPermissions.js +2 -2
- package/dist/react-native/AccountSASPermissions.js.map +1 -1
- package/dist/react-native/AccountSASResourceTypes.d.ts +1 -1
- package/dist/react-native/AccountSASResourceTypes.js +1 -1
- package/dist/react-native/AccountSASResourceTypes.js.map +1 -1
- package/dist/react-native/AccountSASSignatureValues.d.ts +3 -3
- package/dist/react-native/AccountSASSignatureValues.js +1 -1
- package/dist/react-native/AccountSASSignatureValues.js.map +1 -1
- package/dist/react-native/Clients.d.ts +53 -53
- package/dist/react-native/Clients.d.ts.map +1 -1
- package/dist/react-native/Clients.js +52 -51
- package/dist/react-native/Clients.js.map +1 -1
- package/dist/react-native/FileSASSignatureValues.d.ts +1 -1
- package/dist/react-native/FileSASSignatureValues.js.map +1 -1
- package/dist/react-native/FileSystemAttributes.d.ts +1 -1
- package/dist/react-native/FileSystemAttributes.js +1 -1
- package/dist/react-native/FileSystemAttributes.js.map +1 -1
- package/dist/react-native/Pipeline.d.ts.map +1 -1
- package/dist/react-native/Pipeline.js +2 -1
- package/dist/react-native/Pipeline.js.map +1 -1
- package/dist/react-native/Range.d.ts +1 -1
- package/dist/react-native/Range.js.map +1 -1
- package/dist/react-native/SASQueryParameters.d.ts +1 -1
- package/dist/react-native/SASQueryParameters.js.map +1 -1
- package/dist/react-native/ShareSASPermissions.d.ts +1 -1
- package/dist/react-native/ShareSASPermissions.js +1 -1
- package/dist/react-native/ShareSASPermissions.js.map +1 -1
- package/dist/react-native/ShareServiceClient.d.ts +4 -4
- package/dist/react-native/ShareServiceClient.js +4 -4
- package/dist/react-native/ShareServiceClient.js.map +1 -1
- package/dist/react-native/StorageRetryPolicyFactory.d.ts +1 -1
- package/dist/react-native/StorageRetryPolicyFactory.js.map +1 -1
- package/dist/react-native/generated/src/models/index.d.ts +62 -52
- package/dist/react-native/generated/src/models/index.d.ts.map +1 -1
- package/dist/react-native/generated/src/models/index.js +2 -0
- package/dist/react-native/generated/src/models/index.js.map +1 -1
- package/dist/react-native/generated/src/models/mappers.d.ts.map +1 -1
- package/dist/react-native/generated/src/models/mappers.js +1779 -1730
- package/dist/react-native/generated/src/models/mappers.js.map +1 -1
- package/dist/react-native/generated/src/models/parameters.js +388 -388
- package/dist/react-native/generated/src/models/parameters.js.map +1 -1
- package/dist/react-native/generated/src/operations/directory.js +52 -52
- package/dist/react-native/generated/src/operations/directory.js.map +1 -1
- package/dist/react-native/generated/src/operations/file.js +113 -113
- package/dist/react-native/generated/src/operations/file.js.map +1 -1
- package/dist/react-native/generated/src/operations/service.js +18 -18
- package/dist/react-native/generated/src/operations/service.js.map +1 -1
- package/dist/react-native/generated/src/operations/share.js +104 -104
- package/dist/react-native/generated/src/operations/share.js.map +1 -1
- package/dist/react-native/generated/src/operationsInterfaces/directory.js.map +1 -1
- package/dist/react-native/generated/src/operationsInterfaces/file.js.map +1 -1
- package/dist/react-native/generated/src/operationsInterfaces/service.js.map +1 -1
- package/dist/react-native/generated/src/operationsInterfaces/share.js.map +1 -1
- package/dist/react-native/generated/src/storageClient.d.ts.map +1 -1
- package/dist/react-native/generated/src/storageClient.js +5 -5
- package/dist/react-native/generated/src/storageClient.js.map +1 -1
- package/dist/react-native/policies/StorageRetryPolicy.d.ts.map +1 -1
- package/dist/react-native/policies/StorageRetryPolicy.js +15 -17
- package/dist/react-native/policies/StorageRetryPolicy.js.map +1 -1
- package/dist/react-native/policies/StorageRetryPolicyV2.d.ts.map +1 -1
- package/dist/react-native/policies/StorageRetryPolicyV2.js +15 -17
- package/dist/react-native/policies/StorageRetryPolicyV2.js.map +1 -1
- package/dist/react-native/utils/constants.js +2 -2
- package/dist/react-native/utils/constants.js.map +1 -1
- package/dist/react-native/utils/utils.common.d.ts +2 -2
- package/dist/react-native/utils/utils.common.js +2 -2
- package/dist/react-native/utils/utils.common.js.map +1 -1
- package/package.json +5 -5
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"share.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/share.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAwCtD,yCAAyC;AACzC,MA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EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;IAC/B,gBAAgB,EAAE;QAChB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,OAAO;KACnB;IACD,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,aAAa;CAC1B,CAAC;AACF,MAAM,oBAAoB,GAA6B;IACrD,IAAI,EAAE,cAAc;IACpB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,mBAAmB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,YAAY;YAChC,aAAa,EAAE,OAAO,CAAC,4BAA4B;SACpD;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,KAAK;KACjB;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;IAC/B,gBAAgB,EAAE;QAChB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,mBAAmB;KAC/B;IACD,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,aAAa;CAC1B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Share } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageClient } from \"../storageClient.js\";\nimport {\n ShareCreateOptionalParams,\n ShareCreateResponse,\n ShareGetPropertiesOptionalParams,\n ShareGetPropertiesResponse,\n ShareDeleteOptionalParams,\n ShareDeleteResponse,\n ShareAcquireLeaseOptionalParams,\n ShareAcquireLeaseResponse,\n ShareReleaseLeaseOptionalParams,\n ShareReleaseLeaseResponse,\n ShareChangeLeaseOptionalParams,\n ShareChangeLeaseResponse,\n ShareRenewLeaseOptionalParams,\n ShareRenewLeaseResponse,\n ShareBreakLeaseOptionalParams,\n ShareBreakLeaseResponse,\n ShareCreateSnapshotOptionalParams,\n ShareCreateSnapshotResponse,\n SharePermission,\n ShareCreatePermissionOptionalParams,\n ShareCreatePermissionResponse,\n ShareGetPermissionOptionalParams,\n ShareGetPermissionResponse,\n ShareSetPropertiesOptionalParams,\n ShareSetPropertiesResponse,\n ShareSetMetadataOptionalParams,\n ShareSetMetadataResponse,\n ShareGetAccessPolicyOptionalParams,\n ShareGetAccessPolicyResponse,\n ShareSetAccessPolicyOptionalParams,\n ShareSetAccessPolicyResponse,\n ShareGetStatisticsOptionalParams,\n ShareGetStatisticsResponse,\n ShareRestoreOptionalParams,\n ShareRestoreResponse\n} from \"../models/index.js\";\n\n/** Class containing Share operations. */\nexport class ShareImpl implements Share {\n private readonly client: StorageClient;\n\n /**\n * Initialize a new instance of the class Share class.\n * @param client Reference to the service client\n */\n constructor(client: StorageClient) {\n this.client = client;\n }\n\n /**\n * Creates a new share under the specified account. If the share with the same name already exists, the\n * operation fails.\n * @param options The options parameters.\n */\n create(options?: ShareCreateOptionalParams): Promise<ShareCreateResponse> {\n return this.client.sendOperationRequest({ options }, createOperationSpec);\n }\n\n /**\n * Returns all user-defined metadata and system properties for the specified share or share snapshot.\n * The data returned does not include the share's list of files.\n * @param options The options parameters.\n */\n getProperties(\n options?: ShareGetPropertiesOptionalParams\n ): Promise<ShareGetPropertiesResponse> {\n return this.client.sendOperationRequest(\n { options },\n getPropertiesOperationSpec\n );\n }\n\n /**\n * Operation marks the specified share or share snapshot for deletion. The share or share snapshot and\n * any files contained within it are later deleted during garbage collection.\n * @param options The options parameters.\n */\n delete(options?: ShareDeleteOptionalParams): Promise<ShareDeleteResponse> {\n return this.client.sendOperationRequest({ options }, deleteOperationSpec);\n }\n\n /**\n * The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for\n * set and delete share operations.\n * @param options The options parameters.\n */\n acquireLease(\n options?: ShareAcquireLeaseOptionalParams\n ): Promise<ShareAcquireLeaseResponse> {\n return this.client.sendOperationRequest(\n { options },\n acquireLeaseOperationSpec\n );\n }\n\n /**\n * The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for\n * set and delete share operations.\n * @param leaseId Specifies the current lease ID on the resource.\n * @param options The options parameters.\n */\n releaseLease(\n leaseId: string,\n options?: ShareReleaseLeaseOptionalParams\n ): Promise<ShareReleaseLeaseResponse> {\n return this.client.sendOperationRequest(\n { leaseId, options },\n releaseLeaseOperationSpec\n );\n }\n\n /**\n * The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for\n * set and delete share operations.\n * @param leaseId Specifies the current lease ID on the resource.\n * @param options The options parameters.\n */\n changeLease(\n leaseId: string,\n options?: ShareChangeLeaseOptionalParams\n ): Promise<ShareChangeLeaseResponse> {\n return this.client.sendOperationRequest(\n { leaseId, options },\n changeLeaseOperationSpec\n );\n }\n\n /**\n * The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for\n * set and delete share operations.\n * @param leaseId Specifies the current lease ID on the resource.\n * @param options The options parameters.\n */\n renewLease(\n leaseId: string,\n options?: ShareRenewLeaseOptionalParams\n ): Promise<ShareRenewLeaseResponse> {\n return this.client.sendOperationRequest(\n { leaseId, options },\n renewLeaseOperationSpec\n );\n }\n\n /**\n * The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for\n * set and delete share operations.\n * @param options The options parameters.\n */\n breakLease(\n options?: ShareBreakLeaseOptionalParams\n ): Promise<ShareBreakLeaseResponse> {\n return this.client.sendOperationRequest(\n { options },\n breakLeaseOperationSpec\n );\n }\n\n /**\n * Creates a read-only snapshot of a share.\n * @param options The options parameters.\n */\n createSnapshot(\n options?: ShareCreateSnapshotOptionalParams\n ): Promise<ShareCreateSnapshotResponse> {\n return this.client.sendOperationRequest(\n { options },\n createSnapshotOperationSpec\n );\n }\n\n /**\n * Create a permission (a security descriptor).\n * @param sharePermission A permission (a security descriptor) at the share level.\n * @param options The options parameters.\n */\n createPermission(\n sharePermission: SharePermission,\n options?: ShareCreatePermissionOptionalParams\n ): Promise<ShareCreatePermissionResponse> {\n return this.client.sendOperationRequest(\n { sharePermission, options },\n createPermissionOperationSpec\n );\n }\n\n /**\n * Returns the permission (security descriptor) for a given key\n * @param filePermissionKey Key of the permission to be set for the directory/file.\n * @param options The options parameters.\n */\n getPermission(\n filePermissionKey: string,\n options?: ShareGetPermissionOptionalParams\n ): Promise<ShareGetPermissionResponse> {\n return this.client.sendOperationRequest(\n { filePermissionKey, options },\n getPermissionOperationSpec\n );\n }\n\n /**\n * Sets properties for the specified share.\n * @param options The options parameters.\n */\n setProperties(\n options?: ShareSetPropertiesOptionalParams\n ): Promise<ShareSetPropertiesResponse> {\n return this.client.sendOperationRequest(\n { options },\n setPropertiesOperationSpec\n );\n }\n\n /**\n * Sets one or more user-defined name-value pairs for the specified share.\n * @param options The options parameters.\n */\n setMetadata(\n options?: ShareSetMetadataOptionalParams\n ): Promise<ShareSetMetadataResponse> {\n return this.client.sendOperationRequest(\n { options },\n setMetadataOperationSpec\n );\n }\n\n /**\n * Returns information about stored access policies specified on the share.\n * @param options The options parameters.\n */\n getAccessPolicy(\n options?: ShareGetAccessPolicyOptionalParams\n ): Promise<ShareGetAccessPolicyResponse> {\n return this.client.sendOperationRequest(\n { options },\n getAccessPolicyOperationSpec\n );\n }\n\n /**\n * Sets a stored access policy for use with shared access signatures.\n * @param options The options parameters.\n */\n setAccessPolicy(\n options?: ShareSetAccessPolicyOptionalParams\n ): Promise<ShareSetAccessPolicyResponse> {\n return this.client.sendOperationRequest(\n { options },\n setAccessPolicyOperationSpec\n );\n }\n\n /**\n * Retrieves statistics related to the share.\n * @param options The options parameters.\n */\n getStatistics(\n options?: ShareGetStatisticsOptionalParams\n ): Promise<ShareGetStatisticsResponse> {\n return this.client.sendOperationRequest(\n { options },\n getStatisticsOperationSpec\n );\n }\n\n /**\n * Restores a previously deleted Share.\n * @param options The options parameters.\n */\n restore(options?: ShareRestoreOptionalParams): Promise<ShareRestoreResponse> {\n return this.client.sendOperationRequest({ options }, restoreOperationSpec);\n }\n}\n// Operation Specifications\nconst xmlSerializer = coreClient.createSerializer(Mappers, /* isXml */ true);\n\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: Mappers.ShareCreateHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareCreateExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds, Parameters.restype1],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.metadata,\n Parameters.quota,\n Parameters.accessTier,\n Parameters.enabledProtocols,\n Parameters.rootSquash,\n Parameters.enableSnapshotVirtualDirectoryAccess,\n Parameters.paidBurstingEnabled,\n Parameters.paidBurstingMaxBandwidthMibps,\n Parameters.paidBurstingMaxIops,\n Parameters.shareProvisionedIops,\n Parameters.shareProvisionedBandwidthMibps\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst getPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n headersMapper: Mappers.ShareGetPropertiesHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareGetPropertiesExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.shareSnapshot\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.leaseId\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"DELETE\",\n responses: {\n 202: {\n headersMapper: Mappers.ShareDeleteHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareDeleteExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.shareSnapshot\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.leaseId,\n Parameters.deleteSnapshots\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst acquireLeaseOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: Mappers.ShareAcquireLeaseHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareAcquireLeaseExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.shareSnapshot,\n Parameters.comp2\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.action,\n Parameters.duration,\n Parameters.proposedLeaseId,\n Parameters.requestId\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst releaseLeaseOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: Mappers.ShareReleaseLeaseHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareReleaseLeaseExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.shareSnapshot,\n Parameters.comp2\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.requestId,\n Parameters.action1,\n Parameters.leaseId1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst changeLeaseOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: Mappers.ShareChangeLeaseHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareChangeLeaseExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.shareSnapshot,\n Parameters.comp2\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.proposedLeaseId,\n Parameters.requestId,\n Parameters.leaseId1,\n Parameters.action2\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst renewLeaseOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: Mappers.ShareRenewLeaseHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareRenewLeaseExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.shareSnapshot,\n Parameters.comp2\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.requestId,\n Parameters.leaseId1,\n Parameters.action3\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst breakLeaseOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"PUT\",\n responses: {\n 202: {\n headersMapper: Mappers.ShareBreakLeaseHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareBreakLeaseExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.shareSnapshot,\n Parameters.comp2\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.leaseId,\n Parameters.requestId,\n Parameters.action4,\n Parameters.breakPeriod\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst createSnapshotOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: Mappers.ShareCreateSnapshotHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareCreateSnapshotExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.comp3\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.metadata\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst createPermissionOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: Mappers.ShareCreatePermissionHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareCreatePermissionExceptionHeaders\n }\n },\n requestBody: Parameters.sharePermission,\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.comp4\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.contentType1\n ],\n mediaType: \"json\",\n serializer\n};\nconst getPermissionOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SharePermission,\n headersMapper: Mappers.ShareGetPermissionHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareGetPermissionExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.comp4\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept2,\n Parameters.filePermissionKey,\n Parameters.filePermissionFormat\n ],\n serializer\n};\nconst setPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: Mappers.ShareSetPropertiesHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareSetPropertiesExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.comp,\n Parameters.timeoutInSeconds,\n Parameters.restype1\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.quota,\n Parameters.accessTier,\n Parameters.rootSquash,\n Parameters.enableSnapshotVirtualDirectoryAccess,\n Parameters.paidBurstingEnabled,\n Parameters.paidBurstingMaxBandwidthMibps,\n Parameters.paidBurstingMaxIops,\n Parameters.shareProvisionedIops,\n Parameters.shareProvisionedBandwidthMibps,\n Parameters.leaseId\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst setMetadataOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: Mappers.ShareSetMetadataHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareSetMetadataExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.comp5\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.metadata,\n Parameters.leaseId\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst getAccessPolicyOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"SignedIdentifier\" }\n }\n },\n serializedName: \"SignedIdentifiers\",\n xmlName: \"SignedIdentifiers\",\n xmlIsWrapped: true,\n xmlElementName: \"SignedIdentifier\"\n },\n headersMapper: Mappers.ShareGetAccessPolicyHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareGetAccessPolicyExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.comp6\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.leaseId\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst setAccessPolicyOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: Mappers.ShareSetAccessPolicyHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareSetAccessPolicyExceptionHeaders\n }\n },\n requestBody: Parameters.shareAcl,\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.comp6\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.leaseId\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer\n};\nconst getStatisticsOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ShareStats,\n headersMapper: Mappers.ShareGetStatisticsHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareGetStatisticsExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.comp7\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.leaseId\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst restoreOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: Mappers.ShareRestoreHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareRestoreExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.comp8\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.requestId,\n Parameters.deletedShareName,\n Parameters.deletedShareVersion\n ],\n isXML: true,\n serializer: xmlSerializer\n};\n"]}
|
1
|
+
{"version":3,"file":"share.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/share.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAwCtD,yCAAyC;AACzC,MAAM,OAAO,SAAS;IAGpB;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,OAAmC;QACxC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,mBAAmB,CAAC,CAAC;IAC5E,CAAC;IAED;;;;OAIG;IACH,aAAa,CACX,OAA0C;QAE1C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,OAAO,EAAE,EACX,0BAA0B,CAC3B,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,OAAmC;QACxC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,mBAAmB,CAAC,CAAC;IAC5E,CAAC;IAED;;;;OAIG;IACH,YAAY,CACV,OAAyC;QAEzC,OAAO,IAAI,CAAC,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AAC,GAAG,CAAC;IAC/B,gBAAgB,EAAE;QAChB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,mBAAmB;KAC/B;IACD,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,aAAa;CAC1B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Share } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageClient } from \"../storageClient.js\";\nimport {\n ShareCreateOptionalParams,\n ShareCreateResponse,\n ShareGetPropertiesOptionalParams,\n ShareGetPropertiesResponse,\n ShareDeleteOptionalParams,\n ShareDeleteResponse,\n ShareAcquireLeaseOptionalParams,\n ShareAcquireLeaseResponse,\n ShareReleaseLeaseOptionalParams,\n ShareReleaseLeaseResponse,\n ShareChangeLeaseOptionalParams,\n ShareChangeLeaseResponse,\n ShareRenewLeaseOptionalParams,\n ShareRenewLeaseResponse,\n ShareBreakLeaseOptionalParams,\n ShareBreakLeaseResponse,\n ShareCreateSnapshotOptionalParams,\n ShareCreateSnapshotResponse,\n SharePermission,\n ShareCreatePermissionOptionalParams,\n ShareCreatePermissionResponse,\n ShareGetPermissionOptionalParams,\n ShareGetPermissionResponse,\n ShareSetPropertiesOptionalParams,\n ShareSetPropertiesResponse,\n ShareSetMetadataOptionalParams,\n ShareSetMetadataResponse,\n ShareGetAccessPolicyOptionalParams,\n ShareGetAccessPolicyResponse,\n ShareSetAccessPolicyOptionalParams,\n ShareSetAccessPolicyResponse,\n ShareGetStatisticsOptionalParams,\n ShareGetStatisticsResponse,\n ShareRestoreOptionalParams,\n ShareRestoreResponse,\n} from \"../models/index.js\";\n\n/** Class containing Share operations. */\nexport class ShareImpl implements Share {\n private readonly client: StorageClient;\n\n /**\n * Initialize a new instance of the class Share class.\n * @param client Reference to the service client\n */\n constructor(client: StorageClient) {\n this.client = client;\n }\n\n /**\n * Creates a new share under the specified account. If the share with the same name already exists, the\n * operation fails.\n * @param options The options parameters.\n */\n create(options?: ShareCreateOptionalParams): Promise<ShareCreateResponse> {\n return this.client.sendOperationRequest({ options }, createOperationSpec);\n }\n\n /**\n * Returns all user-defined metadata and system properties for the specified share or share snapshot.\n * The data returned does not include the share's list of files.\n * @param options The options parameters.\n */\n getProperties(\n options?: ShareGetPropertiesOptionalParams,\n ): Promise<ShareGetPropertiesResponse> {\n return this.client.sendOperationRequest(\n { options },\n getPropertiesOperationSpec,\n );\n }\n\n /**\n * Operation marks the specified share or share snapshot for deletion. The share or share snapshot and\n * any files contained within it are later deleted during garbage collection.\n * @param options The options parameters.\n */\n delete(options?: ShareDeleteOptionalParams): Promise<ShareDeleteResponse> {\n return this.client.sendOperationRequest({ options }, deleteOperationSpec);\n }\n\n /**\n * The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for\n * set and delete share operations.\n * @param options The options parameters.\n */\n acquireLease(\n options?: ShareAcquireLeaseOptionalParams,\n ): Promise<ShareAcquireLeaseResponse> {\n return this.client.sendOperationRequest(\n { options },\n acquireLeaseOperationSpec,\n );\n }\n\n /**\n * The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for\n * set and delete share operations.\n * @param leaseId Specifies the current lease ID on the resource.\n * @param options The options parameters.\n */\n releaseLease(\n leaseId: string,\n options?: ShareReleaseLeaseOptionalParams,\n ): Promise<ShareReleaseLeaseResponse> {\n return this.client.sendOperationRequest(\n { leaseId, options },\n releaseLeaseOperationSpec,\n );\n }\n\n /**\n * The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for\n * set and delete share operations.\n * @param leaseId Specifies the current lease ID on the resource.\n * @param options The options parameters.\n */\n changeLease(\n leaseId: string,\n options?: ShareChangeLeaseOptionalParams,\n ): Promise<ShareChangeLeaseResponse> {\n return this.client.sendOperationRequest(\n { leaseId, options },\n changeLeaseOperationSpec,\n );\n }\n\n /**\n * The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for\n * set and delete share operations.\n * @param leaseId Specifies the current lease ID on the resource.\n * @param options The options parameters.\n */\n renewLease(\n leaseId: string,\n options?: ShareRenewLeaseOptionalParams,\n ): Promise<ShareRenewLeaseResponse> {\n return this.client.sendOperationRequest(\n { leaseId, options },\n renewLeaseOperationSpec,\n );\n }\n\n /**\n * The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for\n * set and delete share operations.\n * @param options The options parameters.\n */\n breakLease(\n options?: ShareBreakLeaseOptionalParams,\n ): Promise<ShareBreakLeaseResponse> {\n return this.client.sendOperationRequest(\n { options },\n breakLeaseOperationSpec,\n );\n }\n\n /**\n * Creates a read-only snapshot of a share.\n * @param options The options parameters.\n */\n createSnapshot(\n options?: ShareCreateSnapshotOptionalParams,\n ): Promise<ShareCreateSnapshotResponse> {\n return this.client.sendOperationRequest(\n { options },\n createSnapshotOperationSpec,\n );\n }\n\n /**\n * Create a permission (a security descriptor).\n * @param sharePermission A permission (a security descriptor) at the share level.\n * @param options The options parameters.\n */\n createPermission(\n sharePermission: SharePermission,\n options?: ShareCreatePermissionOptionalParams,\n ): Promise<ShareCreatePermissionResponse> {\n return this.client.sendOperationRequest(\n { sharePermission, options },\n createPermissionOperationSpec,\n );\n }\n\n /**\n * Returns the permission (security descriptor) for a given key\n * @param filePermissionKey Key of the permission to be set for the directory/file.\n * @param options The options parameters.\n */\n getPermission(\n filePermissionKey: string,\n options?: ShareGetPermissionOptionalParams,\n ): Promise<ShareGetPermissionResponse> {\n return this.client.sendOperationRequest(\n { filePermissionKey, options },\n getPermissionOperationSpec,\n );\n }\n\n /**\n * Sets properties for the specified share.\n * @param options The options parameters.\n */\n setProperties(\n options?: ShareSetPropertiesOptionalParams,\n ): Promise<ShareSetPropertiesResponse> {\n return this.client.sendOperationRequest(\n { options },\n setPropertiesOperationSpec,\n );\n }\n\n /**\n * Sets one or more user-defined name-value pairs for the specified share.\n * @param options The options parameters.\n */\n setMetadata(\n options?: ShareSetMetadataOptionalParams,\n ): Promise<ShareSetMetadataResponse> {\n return this.client.sendOperationRequest(\n { options },\n setMetadataOperationSpec,\n );\n }\n\n /**\n * Returns information about stored access policies specified on the share.\n * @param options The options parameters.\n */\n getAccessPolicy(\n options?: ShareGetAccessPolicyOptionalParams,\n ): Promise<ShareGetAccessPolicyResponse> {\n return this.client.sendOperationRequest(\n { options },\n getAccessPolicyOperationSpec,\n );\n }\n\n /**\n * Sets a stored access policy for use with shared access signatures.\n * @param options The options parameters.\n */\n setAccessPolicy(\n options?: ShareSetAccessPolicyOptionalParams,\n ): Promise<ShareSetAccessPolicyResponse> {\n return this.client.sendOperationRequest(\n { options },\n setAccessPolicyOperationSpec,\n );\n }\n\n /**\n * Retrieves statistics related to the share.\n * @param options The options parameters.\n */\n getStatistics(\n options?: ShareGetStatisticsOptionalParams,\n ): Promise<ShareGetStatisticsResponse> {\n return this.client.sendOperationRequest(\n { options },\n getStatisticsOperationSpec,\n );\n }\n\n /**\n * Restores a previously deleted Share.\n * @param options The options parameters.\n */\n restore(options?: ShareRestoreOptionalParams): Promise<ShareRestoreResponse> {\n return this.client.sendOperationRequest({ options }, restoreOperationSpec);\n }\n}\n// Operation Specifications\nconst xmlSerializer = coreClient.createSerializer(Mappers, /* isXml */ true);\n\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: Mappers.ShareCreateHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareCreateExceptionHeaders,\n },\n },\n queryParameters: [Parameters.timeoutInSeconds, Parameters.restype1],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.metadata,\n Parameters.quota,\n Parameters.accessTier,\n Parameters.enabledProtocols,\n Parameters.rootSquash,\n Parameters.enableSnapshotVirtualDirectoryAccess,\n Parameters.paidBurstingEnabled,\n Parameters.paidBurstingMaxBandwidthMibps,\n Parameters.paidBurstingMaxIops,\n Parameters.shareProvisionedIops,\n Parameters.shareProvisionedBandwidthMibps,\n ],\n isXML: true,\n serializer: xmlSerializer,\n};\nconst getPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n headersMapper: Mappers.ShareGetPropertiesHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareGetPropertiesExceptionHeaders,\n },\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.shareSnapshot,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.leaseId,\n ],\n isXML: true,\n serializer: xmlSerializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"DELETE\",\n responses: {\n 202: {\n headersMapper: Mappers.ShareDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareDeleteExceptionHeaders,\n },\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.shareSnapshot,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.leaseId,\n Parameters.deleteSnapshots,\n ],\n isXML: true,\n serializer: xmlSerializer,\n};\nconst acquireLeaseOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: Mappers.ShareAcquireLeaseHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareAcquireLeaseExceptionHeaders,\n },\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.shareSnapshot,\n Parameters.comp2,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.action,\n Parameters.duration,\n Parameters.proposedLeaseId,\n Parameters.requestId,\n ],\n isXML: true,\n serializer: xmlSerializer,\n};\nconst releaseLeaseOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: Mappers.ShareReleaseLeaseHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareReleaseLeaseExceptionHeaders,\n },\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.shareSnapshot,\n Parameters.comp2,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.requestId,\n Parameters.action1,\n Parameters.leaseId1,\n ],\n isXML: true,\n serializer: xmlSerializer,\n};\nconst changeLeaseOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: Mappers.ShareChangeLeaseHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareChangeLeaseExceptionHeaders,\n },\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.shareSnapshot,\n Parameters.comp2,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.proposedLeaseId,\n Parameters.requestId,\n Parameters.leaseId1,\n Parameters.action2,\n ],\n isXML: true,\n serializer: xmlSerializer,\n};\nconst renewLeaseOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: Mappers.ShareRenewLeaseHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareRenewLeaseExceptionHeaders,\n },\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.shareSnapshot,\n Parameters.comp2,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.requestId,\n Parameters.leaseId1,\n Parameters.action3,\n ],\n isXML: true,\n serializer: xmlSerializer,\n};\nconst breakLeaseOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"PUT\",\n responses: {\n 202: {\n headersMapper: Mappers.ShareBreakLeaseHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareBreakLeaseExceptionHeaders,\n },\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.shareSnapshot,\n Parameters.comp2,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.leaseId,\n Parameters.requestId,\n Parameters.action4,\n Parameters.breakPeriod,\n ],\n isXML: true,\n serializer: xmlSerializer,\n};\nconst createSnapshotOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: Mappers.ShareCreateSnapshotHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareCreateSnapshotExceptionHeaders,\n },\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.comp3,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.metadata,\n ],\n isXML: true,\n serializer: xmlSerializer,\n};\nconst createPermissionOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: Mappers.ShareCreatePermissionHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareCreatePermissionExceptionHeaders,\n },\n },\n requestBody: Parameters.sharePermission,\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.comp4,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.contentType1,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst getPermissionOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SharePermission,\n headersMapper: Mappers.ShareGetPermissionHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareGetPermissionExceptionHeaders,\n },\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.comp4,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept2,\n Parameters.filePermissionKey,\n Parameters.filePermissionFormat,\n ],\n serializer,\n};\nconst setPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: Mappers.ShareSetPropertiesHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareSetPropertiesExceptionHeaders,\n },\n },\n queryParameters: [\n Parameters.comp,\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.quota,\n Parameters.accessTier,\n Parameters.rootSquash,\n Parameters.enableSnapshotVirtualDirectoryAccess,\n Parameters.paidBurstingEnabled,\n Parameters.paidBurstingMaxBandwidthMibps,\n Parameters.paidBurstingMaxIops,\n Parameters.shareProvisionedIops,\n Parameters.shareProvisionedBandwidthMibps,\n Parameters.leaseId,\n ],\n isXML: true,\n serializer: xmlSerializer,\n};\nconst setMetadataOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: Mappers.ShareSetMetadataHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareSetMetadataExceptionHeaders,\n },\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.comp5,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.metadata,\n Parameters.leaseId,\n ],\n isXML: true,\n serializer: xmlSerializer,\n};\nconst getAccessPolicyOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"SignedIdentifier\" },\n },\n },\n serializedName: \"SignedIdentifiers\",\n xmlName: \"SignedIdentifiers\",\n xmlIsWrapped: true,\n xmlElementName: \"SignedIdentifier\",\n },\n headersMapper: Mappers.ShareGetAccessPolicyHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareGetAccessPolicyExceptionHeaders,\n },\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.comp6,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.leaseId,\n ],\n isXML: true,\n serializer: xmlSerializer,\n};\nconst setAccessPolicyOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: Mappers.ShareSetAccessPolicyHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareSetAccessPolicyExceptionHeaders,\n },\n },\n requestBody: Parameters.shareAcl,\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.comp6,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.leaseId,\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer,\n};\nconst getStatisticsOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ShareStats,\n headersMapper: Mappers.ShareGetStatisticsHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareGetStatisticsExceptionHeaders,\n },\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.comp7,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.leaseId,\n ],\n isXML: true,\n serializer: xmlSerializer,\n};\nconst restoreOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: Mappers.ShareRestoreHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ShareRestoreExceptionHeaders,\n },\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype1,\n Parameters.comp8,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.requestId,\n Parameters.deletedShareName,\n Parameters.deletedShareVersion,\n ],\n isXML: true,\n serializer: xmlSerializer,\n};\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"directory.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/directory.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n DirectoryCreateOptionalParams,\n DirectoryCreateResponse,\n DirectoryGetPropertiesOptionalParams,\n DirectoryGetPropertiesResponse,\n DirectoryDeleteOptionalParams,\n DirectoryDeleteResponse,\n DirectorySetPropertiesOptionalParams,\n DirectorySetPropertiesResponse,\n DirectorySetMetadataOptionalParams,\n DirectorySetMetadataResponse,\n DirectoryListFilesAndDirectoriesSegmentOptionalParams,\n DirectoryListFilesAndDirectoriesSegmentResponse,\n DirectoryListHandlesOptionalParams,\n DirectoryListHandlesResponse,\n DirectoryForceCloseHandlesOptionalParams,\n DirectoryForceCloseHandlesResponse,\n DirectoryRenameOptionalParams,\n DirectoryRenameResponse
|
1
|
+
{"version":3,"file":"directory.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/directory.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n DirectoryCreateOptionalParams,\n DirectoryCreateResponse,\n DirectoryGetPropertiesOptionalParams,\n DirectoryGetPropertiesResponse,\n DirectoryDeleteOptionalParams,\n DirectoryDeleteResponse,\n DirectorySetPropertiesOptionalParams,\n DirectorySetPropertiesResponse,\n DirectorySetMetadataOptionalParams,\n DirectorySetMetadataResponse,\n DirectoryListFilesAndDirectoriesSegmentOptionalParams,\n DirectoryListFilesAndDirectoriesSegmentResponse,\n DirectoryListHandlesOptionalParams,\n DirectoryListHandlesResponse,\n DirectoryForceCloseHandlesOptionalParams,\n DirectoryForceCloseHandlesResponse,\n DirectoryRenameOptionalParams,\n DirectoryRenameResponse,\n} from \"../models/index.js\";\n\n/** Interface representing a Directory. */\nexport interface Directory {\n /**\n * Creates a new directory under the specified share or parent directory.\n * @param options The options parameters.\n */\n create(\n options?: DirectoryCreateOptionalParams,\n ): Promise<DirectoryCreateResponse>;\n /**\n * Returns all system properties for the specified directory, and can also be used to check the\n * existence of a directory. The data returned does not include the files in the directory or any\n * subdirectories.\n * @param options The options parameters.\n */\n getProperties(\n options?: DirectoryGetPropertiesOptionalParams,\n ): Promise<DirectoryGetPropertiesResponse>;\n /**\n * Removes the specified empty directory. Note that the directory must be empty before it can be\n * deleted.\n * @param options The options parameters.\n */\n delete(\n options?: DirectoryDeleteOptionalParams,\n ): Promise<DirectoryDeleteResponse>;\n /**\n * Sets properties on the directory.\n * @param options The options parameters.\n */\n setProperties(\n options?: DirectorySetPropertiesOptionalParams,\n ): Promise<DirectorySetPropertiesResponse>;\n /**\n * Updates user defined metadata for the specified directory.\n * @param options The options parameters.\n */\n setMetadata(\n options?: DirectorySetMetadataOptionalParams,\n ): Promise<DirectorySetMetadataResponse>;\n /**\n * Returns a list of files or directories under the specified share or directory. It lists the contents\n * only for a single level of the directory hierarchy.\n * @param options The options parameters.\n */\n listFilesAndDirectoriesSegment(\n options?: DirectoryListFilesAndDirectoriesSegmentOptionalParams,\n ): Promise<DirectoryListFilesAndDirectoriesSegmentResponse>;\n /**\n * Lists handles for directory.\n * @param options The options parameters.\n */\n listHandles(\n options?: DirectoryListHandlesOptionalParams,\n ): Promise<DirectoryListHandlesResponse>;\n /**\n * Closes all handles open for given directory.\n * @param handleId Specifies handle ID opened on the file or directory to be closed. Asterisk (‘*’) is\n * a wildcard that specifies all handles.\n * @param options The options parameters.\n */\n forceCloseHandles(\n handleId: string,\n options?: DirectoryForceCloseHandlesOptionalParams,\n ): Promise<DirectoryForceCloseHandlesResponse>;\n /**\n * Renames a directory\n * @param renameSource Required. Specifies the URI-style path of the source file, up to 2 KB in length.\n * @param options The options parameters.\n */\n rename(\n renameSource: string,\n options?: DirectoryRenameOptionalParams,\n ): Promise<DirectoryRenameResponse>;\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"file.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/file.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n FileCreateOptionalParams,\n FileCreateResponse,\n FileDownloadOptionalParams,\n FileDownloadResponse,\n FileGetPropertiesOptionalParams,\n FileGetPropertiesResponse,\n FileDeleteOptionalParams,\n FileDeleteResponse,\n FileSetHttpHeadersOptionalParams,\n FileSetHttpHeadersResponse,\n FileSetMetadataOptionalParams,\n FileSetMetadataResponse,\n FileAcquireLeaseOptionalParams,\n FileAcquireLeaseResponse,\n FileReleaseLeaseOptionalParams,\n FileReleaseLeaseResponse,\n FileChangeLeaseOptionalParams,\n FileChangeLeaseResponse,\n FileBreakLeaseOptionalParams,\n FileBreakLeaseResponse,\n FileRangeWriteType,\n FileUploadRangeOptionalParams,\n FileUploadRangeResponse,\n FileUploadRangeFromURLOptionalParams,\n FileUploadRangeFromURLResponse,\n FileGetRangeListOptionalParams,\n FileGetRangeListResponse,\n FileStartCopyOptionalParams,\n FileStartCopyResponse,\n FileAbortCopyOptionalParams,\n FileAbortCopyResponse,\n FileListHandlesOptionalParams,\n FileListHandlesResponse,\n FileForceCloseHandlesOptionalParams,\n FileForceCloseHandlesResponse,\n FileRenameOptionalParams,\n FileRenameResponse,\n FileCreateSymbolicLinkOptionalParams,\n FileCreateSymbolicLinkResponse,\n FileGetSymbolicLinkOptionalParams,\n FileGetSymbolicLinkResponse,\n FileCreateHardLinkOptionalParams,\n FileCreateHardLinkResponse\n} from \"../models/index.js\";\n\n/** Interface representing a File. */\nexport interface File {\n /**\n * Creates a new file or replaces a file. Note it only initializes the file with no content.\n * @param fileContentLength Specifies the maximum size for the file, up to 4 TB.\n * @param options The options parameters.\n */\n create(\n fileContentLength: number,\n options?: FileCreateOptionalParams\n ): Promise<FileCreateResponse>;\n /**\n * Reads or downloads a file from the system, including its metadata and properties.\n * @param options The options parameters.\n */\n download(options?: FileDownloadOptionalParams): Promise<FileDownloadResponse>;\n /**\n * Returns all user-defined metadata, standard HTTP properties, and system properties for the file. It\n * does not return the content of the file.\n * @param options The options parameters.\n */\n getProperties(\n options?: FileGetPropertiesOptionalParams\n ): Promise<FileGetPropertiesResponse>;\n /**\n * removes the file from the storage account.\n * @param options The options parameters.\n */\n delete(options?: FileDeleteOptionalParams): Promise<FileDeleteResponse>;\n /**\n * Sets HTTP headers on the file.\n * @param options The options parameters.\n */\n setHttpHeaders(\n options?: FileSetHttpHeadersOptionalParams\n ): Promise<FileSetHttpHeadersResponse>;\n /**\n * Updates user-defined metadata for the specified file.\n * @param options The options parameters.\n */\n setMetadata(\n options?: FileSetMetadataOptionalParams\n ): Promise<FileSetMetadataResponse>;\n /**\n * [Update] The Lease File operation establishes and manages a lock on a file for write and delete\n * operations\n * @param options The options parameters.\n */\n acquireLease(\n options?: FileAcquireLeaseOptionalParams\n ): Promise<FileAcquireLeaseResponse>;\n /**\n * [Update] The Lease File operation establishes and manages a lock on a file for write and delete\n * operations\n * @param leaseId Specifies the current lease ID on the resource.\n * @param options The options parameters.\n */\n releaseLease(\n leaseId: string,\n options?: FileReleaseLeaseOptionalParams\n ): Promise<FileReleaseLeaseResponse>;\n /**\n * [Update] The Lease File operation establishes and manages a lock on a file for write and delete\n * operations\n * @param leaseId Specifies the current lease ID on the resource.\n * @param options The options parameters.\n */\n changeLease(\n leaseId: string,\n options?: FileChangeLeaseOptionalParams\n ): Promise<FileChangeLeaseResponse>;\n /**\n * [Update] The Lease File operation establishes and manages a lock on a file for write and delete\n * operations\n * @param options The options parameters.\n */\n breakLease(\n options?: FileBreakLeaseOptionalParams\n ): Promise<FileBreakLeaseResponse>;\n /**\n * Upload a range of bytes to a file.\n * @param range Specifies the range of bytes to be written. Both the start and end of the range must be\n * specified. For an update operation, the range can be up to 4 MB in size. For a clear operation, the\n * range can be up to the value of the file's full size. The File service accepts only a single byte\n * range for the Range and 'x-ms-range' headers, and the byte range must be specified in the following\n * format: bytes=startByte-endByte.\n * @param fileRangeWrite Specify one of the following options: - Update: Writes the bytes specified by\n * the request body into the specified range. The Range and Content-Length headers must match to\n * perform the update. - Clear: Clears the specified range and releases the space used in storage for\n * that range. To clear a range, set the Content-Length header to zero, and set the Range header to a\n * value that indicates the range to clear, up to maximum file size.\n * @param contentLength Specifies the number of bytes being transmitted in the request body. When the\n * x-ms-write header is set to clear, the value of this header must be set to zero.\n * @param options The options parameters.\n */\n uploadRange(\n range: string,\n fileRangeWrite: FileRangeWriteType,\n contentLength: number,\n options?: FileUploadRangeOptionalParams\n ): Promise<FileUploadRangeResponse>;\n /**\n * Upload a range of bytes to a file where the contents are read from a URL.\n * @param range Writes data to the specified byte range in the file.\n * @param copySource Specifies the URL of the source file or blob, up to 2 KB in length. To copy a file\n * to another file within the same storage account, you may use Shared Key to authenticate the source\n * file. If you are copying a file from another storage account, or if you are copying a blob from the\n * same storage account or another storage account, then you must authenticate the source file or blob\n * using a shared access signature. If the source is a public blob, no authentication is required to\n * perform the copy operation. A file in a share snapshot can also be specified as a copy source.\n * @param contentLength Specifies the number of bytes being transmitted in the request body. When the\n * x-ms-write header is set to clear, the value of this header must be set to zero.\n * @param options The options parameters.\n */\n uploadRangeFromURL(\n range: string,\n copySource: string,\n contentLength: number,\n options?: FileUploadRangeFromURLOptionalParams\n ): Promise<FileUploadRangeFromURLResponse>;\n /**\n * Returns the list of valid ranges for a file.\n * @param options The options parameters.\n */\n getRangeList(\n options?: FileGetRangeListOptionalParams\n ): Promise<FileGetRangeListResponse>;\n /**\n * Copies a blob or file to a destination file within the storage account.\n * @param copySource Specifies the URL of the source file or blob, up to 2 KB in length. To copy a file\n * to another file within the same storage account, you may use Shared Key to authenticate the source\n * file. If you are copying a file from another storage account, or if you are copying a blob from the\n * same storage account or another storage account, then you must authenticate the source file or blob\n * using a shared access signature. If the source is a public blob, no authentication is required to\n * perform the copy operation. A file in a share snapshot can also be specified as a copy source.\n * @param options The options parameters.\n */\n startCopy(\n copySource: string,\n options?: FileStartCopyOptionalParams\n ): Promise<FileStartCopyResponse>;\n /**\n * Aborts a pending Copy File operation, and leaves a destination file with zero length and full\n * metadata.\n * @param copyId The copy identifier provided in the x-ms-copy-id header of the original Copy File\n * operation.\n * @param options The options parameters.\n */\n abortCopy(\n copyId: string,\n options?: FileAbortCopyOptionalParams\n ): Promise<FileAbortCopyResponse>;\n /**\n * Lists handles for file\n * @param options The options parameters.\n */\n listHandles(\n options?: FileListHandlesOptionalParams\n ): Promise<FileListHandlesResponse>;\n /**\n * Closes all handles open for given file\n * @param handleId Specifies handle ID opened on the file or directory to be closed. Asterisk (‘*’) is\n * a wildcard that specifies all handles.\n * @param options The options parameters.\n */\n forceCloseHandles(\n handleId: string,\n options?: FileForceCloseHandlesOptionalParams\n ): Promise<FileForceCloseHandlesResponse>;\n /**\n * Renames a file\n * @param renameSource Required. Specifies the URI-style path of the source file, up to 2 KB in length.\n * @param options The options parameters.\n */\n rename(\n renameSource: string,\n options?: FileRenameOptionalParams\n ): Promise<FileRenameResponse>;\n /**\n * Creates a symbolic link.\n * @param linkText NFS only. Required. The path to the original file, the symbolic link is pointing to.\n * The path is of type string which is not resolved and is stored as is. The path can be absolute path\n * or the relative path depending on the content stored in the symbolic link file.\n * @param options The options parameters.\n */\n createSymbolicLink(\n linkText: string,\n options?: FileCreateSymbolicLinkOptionalParams\n ): Promise<FileCreateSymbolicLinkResponse>;\n /** @param options The options parameters. */\n getSymbolicLink(\n options?: FileGetSymbolicLinkOptionalParams\n ): Promise<FileGetSymbolicLinkResponse>;\n /**\n * Creates a hard link.\n * @param targetFile NFS only. Required. Specifies the path of the target file to which the link will\n * be created, up to 2 KiB in length. It should be full path of the target from the root.The target\n * file must be in the same share and hence the same storage account.\n * @param options The options parameters.\n */\n createHardLink(\n targetFile: string,\n options?: FileCreateHardLinkOptionalParams\n ): Promise<FileCreateHardLinkResponse>;\n}\n"]}
|
1
|
+
{"version":3,"file":"file.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/file.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n FileCreateOptionalParams,\n FileCreateResponse,\n FileDownloadOptionalParams,\n FileDownloadResponse,\n FileGetPropertiesOptionalParams,\n FileGetPropertiesResponse,\n FileDeleteOptionalParams,\n FileDeleteResponse,\n FileSetHttpHeadersOptionalParams,\n FileSetHttpHeadersResponse,\n FileSetMetadataOptionalParams,\n FileSetMetadataResponse,\n FileAcquireLeaseOptionalParams,\n FileAcquireLeaseResponse,\n FileReleaseLeaseOptionalParams,\n FileReleaseLeaseResponse,\n FileChangeLeaseOptionalParams,\n FileChangeLeaseResponse,\n FileBreakLeaseOptionalParams,\n FileBreakLeaseResponse,\n FileRangeWriteType,\n FileUploadRangeOptionalParams,\n FileUploadRangeResponse,\n FileUploadRangeFromURLOptionalParams,\n FileUploadRangeFromURLResponse,\n FileGetRangeListOptionalParams,\n FileGetRangeListResponse,\n FileStartCopyOptionalParams,\n FileStartCopyResponse,\n FileAbortCopyOptionalParams,\n FileAbortCopyResponse,\n FileListHandlesOptionalParams,\n FileListHandlesResponse,\n FileForceCloseHandlesOptionalParams,\n FileForceCloseHandlesResponse,\n FileRenameOptionalParams,\n FileRenameResponse,\n FileCreateSymbolicLinkOptionalParams,\n FileCreateSymbolicLinkResponse,\n FileGetSymbolicLinkOptionalParams,\n FileGetSymbolicLinkResponse,\n FileCreateHardLinkOptionalParams,\n FileCreateHardLinkResponse,\n} from \"../models/index.js\";\n\n/** Interface representing a File. */\nexport interface File {\n /**\n * Creates a new file or replaces a file. Note it only initializes the file with no content.\n * @param fileContentLength Specifies the maximum size for the file, up to 4 TB.\n * @param options The options parameters.\n */\n create(\n fileContentLength: number,\n options?: FileCreateOptionalParams,\n ): Promise<FileCreateResponse>;\n /**\n * Reads or downloads a file from the system, including its metadata and properties.\n * @param options The options parameters.\n */\n download(options?: FileDownloadOptionalParams): Promise<FileDownloadResponse>;\n /**\n * Returns all user-defined metadata, standard HTTP properties, and system properties for the file. It\n * does not return the content of the file.\n * @param options The options parameters.\n */\n getProperties(\n options?: FileGetPropertiesOptionalParams,\n ): Promise<FileGetPropertiesResponse>;\n /**\n * removes the file from the storage account.\n * @param options The options parameters.\n */\n delete(options?: FileDeleteOptionalParams): Promise<FileDeleteResponse>;\n /**\n * Sets HTTP headers on the file.\n * @param options The options parameters.\n */\n setHttpHeaders(\n options?: FileSetHttpHeadersOptionalParams,\n ): Promise<FileSetHttpHeadersResponse>;\n /**\n * Updates user-defined metadata for the specified file.\n * @param options The options parameters.\n */\n setMetadata(\n options?: FileSetMetadataOptionalParams,\n ): Promise<FileSetMetadataResponse>;\n /**\n * [Update] The Lease File operation establishes and manages a lock on a file for write and delete\n * operations\n * @param options The options parameters.\n */\n acquireLease(\n options?: FileAcquireLeaseOptionalParams,\n ): Promise<FileAcquireLeaseResponse>;\n /**\n * [Update] The Lease File operation establishes and manages a lock on a file for write and delete\n * operations\n * @param leaseId Specifies the current lease ID on the resource.\n * @param options The options parameters.\n */\n releaseLease(\n leaseId: string,\n options?: FileReleaseLeaseOptionalParams,\n ): Promise<FileReleaseLeaseResponse>;\n /**\n * [Update] The Lease File operation establishes and manages a lock on a file for write and delete\n * operations\n * @param leaseId Specifies the current lease ID on the resource.\n * @param options The options parameters.\n */\n changeLease(\n leaseId: string,\n options?: FileChangeLeaseOptionalParams,\n ): Promise<FileChangeLeaseResponse>;\n /**\n * [Update] The Lease File operation establishes and manages a lock on a file for write and delete\n * operations\n * @param options The options parameters.\n */\n breakLease(\n options?: FileBreakLeaseOptionalParams,\n ): Promise<FileBreakLeaseResponse>;\n /**\n * Upload a range of bytes to a file.\n * @param range Specifies the range of bytes to be written. Both the start and end of the range must be\n * specified. For an update operation, the range can be up to 4 MB in size. For a clear operation, the\n * range can be up to the value of the file's full size. The File service accepts only a single byte\n * range for the Range and 'x-ms-range' headers, and the byte range must be specified in the following\n * format: bytes=startByte-endByte.\n * @param fileRangeWrite Specify one of the following options: - Update: Writes the bytes specified by\n * the request body into the specified range. The Range and Content-Length headers must match to\n * perform the update. - Clear: Clears the specified range and releases the space used in storage for\n * that range. To clear a range, set the Content-Length header to zero, and set the Range header to a\n * value that indicates the range to clear, up to maximum file size.\n * @param contentLength Specifies the number of bytes being transmitted in the request body. When the\n * x-ms-write header is set to clear, the value of this header must be set to zero.\n * @param options The options parameters.\n */\n uploadRange(\n range: string,\n fileRangeWrite: FileRangeWriteType,\n contentLength: number,\n options?: FileUploadRangeOptionalParams,\n ): Promise<FileUploadRangeResponse>;\n /**\n * Upload a range of bytes to a file where the contents are read from a URL.\n * @param range Writes data to the specified byte range in the file.\n * @param copySource Specifies the URL of the source file or blob, up to 2 KB in length. To copy a file\n * to another file within the same storage account, you may use Shared Key to authenticate the source\n * file. If you are copying a file from another storage account, or if you are copying a blob from the\n * same storage account or another storage account, then you must authenticate the source file or blob\n * using a shared access signature. If the source is a public blob, no authentication is required to\n * perform the copy operation. A file in a share snapshot can also be specified as a copy source.\n * @param contentLength Specifies the number of bytes being transmitted in the request body. When the\n * x-ms-write header is set to clear, the value of this header must be set to zero.\n * @param options The options parameters.\n */\n uploadRangeFromURL(\n range: string,\n copySource: string,\n contentLength: number,\n options?: FileUploadRangeFromURLOptionalParams,\n ): Promise<FileUploadRangeFromURLResponse>;\n /**\n * Returns the list of valid ranges for a file.\n * @param options The options parameters.\n */\n getRangeList(\n options?: FileGetRangeListOptionalParams,\n ): Promise<FileGetRangeListResponse>;\n /**\n * Copies a blob or file to a destination file within the storage account.\n * @param copySource Specifies the URL of the source file or blob, up to 2 KB in length. To copy a file\n * to another file within the same storage account, you may use Shared Key to authenticate the source\n * file. If you are copying a file from another storage account, or if you are copying a blob from the\n * same storage account or another storage account, then you must authenticate the source file or blob\n * using a shared access signature. If the source is a public blob, no authentication is required to\n * perform the copy operation. A file in a share snapshot can also be specified as a copy source.\n * @param options The options parameters.\n */\n startCopy(\n copySource: string,\n options?: FileStartCopyOptionalParams,\n ): Promise<FileStartCopyResponse>;\n /**\n * Aborts a pending Copy File operation, and leaves a destination file with zero length and full\n * metadata.\n * @param copyId The copy identifier provided in the x-ms-copy-id header of the original Copy File\n * operation.\n * @param options The options parameters.\n */\n abortCopy(\n copyId: string,\n options?: FileAbortCopyOptionalParams,\n ): Promise<FileAbortCopyResponse>;\n /**\n * Lists handles for file\n * @param options The options parameters.\n */\n listHandles(\n options?: FileListHandlesOptionalParams,\n ): Promise<FileListHandlesResponse>;\n /**\n * Closes all handles open for given file\n * @param handleId Specifies handle ID opened on the file or directory to be closed. Asterisk (‘*’) is\n * a wildcard that specifies all handles.\n * @param options The options parameters.\n */\n forceCloseHandles(\n handleId: string,\n options?: FileForceCloseHandlesOptionalParams,\n ): Promise<FileForceCloseHandlesResponse>;\n /**\n * Renames a file\n * @param renameSource Required. Specifies the URI-style path of the source file, up to 2 KB in length.\n * @param options The options parameters.\n */\n rename(\n renameSource: string,\n options?: FileRenameOptionalParams,\n ): Promise<FileRenameResponse>;\n /**\n * Creates a symbolic link.\n * @param linkText NFS only. Required. The path to the original file, the symbolic link is pointing to.\n * The path is of type string which is not resolved and is stored as is. The path can be absolute path\n * or the relative path depending on the content stored in the symbolic link file.\n * @param options The options parameters.\n */\n createSymbolicLink(\n linkText: string,\n options?: FileCreateSymbolicLinkOptionalParams,\n ): Promise<FileCreateSymbolicLinkResponse>;\n /** @param options The options parameters. */\n getSymbolicLink(\n options?: FileGetSymbolicLinkOptionalParams,\n ): Promise<FileGetSymbolicLinkResponse>;\n /**\n * Creates a hard link.\n * @param targetFile NFS only. Required. Specifies the path of the target file to which the link will\n * be created, up to 2 KiB in length. It should be full path of the target from the root.The target\n * file must be in the same share and hence the same storage account.\n * @param options The options parameters.\n */\n createHardLink(\n targetFile: string,\n options?: FileCreateHardLinkOptionalParams,\n ): Promise<FileCreateHardLinkResponse>;\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n FileServiceProperties,\n ServiceSetPropertiesOptionalParams,\n ServiceSetPropertiesResponse,\n ServiceGetPropertiesOptionalParams,\n ServiceGetPropertiesResponse,\n ServiceListSharesSegmentOptionalParams,\n ServiceListSharesSegmentResponse
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n FileServiceProperties,\n ServiceSetPropertiesOptionalParams,\n ServiceSetPropertiesResponse,\n ServiceGetPropertiesOptionalParams,\n ServiceGetPropertiesResponse,\n ServiceListSharesSegmentOptionalParams,\n ServiceListSharesSegmentResponse,\n} from \"../models/index.js\";\n\n/** Interface representing a Service. */\nexport interface Service {\n /**\n * Sets properties for a storage account's File service endpoint, including properties for Storage\n * Analytics metrics and CORS (Cross-Origin Resource Sharing) rules.\n * @param properties The StorageService properties.\n * @param options The options parameters.\n */\n setProperties(\n properties: FileServiceProperties,\n options?: ServiceSetPropertiesOptionalParams,\n ): Promise<ServiceSetPropertiesResponse>;\n /**\n * Gets the properties of a storage account's File service, including properties for Storage Analytics\n * metrics and CORS (Cross-Origin Resource Sharing) rules.\n * @param options The options parameters.\n */\n getProperties(\n options?: ServiceGetPropertiesOptionalParams,\n ): Promise<ServiceGetPropertiesResponse>;\n /**\n * The List Shares Segment operation returns a list of the shares and share snapshots under the\n * specified account.\n * @param options The options parameters.\n */\n listSharesSegment(\n options?: ServiceListSharesSegmentOptionalParams,\n ): Promise<ServiceListSharesSegmentResponse>;\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"share.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/share.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n ShareCreateOptionalParams,\n ShareCreateResponse,\n ShareGetPropertiesOptionalParams,\n ShareGetPropertiesResponse,\n ShareDeleteOptionalParams,\n ShareDeleteResponse,\n ShareAcquireLeaseOptionalParams,\n ShareAcquireLeaseResponse,\n ShareReleaseLeaseOptionalParams,\n ShareReleaseLeaseResponse,\n ShareChangeLeaseOptionalParams,\n ShareChangeLeaseResponse,\n ShareRenewLeaseOptionalParams,\n ShareRenewLeaseResponse,\n ShareBreakLeaseOptionalParams,\n ShareBreakLeaseResponse,\n ShareCreateSnapshotOptionalParams,\n ShareCreateSnapshotResponse,\n SharePermission,\n ShareCreatePermissionOptionalParams,\n ShareCreatePermissionResponse,\n ShareGetPermissionOptionalParams,\n ShareGetPermissionResponse,\n ShareSetPropertiesOptionalParams,\n ShareSetPropertiesResponse,\n ShareSetMetadataOptionalParams,\n ShareSetMetadataResponse,\n ShareGetAccessPolicyOptionalParams,\n ShareGetAccessPolicyResponse,\n ShareSetAccessPolicyOptionalParams,\n ShareSetAccessPolicyResponse,\n ShareGetStatisticsOptionalParams,\n ShareGetStatisticsResponse,\n ShareRestoreOptionalParams,\n ShareRestoreResponse
|
1
|
+
{"version":3,"file":"share.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/share.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n ShareCreateOptionalParams,\n ShareCreateResponse,\n ShareGetPropertiesOptionalParams,\n ShareGetPropertiesResponse,\n ShareDeleteOptionalParams,\n ShareDeleteResponse,\n ShareAcquireLeaseOptionalParams,\n ShareAcquireLeaseResponse,\n ShareReleaseLeaseOptionalParams,\n ShareReleaseLeaseResponse,\n ShareChangeLeaseOptionalParams,\n ShareChangeLeaseResponse,\n ShareRenewLeaseOptionalParams,\n ShareRenewLeaseResponse,\n ShareBreakLeaseOptionalParams,\n ShareBreakLeaseResponse,\n ShareCreateSnapshotOptionalParams,\n ShareCreateSnapshotResponse,\n SharePermission,\n ShareCreatePermissionOptionalParams,\n ShareCreatePermissionResponse,\n ShareGetPermissionOptionalParams,\n ShareGetPermissionResponse,\n ShareSetPropertiesOptionalParams,\n ShareSetPropertiesResponse,\n ShareSetMetadataOptionalParams,\n ShareSetMetadataResponse,\n ShareGetAccessPolicyOptionalParams,\n ShareGetAccessPolicyResponse,\n ShareSetAccessPolicyOptionalParams,\n ShareSetAccessPolicyResponse,\n ShareGetStatisticsOptionalParams,\n ShareGetStatisticsResponse,\n ShareRestoreOptionalParams,\n ShareRestoreResponse,\n} from \"../models/index.js\";\n\n/** Interface representing a Share. */\nexport interface Share {\n /**\n * Creates a new share under the specified account. If the share with the same name already exists, the\n * operation fails.\n * @param options The options parameters.\n */\n create(options?: ShareCreateOptionalParams): Promise<ShareCreateResponse>;\n /**\n * Returns all user-defined metadata and system properties for the specified share or share snapshot.\n * The data returned does not include the share's list of files.\n * @param options The options parameters.\n */\n getProperties(\n options?: ShareGetPropertiesOptionalParams,\n ): Promise<ShareGetPropertiesResponse>;\n /**\n * Operation marks the specified share or share snapshot for deletion. The share or share snapshot and\n * any files contained within it are later deleted during garbage collection.\n * @param options The options parameters.\n */\n delete(options?: ShareDeleteOptionalParams): Promise<ShareDeleteResponse>;\n /**\n * The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for\n * set and delete share operations.\n * @param options The options parameters.\n */\n acquireLease(\n options?: ShareAcquireLeaseOptionalParams,\n ): Promise<ShareAcquireLeaseResponse>;\n /**\n * The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for\n * set and delete share operations.\n * @param leaseId Specifies the current lease ID on the resource.\n * @param options The options parameters.\n */\n releaseLease(\n leaseId: string,\n options?: ShareReleaseLeaseOptionalParams,\n ): Promise<ShareReleaseLeaseResponse>;\n /**\n * The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for\n * set and delete share operations.\n * @param leaseId Specifies the current lease ID on the resource.\n * @param options The options parameters.\n */\n changeLease(\n leaseId: string,\n options?: ShareChangeLeaseOptionalParams,\n ): Promise<ShareChangeLeaseResponse>;\n /**\n * The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for\n * set and delete share operations.\n * @param leaseId Specifies the current lease ID on the resource.\n * @param options The options parameters.\n */\n renewLease(\n leaseId: string,\n options?: ShareRenewLeaseOptionalParams,\n ): Promise<ShareRenewLeaseResponse>;\n /**\n * The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for\n * set and delete share operations.\n * @param options The options parameters.\n */\n breakLease(\n options?: ShareBreakLeaseOptionalParams,\n ): Promise<ShareBreakLeaseResponse>;\n /**\n * Creates a read-only snapshot of a share.\n * @param options The options parameters.\n */\n createSnapshot(\n options?: ShareCreateSnapshotOptionalParams,\n ): Promise<ShareCreateSnapshotResponse>;\n /**\n * Create a permission (a security descriptor).\n * @param sharePermission A permission (a security descriptor) at the share level.\n * @param options The options parameters.\n */\n createPermission(\n sharePermission: SharePermission,\n options?: ShareCreatePermissionOptionalParams,\n ): Promise<ShareCreatePermissionResponse>;\n /**\n * Returns the permission (security descriptor) for a given key\n * @param filePermissionKey Key of the permission to be set for the directory/file.\n * @param options The options parameters.\n */\n getPermission(\n filePermissionKey: string,\n options?: ShareGetPermissionOptionalParams,\n ): Promise<ShareGetPermissionResponse>;\n /**\n * Sets properties for the specified share.\n * @param options The options parameters.\n */\n setProperties(\n options?: ShareSetPropertiesOptionalParams,\n ): Promise<ShareSetPropertiesResponse>;\n /**\n * Sets one or more user-defined name-value pairs for the specified share.\n * @param options The options parameters.\n */\n setMetadata(\n options?: ShareSetMetadataOptionalParams,\n ): Promise<ShareSetMetadataResponse>;\n /**\n * Returns information about stored access policies specified on the share.\n * @param options The options parameters.\n */\n getAccessPolicy(\n options?: ShareGetAccessPolicyOptionalParams,\n ): Promise<ShareGetAccessPolicyResponse>;\n /**\n * Sets a stored access policy for use with shared access signatures.\n * @param options The options parameters.\n */\n setAccessPolicy(\n options?: ShareSetAccessPolicyOptionalParams,\n ): Promise<ShareSetAccessPolicyResponse>;\n /**\n * Retrieves statistics related to the share.\n * @param options The options parameters.\n */\n getStatistics(\n options?: ShareGetStatisticsOptionalParams,\n ): Promise<ShareGetStatisticsResponse>;\n /**\n * Restores a previously deleted Share.\n * @param options The options parameters.\n */\n restore(options?: ShareRestoreOptionalParams): Promise<ShareRestoreResponse>;\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"storageClient.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/storageClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,cAAc,MAAM,yBAAyB,CAAC;
|
1
|
+
{"version":3,"file":"storageClient.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/storageClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,cAAc,MAAM,yBAAyB,CAAC;AAO1D,OAAO,EACL,OAAO,EACP,KAAK,EACL,SAAS,EACT,IAAI,EACL,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAEhE,qBAAa,aAAc,SAAQ,cAAc,CAAC,qBAAqB;IACrE,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,qBAAqB,EAAE,MAAM,CAAC;IAE9B;;;;;OAKG;gBACS,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,2BAA2B;IAwC9D,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,SAAS,CAAC;IACrB,IAAI,EAAE,IAAI,CAAC;CACZ"}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
8
|
import * as coreHttpCompat from "@azure/core-http-compat";
|
9
|
-
import { ServiceImpl, ShareImpl, DirectoryImpl, FileImpl } from "./operations/index.js";
|
9
|
+
import { ServiceImpl, ShareImpl, DirectoryImpl, FileImpl, } from "./operations/index.js";
|
10
10
|
export class StorageClient extends coreHttpCompat.ExtendedServiceClient {
|
11
11
|
/**
|
12
12
|
* Initializes a new instance of the StorageClient class.
|
@@ -24,20 +24,20 @@ export class StorageClient extends coreHttpCompat.ExtendedServiceClient {
|
|
24
24
|
options = {};
|
25
25
|
}
|
26
26
|
const defaults = {
|
27
|
-
requestContentType: "application/json; charset=utf-8"
|
27
|
+
requestContentType: "application/json; charset=utf-8",
|
28
28
|
};
|
29
|
-
const packageDetails = `azsdk-js-azure-storage-file-share/12.
|
29
|
+
const packageDetails = `azsdk-js-azure-storage-file-share/12.29.0-beta.1`;
|
30
30
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
31
31
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
32
32
|
: `${packageDetails}`;
|
33
33
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
34
|
-
userAgentPrefix
|
34
|
+
userAgentPrefix,
|
35
35
|
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{url}" });
|
36
36
|
super(optionsWithDefaults);
|
37
37
|
// Parameter assignments
|
38
38
|
this.url = url;
|
39
39
|
// Assigning values to Constant parameters
|
40
|
-
this.version = options.version || "2025-
|
40
|
+
this.version = options.version || "2025-11-05";
|
41
41
|
this.fileRangeWriteFromUrl = options.fileRangeWriteFromUrl || "update";
|
42
42
|
this.service = new ServiceImpl(this);
|
43
43
|
this.share = new ShareImpl(this);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"storageClient.js","sourceRoot":"","sources":["../../../../src/generated/src/storageClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,cAAc,MAAM,yBAAyB,CAAC;AAC1D,OAAO,
|
1
|
+
{"version":3,"file":"storageClient.js","sourceRoot":"","sources":["../../../../src/generated/src/storageClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,cAAc,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,WAAW,EACX,SAAS,EACT,aAAa,EACb,QAAQ,GACT,MAAM,uBAAuB,CAAC;AAS/B,MAAM,OAAO,aAAc,SAAQ,cAAc,CAAC,qBAAqB;IAKrE;;;;;OAKG;IACH,YAAY,GAAW,EAAE,OAAqC;;QAC5D,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;YACtB,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC1C,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAgC;YAC5C,kBAAkB,EAAE,iCAAiC;SACtD,CAAC;QAEF,MAAM,cAAc,GAAG,kDAAkD,CAAC;QAC1E,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,QAAQ,EAAE,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,OAAO,GACzD,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,wBAAwB;QACxB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QAEf,0CAA0C;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,YAAY,CAAC;QAC/C,IAAI,CAAC,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,IAAI,QAAQ,CAAC;QACvE,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,KAAK,GAAG,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,SAAS,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,IAAI,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;CAMF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreHttpCompat from \"@azure/core-http-compat\";\nimport {\n ServiceImpl,\n ShareImpl,\n DirectoryImpl,\n FileImpl,\n} from \"./operations/index.js\";\nimport {\n Service,\n Share,\n Directory,\n File,\n} from \"./operationsInterfaces/index.js\";\nimport { StorageClientOptionalParams } from \"./models/index.js\";\n\nexport class StorageClient extends coreHttpCompat.ExtendedServiceClient {\n url: string;\n version: string;\n fileRangeWriteFromUrl: string;\n\n /**\n * Initializes a new instance of the StorageClient class.\n * @param url The URL of the service account, share, directory or file that is the target of the\n * desired operation.\n * @param options The parameter options\n */\n constructor(url: string, options?: StorageClientOptionalParams) {\n if (url === undefined) {\n throw new Error(\"'url' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: StorageClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n };\n\n const packageDetails = `azsdk-js-azure-storage-file-share/12.29.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"{url}\",\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.url = url;\n\n // Assigning values to Constant parameters\n this.version = options.version || \"2025-11-05\";\n this.fileRangeWriteFromUrl = options.fileRangeWriteFromUrl || \"update\";\n this.service = new ServiceImpl(this);\n this.share = new ShareImpl(this);\n this.directory = new DirectoryImpl(this);\n this.file = new FileImpl(this);\n }\n\n service: Service;\n share: Share;\n directory: Directory;\n file: File;\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"StorageRetryPolicy.d.ts","sourceRoot":"","sources":["../../../src/policies/StorageRetryPolicy.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,IAAI,oBAAoB,EAChD,oBAAoB,EACpB,eAAe,IAAI,WAAW,EAC9B,cAAc,IAAI,qBAAqB,EACxC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,KAAK,EAA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AAC;AAK3E;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,YAAY,CAAC,EAAE,mBAAmB,GAAG,oBAAoB,CAM9F;AAED;;GAEG;AACH,oBAAY,sBAAsB;IAChC;;OAEG;IACH,WAAW,IAAA;IACX;;OAEG;IACH,KAAK,IAAA;CACN;AAaD;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,iBAAiB;IACvD;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAsB;IAEnD;;;;;;OAMG;gBAED,UAAU,EAAE,aAAa,EACzB,OAAO,EAAE,oBAAoB,EAC7B,YAAY,GAAE,mBAA2C;IAqC3D;;;;OAIG;IACU,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAI9E;;;;;;;;;OASG;cACa,kBAAkB,CAChC,OAAO,EAAE,WAAW,EACpB,eAAe,EAAE,OAAO,EACxB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,qBAAqB,CAAC;IAkCjC;;;;;;;OAOG;IACH,SAAS,CAAC,WAAW,CACnB,cAAc,EAAE,OAAO,EACvB,OAAO,EAAE,MAAM,EACf,QAAQ,CAAC,EAAE,qBAAqB,EAChC,GAAG,CAAC,EAAE,SAAS,GACd,OAAO;IA6EV;;;;;;OAMG;YACW,KAAK;CA0BpB"}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
// Licensed under the MIT License.
|
3
3
|
import { AbortError } from "@azure/abort-controller";
|
4
4
|
import { BaseRequestPolicy } from "@azure/storage-blob";
|
5
|
-
import { URLConstants } from "../utils/constants.js";
|
5
|
+
import { HeaderConstants, URLConstants } from "../utils/constants.js";
|
6
6
|
import { delay, setURLParameter } from "../utils/utils.common.js";
|
7
7
|
import { logger } from "../log.js";
|
8
8
|
/**
|
@@ -169,22 +169,20 @@ export class StorageRetryPolicy extends BaseRequestPolicy {
|
|
169
169
|
return true;
|
170
170
|
}
|
171
171
|
}
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
// }
|
187
|
-
// }
|
172
|
+
if (response) {
|
173
|
+
// Retry select Copy Source Error Codes.
|
174
|
+
if ((response === null || response === void 0 ? void 0 : response.status) >= 400) {
|
175
|
+
const copySourceError = response.headers.get(HeaderConstants.X_MS_CopySourceErrorCode);
|
176
|
+
if (copySourceError !== undefined) {
|
177
|
+
switch (copySourceError) {
|
178
|
+
case "InternalError":
|
179
|
+
case "OperationTimedOut":
|
180
|
+
case "ServerBusy":
|
181
|
+
return true;
|
182
|
+
}
|
183
|
+
}
|
184
|
+
}
|
185
|
+
}
|
188
186
|
if ((err === null || err === void 0 ? void 0 : err.code) === "PARSE_ERROR" && (err === null || err === void 0 ? void 0 : err.message.startsWith(`Error "Error: Unclosed root tag`))) {
|
189
187
|
logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");
|
190
188
|
return true;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"StorageRetryPolicy.js","sourceRoot":"","sources":["../../../src/policies/StorageRetryPolicy.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAQrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAIxD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CAAC,YAAkC;IACtE,OAAO;QACL,MAAM,EAAE,CAAC,UAAyB,EAAE,OAA6B,EAAsB,EAAE;YACvF,OAAO,IAAI,kBAAkB,CAAC,UAAU,EAAE,OAAO,EAAE,YAA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ike } from \"@azure/abort-controller\";\nimport { AbortError } from \"@azure/abort-controller\";\nimport type {\n RequestPolicy,\n RequestPolicyOptionsLike as RequestPolicyOptions,\n RequestPolicyFactory,\n WebResourceLike as WebResource,\n CompatResponse as HttpOperationResponse,\n} from \"@azure/core-http-compat\";\nimport { BaseRequestPolicy } from \"@azure/storage-blob\";\nimport type { RestError } from \"@azure/core-rest-pipeline\";\n\nimport type { StorageRetryOptions } from \"../StorageRetryPolicyFactory.js\";\nimport { URLConstants } from \"../utils/constants.js\";\nimport { delay, setURLParameter } from \"../utils/utils.common.js\";\nimport { logger } from \"../log.js\";\n\n/**\n * A factory method used to generated a RetryPolicy factory.\n *\n * @param retryOptions -\n */\nexport function NewRetryPolicyFactory(retryOptions?: StorageRetryOptions): RequestPolicyFactory {\n return {\n create: (nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageRetryPolicy => {\n return new StorageRetryPolicy(nextPolicy, options, retryOptions);\n },\n };\n}\n\n/**\n * RetryPolicy types.\n */\nexport enum StorageRetryPolicyType {\n /**\n * Exponential retry. Retry time delay grows exponentially.\n */\n EXPONENTIAL,\n /**\n * Linear retry. Retry time delay grows linearly.\n */\n FIXED,\n}\n\n// Default values of StorageRetryOptions\nconst DEFAULT_RETRY_OPTIONS: StorageRetryOptions = {\n maxRetryDelayInMs: 120 * 1000,\n maxTries: 4,\n retryDelayInMs: 4 * 1000,\n retryPolicyType: StorageRetryPolicyType.EXPONENTIAL,\n tryTimeoutInMs: undefined, // Use server side default timeout strategy\n};\n\nconst RETRY_ABORT_ERROR = new AbortError(\"The operation was aborted.\");\n\n/**\n * Retry policy with exponential retry and linear retry implemented.\n */\nexport class StorageRetryPolicy extends BaseRequestPolicy {\n /**\n * RetryOptions.\n */\n private readonly retryOptions: StorageRetryOptions;\n\n /**\n * Creates an instance of RetryPolicy.\n *\n * @param nextPolicy -\n * @param options -\n * @param retryOptions -\n */\n constructor(\n nextPolicy: RequestPolicy,\n options: RequestPolicyOptions,\n retryOptions: StorageRetryOptions = DEFAULT_RETRY_OPTIONS,\n ) {\n super(nextPolicy, options);\n\n // Initialize retry options\n this.retryOptions = {\n retryPolicyType: retryOptions.retryPolicyType\n ? retryOptions.retryPolicyType\n : DEFAULT_RETRY_OPTIONS.retryPolicyType,\n\n maxTries:\n retryOptions.maxTries && retryOptions.maxTries >= 1\n ? Math.floor(retryOptions.maxTries)\n : DEFAULT_RETRY_OPTIONS.maxTries,\n\n tryTimeoutInMs:\n retryOptions.tryTimeoutInMs && retryOptions.tryTimeoutInMs >= 0\n ? retryOptions.tryTimeoutInMs\n : DEFAULT_RETRY_OPTIONS.tryTimeoutInMs,\n\n retryDelayInMs:\n retryOptions.retryDelayInMs && retryOptions.retryDelayInMs >= 0\n ? Math.min(\n retryOptions.retryDelayInMs,\n retryOptions.maxRetryDelayInMs\n ? retryOptions.maxRetryDelayInMs\n : DEFAULT_RETRY_OPTIONS.maxRetryDelayInMs!,\n )\n : DEFAULT_RETRY_OPTIONS.retryDelayInMs,\n\n maxRetryDelayInMs:\n retryOptions.maxRetryDelayInMs && retryOptions.maxRetryDelayInMs >= 0\n ? retryOptions.maxRetryDelayInMs\n : DEFAULT_RETRY_OPTIONS.maxRetryDelayInMs,\n };\n }\n\n /**\n * Sends request.\n *\n * @param request -\n */\n public async sendRequest(request: WebResource): Promise<HttpOperationResponse> {\n return this.attemptSendRequest(request, false, 1);\n }\n\n /**\n * Decide and perform next retry. Won't mutate request parameter.\n *\n * @param request -\n * @param secondaryHas404 - If attempt was against the secondary & it returned a StatusNotFound (404), then\n * the resource was not found. This may be due to replication delay. So, in this\n * case, we'll never try the secondary again for this operation.\n * @param attempt - How many retries has been attempted to performed, starting from 1, which includes\n * the attempt will be performed by this method call.\n */\n protected async attemptSendRequest(\n request: WebResource,\n secondaryHas404: boolean,\n attempt: number,\n ): Promise<HttpOperationResponse> {\n const newRequest: WebResource = request.clone();\n\n const isPrimaryRetry = true;\n\n // Set the server-side timeout query parameter \"timeout=[seconds]\"\n if (this.retryOptions.tryTimeoutInMs) {\n newRequest.url = setURLParameter(\n newRequest.url,\n URLConstants.Parameters.TIMEOUT,\n Math.floor(this.retryOptions.tryTimeoutInMs! / 1000).toString(),\n );\n }\n\n let response: HttpOperationResponse | undefined;\n try {\n logger.info(`RetryPolicy: =====> Try=${attempt} ${isPrimaryRetry ? \"Primary\" : \"Secondary\"}`);\n response = await this._nextPolicy.sendRequest(newRequest);\n if (!this.shouldRetry(isPrimaryRetry, attempt, response)) {\n return response;\n }\n\n secondaryHas404 = secondaryHas404 || (!isPrimaryRetry && response.status === 404);\n } catch (err: any) {\n logger.error(`RetryPolicy: Caught error, message: ${err.message}, code: ${err.code}`);\n if (!this.shouldRetry(isPrimaryRetry, attempt, response, err)) {\n throw err;\n }\n }\n\n await this.delay(isPrimaryRetry, attempt, request.abortSignal);\n return this.attemptSendRequest(request, secondaryHas404, ++attempt);\n }\n\n /**\n * Decide whether to retry according to last HTTP response and retry counters.\n *\n * @param isPrimaryRetry -\n * @param attempt -\n * @param response -\n * @param err -\n */\n protected shouldRetry(\n isPrimaryRetry: boolean,\n attempt: number,\n response?: HttpOperationResponse,\n err?: RestError,\n ): boolean {\n if (attempt >= this.retryOptions.maxTries!) {\n logger.info(\n `RetryPolicy: Attempt(s) ${attempt} >= maxTries ${this.retryOptions\n .maxTries!}, no further try.`,\n );\n return false;\n }\n\n // Handle network failures, you may need to customize the list when you implement\n // your own http client\n const retriableErrors = [\n \"ETIMEDOUT\",\n \"ESOCKETTIMEDOUT\",\n \"ECONNREFUSED\",\n \"ECONNRESET\",\n \"ENOENT\",\n \"ENOTFOUND\",\n \"TIMEOUT\",\n \"EPIPE\",\n \"REQUEST_SEND_ERROR\", // For default xhr based http client provided in ms-rest-js\n ];\n if (err) {\n for (const retriableError of retriableErrors) {\n if (\n err.name.toUpperCase().includes(retriableError) ||\n err.message.toUpperCase().includes(retriableError) ||\n (err.code && err.code.toString().toUpperCase() === retriableError)\n ) {\n logger.info(`RetryPolicy: Network error ${retriableError} found, will retry.`);\n return true;\n }\n }\n }\n\n // If attempt was against the secondary & it returned a StatusNotFound (404), then\n // the resource was not found. This may be due to replication delay. So, in this\n // case, we'll never try the secondary again for this operation.\n if (response || err) {\n const statusCode = response ? response.status : err ? err.statusCode : 0;\n if (!isPrimaryRetry && statusCode === 404) {\n logger.info(`RetryPolicy: Secondary access with 404, will retry.`);\n return true;\n }\n\n // Server internal error or server timeout\n if (statusCode === 503 || statusCode === 500) {\n logger.info(`RetryPolicy: Will retry for status code ${statusCode}.`);\n return true;\n }\n }\n\n // [Copy source error code] Feature is pending on service side, skip retry on copy source error for now.\n // if (response) {\n // // Retry select Copy Source Error Codes.\n // if (response?.status >= 400) {\n // const copySourceError = response.headers.get(HeaderConstants.X_MS_CopySourceErrorCode);\n // if (copySourceError !== undefined) {\n // switch (copySourceError)\n // {\n // case \"InternalError\":\n // case \"OperationTimedOut\":\n // case \"ServerBusy\":\n // return true;\n // }\n // }\n // }\n // }\n\n if (err?.code === \"PARSE_ERROR\" && err?.message.startsWith(`Error \"Error: Unclosed root tag`)) {\n logger.info(\n \"RetryPolicy: Incomplete XML response likely due to service timeout, will retry.\",\n );\n return true;\n }\n\n return false;\n }\n\n /**\n * Delay a calculated time between retries.\n *\n * @param isPrimaryRetry -\n * @param attempt -\n * @param abortSignal -\n */\n private async delay(\n isPrimaryRetry: boolean,\n attempt: number,\n abortSignal?: AbortSignalLike,\n ): Promise<void> {\n let delayTimeInMs: number = 0;\n\n if (isPrimaryRetry) {\n switch (this.retryOptions.retryPolicyType) {\n case StorageRetryPolicyType.EXPONENTIAL:\n delayTimeInMs = Math.min(\n (Math.pow(2, attempt - 1) - 1) * this.retryOptions.retryDelayInMs!,\n this.retryOptions.maxRetryDelayInMs!,\n );\n break;\n case StorageRetryPolicyType.FIXED:\n delayTimeInMs = this.retryOptions.retryDelayInMs!;\n break;\n }\n } else {\n delayTimeInMs = Math.random() * 1000;\n }\n\n logger.info(`RetryPolicy: Delay for ${delayTimeInMs}ms`);\n return delay(delayTimeInMs, abortSignal, RETRY_ABORT_ERROR);\n }\n}\n"]}
|
1
|
+
{"version":3,"file":"StorageRetryPolicy.js","sourceRoot":"","sources":["../../../src/policies/StorageRetryPolicy.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAQrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAIxD,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CAAC,YAAkC;IACtE,OAAO;QACL,MAAM,EAAE,CAAC,UAAyB,EAAE,OAA6B,EAAsB,EAAE;YACvF,OAAO,IAAI,kBAAkB,CAAC,UAAU,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;QACnE,CAAC;KACF,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,sBASX;AATD,WAAY,sBAAsB;IAChC;;OAEG;IACH,iFAAW,CAAA;IACX;;OAEG;IACH,qEAAK,CAAA;AACP,CAAC,EATW,sBAAsB,KAAtB,sBAAsB,QASjC;AAED,wCAAwC;AACxC,MAAM,qBAAqB,GAAwB;IACjD,iBAAiB,EAAE,GAAG,GAAG,IAAI;IAC7B,QAAQ,EAAE,CAAC;IACX,cAAc,EAAE,CAAC,GAAG,IAAI;IACxB,eAAe,EAAE,sBAAsB,CAAC,WAAW;IACnD,cAAc,EAAE,SAAS,EAAE,2CAA2C;CACvE,CAAC;AAEF,MAAM,iBAAiB,GAAG,IAAI,UAAU,CAAC,4BAA4B,CAAC,CAAC;AAEvE;;GAEG;AACH,MAAM,OAAO,kBAAmB,SAAQ,iBAAiB;IAMvD;;;;;;OA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;;OAMG;IACK,KAAK,CAAC,KAAK,CACjB,cAAuB,EACvB,OAAe,EACf,WAA6B;QAE7B,IAAI,aAAa,GAAW,CAAC,CAAC;QAE9B,IAAI,cAAc,EAAE,CAAC;YACnB,QAAQ,IAAI,CAAC,YAAY,CAAC,eAAe,EAAE,CAAC;gBAC1C,KAAK,sBAAsB,CAAC,WAAW;oBACrC,aAAa,GAAG,IAAI,CAAC,GAAG,CACtB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,cAAe,EAClE,IAAI,CAAC,YAAY,CAAC,iBAAkB,CACrC,CAAC;oBACF,MAAM;gBACR,KAAK,sBAAsB,CAAC,KAAK;oBAC/B,aAAa,GAAG,IAAI,CAAC,YAAY,CAAC,cAAe,CAAC;oBAClD,MAAM;YACV,CAAC;QACH,CAAC;aAAM,CAAC;YACN,aAAa,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC;QACvC,CAAC;QAED,MAAM,CAAC,IAAI,CAAC,0BAA0B,aAAa,IAAI,CAAC,CAAC;QACzD,OAAO,KAAK,CAAC,aAAa,EAAE,WAAW,EAAE,iBAAiB,CAAC,CAAC;IAC9D,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport { AbortError } from \"@azure/abort-controller\";\nimport type {\n RequestPolicy,\n RequestPolicyOptionsLike as RequestPolicyOptions,\n RequestPolicyFactory,\n WebResourceLike as WebResource,\n CompatResponse as HttpOperationResponse,\n} from \"@azure/core-http-compat\";\nimport { BaseRequestPolicy } from \"@azure/storage-blob\";\nimport type { RestError } from \"@azure/core-rest-pipeline\";\n\nimport type { StorageRetryOptions } from \"../StorageRetryPolicyFactory.js\";\nimport { HeaderConstants, URLConstants } from \"../utils/constants.js\";\nimport { delay, setURLParameter } from \"../utils/utils.common.js\";\nimport { logger } from \"../log.js\";\n\n/**\n * A factory method used to generated a RetryPolicy factory.\n *\n * @param retryOptions -\n */\nexport function NewRetryPolicyFactory(retryOptions?: StorageRetryOptions): RequestPolicyFactory {\n return {\n create: (nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageRetryPolicy => {\n return new StorageRetryPolicy(nextPolicy, options, retryOptions);\n },\n };\n}\n\n/**\n * RetryPolicy types.\n */\nexport enum StorageRetryPolicyType {\n /**\n * Exponential retry. Retry time delay grows exponentially.\n */\n EXPONENTIAL,\n /**\n * Linear retry. Retry time delay grows linearly.\n */\n FIXED,\n}\n\n// Default values of StorageRetryOptions\nconst DEFAULT_RETRY_OPTIONS: StorageRetryOptions = {\n maxRetryDelayInMs: 120 * 1000,\n maxTries: 4,\n retryDelayInMs: 4 * 1000,\n retryPolicyType: StorageRetryPolicyType.EXPONENTIAL,\n tryTimeoutInMs: undefined, // Use server side default timeout strategy\n};\n\nconst RETRY_ABORT_ERROR = new AbortError(\"The operation was aborted.\");\n\n/**\n * Retry policy with exponential retry and linear retry implemented.\n */\nexport class StorageRetryPolicy extends BaseRequestPolicy {\n /**\n * RetryOptions.\n */\n private readonly retryOptions: StorageRetryOptions;\n\n /**\n * Creates an instance of RetryPolicy.\n *\n * @param nextPolicy -\n * @param options -\n * @param retryOptions -\n */\n constructor(\n nextPolicy: RequestPolicy,\n options: RequestPolicyOptions,\n retryOptions: StorageRetryOptions = DEFAULT_RETRY_OPTIONS,\n ) {\n super(nextPolicy, options);\n\n // Initialize retry options\n this.retryOptions = {\n retryPolicyType: retryOptions.retryPolicyType\n ? retryOptions.retryPolicyType\n : DEFAULT_RETRY_OPTIONS.retryPolicyType,\n\n maxTries:\n retryOptions.maxTries && retryOptions.maxTries >= 1\n ? Math.floor(retryOptions.maxTries)\n : DEFAULT_RETRY_OPTIONS.maxTries,\n\n tryTimeoutInMs:\n retryOptions.tryTimeoutInMs && retryOptions.tryTimeoutInMs >= 0\n ? retryOptions.tryTimeoutInMs\n : DEFAULT_RETRY_OPTIONS.tryTimeoutInMs,\n\n retryDelayInMs:\n retryOptions.retryDelayInMs && retryOptions.retryDelayInMs >= 0\n ? Math.min(\n retryOptions.retryDelayInMs,\n retryOptions.maxRetryDelayInMs\n ? retryOptions.maxRetryDelayInMs\n : DEFAULT_RETRY_OPTIONS.maxRetryDelayInMs!,\n )\n : DEFAULT_RETRY_OPTIONS.retryDelayInMs,\n\n maxRetryDelayInMs:\n retryOptions.maxRetryDelayInMs && retryOptions.maxRetryDelayInMs >= 0\n ? retryOptions.maxRetryDelayInMs\n : DEFAULT_RETRY_OPTIONS.maxRetryDelayInMs,\n };\n }\n\n /**\n * Sends request.\n *\n * @param request -\n */\n public async sendRequest(request: WebResource): Promise<HttpOperationResponse> {\n return this.attemptSendRequest(request, false, 1);\n }\n\n /**\n * Decide and perform next retry. Won't mutate request parameter.\n *\n * @param request -\n * @param secondaryHas404 - If attempt was against the secondary & it returned a StatusNotFound (404), then\n * the resource was not found. This may be due to replication delay. So, in this\n * case, we'll never try the secondary again for this operation.\n * @param attempt - How many retries has been attempted to performed, starting from 1, which includes\n * the attempt will be performed by this method call.\n */\n protected async attemptSendRequest(\n request: WebResource,\n secondaryHas404: boolean,\n attempt: number,\n ): Promise<HttpOperationResponse> {\n const newRequest: WebResource = request.clone();\n\n const isPrimaryRetry = true;\n\n // Set the server-side timeout query parameter \"timeout=[seconds]\"\n if (this.retryOptions.tryTimeoutInMs) {\n newRequest.url = setURLParameter(\n newRequest.url,\n URLConstants.Parameters.TIMEOUT,\n Math.floor(this.retryOptions.tryTimeoutInMs! / 1000).toString(),\n );\n }\n\n let response: HttpOperationResponse | undefined;\n try {\n logger.info(`RetryPolicy: =====> Try=${attempt} ${isPrimaryRetry ? \"Primary\" : \"Secondary\"}`);\n response = await this._nextPolicy.sendRequest(newRequest);\n if (!this.shouldRetry(isPrimaryRetry, attempt, response)) {\n return response;\n }\n\n secondaryHas404 = secondaryHas404 || (!isPrimaryRetry && response.status === 404);\n } catch (err: any) {\n logger.error(`RetryPolicy: Caught error, message: ${err.message}, code: ${err.code}`);\n if (!this.shouldRetry(isPrimaryRetry, attempt, response, err)) {\n throw err;\n }\n }\n\n await this.delay(isPrimaryRetry, attempt, request.abortSignal);\n return this.attemptSendRequest(request, secondaryHas404, ++attempt);\n }\n\n /**\n * Decide whether to retry according to last HTTP response and retry counters.\n *\n * @param isPrimaryRetry -\n * @param attempt -\n * @param response -\n * @param err -\n */\n protected shouldRetry(\n isPrimaryRetry: boolean,\n attempt: number,\n response?: HttpOperationResponse,\n err?: RestError,\n ): boolean {\n if (attempt >= this.retryOptions.maxTries!) {\n logger.info(\n `RetryPolicy: Attempt(s) ${attempt} >= maxTries ${this.retryOptions\n .maxTries!}, no further try.`,\n );\n return false;\n }\n\n // Handle network failures, you may need to customize the list when you implement\n // your own http client\n const retriableErrors = [\n \"ETIMEDOUT\",\n \"ESOCKETTIMEDOUT\",\n \"ECONNREFUSED\",\n \"ECONNRESET\",\n \"ENOENT\",\n \"ENOTFOUND\",\n \"TIMEOUT\",\n \"EPIPE\",\n \"REQUEST_SEND_ERROR\", // For default xhr based http client provided in ms-rest-js\n ];\n if (err) {\n for (const retriableError of retriableErrors) {\n if (\n err.name.toUpperCase().includes(retriableError) ||\n err.message.toUpperCase().includes(retriableError) ||\n (err.code && err.code.toString().toUpperCase() === retriableError)\n ) {\n logger.info(`RetryPolicy: Network error ${retriableError} found, will retry.`);\n return true;\n }\n }\n }\n\n // If attempt was against the secondary & it returned a StatusNotFound (404), then\n // the resource was not found. This may be due to replication delay. So, in this\n // case, we'll never try the secondary again for this operation.\n if (response || err) {\n const statusCode = response ? response.status : err ? err.statusCode : 0;\n if (!isPrimaryRetry && statusCode === 404) {\n logger.info(`RetryPolicy: Secondary access with 404, will retry.`);\n return true;\n }\n\n // Server internal error or server timeout\n if (statusCode === 503 || statusCode === 500) {\n logger.info(`RetryPolicy: Will retry for status code ${statusCode}.`);\n return true;\n }\n }\n\n if (response) {\n // Retry select Copy Source Error Codes.\n if (response?.status >= 400) {\n const copySourceError = response.headers.get(HeaderConstants.X_MS_CopySourceErrorCode);\n if (copySourceError !== undefined) {\n switch (copySourceError) {\n case \"InternalError\":\n case \"OperationTimedOut\":\n case \"ServerBusy\":\n return true;\n }\n }\n }\n }\n\n if (err?.code === \"PARSE_ERROR\" && err?.message.startsWith(`Error \"Error: Unclosed root tag`)) {\n logger.info(\n \"RetryPolicy: Incomplete XML response likely due to service timeout, will retry.\",\n );\n return true;\n }\n\n return false;\n }\n\n /**\n * Delay a calculated time between retries.\n *\n * @param isPrimaryRetry -\n * @param attempt -\n * @param abortSignal -\n */\n private async delay(\n isPrimaryRetry: boolean,\n attempt: number,\n abortSignal?: AbortSignalLike,\n ): Promise<void> {\n let delayTimeInMs: number = 0;\n\n if (isPrimaryRetry) {\n switch (this.retryOptions.retryPolicyType) {\n case StorageRetryPolicyType.EXPONENTIAL:\n delayTimeInMs = Math.min(\n (Math.pow(2, attempt - 1) - 1) * this.retryOptions.retryDelayInMs!,\n this.retryOptions.maxRetryDelayInMs!,\n );\n break;\n case StorageRetryPolicyType.FIXED:\n delayTimeInMs = this.retryOptions.retryDelayInMs!;\n break;\n }\n } else {\n delayTimeInMs = Math.random() * 1000;\n }\n\n logger.info(`RetryPolicy: Delay for ${delayTimeInMs}ms`);\n return delay(delayTimeInMs, abortSignal, RETRY_ABORT_ERROR);\n }\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"StorageRetryPolicyV2.d.ts","sourceRoot":"","sources":["../../../src/policies/StorageRetryPolicyV2.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,cAAc,EAIf,MAAM,2BAA2B,CAAC;AAGnC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAK3E;;GAEG;AACH,eAAO,MAAM,sBAAsB,uBAAuB,CAAC;AAE3D;;GAEG;AACH,oBAAY,sBAAsB;IAChC;;OAEG;IACH,WAAW,IAAA;IACX;;OAEG;IACH,KAAK,IAAA;CACN;AA0BD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,GAAE,mBAAwB,GAAG,cAAc,
|
1
|
+
{"version":3,"file":"StorageRetryPolicyV2.d.ts","sourceRoot":"","sources":["../../../src/policies/StorageRetryPolicyV2.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,cAAc,EAIf,MAAM,2BAA2B,CAAC;AAGnC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAK3E;;GAEG;AACH,eAAO,MAAM,sBAAsB,uBAAuB,CAAC;AAE3D;;GAEG;AACH,oBAAY,sBAAsB;IAChC;;OAEG;IACH,WAAW,IAAA;IACX;;OAEG;IACH,KAAK,IAAA;CACN;AA0BD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,GAAE,mBAAwB,GAAG,cAAc,CAwJpF"}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { AbortError } from "@azure/abort-controller";
|
4
4
|
import { isRestError, RestError } from "@azure/core-rest-pipeline";
|
5
5
|
import { getErrorMessage } from "@azure/core-util";
|
6
|
-
import { URLConstants } from "../utils/constants.js";
|
6
|
+
import { HeaderConstants, URLConstants } from "../utils/constants.js";
|
7
7
|
import { delay, setURLParameter } from "../utils/utils.common.js";
|
8
8
|
import { logger } from "../log.js";
|
9
9
|
/**
|
@@ -91,22 +91,20 @@ export function storageRetryPolicy(options = {}) {
|
|
91
91
|
return true;
|
92
92
|
}
|
93
93
|
}
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
// }
|
109
|
-
// }
|
94
|
+
if (response) {
|
95
|
+
// Retry select Copy Source Error Codes.
|
96
|
+
if ((response === null || response === void 0 ? void 0 : response.status) >= 400) {
|
97
|
+
const copySourceError = response.headers.get(HeaderConstants.X_MS_CopySourceErrorCode);
|
98
|
+
if (copySourceError !== undefined) {
|
99
|
+
switch (copySourceError) {
|
100
|
+
case "InternalError":
|
101
|
+
case "OperationTimedOut":
|
102
|
+
case "ServerBusy":
|
103
|
+
return true;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|
110
108
|
return false;
|
111
109
|
}
|
112
110
|
function calculateDelay(isPrimaryRetry, attempt) {
|