@azure/arm-storage 18.3.1-alpha.20250226.1 → 18.4.0-alpha.20250227.2

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.
Files changed (181) hide show
  1. package/CHANGELOG.md +47 -9
  2. package/LICENSE +4 -4
  3. package/README.md +3 -1
  4. package/dist/browser/lroImpl.d.ts.map +1 -1
  5. package/dist/browser/lroImpl.js +7 -0
  6. package/dist/browser/lroImpl.js.map +1 -1
  7. package/dist/browser/models/index.d.ts +301 -6
  8. package/dist/browser/models/index.d.ts.map +1 -1
  9. package/dist/browser/models/index.js +12 -0
  10. package/dist/browser/models/index.js.map +1 -1
  11. package/dist/browser/models/mappers.d.ts +11 -0
  12. package/dist/browser/models/mappers.d.ts.map +1 -1
  13. package/dist/browser/models/mappers.js +431 -8
  14. package/dist/browser/models/mappers.js.map +1 -1
  15. package/dist/browser/models/parameters.d.ts +3 -2
  16. package/dist/browser/models/parameters.d.ts.map +1 -1
  17. package/dist/browser/models/parameters.js +22 -11
  18. package/dist/browser/models/parameters.js.map +1 -1
  19. package/dist/browser/operations/blobContainers.d.ts +9 -9
  20. package/dist/browser/operations/blobContainers.js +9 -9
  21. package/dist/browser/operations/blobContainers.js.map +1 -1
  22. package/dist/browser/operations/encryptionScopes.js +1 -1
  23. package/dist/browser/operations/encryptionScopes.js.map +1 -1
  24. package/dist/browser/operations/fileServices.d.ts +46 -1
  25. package/dist/browser/operations/fileServices.d.ts.map +1 -1
  26. package/dist/browser/operations/fileServices.js +174 -0
  27. package/dist/browser/operations/fileServices.js.map +1 -1
  28. package/dist/browser/operations/localUsersOperations.js +1 -1
  29. package/dist/browser/operations/localUsersOperations.js.map +1 -1
  30. package/dist/browser/operations/storageAccounts.d.ts +2 -2
  31. package/dist/browser/operations/storageAccounts.js +2 -2
  32. package/dist/browser/operations/storageAccounts.js.map +1 -1
  33. package/dist/browser/operations/storageTaskAssignmentInstancesReport.js +1 -1
  34. package/dist/browser/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
  35. package/dist/browser/operations/storageTaskAssignments.js +1 -1
  36. package/dist/browser/operations/storageTaskAssignments.js.map +1 -1
  37. package/dist/browser/operations/storageTaskAssignmentsInstancesReport.js +1 -1
  38. package/dist/browser/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
  39. package/dist/browser/operationsInterfaces/blobContainers.d.ts +9 -9
  40. package/dist/browser/operationsInterfaces/blobContainers.js.map +1 -1
  41. package/dist/browser/operationsInterfaces/fileServices.d.ts +23 -1
  42. package/dist/browser/operationsInterfaces/fileServices.d.ts.map +1 -1
  43. package/dist/browser/operationsInterfaces/fileServices.js.map +1 -1
  44. package/dist/browser/operationsInterfaces/storageAccounts.d.ts +2 -2
  45. package/dist/browser/operationsInterfaces/storageAccounts.js.map +1 -1
  46. package/dist/browser/storageManagementClient.js +2 -2
  47. package/dist/browser/storageManagementClient.js.map +1 -1
  48. package/dist/commonjs/lroImpl.d.ts.map +1 -1
  49. package/dist/commonjs/lroImpl.js +7 -0
  50. package/dist/commonjs/lroImpl.js.map +1 -1
  51. package/dist/commonjs/models/index.d.ts +301 -6
  52. package/dist/commonjs/models/index.d.ts.map +1 -1
  53. package/dist/commonjs/models/index.js +12 -0
  54. package/dist/commonjs/models/index.js.map +1 -1
  55. package/dist/commonjs/models/mappers.d.ts +11 -0
  56. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  57. package/dist/commonjs/models/mappers.js +436 -12
  58. package/dist/commonjs/models/mappers.js.map +1 -1
  59. package/dist/commonjs/models/parameters.d.ts +3 -2
  60. package/dist/commonjs/models/parameters.d.ts.map +1 -1
  61. package/dist/commonjs/models/parameters.js +24 -13
  62. package/dist/commonjs/models/parameters.js.map +1 -1
  63. package/dist/commonjs/operations/blobContainers.d.ts +9 -9
  64. package/dist/commonjs/operations/blobContainers.js +9 -9
  65. package/dist/commonjs/operations/blobContainers.js.map +1 -1
  66. package/dist/commonjs/operations/encryptionScopes.js +1 -1
  67. package/dist/commonjs/operations/encryptionScopes.js.map +1 -1
  68. package/dist/commonjs/operations/fileServices.d.ts +46 -1
  69. package/dist/commonjs/operations/fileServices.d.ts.map +1 -1
  70. package/dist/commonjs/operations/fileServices.js +173 -0
  71. package/dist/commonjs/operations/fileServices.js.map +1 -1
  72. package/dist/commonjs/operations/localUsersOperations.js +1 -1
  73. package/dist/commonjs/operations/localUsersOperations.js.map +1 -1
  74. package/dist/commonjs/operations/storageAccounts.d.ts +2 -2
  75. package/dist/commonjs/operations/storageAccounts.js +2 -2
  76. package/dist/commonjs/operations/storageAccounts.js.map +1 -1
  77. package/dist/commonjs/operations/storageTaskAssignmentInstancesReport.js +1 -1
  78. package/dist/commonjs/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
  79. package/dist/commonjs/operations/storageTaskAssignments.js +1 -1
  80. package/dist/commonjs/operations/storageTaskAssignments.js.map +1 -1
  81. package/dist/commonjs/operations/storageTaskAssignmentsInstancesReport.js +1 -1
  82. package/dist/commonjs/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
  83. package/dist/commonjs/operationsInterfaces/blobContainers.d.ts +9 -9
  84. package/dist/commonjs/operationsInterfaces/blobContainers.js.map +1 -1
  85. package/dist/commonjs/operationsInterfaces/fileServices.d.ts +23 -1
  86. package/dist/commonjs/operationsInterfaces/fileServices.d.ts.map +1 -1
  87. package/dist/commonjs/operationsInterfaces/fileServices.js.map +1 -1
  88. package/dist/commonjs/operationsInterfaces/storageAccounts.d.ts +2 -2
  89. package/dist/commonjs/operationsInterfaces/storageAccounts.js.map +1 -1
  90. package/dist/commonjs/storageManagementClient.js +2 -2
  91. package/dist/commonjs/storageManagementClient.js.map +1 -1
  92. package/dist/esm/lroImpl.d.ts.map +1 -1
  93. package/dist/esm/lroImpl.js +7 -0
  94. package/dist/esm/lroImpl.js.map +1 -1
  95. package/dist/esm/models/index.d.ts +301 -6
  96. package/dist/esm/models/index.d.ts.map +1 -1
  97. package/dist/esm/models/index.js +12 -0
  98. package/dist/esm/models/index.js.map +1 -1
  99. package/dist/esm/models/mappers.d.ts +11 -0
  100. package/dist/esm/models/mappers.d.ts.map +1 -1
  101. package/dist/esm/models/mappers.js +431 -8
  102. package/dist/esm/models/mappers.js.map +1 -1
  103. package/dist/esm/models/parameters.d.ts +3 -2
  104. package/dist/esm/models/parameters.d.ts.map +1 -1
  105. package/dist/esm/models/parameters.js +22 -11
  106. package/dist/esm/models/parameters.js.map +1 -1
  107. package/dist/esm/operations/blobContainers.d.ts +9 -9
  108. package/dist/esm/operations/blobContainers.js +9 -9
  109. package/dist/esm/operations/blobContainers.js.map +1 -1
  110. package/dist/esm/operations/encryptionScopes.js +1 -1
  111. package/dist/esm/operations/encryptionScopes.js.map +1 -1
  112. package/dist/esm/operations/fileServices.d.ts +46 -1
  113. package/dist/esm/operations/fileServices.d.ts.map +1 -1
  114. package/dist/esm/operations/fileServices.js +174 -0
  115. package/dist/esm/operations/fileServices.js.map +1 -1
  116. package/dist/esm/operations/localUsersOperations.js +1 -1
  117. package/dist/esm/operations/localUsersOperations.js.map +1 -1
  118. package/dist/esm/operations/storageAccounts.d.ts +2 -2
  119. package/dist/esm/operations/storageAccounts.js +2 -2
  120. package/dist/esm/operations/storageAccounts.js.map +1 -1
  121. package/dist/esm/operations/storageTaskAssignmentInstancesReport.js +1 -1
  122. package/dist/esm/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
  123. package/dist/esm/operations/storageTaskAssignments.js +1 -1
  124. package/dist/esm/operations/storageTaskAssignments.js.map +1 -1
  125. package/dist/esm/operations/storageTaskAssignmentsInstancesReport.js +1 -1
  126. package/dist/esm/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
  127. package/dist/esm/operationsInterfaces/blobContainers.d.ts +9 -9
  128. package/dist/esm/operationsInterfaces/blobContainers.js.map +1 -1
  129. package/dist/esm/operationsInterfaces/fileServices.d.ts +23 -1
  130. package/dist/esm/operationsInterfaces/fileServices.d.ts.map +1 -1
  131. package/dist/esm/operationsInterfaces/fileServices.js.map +1 -1
  132. package/dist/esm/operationsInterfaces/storageAccounts.d.ts +2 -2
  133. package/dist/esm/operationsInterfaces/storageAccounts.js.map +1 -1
  134. package/dist/esm/storageManagementClient.js +2 -2
  135. package/dist/esm/storageManagementClient.js.map +1 -1
  136. package/dist/react-native/lroImpl.d.ts.map +1 -1
  137. package/dist/react-native/lroImpl.js +7 -0
  138. package/dist/react-native/lroImpl.js.map +1 -1
  139. package/dist/react-native/models/index.d.ts +301 -6
  140. package/dist/react-native/models/index.d.ts.map +1 -1
  141. package/dist/react-native/models/index.js +12 -0
  142. package/dist/react-native/models/index.js.map +1 -1
  143. package/dist/react-native/models/mappers.d.ts +11 -0
  144. package/dist/react-native/models/mappers.d.ts.map +1 -1
  145. package/dist/react-native/models/mappers.js +431 -8
  146. package/dist/react-native/models/mappers.js.map +1 -1
  147. package/dist/react-native/models/parameters.d.ts +3 -2
  148. package/dist/react-native/models/parameters.d.ts.map +1 -1
  149. package/dist/react-native/models/parameters.js +22 -11
  150. package/dist/react-native/models/parameters.js.map +1 -1
  151. package/dist/react-native/operations/blobContainers.d.ts +9 -9
  152. package/dist/react-native/operations/blobContainers.js +9 -9
  153. package/dist/react-native/operations/blobContainers.js.map +1 -1
  154. package/dist/react-native/operations/encryptionScopes.js +1 -1
  155. package/dist/react-native/operations/encryptionScopes.js.map +1 -1
  156. package/dist/react-native/operations/fileServices.d.ts +46 -1
  157. package/dist/react-native/operations/fileServices.d.ts.map +1 -1
  158. package/dist/react-native/operations/fileServices.js +174 -0
  159. package/dist/react-native/operations/fileServices.js.map +1 -1
  160. package/dist/react-native/operations/localUsersOperations.js +1 -1
  161. package/dist/react-native/operations/localUsersOperations.js.map +1 -1
  162. package/dist/react-native/operations/storageAccounts.d.ts +2 -2
  163. package/dist/react-native/operations/storageAccounts.js +2 -2
  164. package/dist/react-native/operations/storageAccounts.js.map +1 -1
  165. package/dist/react-native/operations/storageTaskAssignmentInstancesReport.js +1 -1
  166. package/dist/react-native/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
  167. package/dist/react-native/operations/storageTaskAssignments.js +1 -1
  168. package/dist/react-native/operations/storageTaskAssignments.js.map +1 -1
  169. package/dist/react-native/operations/storageTaskAssignmentsInstancesReport.js +1 -1
  170. package/dist/react-native/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
  171. package/dist/react-native/operationsInterfaces/blobContainers.d.ts +9 -9
  172. package/dist/react-native/operationsInterfaces/blobContainers.js.map +1 -1
  173. package/dist/react-native/operationsInterfaces/fileServices.d.ts +23 -1
  174. package/dist/react-native/operationsInterfaces/fileServices.d.ts.map +1 -1
  175. package/dist/react-native/operationsInterfaces/fileServices.js.map +1 -1
  176. package/dist/react-native/operationsInterfaces/storageAccounts.d.ts +2 -2
  177. package/dist/react-native/operationsInterfaces/storageAccounts.js.map +1 -1
  178. package/dist/react-native/storageManagementClient.js +2 -2
  179. package/dist/react-native/storageManagementClient.js.map +1 -1
  180. package/package.json +7 -7
  181. package/review/arm-storage.api.md +126 -0
