@azure/arm-storage 18.1.1-alpha.20230810.1 → 18.2.0-alpha.20230821.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 (261) hide show
  1. package/CHANGELOG.md +90 -57
  2. package/LICENSE +1 -1
  3. package/dist/index.js +519 -102
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/blobContainersClearLegalHoldSample.js +11 -4
  8. package/dist-esm/samples-dev/blobContainersClearLegalHoldSample.js.map +1 -1
  9. package/dist-esm/samples-dev/blobContainersCreateOrUpdateImmutabilityPolicySample.js +15 -8
  10. package/dist-esm/samples-dev/blobContainersCreateOrUpdateImmutabilityPolicySample.js.map +1 -1
  11. package/dist-esm/samples-dev/blobContainersCreateSample.js +19 -12
  12. package/dist-esm/samples-dev/blobContainersCreateSample.js.map +1 -1
  13. package/dist-esm/samples-dev/blobContainersDeleteImmutabilityPolicySample.js +12 -5
  14. package/dist-esm/samples-dev/blobContainersDeleteImmutabilityPolicySample.js.map +1 -1
  15. package/dist-esm/samples-dev/blobContainersDeleteSample.js +11 -4
  16. package/dist-esm/samples-dev/blobContainersDeleteSample.js.map +1 -1
  17. package/dist-esm/samples-dev/blobContainersExtendImmutabilityPolicySample.js +12 -5
  18. package/dist-esm/samples-dev/blobContainersExtendImmutabilityPolicySample.js.map +1 -1
  19. package/dist-esm/samples-dev/blobContainersGetImmutabilityPolicySample.js +11 -4
  20. package/dist-esm/samples-dev/blobContainersGetImmutabilityPolicySample.js.map +1 -1
  21. package/dist-esm/samples-dev/blobContainersGetSample.js +15 -8
  22. package/dist-esm/samples-dev/blobContainersGetSample.js.map +1 -1
  23. package/dist-esm/samples-dev/blobContainersLeaseSample.js +15 -8
  24. package/dist-esm/samples-dev/blobContainersLeaseSample.js.map +1 -1
  25. package/dist-esm/samples-dev/blobContainersListSample.js +15 -8
  26. package/dist-esm/samples-dev/blobContainersListSample.js.map +1 -1
  27. package/dist-esm/samples-dev/blobContainersLockImmutabilityPolicySample.js +12 -5
  28. package/dist-esm/samples-dev/blobContainersLockImmutabilityPolicySample.js.map +1 -1
  29. package/dist-esm/samples-dev/blobContainersObjectLevelWormSample.js +11 -4
  30. package/dist-esm/samples-dev/blobContainersObjectLevelWormSample.js.map +1 -1
  31. package/dist-esm/samples-dev/blobContainersSetLegalHoldSample.js +15 -8
  32. package/dist-esm/samples-dev/blobContainersSetLegalHoldSample.js.map +1 -1
  33. package/dist-esm/samples-dev/blobContainersUpdateSample.js +11 -4
  34. package/dist-esm/samples-dev/blobContainersUpdateSample.js.map +1 -1
  35. package/dist-esm/samples-dev/blobInventoryPoliciesCreateOrUpdateSample.js +20 -13
  36. package/dist-esm/samples-dev/blobInventoryPoliciesCreateOrUpdateSample.js.map +1 -1
  37. package/dist-esm/samples-dev/blobInventoryPoliciesDeleteSample.js +11 -4
  38. package/dist-esm/samples-dev/blobInventoryPoliciesDeleteSample.js.map +1 -1
  39. package/dist-esm/samples-dev/blobInventoryPoliciesGetSample.js +11 -4
  40. package/dist-esm/samples-dev/blobInventoryPoliciesGetSample.js.map +1 -1
  41. package/dist-esm/samples-dev/blobInventoryPoliciesListSample.js +11 -4
  42. package/dist-esm/samples-dev/blobInventoryPoliciesListSample.js.map +1 -1
  43. package/dist-esm/samples-dev/blobServicesGetServicePropertiesSample.js +11 -4
  44. package/dist-esm/samples-dev/blobServicesGetServicePropertiesSample.js.map +1 -1
  45. package/dist-esm/samples-dev/blobServicesListSample.js +11 -4
  46. package/dist-esm/samples-dev/blobServicesListSample.js.map +1 -1
  47. package/dist-esm/samples-dev/blobServicesSetServicePropertiesSample.js +19 -12
  48. package/dist-esm/samples-dev/blobServicesSetServicePropertiesSample.js.map +1 -1
  49. package/dist-esm/samples-dev/deletedAccountsGetSample.js +10 -3
  50. package/dist-esm/samples-dev/deletedAccountsGetSample.js.map +1 -1
  51. package/dist-esm/samples-dev/deletedAccountsListSample.js +10 -3
  52. package/dist-esm/samples-dev/deletedAccountsListSample.js.map +1 -1
  53. package/dist-esm/samples-dev/encryptionScopesGetSample.js +12 -5
  54. package/dist-esm/samples-dev/encryptionScopesGetSample.js.map +1 -1
  55. package/dist-esm/samples-dev/encryptionScopesListSample.js +12 -5
  56. package/dist-esm/samples-dev/encryptionScopesListSample.js.map +1 -1
  57. package/dist-esm/samples-dev/encryptionScopesPatchSample.js +12 -5
  58. package/dist-esm/samples-dev/encryptionScopesPatchSample.js.map +1 -1
  59. package/dist-esm/samples-dev/encryptionScopesPutSample.js +17 -10
  60. package/dist-esm/samples-dev/encryptionScopesPutSample.js.map +1 -1
  61. package/dist-esm/samples-dev/fileServicesGetServicePropertiesSample.js +11 -4
  62. package/dist-esm/samples-dev/fileServicesGetServicePropertiesSample.js.map +1 -1
  63. package/dist-esm/samples-dev/fileServicesListSample.js +11 -4
  64. package/dist-esm/samples-dev/fileServicesListSample.js.map +1 -1
  65. package/dist-esm/samples-dev/fileServicesSetServicePropertiesSample.js +19 -12
  66. package/dist-esm/samples-dev/fileServicesSetServicePropertiesSample.js.map +1 -1
  67. package/dist-esm/samples-dev/fileSharesCreateSample.js +19 -12
  68. package/dist-esm/samples-dev/fileSharesCreateSample.js.map +1 -1
  69. package/dist-esm/samples-dev/fileSharesDeleteSample.js +11 -4
  70. package/dist-esm/samples-dev/fileSharesDeleteSample.js.map +1 -1
  71. package/dist-esm/samples-dev/fileSharesGetSample.js +15 -8
  72. package/dist-esm/samples-dev/fileSharesGetSample.js.map +1 -1
  73. package/dist-esm/samples-dev/fileSharesLeaseSample.js +15 -8
  74. package/dist-esm/samples-dev/fileSharesLeaseSample.js.map +1 -1
  75. package/dist-esm/samples-dev/fileSharesListSample.js +19 -12
  76. package/dist-esm/samples-dev/fileSharesListSample.js.map +1 -1
  77. package/dist-esm/samples-dev/fileSharesRestoreSample.js +11 -4
  78. package/dist-esm/samples-dev/fileSharesRestoreSample.js.map +1 -1
  79. package/dist-esm/samples-dev/fileSharesUpdateSample.js +15 -8
  80. package/dist-esm/samples-dev/fileSharesUpdateSample.js.map +1 -1
  81. package/dist-esm/samples-dev/localUsersCreateOrUpdateSample.js +15 -8
  82. package/dist-esm/samples-dev/localUsersCreateOrUpdateSample.js.map +1 -1
  83. package/dist-esm/samples-dev/localUsersDeleteSample.js +11 -4
  84. package/dist-esm/samples-dev/localUsersDeleteSample.js.map +1 -1
  85. package/dist-esm/samples-dev/localUsersGetSample.js +11 -4
  86. package/dist-esm/samples-dev/localUsersGetSample.js.map +1 -1
  87. package/dist-esm/samples-dev/localUsersListKeysSample.js +11 -4
  88. package/dist-esm/samples-dev/localUsersListKeysSample.js.map +1 -1
  89. package/dist-esm/samples-dev/localUsersListSample.js +11 -4
  90. package/dist-esm/samples-dev/localUsersListSample.js.map +1 -1
  91. package/dist-esm/samples-dev/localUsersRegeneratePasswordSample.js +11 -4
  92. package/dist-esm/samples-dev/localUsersRegeneratePasswordSample.js.map +1 -1
  93. package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.js +39 -32
  94. package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.js.map +1 -1
  95. package/dist-esm/samples-dev/managementPoliciesDeleteSample.js +11 -4
  96. package/dist-esm/samples-dev/managementPoliciesDeleteSample.js.map +1 -1
  97. package/dist-esm/samples-dev/managementPoliciesGetSample.js +11 -4
  98. package/dist-esm/samples-dev/managementPoliciesGetSample.js.map +1 -1
  99. package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.js +23 -16
  100. package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.js.map +1 -1
  101. package/dist-esm/samples-dev/objectReplicationPoliciesDeleteSample.js +11 -4
  102. package/dist-esm/samples-dev/objectReplicationPoliciesDeleteSample.js.map +1 -1
  103. package/dist-esm/samples-dev/objectReplicationPoliciesGetSample.js +11 -4
  104. package/dist-esm/samples-dev/objectReplicationPoliciesGetSample.js.map +1 -1
  105. package/dist-esm/samples-dev/objectReplicationPoliciesListSample.js +11 -4
  106. package/dist-esm/samples-dev/objectReplicationPoliciesListSample.js.map +1 -1
  107. package/dist-esm/samples-dev/operationsListSample.js +11 -3
  108. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  109. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +11 -4
  110. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -1
  111. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +11 -4
  112. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -1
  113. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +11 -4
  114. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -1
  115. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +11 -4
  116. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +1 -1
  117. package/dist-esm/samples-dev/privateLinkResourcesListByStorageAccountSample.js +11 -4
  118. package/dist-esm/samples-dev/privateLinkResourcesListByStorageAccountSample.js.map +1 -1
  119. package/dist-esm/samples-dev/queueCreateSample.js +15 -8
  120. package/dist-esm/samples-dev/queueCreateSample.js.map +1 -1
  121. package/dist-esm/samples-dev/queueDeleteSample.js +11 -4
  122. package/dist-esm/samples-dev/queueDeleteSample.js.map +1 -1
  123. package/dist-esm/samples-dev/queueGetSample.js +11 -4
  124. package/dist-esm/samples-dev/queueGetSample.js.map +1 -1
  125. package/dist-esm/samples-dev/queueListSample.js +11 -4
  126. package/dist-esm/samples-dev/queueListSample.js.map +1 -1
  127. package/dist-esm/samples-dev/queueServicesGetServicePropertiesSample.js +11 -4
  128. package/dist-esm/samples-dev/queueServicesGetServicePropertiesSample.js.map +1 -1
  129. package/dist-esm/samples-dev/queueServicesListSample.js +11 -4
  130. package/dist-esm/samples-dev/queueServicesListSample.js.map +1 -1
  131. package/dist-esm/samples-dev/queueServicesSetServicePropertiesSample.js +11 -4
  132. package/dist-esm/samples-dev/queueServicesSetServicePropertiesSample.js.map +1 -1
  133. package/dist-esm/samples-dev/queueUpdateSample.js +11 -4
  134. package/dist-esm/samples-dev/queueUpdateSample.js.map +1 -1
  135. package/dist-esm/samples-dev/skusListSample.js +10 -3
  136. package/dist-esm/samples-dev/skusListSample.js.map +1 -1
  137. package/dist-esm/samples-dev/storageAccountsAbortHierarchicalNamespaceMigrationSample.js +11 -4
  138. package/dist-esm/samples-dev/storageAccountsAbortHierarchicalNamespaceMigrationSample.js.map +1 -1
  139. package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.js +10 -3
  140. package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.js.map +1 -1
  141. package/dist-esm/samples-dev/storageAccountsCreateSample.js +55 -48
  142. package/dist-esm/samples-dev/storageAccountsCreateSample.js.map +1 -1
  143. package/dist-esm/samples-dev/storageAccountsCustomerInitiatedMigrationSample.d.ts +2 -0
  144. package/dist-esm/samples-dev/storageAccountsCustomerInitiatedMigrationSample.d.ts.map +1 -0
  145. package/dist-esm/samples-dev/storageAccountsCustomerInitiatedMigrationSample.js +39 -0
  146. package/dist-esm/samples-dev/storageAccountsCustomerInitiatedMigrationSample.js.map +1 -0
  147. package/dist-esm/samples-dev/storageAccountsDeleteSample.js +11 -4
  148. package/dist-esm/samples-dev/storageAccountsDeleteSample.js.map +1 -1
  149. package/dist-esm/samples-dev/storageAccountsFailoverSample.js +15 -8
  150. package/dist-esm/samples-dev/storageAccountsFailoverSample.js.map +1 -1
  151. package/dist-esm/samples-dev/storageAccountsGetCustomerInitiatedMigrationSample.d.ts +2 -0
  152. package/dist-esm/samples-dev/storageAccountsGetCustomerInitiatedMigrationSample.d.ts.map +1 -0
  153. package/dist-esm/samples-dev/storageAccountsGetCustomerInitiatedMigrationSample.js +58 -0
  154. package/dist-esm/samples-dev/storageAccountsGetCustomerInitiatedMigrationSample.js.map +1 -0
  155. package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.js +63 -16
  156. package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.js.map +1 -1
  157. package/dist-esm/samples-dev/storageAccountsHierarchicalNamespaceMigrationSample.js +11 -4
  158. package/dist-esm/samples-dev/storageAccountsHierarchicalNamespaceMigrationSample.js.map +1 -1
  159. package/dist-esm/samples-dev/storageAccountsListAccountSasSample.js +11 -4
  160. package/dist-esm/samples-dev/storageAccountsListAccountSasSample.js.map +1 -1
  161. package/dist-esm/samples-dev/storageAccountsListByResourceGroupSample.js +11 -4
  162. package/dist-esm/samples-dev/storageAccountsListByResourceGroupSample.js.map +1 -1
  163. package/dist-esm/samples-dev/storageAccountsListKeysSample.js +11 -4
  164. package/dist-esm/samples-dev/storageAccountsListKeysSample.js.map +1 -1
  165. package/dist-esm/samples-dev/storageAccountsListSample.js +10 -3
  166. package/dist-esm/samples-dev/storageAccountsListSample.js.map +1 -1
  167. package/dist-esm/samples-dev/storageAccountsListServiceSasSample.js +11 -4
  168. package/dist-esm/samples-dev/storageAccountsListServiceSasSample.js.map +1 -1
  169. package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.js +15 -8
  170. package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.js.map +1 -1
  171. package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.js +11 -4
  172. package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.js.map +1 -1
  173. package/dist-esm/samples-dev/storageAccountsRevokeUserDelegationKeysSample.js +11 -4
  174. package/dist-esm/samples-dev/storageAccountsRevokeUserDelegationKeysSample.js.map +1 -1
  175. package/dist-esm/samples-dev/storageAccountsUpdateSample.js +39 -32
  176. package/dist-esm/samples-dev/storageAccountsUpdateSample.js.map +1 -1
  177. package/dist-esm/samples-dev/tableCreateSample.js +15 -8
  178. package/dist-esm/samples-dev/tableCreateSample.js.map +1 -1
  179. package/dist-esm/samples-dev/tableDeleteSample.js +11 -4
  180. package/dist-esm/samples-dev/tableDeleteSample.js.map +1 -1
  181. package/dist-esm/samples-dev/tableGetSample.js +11 -4
  182. package/dist-esm/samples-dev/tableGetSample.js.map +1 -1
  183. package/dist-esm/samples-dev/tableListSample.js +11 -4
  184. package/dist-esm/samples-dev/tableListSample.js.map +1 -1
  185. package/dist-esm/samples-dev/tableServicesGetServicePropertiesSample.js +11 -4
  186. package/dist-esm/samples-dev/tableServicesGetServicePropertiesSample.js.map +1 -1
  187. package/dist-esm/samples-dev/tableServicesListSample.js +11 -4
  188. package/dist-esm/samples-dev/tableServicesListSample.js.map +1 -1
  189. package/dist-esm/samples-dev/tableServicesSetServicePropertiesSample.js +11 -4
  190. package/dist-esm/samples-dev/tableServicesSetServicePropertiesSample.js.map +1 -1
  191. package/dist-esm/samples-dev/tableUpdateSample.js +15 -8
  192. package/dist-esm/samples-dev/tableUpdateSample.js.map +1 -1
  193. package/dist-esm/samples-dev/usagesListByLocationSample.js +10 -3
  194. package/dist-esm/samples-dev/usagesListByLocationSample.js.map +1 -1
  195. package/dist-esm/src/lroImpl.d.ts +6 -11
  196. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  197. package/dist-esm/src/lroImpl.js +12 -20
  198. package/dist-esm/src/lroImpl.js.map +1 -1
  199. package/dist-esm/src/models/index.d.ts +213 -30
  200. package/dist-esm/src/models/index.d.ts.map +1 -1
  201. package/dist-esm/src/models/index.js +44 -0
  202. package/dist-esm/src/models/index.js.map +1 -1
  203. package/dist-esm/src/models/mappers.d.ts +6 -0
  204. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  205. package/dist-esm/src/models/mappers.js +220 -0
  206. package/dist-esm/src/models/mappers.js.map +1 -1
  207. package/dist-esm/src/models/parameters.d.ts +9 -6
  208. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  209. package/dist-esm/src/models/parameters.js +39 -10
  210. package/dist-esm/src/models/parameters.js.map +1 -1
  211. package/dist-esm/src/operations/blobContainers.d.ts +2 -2
  212. package/dist-esm/src/operations/blobContainers.d.ts.map +1 -1
  213. package/dist-esm/src/operations/blobContainers.js +14 -16
  214. package/dist-esm/src/operations/blobContainers.js.map +1 -1
  215. package/dist-esm/src/operations/blobServices.js +1 -1
  216. package/dist-esm/src/operations/deletedAccounts.js +0 -1
  217. package/dist-esm/src/operations/deletedAccounts.js.map +1 -1
  218. package/dist-esm/src/operations/encryptionScopes.js +0 -6
  219. package/dist-esm/src/operations/encryptionScopes.js.map +1 -1
  220. package/dist-esm/src/operations/fileServices.js +1 -1
  221. package/dist-esm/src/operations/fileShares.js +1 -7
  222. package/dist-esm/src/operations/fileShares.js.map +1 -1
  223. package/dist-esm/src/operations/queue.js +0 -5
  224. package/dist-esm/src/operations/queue.js.map +1 -1
  225. package/dist-esm/src/operations/queueServices.js +1 -1
  226. package/dist-esm/src/operations/storageAccounts.d.ts +46 -7
  227. package/dist-esm/src/operations/storageAccounts.d.ts.map +1 -1
  228. package/dist-esm/src/operations/storageAccounts.js +177 -30
  229. package/dist-esm/src/operations/storageAccounts.js.map +1 -1
  230. package/dist-esm/src/operations/tableOperations.js +2 -3
  231. package/dist-esm/src/operations/tableOperations.js.map +1 -1
  232. package/dist-esm/src/operations/tableServices.js +1 -1
  233. package/dist-esm/src/operationsInterfaces/blobContainers.d.ts +2 -2
  234. package/dist-esm/src/operationsInterfaces/blobContainers.d.ts.map +1 -1
  235. package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts +47 -8
  236. package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts.map +1 -1
  237. package/dist-esm/src/pagingHelper.d.ts +4 -4
  238. package/dist-esm/src/pagingHelper.js +4 -4
  239. package/dist-esm/src/storageManagementClient.js +2 -2
  240. package/package.json +6 -5
  241. package/review/arm-storage.api.md +115 -20
  242. package/src/lroImpl.ts +31 -23
  243. package/src/models/index.ts +235 -38
  244. package/src/models/mappers.ts +228 -0
  245. package/src/models/parameters.ts +42 -9
  246. package/src/operations/blobContainers.ts +19 -21
  247. package/src/operations/blobServices.ts +1 -1
  248. package/src/operations/deletedAccounts.ts +0 -1
  249. package/src/operations/encryptionScopes.ts +0 -6
  250. package/src/operations/fileServices.ts +1 -1
  251. package/src/operations/fileShares.ts +1 -7
  252. package/src/operations/queue.ts +0 -5
  253. package/src/operations/queueServices.ts +1 -1
  254. package/src/operations/storageAccounts.ts +240 -57
  255. package/src/operations/tableOperations.ts +2 -3
  256. package/src/operations/tableServices.ts +1 -1
  257. package/src/operationsInterfaces/blobContainers.ts +2 -2
  258. package/src/operationsInterfaces/storageAccounts.ts +68 -9
  259. package/src/pagingHelper.ts +4 -4
  260. package/src/storageManagementClient.ts +2 -2
  261. package/types/arm-storage.d.ts +282 -43
@@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client";
13
13
  import * as Mappers from "../models/mappers";
14
14
  import * as Parameters from "../models/parameters";
15
15
  import { StorageManagementClient } from "../storageManagementClient";
16
- import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
17
- import { LroImpl } from "../lroImpl";
16
+ import {
17
+ SimplePollerLike,
18
+ OperationState,
19
+ createHttpPoller
20
+ } from "@azure/core-lro";
21
+ import { createLroSpec } from "../lroImpl";
18
22
  import {
19
23
  StorageAccount,
20
24
  StorageAccountsListNextOptionalParams,
@@ -49,6 +53,11 @@ import {
49
53
  StorageAccountsFailoverOptionalParams,
50
54
  StorageAccountsHierarchicalNamespaceMigrationOptionalParams,
51
55
  StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams,
56
+ StorageAccountMigration,
57
+ StorageAccountsCustomerInitiatedMigrationOptionalParams,
58
+ MigrationName,
59
+ StorageAccountsGetCustomerInitiatedMigrationOptionalParams,
60
+ StorageAccountsGetCustomerInitiatedMigrationResponse,
52
61
  BlobRestoreParameters,
53
62
  StorageAccountsRestoreBlobRangesOptionalParams,
54
63
  StorageAccountsRestoreBlobRangesResponse,
@@ -232,8 +241,8 @@ export class StorageAccountsImpl implements StorageAccounts {
232
241
  parameters: StorageAccountCreateParameters,
233
242
  options?: StorageAccountsCreateOptionalParams
234
243
  ): Promise<
235
- PollerLike<
236
- PollOperationState<StorageAccountsCreateResponse>,
244
+ SimplePollerLike<
245
+ OperationState<StorageAccountsCreateResponse>,
237
246
  StorageAccountsCreateResponse
238
247
  >
239
248
  > {
@@ -243,7 +252,7 @@ export class StorageAccountsImpl implements StorageAccounts {
243
252
  ): Promise<StorageAccountsCreateResponse> => {
244
253
  return this.client.sendOperationRequest(args, spec);
245
254
  };
246
- const sendOperation = async (
255
+ const sendOperationFn = async (
247
256
  args: coreClient.OperationArguments,
248
257
  spec: coreClient.OperationSpec
249
258
  ) => {
@@ -276,13 +285,16 @@ export class StorageAccountsImpl implements StorageAccounts {
276
285
  };
277
286
  };
278
287
 
279
- const lro = new LroImpl(
280
- sendOperation,
281
- { resourceGroupName, accountName, parameters, options },
282
- createOperationSpec
283
- );
284
- const poller = new LroEngine(lro, {
285
- resumeFrom: options?.resumeFrom,
288
+ const lro = createLroSpec({
289
+ sendOperationFn,
290
+ args: { resourceGroupName, accountName, parameters, options },
291
+ spec: createOperationSpec
292
+ });
293
+ const poller = await createHttpPoller<
294
+ StorageAccountsCreateResponse,
295
+ OperationState<StorageAccountsCreateResponse>
296
+ >(lro, {
297
+ restoreFrom: options?.resumeFrom,
286
298
  intervalInMs: options?.updateIntervalInMs
287
299
  });
288
300
  await poller.poll();
@@ -524,14 +536,14 @@ export class StorageAccountsImpl implements StorageAccounts {
524
536
  resourceGroupName: string,
525
537
  accountName: string,
526
538
  options?: StorageAccountsFailoverOptionalParams
527
- ): Promise<PollerLike<PollOperationState<void>, void>> {
539
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
528
540
  const directSendOperation = async (
529
541
  args: coreClient.OperationArguments,
530
542
  spec: coreClient.OperationSpec
531
543
  ): Promise<void> => {
532
544
  return this.client.sendOperationRequest(args, spec);
533
545
  };
534
- const sendOperation = async (
546
+ const sendOperationFn = async (
535
547
  args: coreClient.OperationArguments,
536
548
  spec: coreClient.OperationSpec
537
549
  ) => {
@@ -564,15 +576,15 @@ export class StorageAccountsImpl implements StorageAccounts {
564
576
  };
565
577
  };
566
578
 
567
- const lro = new LroImpl(
568
- sendOperation,
569
- { resourceGroupName, accountName, options },
570
- failoverOperationSpec
571
- );
572
- const poller = new LroEngine(lro, {
573
- resumeFrom: options?.resumeFrom,
579
+ const lro = createLroSpec({
580
+ sendOperationFn,
581
+ args: { resourceGroupName, accountName, options },
582
+ spec: failoverOperationSpec
583
+ });
584
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
585
+ restoreFrom: options?.resumeFrom,
574
586
  intervalInMs: options?.updateIntervalInMs,
575
- lroResourceLocationConfig: "location"
587
+ resourceLocationConfig: "location"
576
588
  });
577
589
  await poller.poll();
578
590
  return poller;
@@ -627,14 +639,14 @@ export class StorageAccountsImpl implements StorageAccounts {
627
639
  accountName: string,
628
640
  requestType: string,
629
641
  options?: StorageAccountsHierarchicalNamespaceMigrationOptionalParams
630
- ): Promise<PollerLike<PollOperationState<void>, void>> {
642
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
631
643
  const directSendOperation = async (
632
644
  args: coreClient.OperationArguments,
633
645
  spec: coreClient.OperationSpec
634
646
  ): Promise<void> => {
635
647
  return this.client.sendOperationRequest(args, spec);
636
648
  };
637
- const sendOperation = async (
649
+ const sendOperationFn = async (
638
650
  args: coreClient.OperationArguments,
639
651
  spec: coreClient.OperationSpec
640
652
  ) => {
@@ -667,15 +679,15 @@ export class StorageAccountsImpl implements StorageAccounts {
667
679
  };
668
680
  };
669
681
 
670
- const lro = new LroImpl(
671
- sendOperation,
672
- { resourceGroupName, accountName, requestType, options },
673
- hierarchicalNamespaceMigrationOperationSpec
674
- );
675
- const poller = new LroEngine(lro, {
676
- resumeFrom: options?.resumeFrom,
682
+ const lro = createLroSpec({
683
+ sendOperationFn,
684
+ args: { resourceGroupName, accountName, requestType, options },
685
+ spec: hierarchicalNamespaceMigrationOperationSpec
686
+ });
687
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
688
+ restoreFrom: options?.resumeFrom,
677
689
  intervalInMs: options?.updateIntervalInMs,
678
- lroResourceLocationConfig: "location"
690
+ resourceLocationConfig: "location"
679
691
  });
680
692
  await poller.poll();
681
693
  return poller;
@@ -722,14 +734,14 @@ export class StorageAccountsImpl implements StorageAccounts {
722
734
  resourceGroupName: string,
723
735
  accountName: string,
724
736
  options?: StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams
725
- ): Promise<PollerLike<PollOperationState<void>, void>> {
737
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
726
738
  const directSendOperation = async (
727
739
  args: coreClient.OperationArguments,
728
740
  spec: coreClient.OperationSpec
729
741
  ): Promise<void> => {
730
742
  return this.client.sendOperationRequest(args, spec);
731
743
  };
732
- const sendOperation = async (
744
+ const sendOperationFn = async (
733
745
  args: coreClient.OperationArguments,
734
746
  spec: coreClient.OperationSpec
735
747
  ) => {
@@ -762,15 +774,15 @@ export class StorageAccountsImpl implements StorageAccounts {
762
774
  };
763
775
  };
764
776
 
765
- const lro = new LroImpl(
766
- sendOperation,
767
- { resourceGroupName, accountName, options },
768
- abortHierarchicalNamespaceMigrationOperationSpec
769
- );
770
- const poller = new LroEngine(lro, {
771
- resumeFrom: options?.resumeFrom,
777
+ const lro = createLroSpec({
778
+ sendOperationFn,
779
+ args: { resourceGroupName, accountName, options },
780
+ spec: abortHierarchicalNamespaceMigrationOperationSpec
781
+ });
782
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
783
+ restoreFrom: options?.resumeFrom,
772
784
  intervalInMs: options?.updateIntervalInMs,
773
- lroResourceLocationConfig: "location"
785
+ resourceLocationConfig: "location"
774
786
  });
775
787
  await poller.poll();
776
788
  return poller;
@@ -798,6 +810,128 @@ export class StorageAccountsImpl implements StorageAccounts {
798
810
  return poller.pollUntilDone();
799
811
  }
800
812
 
813
+ /**
814
+ * Account Migration request can be triggered for a storage account to change its redundancy level. The
815
+ * migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa
816
+ * in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your
817
+ * storage account synchronously across three Azure availability zones in the primary region.
818
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
819
+ * case insensitive.
820
+ * @param accountName The name of the storage account within the specified resource group. Storage
821
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
822
+ * only.
823
+ * @param parameters The request parameters required to perform storage account migration.
824
+ * @param options The options parameters.
825
+ */
826
+ async beginCustomerInitiatedMigration(
827
+ resourceGroupName: string,
828
+ accountName: string,
829
+ parameters: StorageAccountMigration,
830
+ options?: StorageAccountsCustomerInitiatedMigrationOptionalParams
831
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
832
+ const directSendOperation = async (
833
+ args: coreClient.OperationArguments,
834
+ spec: coreClient.OperationSpec
835
+ ): Promise<void> => {
836
+ return this.client.sendOperationRequest(args, spec);
837
+ };
838
+ const sendOperationFn = async (
839
+ args: coreClient.OperationArguments,
840
+ spec: coreClient.OperationSpec
841
+ ) => {
842
+ let currentRawResponse:
843
+ | coreClient.FullOperationResponse
844
+ | undefined = undefined;
845
+ const providedCallback = args.options?.onResponse;
846
+ const callback: coreClient.RawResponseCallback = (
847
+ rawResponse: coreClient.FullOperationResponse,
848
+ flatResponse: unknown
849
+ ) => {
850
+ currentRawResponse = rawResponse;
851
+ providedCallback?.(rawResponse, flatResponse);
852
+ };
853
+ const updatedArgs = {
854
+ ...args,
855
+ options: {
856
+ ...args.options,
857
+ onResponse: callback
858
+ }
859
+ };
860
+ const flatResponse = await directSendOperation(updatedArgs, spec);
861
+ return {
862
+ flatResponse,
863
+ rawResponse: {
864
+ statusCode: currentRawResponse!.status,
865
+ body: currentRawResponse!.parsedBody,
866
+ headers: currentRawResponse!.headers.toJSON()
867
+ }
868
+ };
869
+ };
870
+
871
+ const lro = createLroSpec({
872
+ sendOperationFn,
873
+ args: { resourceGroupName, accountName, parameters, options },
874
+ spec: customerInitiatedMigrationOperationSpec
875
+ });
876
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
877
+ restoreFrom: options?.resumeFrom,
878
+ intervalInMs: options?.updateIntervalInMs,
879
+ resourceLocationConfig: "location"
880
+ });
881
+ await poller.poll();
882
+ return poller;
883
+ }
884
+
885
+ /**
886
+ * Account Migration request can be triggered for a storage account to change its redundancy level. The
887
+ * migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa
888
+ * in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your
889
+ * storage account synchronously across three Azure availability zones in the primary region.
890
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
891
+ * case insensitive.
892
+ * @param accountName The name of the storage account within the specified resource group. Storage
893
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
894
+ * only.
895
+ * @param parameters The request parameters required to perform storage account migration.
896
+ * @param options The options parameters.
897
+ */
898
+ async beginCustomerInitiatedMigrationAndWait(
899
+ resourceGroupName: string,
900
+ accountName: string,
901
+ parameters: StorageAccountMigration,
902
+ options?: StorageAccountsCustomerInitiatedMigrationOptionalParams
903
+ ): Promise<void> {
904
+ const poller = await this.beginCustomerInitiatedMigration(
905
+ resourceGroupName,
906
+ accountName,
907
+ parameters,
908
+ options
909
+ );
910
+ return poller.pollUntilDone();
911
+ }
912
+
913
+ /**
914
+ * Gets the status of the ongoing migration for the specified storage account.
915
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
916
+ * case insensitive.
917
+ * @param accountName The name of the storage account within the specified resource group. Storage
918
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
919
+ * only.
920
+ * @param migrationName The name of the Storage Account Migration. It should always be 'default'
921
+ * @param options The options parameters.
922
+ */
923
+ getCustomerInitiatedMigration(
924
+ resourceGroupName: string,
925
+ accountName: string,
926
+ migrationName: MigrationName,
927
+ options?: StorageAccountsGetCustomerInitiatedMigrationOptionalParams
928
+ ): Promise<StorageAccountsGetCustomerInitiatedMigrationResponse> {
929
+ return this.client.sendOperationRequest(
930
+ { resourceGroupName, accountName, migrationName, options },
931
+ getCustomerInitiatedMigrationOperationSpec
932
+ );
933
+ }
934
+
801
935
  /**
802
936
  * Restore blobs in the specified blob ranges
803
937
  * @param resourceGroupName The name of the resource group within the user's subscription. The name is
@@ -814,8 +948,8 @@ export class StorageAccountsImpl implements StorageAccounts {
814
948
  parameters: BlobRestoreParameters,
815
949
  options?: StorageAccountsRestoreBlobRangesOptionalParams
816
950
  ): Promise<
817
- PollerLike<
818
- PollOperationState<StorageAccountsRestoreBlobRangesResponse>,
951
+ SimplePollerLike<
952
+ OperationState<StorageAccountsRestoreBlobRangesResponse>,
819
953
  StorageAccountsRestoreBlobRangesResponse
820
954
  >
821
955
  > {
@@ -825,7 +959,7 @@ export class StorageAccountsImpl implements StorageAccounts {
825
959
  ): Promise<StorageAccountsRestoreBlobRangesResponse> => {
826
960
  return this.client.sendOperationRequest(args, spec);
827
961
  };
828
- const sendOperation = async (
962
+ const sendOperationFn = async (
829
963
  args: coreClient.OperationArguments,
830
964
  spec: coreClient.OperationSpec
831
965
  ) => {
@@ -858,15 +992,18 @@ export class StorageAccountsImpl implements StorageAccounts {
858
992
  };
859
993
  };
860
994
 
861
- const lro = new LroImpl(
862
- sendOperation,
863
- { resourceGroupName, accountName, parameters, options },
864
- restoreBlobRangesOperationSpec
865
- );
866
- const poller = new LroEngine(lro, {
867
- resumeFrom: options?.resumeFrom,
995
+ const lro = createLroSpec({
996
+ sendOperationFn,
997
+ args: { resourceGroupName, accountName, parameters, options },
998
+ spec: restoreBlobRangesOperationSpec
999
+ });
1000
+ const poller = await createHttpPoller<
1001
+ StorageAccountsRestoreBlobRangesResponse,
1002
+ OperationState<StorageAccountsRestoreBlobRangesResponse>
1003
+ >(lro, {
1004
+ restoreFrom: options?.resumeFrom,
868
1005
  intervalInMs: options?.updateIntervalInMs,
869
- lroResourceLocationConfig: "location"
1006
+ resourceLocationConfig: "location"
870
1007
  });
871
1008
  await poller.poll();
872
1009
  return poller;
@@ -1227,6 +1364,54 @@ const abortHierarchicalNamespaceMigrationOperationSpec: coreClient.OperationSpec
1227
1364
  headerParameters: [Parameters.accept],
1228
1365
  serializer
1229
1366
  };
1367
+ const customerInitiatedMigrationOperationSpec: coreClient.OperationSpec = {
1368
+ path:
1369
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/startAccountMigration",
1370
+ httpMethod: "POST",
1371
+ responses: {
1372
+ 200: {},
1373
+ 201: {},
1374
+ 202: {},
1375
+ 204: {},
1376
+ default: {
1377
+ bodyMapper: Mappers.ErrorResponseAutoGenerated
1378
+ }
1379
+ },
1380
+ requestBody: Parameters.parameters4,
1381
+ queryParameters: [Parameters.apiVersion],
1382
+ urlParameters: [
1383
+ Parameters.$host,
1384
+ Parameters.subscriptionId,
1385
+ Parameters.resourceGroupName,
1386
+ Parameters.accountName1
1387
+ ],
1388
+ headerParameters: [Parameters.accept, Parameters.contentType],
1389
+ mediaType: "json",
1390
+ serializer
1391
+ };
1392
+ const getCustomerInitiatedMigrationOperationSpec: coreClient.OperationSpec = {
1393
+ path:
1394
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/accountMigrations/{migrationName}",
1395
+ httpMethod: "GET",
1396
+ responses: {
1397
+ 200: {
1398
+ bodyMapper: Mappers.StorageAccountMigration
1399
+ },
1400
+ default: {
1401
+ bodyMapper: Mappers.ErrorResponseAutoGenerated
1402
+ }
1403
+ },
1404
+ queryParameters: [Parameters.apiVersion],
1405
+ urlParameters: [
1406
+ Parameters.$host,
1407
+ Parameters.subscriptionId,
1408
+ Parameters.resourceGroupName,
1409
+ Parameters.accountName1,
1410
+ Parameters.migrationName
1411
+ ],
1412
+ headerParameters: [Parameters.accept],
1413
+ serializer
1414
+ };
1230
1415
  const restoreBlobRangesOperationSpec: coreClient.OperationSpec = {
1231
1416
  path:
1232
1417
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges",
@@ -1245,7 +1430,7 @@ const restoreBlobRangesOperationSpec: coreClient.OperationSpec = {
1245
1430
  bodyMapper: Mappers.BlobRestoreStatus
1246
1431
  }
1247
1432
  },
1248
- requestBody: Parameters.parameters4,
1433
+ requestBody: Parameters.parameters5,
1249
1434
  queryParameters: [Parameters.apiVersion],
1250
1435
  urlParameters: [
1251
1436
  Parameters.$host,
@@ -1267,7 +1452,7 @@ const revokeUserDelegationKeysOperationSpec: coreClient.OperationSpec = {
1267
1452
  Parameters.$host,
1268
1453
  Parameters.subscriptionId,
1269
1454
  Parameters.resourceGroupName,
1270
- Parameters.accountName1
1455
+ Parameters.accountName2
1271
1456
  ],
1272
1457
  serializer
1273
1458
  };
@@ -1279,7 +1464,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
1279
1464
  bodyMapper: Mappers.StorageAccountListResult
1280
1465
  }
1281
1466
  },
1282
- queryParameters: [Parameters.apiVersion],
1283
1467
  urlParameters: [
1284
1468
  Parameters.$host,
1285
1469
  Parameters.subscriptionId,
@@ -1296,7 +1480,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
1296
1480
  bodyMapper: Mappers.StorageAccountListResult
1297
1481
  }
1298
1482
  },
1299
- queryParameters: [Parameters.apiVersion],
1300
1483
  urlParameters: [
1301
1484
  Parameters.$host,
1302
1485
  Parameters.subscriptionId,
@@ -273,7 +273,7 @@ const createOperationSpec: coreClient.OperationSpec = {
273
273
  bodyMapper: Mappers.CloudError
274
274
  }
275
275
  },
276
- requestBody: Parameters.parameters12,
276
+ requestBody: Parameters.parameters13,
277
277
  queryParameters: [Parameters.apiVersion],
278
278
  urlParameters: [
279
279
  Parameters.$host,
@@ -298,7 +298,7 @@ const updateOperationSpec: coreClient.OperationSpec = {
298
298
  bodyMapper: Mappers.CloudError
299
299
  }
300
300
  },
301
- requestBody: Parameters.parameters12,
301
+ requestBody: Parameters.parameters13,
302
302
  queryParameters: [Parameters.apiVersion],
303
303
  urlParameters: [
304
304
  Parameters.$host,
@@ -388,7 +388,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
388
388
  bodyMapper: Mappers.CloudError
389
389
  }
390
390
  },
391
- queryParameters: [Parameters.apiVersion],
392
391
  urlParameters: [
393
392
  Parameters.$host,
394
393
  Parameters.subscriptionId,
@@ -135,7 +135,7 @@ const setServicePropertiesOperationSpec: coreClient.OperationSpec = {
135
135
  bodyMapper: Mappers.CloudError
136
136
  }
137
137
  },
138
- requestBody: Parameters.parameters11,
138
+ requestBody: Parameters.parameters12,
139
139
  queryParameters: [Parameters.apiVersion],
140
140
  urlParameters: [
141
141
  Parameters.$host,
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import { PollerLike, PollOperationState } from "@azure/core-lro";
10
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
11
11
  import {
12
12
  ListContainerItem,
13
13
  BlobContainersListOptionalParams,
@@ -339,7 +339,7 @@ export interface BlobContainers {
339
339
  accountName: string,
340
340
  containerName: string,
341
341
  options?: BlobContainersObjectLevelWormOptionalParams
342
- ): Promise<PollerLike<PollOperationState<void>, void>>;
342
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
343
343
  /**
344
344
  * This operation migrates a blob container from container level WORM to object level immutability
345
345
  * enabled container. Prerequisites require a container level immutability policy either in locked or
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import { PollerLike, PollOperationState } from "@azure/core-lro";
10
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
11
11
  import {
12
12
  StorageAccount,
13
13
  StorageAccountsListOptionalParams,
@@ -38,6 +38,11 @@ import {
38
38
  StorageAccountsFailoverOptionalParams,
39
39
  StorageAccountsHierarchicalNamespaceMigrationOptionalParams,
40
40
  StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams,
41
+ StorageAccountMigration,
42
+ StorageAccountsCustomerInitiatedMigrationOptionalParams,
43
+ MigrationName,
44
+ StorageAccountsGetCustomerInitiatedMigrationOptionalParams,
45
+ StorageAccountsGetCustomerInitiatedMigrationResponse,
41
46
  BlobRestoreParameters,
42
47
  StorageAccountsRestoreBlobRangesOptionalParams,
43
48
  StorageAccountsRestoreBlobRangesResponse,
@@ -96,8 +101,8 @@ export interface StorageAccounts {
96
101
  parameters: StorageAccountCreateParameters,
97
102
  options?: StorageAccountsCreateOptionalParams
98
103
  ): Promise<
99
- PollerLike<
100
- PollOperationState<StorageAccountsCreateResponse>,
104
+ SimplePollerLike<
105
+ OperationState<StorageAccountsCreateResponse>,
101
106
  StorageAccountsCreateResponse
102
107
  >
103
108
  >;
@@ -245,7 +250,7 @@ export interface StorageAccounts {
245
250
  * primary and secondary endpoints are available. The primary use case of a Planned Failover is
246
251
  * disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter
247
252
  * to 'Planned'. Learn more about the failover options here-
248
- * https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidanceS
253
+ * https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidance
249
254
  * @param resourceGroupName The name of the resource group within the user's subscription. The name is
250
255
  * case insensitive.
251
256
  * @param accountName The name of the storage account within the specified resource group. Storage
@@ -257,7 +262,7 @@ export interface StorageAccounts {
257
262
  resourceGroupName: string,
258
263
  accountName: string,
259
264
  options?: StorageAccountsFailoverOptionalParams
260
- ): Promise<PollerLike<PollOperationState<void>, void>>;
265
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
261
266
  /**
262
267
  * A failover request can be triggered for a storage account in the event a primary endpoint becomes
263
268
  * unavailable for any reason. The failover occurs from the storage account's primary cluster to the
@@ -299,7 +304,7 @@ export interface StorageAccounts {
299
304
  accountName: string,
300
305
  requestType: string,
301
306
  options?: StorageAccountsHierarchicalNamespaceMigrationOptionalParams
302
- ): Promise<PollerLike<PollOperationState<void>, void>>;
307
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
303
308
  /**
304
309
  * Live Migration of storage account to enable Hns
305
310
  * @param resourceGroupName The name of the resource group within the user's subscription. The name is
@@ -332,7 +337,7 @@ export interface StorageAccounts {
332
337
  resourceGroupName: string,
333
338
  accountName: string,
334
339
  options?: StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams
335
- ): Promise<PollerLike<PollOperationState<void>, void>>;
340
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
336
341
  /**
337
342
  * Abort live Migration of storage account to enable Hns
338
343
  * @param resourceGroupName The name of the resource group within the user's subscription. The name is
@@ -347,6 +352,60 @@ export interface StorageAccounts {
347
352
  accountName: string,
348
353
  options?: StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams
349
354
  ): Promise<void>;
355
+ /**
356
+ * Account Migration request can be triggered for a storage account to change its redundancy level. The
357
+ * migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa
358
+ * in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your
359
+ * storage account synchronously across three Azure availability zones in the primary region.
360
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
361
+ * case insensitive.
362
+ * @param accountName The name of the storage account within the specified resource group. Storage
363
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
364
+ * only.
365
+ * @param parameters The request parameters required to perform storage account migration.
366
+ * @param options The options parameters.
367
+ */
368
+ beginCustomerInitiatedMigration(
369
+ resourceGroupName: string,
370
+ accountName: string,
371
+ parameters: StorageAccountMigration,
372
+ options?: StorageAccountsCustomerInitiatedMigrationOptionalParams
373
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
374
+ /**
375
+ * Account Migration request can be triggered for a storage account to change its redundancy level. The
376
+ * migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa
377
+ * in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your
378
+ * storage account synchronously across three Azure availability zones in the primary region.
379
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
380
+ * case insensitive.
381
+ * @param accountName The name of the storage account within the specified resource group. Storage
382
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
383
+ * only.
384
+ * @param parameters The request parameters required to perform storage account migration.
385
+ * @param options The options parameters.
386
+ */
387
+ beginCustomerInitiatedMigrationAndWait(
388
+ resourceGroupName: string,
389
+ accountName: string,
390
+ parameters: StorageAccountMigration,
391
+ options?: StorageAccountsCustomerInitiatedMigrationOptionalParams
392
+ ): Promise<void>;
393
+ /**
394
+ * Gets the status of the ongoing migration for the specified storage account.
395
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
396
+ * case insensitive.
397
+ * @param accountName The name of the storage account within the specified resource group. Storage
398
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
399
+ * only.
400
+ * @param migrationName The name of the Storage Account Migration. It should always be 'default'
401
+ * @param options The options parameters.
402
+ */
403
+ getCustomerInitiatedMigration(
404
+ resourceGroupName: string,
405
+ accountName: string,
406
+ migrationName: MigrationName,
407
+ options?: StorageAccountsGetCustomerInitiatedMigrationOptionalParams
408
+ ): Promise<StorageAccountsGetCustomerInitiatedMigrationResponse>;
350
409
  /**
351
410
  * Restore blobs in the specified blob ranges
352
411
  * @param resourceGroupName The name of the resource group within the user's subscription. The name is
@@ -363,8 +422,8 @@ export interface StorageAccounts {
363
422
  parameters: BlobRestoreParameters,
364
423
  options?: StorageAccountsRestoreBlobRangesOptionalParams
365
424
  ): Promise<
366
- PollerLike<
367
- PollOperationState<StorageAccountsRestoreBlobRangesResponse>,
425
+ SimplePollerLike<
426
+ OperationState<StorageAccountsRestoreBlobRangesResponse>,
368
427
  StorageAccountsRestoreBlobRangesResponse
369
428
  >
370
429
  >;
@@ -13,11 +13,11 @@ export interface PageInfo {
13
13
  const pageMap = new WeakMap<object, PageInfo>();
14
14
 
15
15
  /**
16
- * Given a result page from a pageable operation, returns a
17
- * continuation token that can be used to begin paging from
16
+ * Given the last `.value` produced by the `byPage` iterator,
17
+ * returns a continuation token that can be used to begin paging from
18
18
  * that point later.
19
- * @param page A result object from calling .byPage() on a paged operation.
20
- * @returns The continuation token that can be passed into byPage().
19
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
20
+ * @returns The continuation token that can be passed into byPage() during future calls.
21
21
  */
22
22
  export function getContinuationToken(page: unknown): string | undefined {
23
23
  if (typeof page !== "object" || page === null) {
@@ -92,7 +92,7 @@ export class StorageManagementClient extends coreClient.ServiceClient {
92
92
  credential: credentials
93
93
  };
94
94
 
95
- const packageDetails = `azsdk-js-arm-storage/18.1.1`;
95
+ const packageDetails = `azsdk-js-arm-storage/18.2.0`;
96
96
  const userAgentPrefix =
97
97
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
98
98
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -145,7 +145,7 @@ export class StorageManagementClient extends coreClient.ServiceClient {
145
145
 
146
146
  // Assigning values to Constant parameters
147
147
  this.$host = options.$host || "https://management.azure.com";
148
- this.apiVersion = options.apiVersion || "2022-09-01";
148
+ this.apiVersion = options.apiVersion || "2023-01-01";
149
149
  this.operations = new OperationsImpl(this);
150
150
  this.skus = new SkusImpl(this);
151
151
  this.storageAccounts = new StorageAccountsImpl(this);