@@ -1 +1 @@
1
- {"version":3,"file":"storageAccounts.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/storageAccounts.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 { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n StorageAccount,\n StorageAccountsListOptionalParams,\n StorageAccountsListByResourceGroupOptionalParams,\n StorageAccountCheckNameAvailabilityParameters,\n StorageAccountsCheckNameAvailabilityOptionalParams,\n StorageAccountsCheckNameAvailabilityResponse,\n StorageAccountCreateParameters,\n StorageAccountsCreateOptionalParams,\n StorageAccountsCreateResponse,\n StorageAccountsDeleteOptionalParams,\n StorageAccountsGetPropertiesOptionalParams,\n StorageAccountsGetPropertiesResponse,\n StorageAccountUpdateParameters,\n StorageAccountsUpdateOptionalParams,\n StorageAccountsUpdateResponse,\n StorageAccountsListKeysOptionalParams,\n StorageAccountsListKeysResponse,\n StorageAccountRegenerateKeyParameters,\n StorageAccountsRegenerateKeyOptionalParams,\n StorageAccountsRegenerateKeyResponse,\n AccountSasParameters,\n StorageAccountsListAccountSASOptionalParams,\n StorageAccountsListAccountSASResponse,\n ServiceSasParameters,\n StorageAccountsListServiceSASOptionalParams,\n StorageAccountsListServiceSASResponse,\n StorageAccountsFailoverOptionalParams,\n StorageAccountsHierarchicalNamespaceMigrationOptionalParams,\n StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams,\n StorageAccountMigration,\n StorageAccountsCustomerInitiatedMigrationOptionalParams,\n MigrationName,\n StorageAccountsGetCustomerInitiatedMigrationOptionalParams,\n StorageAccountsGetCustomerInitiatedMigrationResponse,\n BlobRestoreParameters,\n StorageAccountsRestoreBlobRangesOptionalParams,\n StorageAccountsRestoreBlobRangesResponse,\n StorageAccountsRevokeUserDelegationKeysOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a StorageAccounts. */\nexport interface StorageAccounts {\n /**\n * Lists all the storage accounts available under the subscription. Note that storage keys are not\n * returned; use the ListKeys operation for this.\n * @param options The options parameters.\n */\n list(\n options?: StorageAccountsListOptionalParams,\n ): PagedAsyncIterableIterator<StorageAccount>;\n /**\n * Lists all the storage accounts available under the given resource group. Note that storage keys are\n * not returned; use the ListKeys operation for this.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: StorageAccountsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<StorageAccount>;\n /**\n * Checks that the storage account name is valid and is not already in use.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n checkNameAvailability(\n accountName: StorageAccountCheckNameAvailabilityParameters,\n options?: StorageAccountsCheckNameAvailabilityOptionalParams,\n ): Promise<StorageAccountsCheckNameAvailabilityResponse>;\n /**\n * Asynchronously creates a new storage account with the specified parameters. If an account is already\n * created and a subsequent create request is issued with different properties, the account properties\n * will be updated. If an account is already created and a subsequent create or update request is\n * issued with the exact same set of properties, the request will succeed.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide for the created account.\n * @param options The options parameters.\n */\n beginCreate(\n resourceGroupName: string,\n accountName: string,\n parameters: StorageAccountCreateParameters,\n options?: StorageAccountsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<StorageAccountsCreateResponse>,\n StorageAccountsCreateResponse\n >\n >;\n /**\n * Asynchronously creates a new storage account with the specified parameters. If an account is already\n * created and a subsequent create request is issued with different properties, the account properties\n * will be updated. If an account is already created and a subsequent create or update request is\n * issued with the exact same set of properties, the request will succeed.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide for the created account.\n * @param options The options parameters.\n */\n beginCreateAndWait(\n resourceGroupName: string,\n accountName: string,\n parameters: StorageAccountCreateParameters,\n options?: StorageAccountsCreateOptionalParams,\n ): Promise<StorageAccountsCreateResponse>;\n /**\n * Deletes a storage account in Microsoft Azure.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsDeleteOptionalParams,\n ): Promise<void>;\n /**\n * Returns the properties for the specified storage account including but not limited to name, SKU\n * name, location, and account status. The ListKeys operation should be used to retrieve storage keys.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n getProperties(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsGetPropertiesOptionalParams,\n ): Promise<StorageAccountsGetPropertiesResponse>;\n /**\n * The update operation can be used to update the SKU, encryption, access tier, or tags for a storage\n * account. It can also be used to map the account to a custom domain. Only one custom domain is\n * supported per storage account; the replacement/change of custom domain is not supported. In order to\n * replace an old custom domain, the old value must be cleared/unregistered before a new value can be\n * set. The update of multiple properties is supported. This call does not change the storage keys for\n * the account. If you want to change the storage account keys, use the regenerate keys operation. The\n * location and name of the storage account cannot be changed after creation.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide for the updated account.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n accountName: string,\n parameters: StorageAccountUpdateParameters,\n options?: StorageAccountsUpdateOptionalParams,\n ): Promise<StorageAccountsUpdateResponse>;\n /**\n * Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage\n * account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n listKeys(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsListKeysOptionalParams,\n ): Promise<StorageAccountsListKeysResponse>;\n /**\n * Regenerates one of the access keys or Kerberos keys for the specified storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param regenerateKey Specifies name of the key which should be regenerated -- key1, key2, kerb1,\n * kerb2.\n * @param options The options parameters.\n */\n regenerateKey(\n resourceGroupName: string,\n accountName: string,\n regenerateKey: StorageAccountRegenerateKeyParameters,\n options?: StorageAccountsRegenerateKeyOptionalParams,\n ): Promise<StorageAccountsRegenerateKeyResponse>;\n /**\n * List SAS credentials of a storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide to list SAS credentials for the storage account.\n * @param options The options parameters.\n */\n listAccountSAS(\n resourceGroupName: string,\n accountName: string,\n parameters: AccountSasParameters,\n options?: StorageAccountsListAccountSASOptionalParams,\n ): Promise<StorageAccountsListAccountSASResponse>;\n /**\n * List service SAS credentials of a specific resource.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide to list service SAS credentials.\n * @param options The options parameters.\n */\n listServiceSAS(\n resourceGroupName: string,\n accountName: string,\n parameters: ServiceSasParameters,\n options?: StorageAccountsListServiceSASOptionalParams,\n ): Promise<StorageAccountsListServiceSASResponse>;\n /**\n * A failover request can be triggered for a storage account in the event a primary endpoint becomes\n * unavailable for any reason. The failover occurs from the storage account's primary cluster to the\n * secondary cluster for RA-GRS accounts. The secondary cluster will become primary after failover and\n * the account is converted to LRS. In the case of a Planned Failover, the primary and secondary\n * clusters are swapped after failover and the account remains geo-replicated. Failover should continue\n * to be used in the event of availability issues as Planned failover is only available while the\n * primary and secondary endpoints are available. The primary use case of a Planned Failover is\n * disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter\n * to 'Planned'. Learn more about the failover options here-\n * https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidance\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n beginFailover(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsFailoverOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * A failover request can be triggered for a storage account in the event a primary endpoint becomes\n * unavailable for any reason. The failover occurs from the storage account's primary cluster to the\n * secondary cluster for RA-GRS accounts. The secondary cluster will become primary after failover and\n * the account is converted to LRS. In the case of a Planned Failover, the primary and secondary\n * clusters are swapped after failover and the account remains geo-replicated. Failover should continue\n * to be used in the event of availability issues as Planned failover is only available while the\n * primary and secondary endpoints are available. The primary use case of a Planned Failover is\n * disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter\n * to 'Planned'. Learn more about the failover options here-\n * https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidance\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n beginFailoverAndWait(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsFailoverOptionalParams,\n ): Promise<void>;\n /**\n * Live Migration of storage account to enable Hns\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param requestType Required. Hierarchical namespace migration type can either be a hierarchical\n * namespace validation request 'HnsOnValidationRequest' or a hydration request\n * 'HnsOnHydrationRequest'. The validation request will validate the migration whereas the hydration\n * request will migrate the account.\n * @param options The options parameters.\n */\n beginHierarchicalNamespaceMigration(\n resourceGroupName: string,\n accountName: string,\n requestType: string,\n options?: StorageAccountsHierarchicalNamespaceMigrationOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * Live Migration of storage account to enable Hns\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param requestType Required. Hierarchical namespace migration type can either be a hierarchical\n * namespace validation request 'HnsOnValidationRequest' or a hydration request\n * 'HnsOnHydrationRequest'. The validation request will validate the migration whereas the hydration\n * request will migrate the account.\n * @param options The options parameters.\n */\n beginHierarchicalNamespaceMigrationAndWait(\n resourceGroupName: string,\n accountName: string,\n requestType: string,\n options?: StorageAccountsHierarchicalNamespaceMigrationOptionalParams,\n ): Promise<void>;\n /**\n * Abort live Migration of storage account to enable Hns\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n beginAbortHierarchicalNamespaceMigration(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * Abort live Migration of storage account to enable Hns\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n beginAbortHierarchicalNamespaceMigrationAndWait(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams,\n ): Promise<void>;\n /**\n * Account Migration request can be triggered for a storage account to change its redundancy level. The\n * migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa\n * in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your\n * storage account synchronously across three Azure availability zones in the primary region.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The request parameters required to perform storage account migration.\n * @param options The options parameters.\n */\n beginCustomerInitiatedMigration(\n resourceGroupName: string,\n accountName: string,\n parameters: StorageAccountMigration,\n options?: StorageAccountsCustomerInitiatedMigrationOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * Account Migration request can be triggered for a storage account to change its redundancy level. The\n * migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa\n * in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your\n * storage account synchronously across three Azure availability zones in the primary region.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The request parameters required to perform storage account migration.\n * @param options The options parameters.\n */\n beginCustomerInitiatedMigrationAndWait(\n resourceGroupName: string,\n accountName: string,\n parameters: StorageAccountMigration,\n options?: StorageAccountsCustomerInitiatedMigrationOptionalParams,\n ): Promise<void>;\n /**\n * Gets the status of the ongoing migration for the specified storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param migrationName The name of the Storage Account Migration. It should always be 'default'\n * @param options The options parameters.\n */\n getCustomerInitiatedMigration(\n resourceGroupName: string,\n accountName: string,\n migrationName: MigrationName,\n options?: StorageAccountsGetCustomerInitiatedMigrationOptionalParams,\n ): Promise<StorageAccountsGetCustomerInitiatedMigrationResponse>;\n /**\n * Restore blobs in the specified blob ranges\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide for restore blob ranges.\n * @param options The options parameters.\n */\n beginRestoreBlobRanges(\n resourceGroupName: string,\n accountName: string,\n parameters: BlobRestoreParameters,\n options?: StorageAccountsRestoreBlobRangesOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<StorageAccountsRestoreBlobRangesResponse>,\n StorageAccountsRestoreBlobRangesResponse\n >\n >;\n /**\n * Restore blobs in the specified blob ranges\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide for restore blob ranges.\n * @param options The options parameters.\n */\n beginRestoreBlobRangesAndWait(\n resourceGroupName: string,\n accountName: string,\n parameters: BlobRestoreParameters,\n options?: StorageAccountsRestoreBlobRangesOptionalParams,\n ): Promise<StorageAccountsRestoreBlobRangesResponse>;\n /**\n * Revoke user delegation keys.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n revokeUserDelegationKeys(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsRevokeUserDelegationKeysOptionalParams,\n ): Promise<void>;\n}\n"]}
1
+ {"version":3,"file":"storageAccounts.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/storageAccounts.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 { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n StorageAccount,\n StorageAccountsListOptionalParams,\n StorageAccountsListByResourceGroupOptionalParams,\n StorageAccountCheckNameAvailabilityParameters,\n StorageAccountsCheckNameAvailabilityOptionalParams,\n StorageAccountsCheckNameAvailabilityResponse,\n StorageAccountCreateParameters,\n StorageAccountsCreateOptionalParams,\n StorageAccountsCreateResponse,\n StorageAccountsDeleteOptionalParams,\n StorageAccountsGetPropertiesOptionalParams,\n StorageAccountsGetPropertiesResponse,\n StorageAccountUpdateParameters,\n StorageAccountsUpdateOptionalParams,\n StorageAccountsUpdateResponse,\n StorageAccountsListKeysOptionalParams,\n StorageAccountsListKeysResponse,\n StorageAccountRegenerateKeyParameters,\n StorageAccountsRegenerateKeyOptionalParams,\n StorageAccountsRegenerateKeyResponse,\n AccountSasParameters,\n StorageAccountsListAccountSASOptionalParams,\n StorageAccountsListAccountSASResponse,\n ServiceSasParameters,\n StorageAccountsListServiceSASOptionalParams,\n StorageAccountsListServiceSASResponse,\n StorageAccountsFailoverOptionalParams,\n StorageAccountsHierarchicalNamespaceMigrationOptionalParams,\n StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams,\n StorageAccountMigration,\n StorageAccountsCustomerInitiatedMigrationOptionalParams,\n MigrationName,\n StorageAccountsGetCustomerInitiatedMigrationOptionalParams,\n StorageAccountsGetCustomerInitiatedMigrationResponse,\n BlobRestoreParameters,\n StorageAccountsRestoreBlobRangesOptionalParams,\n StorageAccountsRestoreBlobRangesResponse,\n StorageAccountsRevokeUserDelegationKeysOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a StorageAccounts. */\nexport interface StorageAccounts {\n /**\n * Lists all the storage accounts available under the subscription. Note that storage keys are not\n * returned; use the ListKeys operation for this.\n * @param options The options parameters.\n */\n list(\n options?: StorageAccountsListOptionalParams,\n ): PagedAsyncIterableIterator<StorageAccount>;\n /**\n * Lists all the storage accounts available under the given resource group. Note that storage keys are\n * not returned; use the ListKeys operation for this.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: StorageAccountsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<StorageAccount>;\n /**\n * Checks that the storage account name is valid and is not already in use.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n checkNameAvailability(\n accountName: StorageAccountCheckNameAvailabilityParameters,\n options?: StorageAccountsCheckNameAvailabilityOptionalParams,\n ): Promise<StorageAccountsCheckNameAvailabilityResponse>;\n /**\n * Asynchronously creates a new storage account with the specified parameters. If an account is already\n * created and a subsequent create request is issued with different properties, the account properties\n * will be updated. If an account is already created and a subsequent create or update request is\n * issued with the exact same set of properties, the request will succeed.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide for the created account.\n * @param options The options parameters.\n */\n beginCreate(\n resourceGroupName: string,\n accountName: string,\n parameters: StorageAccountCreateParameters,\n options?: StorageAccountsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<StorageAccountsCreateResponse>,\n StorageAccountsCreateResponse\n >\n >;\n /**\n * Asynchronously creates a new storage account with the specified parameters. If an account is already\n * created and a subsequent create request is issued with different properties, the account properties\n * will be updated. If an account is already created and a subsequent create or update request is\n * issued with the exact same set of properties, the request will succeed.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide for the created account.\n * @param options The options parameters.\n */\n beginCreateAndWait(\n resourceGroupName: string,\n accountName: string,\n parameters: StorageAccountCreateParameters,\n options?: StorageAccountsCreateOptionalParams,\n ): Promise<StorageAccountsCreateResponse>;\n /**\n * Deletes a storage account in Microsoft Azure.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsDeleteOptionalParams,\n ): Promise<void>;\n /**\n * Returns the properties for the specified storage account including but not limited to name, SKU\n * name, location, and account status. The ListKeys operation should be used to retrieve storage keys.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n getProperties(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsGetPropertiesOptionalParams,\n ): Promise<StorageAccountsGetPropertiesResponse>;\n /**\n * The update operation can be used to update the SKU, encryption, access tier, or tags for a storage\n * account. It can also be used to map the account to a custom domain. Only one custom domain is\n * supported per storage account; the replacement/change of custom domain is not supported. In order to\n * replace an old custom domain, the old value must be cleared/unregistered before a new value can be\n * set. The update of multiple properties is supported. This call does not change the storage keys for\n * the account. If you want to change the storage account keys, use the regenerate keys operation. The\n * location and name of the storage account cannot be changed after creation.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide for the updated account.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n accountName: string,\n parameters: StorageAccountUpdateParameters,\n options?: StorageAccountsUpdateOptionalParams,\n ): Promise<StorageAccountsUpdateResponse>;\n /**\n * Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage\n * account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n listKeys(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsListKeysOptionalParams,\n ): Promise<StorageAccountsListKeysResponse>;\n /**\n * Regenerates one of the access keys or Kerberos keys for the specified storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param regenerateKey Specifies name of the key which should be regenerated -- key1, key2, kerb1,\n * kerb2.\n * @param options The options parameters.\n */\n regenerateKey(\n resourceGroupName: string,\n accountName: string,\n regenerateKey: StorageAccountRegenerateKeyParameters,\n options?: StorageAccountsRegenerateKeyOptionalParams,\n ): Promise<StorageAccountsRegenerateKeyResponse>;\n /**\n * List SAS credentials of a storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide to list SAS credentials for the storage account.\n * @param options The options parameters.\n */\n listAccountSAS(\n resourceGroupName: string,\n accountName: string,\n parameters: AccountSasParameters,\n options?: StorageAccountsListAccountSASOptionalParams,\n ): Promise<StorageAccountsListAccountSASResponse>;\n /**\n * List service SAS credentials of a specific resource.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide to list service SAS credentials.\n * @param options The options parameters.\n */\n listServiceSAS(\n resourceGroupName: string,\n accountName: string,\n parameters: ServiceSasParameters,\n options?: StorageAccountsListServiceSASOptionalParams,\n ): Promise<StorageAccountsListServiceSASResponse>;\n /**\n * A failover request can be triggered for a storage account in the event a primary endpoint becomes\n * unavailable for any reason. The failover occurs from the storage account's primary cluster to the\n * secondary cluster for RA-GRS accounts. The secondary cluster will become primary after failover and\n * the account is converted to LRS. In the case of a Planned Failover, the primary and secondary\n * clusters are swapped after failover and the account remains geo-replicated. Failover should continue\n * to be used in the event of availability issues as Planned failover is only available while the\n * primary and secondary endpoints are available. The primary use case of a Planned Failover is\n * disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter\n * to 'Planned'. Learn more about the failover options here-\n * https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n beginFailover(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsFailoverOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * A failover request can be triggered for a storage account in the event a primary endpoint becomes\n * unavailable for any reason. The failover occurs from the storage account's primary cluster to the\n * secondary cluster for RA-GRS accounts. The secondary cluster will become primary after failover and\n * the account is converted to LRS. In the case of a Planned Failover, the primary and secondary\n * clusters are swapped after failover and the account remains geo-replicated. Failover should continue\n * to be used in the event of availability issues as Planned failover is only available while the\n * primary and secondary endpoints are available. The primary use case of a Planned Failover is\n * disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter\n * to 'Planned'. Learn more about the failover options here-\n * https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n beginFailoverAndWait(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsFailoverOptionalParams,\n ): Promise<void>;\n /**\n * Live Migration of storage account to enable Hns\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param requestType Required. Hierarchical namespace migration type can either be a hierarchical\n * namespace validation request 'HnsOnValidationRequest' or a hydration request\n * 'HnsOnHydrationRequest'. The validation request will validate the migration whereas the hydration\n * request will migrate the account.\n * @param options The options parameters.\n */\n beginHierarchicalNamespaceMigration(\n resourceGroupName: string,\n accountName: string,\n requestType: string,\n options?: StorageAccountsHierarchicalNamespaceMigrationOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * Live Migration of storage account to enable Hns\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param requestType Required. Hierarchical namespace migration type can either be a hierarchical\n * namespace validation request 'HnsOnValidationRequest' or a hydration request\n * 'HnsOnHydrationRequest'. The validation request will validate the migration whereas the hydration\n * request will migrate the account.\n * @param options The options parameters.\n */\n beginHierarchicalNamespaceMigrationAndWait(\n resourceGroupName: string,\n accountName: string,\n requestType: string,\n options?: StorageAccountsHierarchicalNamespaceMigrationOptionalParams,\n ): Promise<void>;\n /**\n * Abort live Migration of storage account to enable Hns\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n beginAbortHierarchicalNamespaceMigration(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * Abort live Migration of storage account to enable Hns\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n beginAbortHierarchicalNamespaceMigrationAndWait(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams,\n ): Promise<void>;\n /**\n * Account Migration request can be triggered for a storage account to change its redundancy level. The\n * migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa\n * in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your\n * storage account synchronously across three Azure availability zones in the primary region.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The request parameters required to perform storage account migration.\n * @param options The options parameters.\n */\n beginCustomerInitiatedMigration(\n resourceGroupName: string,\n accountName: string,\n parameters: StorageAccountMigration,\n options?: StorageAccountsCustomerInitiatedMigrationOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * Account Migration request can be triggered for a storage account to change its redundancy level. The\n * migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa\n * in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your\n * storage account synchronously across three Azure availability zones in the primary region.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The request parameters required to perform storage account migration.\n * @param options The options parameters.\n */\n beginCustomerInitiatedMigrationAndWait(\n resourceGroupName: string,\n accountName: string,\n parameters: StorageAccountMigration,\n options?: StorageAccountsCustomerInitiatedMigrationOptionalParams,\n ): Promise<void>;\n /**\n * Gets the status of the ongoing migration for the specified storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param migrationName The name of the Storage Account Migration. It should always be 'default'\n * @param options The options parameters.\n */\n getCustomerInitiatedMigration(\n resourceGroupName: string,\n accountName: string,\n migrationName: MigrationName,\n options?: StorageAccountsGetCustomerInitiatedMigrationOptionalParams,\n ): Promise<StorageAccountsGetCustomerInitiatedMigrationResponse>;\n /**\n * Restore blobs in the specified blob ranges\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide for restore blob ranges.\n * @param options The options parameters.\n */\n beginRestoreBlobRanges(\n resourceGroupName: string,\n accountName: string,\n parameters: BlobRestoreParameters,\n options?: StorageAccountsRestoreBlobRangesOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<StorageAccountsRestoreBlobRangesResponse>,\n StorageAccountsRestoreBlobRangesResponse\n >\n >;\n /**\n * Restore blobs in the specified blob ranges\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The parameters to provide for restore blob ranges.\n * @param options The options parameters.\n */\n beginRestoreBlobRangesAndWait(\n resourceGroupName: string,\n accountName: string,\n parameters: BlobRestoreParameters,\n options?: StorageAccountsRestoreBlobRangesOptionalParams,\n ): Promise<StorageAccountsRestoreBlobRangesResponse>;\n /**\n * Revoke user delegation keys.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n revokeUserDelegationKeys(\n resourceGroupName: string,\n accountName: string,\n options?: StorageAccountsRevokeUserDelegationKeysOptionalParams,\n ): Promise<void>;\n}\n"]}
@@ -31,7 +31,7 @@ export class StorageManagementClient extends coreClient.ServiceClient {
31
31
  requestContentType: "application/json; charset=utf-8",
32
32
  credential: credentials,
33
33
  };
34
- const packageDetails = `azsdk-js-arm-storage/18.3.1`;
34
+ const packageDetails = `azsdk-js-arm-storage/18.4.0`;
35
35
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
36
36
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
37
37
  : `${packageDetails}`;
@@ -64,7 +64,7 @@ export class StorageManagementClient extends coreClient.ServiceClient {
64
64
  this.subscriptionId = subscriptionId;
65
65
  // Assigning values to Constant parameters
66
66
  this.$host = options.$host || "https://management.azure.com";
67
- this.apiVersion = options.apiVersion || "2023-05-01";
67
+ this.apiVersion = options.apiVersion || "2024-01-01";
68
68
  this.blobServices = new BlobServicesImpl(this);
69
69
  this.blobContainers = new BlobContainersImpl(this);
70
70
  this.fileServices = new FileServicesImpl(this);
@@ -1 +1 @@
1
- {"version":3,"file":"storageManagementClient.js","sourceRoot":"","sources":["../../src/storageManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,QAAQ,EACR,mBAAmB,EACnB,mBAAmB,EACnB,UAAU,EACV,sBAAsB,EACtB,yBAAyB,EACzB,8BAA8B,EAC9B,wBAAwB,EACxB,uCAAuC,EACvC,wBAAwB,EACxB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,0CAA0C,EAC1C,0BAA0B,EAC1B,yCAAyC,EACzC,wCAAwC,GACzC,MAAM,uBAAuB,CAAC;AA6B/B,MAAM,OAAO,uBAAwB,SAAQ,UAAU,CAAC,aAAa;IAKnE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA+C;;QAE/C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI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CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CA0BF","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 coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n BlobServicesImpl,\n BlobContainersImpl,\n FileServicesImpl,\n FileSharesImpl,\n QueueServicesImpl,\n QueueImpl,\n OperationsImpl,\n SkusImpl,\n StorageAccountsImpl,\n DeletedAccountsImpl,\n UsagesImpl,\n ManagementPoliciesImpl,\n BlobInventoryPoliciesImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n ObjectReplicationPoliciesOperationsImpl,\n LocalUsersOperationsImpl,\n EncryptionScopesImpl,\n TableServicesImpl,\n TableOperationsImpl,\n NetworkSecurityPerimeterConfigurationsImpl,\n StorageTaskAssignmentsImpl,\n StorageTaskAssignmentsInstancesReportImpl,\n StorageTaskAssignmentInstancesReportImpl,\n} from \"./operations/index.js\";\nimport {\n BlobServices,\n BlobContainers,\n FileServices,\n FileShares,\n QueueServices,\n Queue,\n Operations,\n Skus,\n StorageAccounts,\n DeletedAccounts,\n Usages,\n ManagementPolicies,\n BlobInventoryPolicies,\n PrivateEndpointConnections,\n PrivateLinkResources,\n ObjectReplicationPoliciesOperations,\n LocalUsersOperations,\n EncryptionScopes,\n TableServices,\n TableOperations,\n NetworkSecurityPerimeterConfigurations,\n StorageTaskAssignments,\n StorageTaskAssignmentsInstancesReport,\n StorageTaskAssignmentInstancesReport,\n} from \"./operationsInterfaces/index.js\";\nimport { StorageManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class StorageManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the StorageManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: StorageManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: StorageManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-storage/18.3.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:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2023-05-01\";\n this.blobServices = new BlobServicesImpl(this);\n this.blobContainers = new BlobContainersImpl(this);\n this.fileServices = new FileServicesImpl(this);\n this.fileShares = new FileSharesImpl(this);\n this.queueServices = new QueueServicesImpl(this);\n this.queue = new QueueImpl(this);\n this.operations = new OperationsImpl(this);\n this.skus = new SkusImpl(this);\n this.storageAccounts = new StorageAccountsImpl(this);\n this.deletedAccounts = new DeletedAccountsImpl(this);\n this.usages = new UsagesImpl(this);\n this.managementPolicies = new ManagementPoliciesImpl(this);\n this.blobInventoryPolicies = new BlobInventoryPoliciesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.objectReplicationPoliciesOperations =\n new ObjectReplicationPoliciesOperationsImpl(this);\n this.localUsersOperations = new LocalUsersOperationsImpl(this);\n this.encryptionScopes = new EncryptionScopesImpl(this);\n this.tableServices = new TableServicesImpl(this);\n this.tableOperations = new TableOperationsImpl(this);\n this.networkSecurityPerimeterConfigurations =\n new NetworkSecurityPerimeterConfigurationsImpl(this);\n this.storageTaskAssignments = new StorageTaskAssignmentsImpl(this);\n this.storageTaskAssignmentsInstancesReport =\n new StorageTaskAssignmentsInstancesReportImpl(this);\n this.storageTaskAssignmentInstancesReport =\n new StorageTaskAssignmentInstancesReportImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n blobServices: BlobServices;\n blobContainers: BlobContainers;\n fileServices: FileServices;\n fileShares: FileShares;\n queueServices: QueueServices;\n queue: Queue;\n operations: Operations;\n skus: Skus;\n storageAccounts: StorageAccounts;\n deletedAccounts: DeletedAccounts;\n usages: Usages;\n managementPolicies: ManagementPolicies;\n blobInventoryPolicies: BlobInventoryPolicies;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n objectReplicationPoliciesOperations: ObjectReplicationPoliciesOperations;\n localUsersOperations: LocalUsersOperations;\n encryptionScopes: EncryptionScopes;\n tableServices: TableServices;\n tableOperations: TableOperations;\n networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations;\n storageTaskAssignments: StorageTaskAssignments;\n storageTaskAssignmentsInstancesReport: StorageTaskAssignmentsInstancesReport;\n storageTaskAssignmentInstancesReport: StorageTaskAssignmentInstancesReport;\n}\n"]}
1
+ {"version":3,"file":"storageManagementClient.js","sourceRoot":"","sources":["../../src/storageManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,QAAQ,EACR,mBAAmB,EACnB,mBAAmB,EACnB,UAAU,EACV,sBAAsB,EACtB,yBAAyB,EACzB,8BAA8B,EAC9B,wBAAwB,EACxB,uCAAuC,EACvC,wBAAwB,EACxB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,0CAA0C,EAC1C,0BAA0B,EAC1B,yCAAyC,EACzC,wCAAwC,GACzC,MAAM,uBAAuB,CAAC;AA6B/B,MAAM,OAAO,uBAAwB,SAAQ,UAAU,CAAC,aAAa;IAKnE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA+C;;QAE/C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC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AAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CA0BF","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 coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n BlobServicesImpl,\n BlobContainersImpl,\n FileServicesImpl,\n FileSharesImpl,\n QueueServicesImpl,\n QueueImpl,\n OperationsImpl,\n SkusImpl,\n StorageAccountsImpl,\n DeletedAccountsImpl,\n UsagesImpl,\n ManagementPoliciesImpl,\n BlobInventoryPoliciesImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n ObjectReplicationPoliciesOperationsImpl,\n LocalUsersOperationsImpl,\n EncryptionScopesImpl,\n TableServicesImpl,\n TableOperationsImpl,\n NetworkSecurityPerimeterConfigurationsImpl,\n StorageTaskAssignmentsImpl,\n StorageTaskAssignmentsInstancesReportImpl,\n StorageTaskAssignmentInstancesReportImpl,\n} from \"./operations/index.js\";\nimport {\n BlobServices,\n BlobContainers,\n FileServices,\n FileShares,\n QueueServices,\n Queue,\n Operations,\n Skus,\n StorageAccounts,\n DeletedAccounts,\n Usages,\n ManagementPolicies,\n BlobInventoryPolicies,\n PrivateEndpointConnections,\n PrivateLinkResources,\n ObjectReplicationPoliciesOperations,\n LocalUsersOperations,\n EncryptionScopes,\n TableServices,\n TableOperations,\n NetworkSecurityPerimeterConfigurations,\n StorageTaskAssignments,\n StorageTaskAssignmentsInstancesReport,\n StorageTaskAssignmentInstancesReport,\n} from \"./operationsInterfaces/index.js\";\nimport { StorageManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class StorageManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the StorageManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: StorageManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: StorageManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-storage/18.4.0`;\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:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2024-01-01\";\n this.blobServices = new BlobServicesImpl(this);\n this.blobContainers = new BlobContainersImpl(this);\n this.fileServices = new FileServicesImpl(this);\n this.fileShares = new FileSharesImpl(this);\n this.queueServices = new QueueServicesImpl(this);\n this.queue = new QueueImpl(this);\n this.operations = new OperationsImpl(this);\n this.skus = new SkusImpl(this);\n this.storageAccounts = new StorageAccountsImpl(this);\n this.deletedAccounts = new DeletedAccountsImpl(this);\n this.usages = new UsagesImpl(this);\n this.managementPolicies = new ManagementPoliciesImpl(this);\n this.blobInventoryPolicies = new BlobInventoryPoliciesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.objectReplicationPoliciesOperations =\n new ObjectReplicationPoliciesOperationsImpl(this);\n this.localUsersOperations = new LocalUsersOperationsImpl(this);\n this.encryptionScopes = new EncryptionScopesImpl(this);\n this.tableServices = new TableServicesImpl(this);\n this.tableOperations = new TableOperationsImpl(this);\n this.networkSecurityPerimeterConfigurations =\n new NetworkSecurityPerimeterConfigurationsImpl(this);\n this.storageTaskAssignments = new StorageTaskAssignmentsImpl(this);\n this.storageTaskAssignmentsInstancesReport =\n new StorageTaskAssignmentsInstancesReportImpl(this);\n this.storageTaskAssignmentInstancesReport =\n new StorageTaskAssignmentInstancesReportImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n blobServices: BlobServices;\n blobContainers: BlobContainers;\n fileServices: FileServices;\n fileShares: FileShares;\n queueServices: QueueServices;\n queue: Queue;\n operations: Operations;\n skus: Skus;\n storageAccounts: StorageAccounts;\n deletedAccounts: DeletedAccounts;\n usages: Usages;\n managementPolicies: ManagementPolicies;\n blobInventoryPolicies: BlobInventoryPolicies;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n objectReplicationPoliciesOperations: ObjectReplicationPoliciesOperations;\n localUsersOperations: LocalUsersOperations;\n encryptionScopes: EncryptionScopes;\n tableServices: TableServices;\n tableOperations: TableOperations;\n networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations;\n storageTaskAssignments: StorageTaskAssignments;\n storageTaskAssignmentsInstancesReport: StorageTaskAssignmentsInstancesReport;\n storageTaskAssignmentInstancesReport: StorageTaskAssignmentInstancesReport;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
1
+ {"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
@@ -1,4 +1,11 @@
1
1
  "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
2
9
  Object.defineProperty(exports, "__esModule", { value: true });
3
10
  exports.createLroSpec = createLroSpec;
4
11
  const tslib_1 = require("tslib");
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";;AAUA,sCA2BC;;AA3BD,SAAgB,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,kBAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,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 */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAQH,sCA2BC;;AA3BD,SAAgB,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,kBAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,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\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}