@azure/arm-storage 18.1.1-alpha.20230724.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 (262) 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
  262. package/types/tsdoc-metadata.json +1 -1
package/dist/index.js CHANGED
@@ -37,11 +37,11 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
37
37
  */
38
38
  const pageMap = new WeakMap();
39
39
  /**
40
- * Given a result page from a pageable operation, returns a
41
- * continuation token that can be used to begin paging from
40
+ * Given the last `.value` produced by the `byPage` iterator,
41
+ * returns a continuation token that can be used to begin paging from
42
42
  * that point later.
43
- * @param page A result object from calling .byPage() on a paged operation.
44
- * @returns The continuation token that can be passed into byPage().
43
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
44
+ * @returns The continuation token that can be passed into byPage() during future calls.
45
45
  */
46
46
  function getContinuationToken(page) {
47
47
  var _a;
@@ -277,6 +277,26 @@ exports.KnownGeoReplicationStatus = void 0;
277
277
  /** Unavailable */
278
278
  KnownGeoReplicationStatus["Unavailable"] = "Unavailable";
279
279
  })(exports.KnownGeoReplicationStatus || (exports.KnownGeoReplicationStatus = {}));
280
+ /** Known values of {@link PostFailoverRedundancy} that the service accepts. */
281
+ exports.KnownPostFailoverRedundancy = void 0;
282
+ (function (KnownPostFailoverRedundancy) {
283
+ /** StandardLRS */
284
+ KnownPostFailoverRedundancy["StandardLRS"] = "Standard_LRS";
285
+ /** StandardZRS */
286
+ KnownPostFailoverRedundancy["StandardZRS"] = "Standard_ZRS";
287
+ })(exports.KnownPostFailoverRedundancy || (exports.KnownPostFailoverRedundancy = {}));
288
+ /** Known values of {@link PostPlannedFailoverRedundancy} that the service accepts. */
289
+ exports.KnownPostPlannedFailoverRedundancy = void 0;
290
+ (function (KnownPostPlannedFailoverRedundancy) {
291
+ /** StandardGRS */
292
+ KnownPostPlannedFailoverRedundancy["StandardGRS"] = "Standard_GRS";
293
+ /** StandardGzrs */
294
+ KnownPostPlannedFailoverRedundancy["StandardGzrs"] = "Standard_GZRS";
295
+ /** StandardRagrs */
296
+ KnownPostPlannedFailoverRedundancy["StandardRagrs"] = "Standard_RAGRS";
297
+ /** StandardRagzrs */
298
+ KnownPostPlannedFailoverRedundancy["StandardRagzrs"] = "Standard_RAGZRS";
299
+ })(exports.KnownPostPlannedFailoverRedundancy || (exports.KnownPostPlannedFailoverRedundancy = {}));
280
300
  /** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
281
301
  exports.KnownPrivateEndpointServiceConnectionStatus = void 0;
282
302
  (function (KnownPrivateEndpointServiceConnectionStatus) {
@@ -373,6 +393,26 @@ exports.KnownSignedResource = void 0;
373
393
  /** S */
374
394
  KnownSignedResource["S"] = "s";
375
395
  })(exports.KnownSignedResource || (exports.KnownSignedResource = {}));
396
+ /** Known values of {@link MigrationStatus} that the service accepts. */
397
+ exports.KnownMigrationStatus = void 0;
398
+ (function (KnownMigrationStatus) {
399
+ /** Invalid */
400
+ KnownMigrationStatus["Invalid"] = "Invalid";
401
+ /** SubmittedForConversion */
402
+ KnownMigrationStatus["SubmittedForConversion"] = "SubmittedForConversion";
403
+ /** InProgress */
404
+ KnownMigrationStatus["InProgress"] = "InProgress";
405
+ /** Complete */
406
+ KnownMigrationStatus["Complete"] = "Complete";
407
+ /** Failed */
408
+ KnownMigrationStatus["Failed"] = "Failed";
409
+ })(exports.KnownMigrationStatus || (exports.KnownMigrationStatus = {}));
410
+ /** Known values of {@link MigrationName} that the service accepts. */
411
+ exports.KnownMigrationName = void 0;
412
+ (function (KnownMigrationName) {
413
+ /** Default */
414
+ KnownMigrationName["Default"] = "default";
415
+ })(exports.KnownMigrationName || (exports.KnownMigrationName = {}));
376
416
  /** Known values of {@link ManagementPolicyName} that the service accepts. */
377
417
  exports.KnownManagementPolicyName = void 0;
378
418
  (function (KnownManagementPolicyName) {
@@ -478,6 +518,10 @@ exports.KnownAllowedMethods = void 0;
478
518
  KnownAllowedMethods["PUT"] = "PUT";
479
519
  /** Patch */
480
520
  KnownAllowedMethods["Patch"] = "PATCH";
521
+ /** Connect */
522
+ KnownAllowedMethods["Connect"] = "CONNECT";
523
+ /** Trace */
524
+ KnownAllowedMethods["Trace"] = "TRACE";
481
525
  })(exports.KnownAllowedMethods || (exports.KnownAllowedMethods = {}));
482
526
  /** Known values of {@link Name} that the service accepts. */
483
527
  exports.KnownName = void 0;
@@ -2031,6 +2075,27 @@ const GeoReplicationStats = {
2031
2075
  type: {
2032
2076
  name: "Boolean"
2033
2077
  }
2078
+ },
2079
+ canPlannedFailover: {
2080
+ serializedName: "canPlannedFailover",
2081
+ readOnly: true,
2082
+ type: {
2083
+ name: "Boolean"
2084
+ }
2085
+ },
2086
+ postFailoverRedundancy: {
2087
+ serializedName: "postFailoverRedundancy",
2088
+ readOnly: true,
2089
+ type: {
2090
+ name: "String"
2091
+ }
2092
+ },
2093
+ postPlannedFailoverRedundancy: {
2094
+ serializedName: "postPlannedFailoverRedundancy",
2095
+ readOnly: true,
2096
+ type: {
2097
+ name: "String"
2098
+ }
2034
2099
  }
2035
2100
  }
2036
2101
  }
@@ -2858,6 +2923,154 @@ const ListServiceSasResponse = {
2858
2923
  }
2859
2924
  }
2860
2925
  };
2926
+ const StorageAccountMigration = {
2927
+ type: {
2928
+ name: "Composite",
2929
+ className: "StorageAccountMigration",
2930
+ modelProperties: {
2931
+ id: {
2932
+ serializedName: "id",
2933
+ readOnly: true,
2934
+ type: {
2935
+ name: "String"
2936
+ }
2937
+ },
2938
+ name: {
2939
+ serializedName: "name",
2940
+ type: {
2941
+ name: "String"
2942
+ }
2943
+ },
2944
+ type: {
2945
+ serializedName: "type",
2946
+ type: {
2947
+ name: "String"
2948
+ }
2949
+ },
2950
+ targetSkuName: {
2951
+ serializedName: "properties.targetSkuName",
2952
+ required: true,
2953
+ type: {
2954
+ name: "String"
2955
+ }
2956
+ },
2957
+ migrationStatus: {
2958
+ serializedName: "properties.migrationStatus",
2959
+ readOnly: true,
2960
+ type: {
2961
+ name: "String"
2962
+ }
2963
+ },
2964
+ migrationFailedReason: {
2965
+ serializedName: "properties.migrationFailedReason",
2966
+ readOnly: true,
2967
+ type: {
2968
+ name: "String"
2969
+ }
2970
+ },
2971
+ migrationFailedDetailedReason: {
2972
+ serializedName: "properties.migrationFailedDetailedReason",
2973
+ readOnly: true,
2974
+ type: {
2975
+ name: "String"
2976
+ }
2977
+ }
2978
+ }
2979
+ }
2980
+ };
2981
+ const ErrorResponseAutoGenerated = {
2982
+ type: {
2983
+ name: "Composite",
2984
+ className: "ErrorResponseAutoGenerated",
2985
+ modelProperties: {
2986
+ error: {
2987
+ serializedName: "error",
2988
+ type: {
2989
+ name: "Composite",
2990
+ className: "ErrorDetail"
2991
+ }
2992
+ }
2993
+ }
2994
+ }
2995
+ };
2996
+ const ErrorDetail = {
2997
+ type: {
2998
+ name: "Composite",
2999
+ className: "ErrorDetail",
3000
+ modelProperties: {
3001
+ code: {
3002
+ serializedName: "code",
3003
+ readOnly: true,
3004
+ type: {
3005
+ name: "String"
3006
+ }
3007
+ },
3008
+ message: {
3009
+ serializedName: "message",
3010
+ readOnly: true,
3011
+ type: {
3012
+ name: "String"
3013
+ }
3014
+ },
3015
+ target: {
3016
+ serializedName: "target",
3017
+ readOnly: true,
3018
+ type: {
3019
+ name: "String"
3020
+ }
3021
+ },
3022
+ details: {
3023
+ serializedName: "details",
3024
+ readOnly: true,
3025
+ type: {
3026
+ name: "Sequence",
3027
+ element: {
3028
+ type: {
3029
+ name: "Composite",
3030
+ className: "ErrorDetail"
3031
+ }
3032
+ }
3033
+ }
3034
+ },
3035
+ additionalInfo: {
3036
+ serializedName: "additionalInfo",
3037
+ readOnly: true,
3038
+ type: {
3039
+ name: "Sequence",
3040
+ element: {
3041
+ type: {
3042
+ name: "Composite",
3043
+ className: "ErrorAdditionalInfo"
3044
+ }
3045
+ }
3046
+ }
3047
+ }
3048
+ }
3049
+ }
3050
+ };
3051
+ const ErrorAdditionalInfo = {
3052
+ type: {
3053
+ name: "Composite",
3054
+ className: "ErrorAdditionalInfo",
3055
+ modelProperties: {
3056
+ type: {
3057
+ serializedName: "type",
3058
+ readOnly: true,
3059
+ type: {
3060
+ name: "String"
3061
+ }
3062
+ },
3063
+ info: {
3064
+ serializedName: "info",
3065
+ readOnly: true,
3066
+ type: {
3067
+ name: "Dictionary",
3068
+ value: { type: { name: "any" } }
3069
+ }
3070
+ }
3071
+ }
3072
+ }
3073
+ };
2861
3074
  const ManagementPolicySchema = {
2862
3075
  type: {
2863
3076
  name: "Composite",
@@ -3437,6 +3650,31 @@ const BlobInventoryPolicyFilter = {
3437
3650
  type: {
3438
3651
  name: "Boolean"
3439
3652
  }
3653
+ },
3654
+ creationTime: {
3655
+ serializedName: "creationTime",
3656
+ type: {
3657
+ name: "Composite",
3658
+ className: "BlobInventoryCreationTime"
3659
+ }
3660
+ }
3661
+ }
3662
+ }
3663
+ };
3664
+ const BlobInventoryCreationTime = {
3665
+ type: {
3666
+ name: "Composite",
3667
+ className: "BlobInventoryCreationTime",
3668
+ modelProperties: {
3669
+ lastNDays: {
3670
+ constraints: {
3671
+ InclusiveMaximum: 36500,
3672
+ InclusiveMinimum: 1
3673
+ },
3674
+ serializedName: "lastNDays",
3675
+ type: {
3676
+ name: "Number"
3677
+ }
3440
3678
  }
3441
3679
  }
3442
3680
  }
@@ -5550,6 +5788,18 @@ const StorageAccount = {
5550
5788
  type: {
5551
5789
  name: "String"
5552
5790
  }
5791
+ }, isSkuConversionBlocked: {
5792
+ serializedName: "properties.isSkuConversionBlocked",
5793
+ readOnly: true,
5794
+ type: {
5795
+ name: "Boolean"
5796
+ }
5797
+ }, accountMigrationInProgress: {
5798
+ serializedName: "properties.accountMigrationInProgress",
5799
+ readOnly: true,
5800
+ type: {
5801
+ name: "Boolean"
5802
+ }
5553
5803
  } })
5554
5804
  }
5555
5805
  };
@@ -6092,6 +6342,20 @@ const FileShare = {
6092
6342
  } })
6093
6343
  }
6094
6344
  };
6345
+ const StorageAccountsCustomerInitiatedMigrationHeaders = {
6346
+ type: {
6347
+ name: "Composite",
6348
+ className: "StorageAccountsCustomerInitiatedMigrationHeaders",
6349
+ modelProperties: {
6350
+ location: {
6351
+ serializedName: "location",
6352
+ type: {
6353
+ name: "String"
6354
+ }
6355
+ }
6356
+ }
6357
+ }
6358
+ };
6095
6359
  const BlobContainersCreateOrUpdateImmutabilityPolicyHeaders = {
6096
6360
  type: {
6097
6361
  name: "Composite",
@@ -6240,6 +6504,10 @@ var Mappers = /*#__PURE__*/Object.freeze({
6240
6504
  ListAccountSasResponse: ListAccountSasResponse,
6241
6505
  ServiceSasParameters: ServiceSasParameters,
6242
6506
  ListServiceSasResponse: ListServiceSasResponse,
6507
+ StorageAccountMigration: StorageAccountMigration,
6508
+ ErrorResponseAutoGenerated: ErrorResponseAutoGenerated,
6509
+ ErrorDetail: ErrorDetail,
6510
+ ErrorAdditionalInfo: ErrorAdditionalInfo,
6243
6511
  ManagementPolicySchema: ManagementPolicySchema,
6244
6512
  ManagementPolicyRule: ManagementPolicyRule,
6245
6513
  ManagementPolicyDefinition: ManagementPolicyDefinition,
@@ -6255,6 +6523,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
6255
6523
  BlobInventoryPolicyRule: BlobInventoryPolicyRule,
6256
6524
  BlobInventoryPolicyDefinition: BlobInventoryPolicyDefinition,
6257
6525
  BlobInventoryPolicyFilter: BlobInventoryPolicyFilter,
6526
+ BlobInventoryCreationTime: BlobInventoryCreationTime,
6258
6527
  SystemData: SystemData,
6259
6528
  CloudError: CloudError,
6260
6529
  CloudErrorBody: CloudErrorBody,
@@ -6328,6 +6597,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
6328
6597
  ImmutabilityPolicy: ImmutabilityPolicy,
6329
6598
  FileShareItem: FileShareItem,
6330
6599
  FileShare: FileShare,
6600
+ StorageAccountsCustomerInitiatedMigrationHeaders: StorageAccountsCustomerInitiatedMigrationHeaders,
6331
6601
  BlobContainersCreateOrUpdateImmutabilityPolicyHeaders: BlobContainersCreateOrUpdateImmutabilityPolicyHeaders,
6332
6602
  BlobContainersGetImmutabilityPolicyHeaders: BlobContainersGetImmutabilityPolicyHeaders,
6333
6603
  BlobContainersDeleteImmutabilityPolicyHeaders: BlobContainersDeleteImmutabilityPolicyHeaders,
@@ -6368,7 +6638,7 @@ const $host = {
6368
6638
  const apiVersion = {
6369
6639
  parameterPath: "apiVersion",
6370
6640
  mapper: {
6371
- defaultValue: "2022-09-01",
6641
+ defaultValue: "2023-01-01",
6372
6642
  isConstant: true,
6373
6643
  serializedName: "api-version",
6374
6644
  type: {
@@ -6426,6 +6696,7 @@ const accountName1 = {
6426
6696
  parameterPath: "accountName",
6427
6697
  mapper: {
6428
6698
  constraints: {
6699
+ Pattern: new RegExp("^[a-z0-9]+$"),
6429
6700
  MaxLength: 24,
6430
6701
  MinLength: 3
6431
6702
  },
@@ -6495,9 +6766,37 @@ const requestType = {
6495
6766
  }
6496
6767
  };
6497
6768
  const parameters4 = {
6769
+ parameterPath: "parameters",
6770
+ mapper: StorageAccountMigration
6771
+ };
6772
+ const migrationName = {
6773
+ parameterPath: "migrationName",
6774
+ mapper: {
6775
+ serializedName: "migrationName",
6776
+ required: true,
6777
+ type: {
6778
+ name: "String"
6779
+ }
6780
+ }
6781
+ };
6782
+ const parameters5 = {
6498
6783
  parameterPath: "parameters",
6499
6784
  mapper: BlobRestoreParameters
6500
6785
  };
6786
+ const accountName2 = {
6787
+ parameterPath: "accountName",
6788
+ mapper: {
6789
+ constraints: {
6790
+ MaxLength: 24,
6791
+ MinLength: 3
6792
+ },
6793
+ serializedName: "accountName",
6794
+ required: true,
6795
+ type: {
6796
+ name: "String"
6797
+ }
6798
+ }
6799
+ };
6501
6800
  const nextLink = {
6502
6801
  parameterPath: "nextLink",
6503
6802
  mapper: {
@@ -6659,7 +6958,7 @@ const include = {
6659
6958
  }
6660
6959
  }
6661
6960
  };
6662
- const parameters5 = {
6961
+ const parameters6 = {
6663
6962
  parameterPath: "parameters",
6664
6963
  mapper: BlobServiceProperties
6665
6964
  };
@@ -6714,7 +7013,7 @@ const legalHold = {
6714
7013
  parameterPath: "legalHold",
6715
7014
  mapper: LegalHold
6716
7015
  };
6717
- const parameters6 = {
7016
+ const parameters7 = {
6718
7017
  parameterPath: ["options", "parameters"],
6719
7018
  mapper: ImmutabilityPolicy
6720
7019
  };
@@ -6748,11 +7047,11 @@ const ifMatch1 = {
6748
7047
  }
6749
7048
  }
6750
7049
  };
6751
- const parameters7 = {
7050
+ const parameters8 = {
6752
7051
  parameterPath: ["options", "parameters"],
6753
7052
  mapper: LeaseContainerRequest
6754
7053
  };
6755
- const parameters8 = {
7054
+ const parameters9 = {
6756
7055
  parameterPath: "parameters",
6757
7056
  mapper: FileServiceProperties
6758
7057
  };
@@ -6816,11 +7115,11 @@ const deletedShare = {
6816
7115
  parameterPath: "deletedShare",
6817
7116
  mapper: DeletedShare
6818
7117
  };
6819
- const parameters9 = {
7118
+ const parameters10 = {
6820
7119
  parameterPath: ["options", "parameters"],
6821
7120
  mapper: LeaseShareRequest
6822
7121
  };
6823
- const parameters10 = {
7122
+ const parameters11 = {
6824
7123
  parameterPath: "parameters",
6825
7124
  mapper: QueueServiceProperties
6826
7125
  };
@@ -6854,7 +7153,7 @@ const queueName = {
6854
7153
  }
6855
7154
  }
6856
7155
  };
6857
- const parameters11 = {
7156
+ const parameters12 = {
6858
7157
  parameterPath: "parameters",
6859
7158
  mapper: TableServiceProperties
6860
7159
  };
@@ -6869,7 +7168,7 @@ const tableServiceName = {
6869
7168
  }
6870
7169
  }
6871
7170
  };
6872
- const parameters12 = {
7171
+ const parameters13 = {
6873
7172
  parameterPath: ["options", "parameters"],
6874
7173
  mapper: Table
6875
7174
  };
@@ -7084,25 +7383,17 @@ const listOperationSpec$f = {
7084
7383
  * Code generated by Microsoft (R) AutoRest Code Generator.
7085
7384
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7086
7385
  */
7087
- class LroImpl {
7088
- constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
7089
- this.sendOperationFn = sendOperationFn;
7090
- this.args = args;
7091
- this.spec = spec;
7092
- this.requestPath = requestPath;
7093
- this.requestMethod = requestMethod;
7094
- }
7095
- sendInitialRequest() {
7096
- return tslib.__awaiter(this, void 0, void 0, function* () {
7097
- return this.sendOperationFn(this.args, this.spec);
7098
- });
7099
- }
7100
- sendPollRequest(path) {
7101
- return tslib.__awaiter(this, void 0, void 0, function* () {
7102
- const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
7103
- return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
7104
- });
7105
- }
7386
+ function createLroSpec(inputs) {
7387
+ const { args, spec, sendOperationFn } = inputs;
7388
+ return {
7389
+ requestMethod: spec.httpMethod,
7390
+ requestPath: spec.path,
7391
+ sendInitialRequest: () => sendOperationFn(args, spec),
7392
+ sendPollRequest: (path, options) => {
7393
+ const restSpec = tslib.__rest(spec, ["requestBody"]);
7394
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
7395
+ }
7396
+ };
7106
7397
  }
7107
7398
 
7108
7399
  /*
@@ -7286,7 +7577,7 @@ class StorageAccountsImpl {
7286
7577
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7287
7578
  return this.client.sendOperationRequest(args, spec);
7288
7579
  });
7289
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7580
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7290
7581
  var _a;
7291
7582
  let currentRawResponse = undefined;
7292
7583
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -7305,9 +7596,13 @@ class StorageAccountsImpl {
7305
7596
  }
7306
7597
  };
7307
7598
  });
7308
- const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, parameters, options }, createOperationSpec$4);
7309
- const poller = new coreLro.LroEngine(lro, {
7310
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7599
+ const lro = createLroSpec({
7600
+ sendOperationFn,
7601
+ args: { resourceGroupName, accountName, parameters, options },
7602
+ spec: createOperationSpec$4
7603
+ });
7604
+ const poller = yield coreLro.createHttpPoller(lro, {
7605
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7311
7606
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7312
7607
  });
7313
7608
  yield poller.poll();
@@ -7471,7 +7766,7 @@ class StorageAccountsImpl {
7471
7766
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7472
7767
  return this.client.sendOperationRequest(args, spec);
7473
7768
  });
7474
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7769
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7475
7770
  var _a;
7476
7771
  let currentRawResponse = undefined;
7477
7772
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -7490,11 +7785,15 @@ class StorageAccountsImpl {
7490
7785
  }
7491
7786
  };
7492
7787
  });
7493
- const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, options }, failoverOperationSpec);
7494
- const poller = new coreLro.LroEngine(lro, {
7495
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7788
+ const lro = createLroSpec({
7789
+ sendOperationFn,
7790
+ args: { resourceGroupName, accountName, options },
7791
+ spec: failoverOperationSpec
7792
+ });
7793
+ const poller = yield coreLro.createHttpPoller(lro, {
7794
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7496
7795
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
7497
- lroResourceLocationConfig: "location"
7796
+ resourceLocationConfig: "location"
7498
7797
  });
7499
7798
  yield poller.poll();
7500
7799
  return poller;
@@ -7542,7 +7841,7 @@ class StorageAccountsImpl {
7542
7841
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7543
7842
  return this.client.sendOperationRequest(args, spec);
7544
7843
  });
7545
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7844
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7546
7845
  var _a;
7547
7846
  let currentRawResponse = undefined;
7548
7847
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -7561,11 +7860,15 @@ class StorageAccountsImpl {
7561
7860
  }
7562
7861
  };
7563
7862
  });
7564
- const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, requestType, options }, hierarchicalNamespaceMigrationOperationSpec);
7565
- const poller = new coreLro.LroEngine(lro, {
7566
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7863
+ const lro = createLroSpec({
7864
+ sendOperationFn,
7865
+ args: { resourceGroupName, accountName, requestType, options },
7866
+ spec: hierarchicalNamespaceMigrationOperationSpec
7867
+ });
7868
+ const poller = yield coreLro.createHttpPoller(lro, {
7869
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7567
7870
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
7568
- lroResourceLocationConfig: "location"
7871
+ resourceLocationConfig: "location"
7569
7872
  });
7570
7873
  yield poller.poll();
7571
7874
  return poller;
@@ -7604,7 +7907,7 @@ class StorageAccountsImpl {
7604
7907
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7605
7908
  return this.client.sendOperationRequest(args, spec);
7606
7909
  });
7607
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7910
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7608
7911
  var _a;
7609
7912
  let currentRawResponse = undefined;
7610
7913
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -7623,11 +7926,15 @@ class StorageAccountsImpl {
7623
7926
  }
7624
7927
  };
7625
7928
  });
7626
- const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, options }, abortHierarchicalNamespaceMigrationOperationSpec);
7627
- const poller = new coreLro.LroEngine(lro, {
7628
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7929
+ const lro = createLroSpec({
7930
+ sendOperationFn,
7931
+ args: { resourceGroupName, accountName, options },
7932
+ spec: abortHierarchicalNamespaceMigrationOperationSpec
7933
+ });
7934
+ const poller = yield coreLro.createHttpPoller(lro, {
7935
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7629
7936
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
7630
- lroResourceLocationConfig: "location"
7937
+ resourceLocationConfig: "location"
7631
7938
  });
7632
7939
  yield poller.poll();
7633
7940
  return poller;
@@ -7648,6 +7955,89 @@ class StorageAccountsImpl {
7648
7955
  return poller.pollUntilDone();
7649
7956
  });
7650
7957
  }
7958
+ /**
7959
+ * Account Migration request can be triggered for a storage account to change its redundancy level. The
7960
+ * migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa
7961
+ * in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your
7962
+ * storage account synchronously across three Azure availability zones in the primary region.
7963
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
7964
+ * case insensitive.
7965
+ * @param accountName The name of the storage account within the specified resource group. Storage
7966
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
7967
+ * only.
7968
+ * @param parameters The request parameters required to perform storage account migration.
7969
+ * @param options The options parameters.
7970
+ */
7971
+ beginCustomerInitiatedMigration(resourceGroupName, accountName, parameters, options) {
7972
+ return tslib.__awaiter(this, void 0, void 0, function* () {
7973
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7974
+ return this.client.sendOperationRequest(args, spec);
7975
+ });
7976
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7977
+ var _a;
7978
+ let currentRawResponse = undefined;
7979
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7980
+ const callback = (rawResponse, flatResponse) => {
7981
+ currentRawResponse = rawResponse;
7982
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7983
+ };
7984
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7985
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
7986
+ return {
7987
+ flatResponse,
7988
+ rawResponse: {
7989
+ statusCode: currentRawResponse.status,
7990
+ body: currentRawResponse.parsedBody,
7991
+ headers: currentRawResponse.headers.toJSON()
7992
+ }
7993
+ };
7994
+ });
7995
+ const lro = createLroSpec({
7996
+ sendOperationFn,
7997
+ args: { resourceGroupName, accountName, parameters, options },
7998
+ spec: customerInitiatedMigrationOperationSpec
7999
+ });
8000
+ const poller = yield coreLro.createHttpPoller(lro, {
8001
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8002
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
8003
+ resourceLocationConfig: "location"
8004
+ });
8005
+ yield poller.poll();
8006
+ return poller;
8007
+ });
8008
+ }
8009
+ /**
8010
+ * Account Migration request can be triggered for a storage account to change its redundancy level. The
8011
+ * migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa
8012
+ * in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your
8013
+ * storage account synchronously across three Azure availability zones in the primary region.
8014
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
8015
+ * case insensitive.
8016
+ * @param accountName The name of the storage account within the specified resource group. Storage
8017
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
8018
+ * only.
8019
+ * @param parameters The request parameters required to perform storage account migration.
8020
+ * @param options The options parameters.
8021
+ */
8022
+ beginCustomerInitiatedMigrationAndWait(resourceGroupName, accountName, parameters, options) {
8023
+ return tslib.__awaiter(this, void 0, void 0, function* () {
8024
+ const poller = yield this.beginCustomerInitiatedMigration(resourceGroupName, accountName, parameters, options);
8025
+ return poller.pollUntilDone();
8026
+ });
8027
+ }
8028
+ /**
8029
+ * Gets the status of the ongoing migration for the specified storage account.
8030
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
8031
+ * case insensitive.
8032
+ * @param accountName The name of the storage account within the specified resource group. Storage
8033
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
8034
+ * only.
8035
+ * @param migrationName The name of the Storage Account Migration. It should always be 'default'
8036
+ * @param options The options parameters.
8037
+ */
8038
+ getCustomerInitiatedMigration(resourceGroupName, accountName, migrationName, options) {
8039
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, migrationName, options }, getCustomerInitiatedMigrationOperationSpec);
8040
+ }
7651
8041
  /**
7652
8042
  * Restore blobs in the specified blob ranges
7653
8043
  * @param resourceGroupName The name of the resource group within the user's subscription. The name is
@@ -7663,7 +8053,7 @@ class StorageAccountsImpl {
7663
8053
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7664
8054
  return this.client.sendOperationRequest(args, spec);
7665
8055
  });
7666
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8056
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7667
8057
  var _a;
7668
8058
  let currentRawResponse = undefined;
7669
8059
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -7682,11 +8072,15 @@ class StorageAccountsImpl {
7682
8072
  }
7683
8073
  };
7684
8074
  });
7685
- const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, parameters, options }, restoreBlobRangesOperationSpec);
7686
- const poller = new coreLro.LroEngine(lro, {
7687
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8075
+ const lro = createLroSpec({
8076
+ sendOperationFn,
8077
+ args: { resourceGroupName, accountName, parameters, options },
8078
+ spec: restoreBlobRangesOperationSpec
8079
+ });
8080
+ const poller = yield coreLro.createHttpPoller(lro, {
8081
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7688
8082
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
7689
- lroResourceLocationConfig: "location"
8083
+ resourceLocationConfig: "location"
7690
8084
  });
7691
8085
  yield poller.poll();
7692
8086
  return poller;
@@ -8001,6 +8395,52 @@ const abortHierarchicalNamespaceMigrationOperationSpec = {
8001
8395
  headerParameters: [accept],
8002
8396
  serializer: serializer$h
8003
8397
  };
8398
+ const customerInitiatedMigrationOperationSpec = {
8399
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/startAccountMigration",
8400
+ httpMethod: "POST",
8401
+ responses: {
8402
+ 200: {},
8403
+ 201: {},
8404
+ 202: {},
8405
+ 204: {},
8406
+ default: {
8407
+ bodyMapper: ErrorResponseAutoGenerated
8408
+ }
8409
+ },
8410
+ requestBody: parameters4,
8411
+ queryParameters: [apiVersion],
8412
+ urlParameters: [
8413
+ $host,
8414
+ subscriptionId,
8415
+ resourceGroupName,
8416
+ accountName1
8417
+ ],
8418
+ headerParameters: [accept, contentType],
8419
+ mediaType: "json",
8420
+ serializer: serializer$h
8421
+ };
8422
+ const getCustomerInitiatedMigrationOperationSpec = {
8423
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/accountMigrations/{migrationName}",
8424
+ httpMethod: "GET",
8425
+ responses: {
8426
+ 200: {
8427
+ bodyMapper: StorageAccountMigration
8428
+ },
8429
+ default: {
8430
+ bodyMapper: ErrorResponseAutoGenerated
8431
+ }
8432
+ },
8433
+ queryParameters: [apiVersion],
8434
+ urlParameters: [
8435
+ $host,
8436
+ subscriptionId,
8437
+ resourceGroupName,
8438
+ accountName1,
8439
+ migrationName
8440
+ ],
8441
+ headerParameters: [accept],
8442
+ serializer: serializer$h
8443
+ };
8004
8444
  const restoreBlobRangesOperationSpec = {
8005
8445
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges",
8006
8446
  httpMethod: "POST",
@@ -8018,7 +8458,7 @@ const restoreBlobRangesOperationSpec = {
8018
8458
  bodyMapper: BlobRestoreStatus
8019
8459
  }
8020
8460
  },
8021
- requestBody: parameters4,
8461
+ requestBody: parameters5,
8022
8462
  queryParameters: [apiVersion],
8023
8463
  urlParameters: [
8024
8464
  $host,
@@ -8039,7 +8479,7 @@ const revokeUserDelegationKeysOperationSpec = {
8039
8479
  $host,
8040
8480
  subscriptionId,
8041
8481
  resourceGroupName,
8042
- accountName1
8482
+ accountName2
8043
8483
  ],
8044
8484
  serializer: serializer$h
8045
8485
  };
@@ -8051,7 +8491,6 @@ const listNextOperationSpec$6 = {
8051
8491
  bodyMapper: StorageAccountListResult
8052
8492
  }
8053
8493
  },
8054
- queryParameters: [apiVersion],
8055
8494
  urlParameters: [
8056
8495
  $host,
8057
8496
  subscriptionId,
@@ -8068,7 +8507,6 @@ const listByResourceGroupNextOperationSpec = {
8068
8507
  bodyMapper: StorageAccountListResult
8069
8508
  }
8070
8509
  },
8071
- queryParameters: [apiVersion],
8072
8510
  urlParameters: [
8073
8511
  $host,
8074
8512
  subscriptionId,
@@ -8237,7 +8675,6 @@ const listNextOperationSpec$5 = {
8237
8675
  bodyMapper: ErrorResponse
8238
8676
  }
8239
8677
  },
8240
- queryParameters: [apiVersion],
8241
8678
  urlParameters: [
8242
8679
  $host,
8243
8680
  subscriptionId,
@@ -9797,12 +10234,6 @@ const listNextOperationSpec$4 = {
9797
10234
  bodyMapper: EncryptionScopeListResult
9798
10235
  }
9799
10236
  },
9800
- queryParameters: [
9801
- apiVersion,
9802
- maxpagesize,
9803
- filter,
9804
- include
9805
- ],
9806
10237
  urlParameters: [
9807
10238
  $host,
9808
10239
  subscriptionId,
@@ -9958,7 +10389,7 @@ const setServicePropertiesOperationSpec$3 = {
9958
10389
  bodyMapper: BlobServiceProperties
9959
10390
  }
9960
10391
  },
9961
- requestBody: parameters5,
10392
+ requestBody: parameters6,
9962
10393
  queryParameters: [apiVersion],
9963
10394
  urlParameters: [
9964
10395
  $host,
@@ -10332,7 +10763,7 @@ class BlobContainersImpl {
10332
10763
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10333
10764
  return this.client.sendOperationRequest(args, spec);
10334
10765
  });
10335
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10766
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
10336
10767
  var _a;
10337
10768
  let currentRawResponse = undefined;
10338
10769
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -10351,11 +10782,15 @@ class BlobContainersImpl {
10351
10782
  }
10352
10783
  };
10353
10784
  });
10354
- const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, containerName, options }, objectLevelWormOperationSpec);
10355
- const poller = new coreLro.LroEngine(lro, {
10356
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10785
+ const lro = createLroSpec({
10786
+ sendOperationFn,
10787
+ args: { resourceGroupName, accountName, containerName, options },
10788
+ spec: objectLevelWormOperationSpec
10789
+ });
10790
+ const poller = yield coreLro.createHttpPoller(lro, {
10791
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
10357
10792
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
10358
- lroResourceLocationConfig: "location"
10793
+ resourceLocationConfig: "location"
10359
10794
  });
10360
10795
  yield poller.poll();
10361
10796
  return poller;
@@ -10551,7 +10986,7 @@ const createOrUpdateImmutabilityPolicyOperationSpec = {
10551
10986
  headersMapper: BlobContainersCreateOrUpdateImmutabilityPolicyHeaders
10552
10987
  }
10553
10988
  },
10554
- requestBody: parameters6,
10989
+ requestBody: parameters7,
10555
10990
  queryParameters: [apiVersion],
10556
10991
  urlParameters: [
10557
10992
  $host,
@@ -10640,7 +11075,7 @@ const extendImmutabilityPolicyOperationSpec = {
10640
11075
  headersMapper: BlobContainersExtendImmutabilityPolicyHeaders
10641
11076
  }
10642
11077
  },
10643
- requestBody: parameters6,
11078
+ requestBody: parameters7,
10644
11079
  queryParameters: [apiVersion],
10645
11080
  urlParameters: [
10646
11081
  $host,
@@ -10665,7 +11100,7 @@ const leaseOperationSpec$1 = {
10665
11100
  bodyMapper: LeaseContainerResponse
10666
11101
  }
10667
11102
  },
10668
- requestBody: parameters7,
11103
+ requestBody: parameters8,
10669
11104
  queryParameters: [apiVersion],
10670
11105
  urlParameters: [
10671
11106
  $host,
@@ -10709,12 +11144,6 @@ const listNextOperationSpec$3 = {
10709
11144
  bodyMapper: ListContainerItems
10710
11145
  }
10711
11146
  },
10712
- queryParameters: [
10713
- apiVersion,
10714
- filter,
10715
- maxpagesize1,
10716
- include1
10717
- ],
10718
11147
  urlParameters: [
10719
11148
  $host,
10720
11149
  subscriptionId,
@@ -10817,7 +11246,7 @@ const setServicePropertiesOperationSpec$2 = {
10817
11246
  bodyMapper: CloudError
10818
11247
  }
10819
11248
  },
10820
- requestBody: parameters8,
11249
+ requestBody: parameters9,
10821
11250
  queryParameters: [apiVersion],
10822
11251
  urlParameters: [
10823
11252
  $host,
@@ -11220,7 +11649,7 @@ const leaseOperationSpec = {
11220
11649
  bodyMapper: CloudError
11221
11650
  }
11222
11651
  },
11223
- requestBody: parameters9,
11652
+ requestBody: parameters10,
11224
11653
  queryParameters: [apiVersion],
11225
11654
  urlParameters: [
11226
11655
  $host,
@@ -11248,12 +11677,6 @@ const listNextOperationSpec$2 = {
11248
11677
  bodyMapper: CloudError
11249
11678
  }
11250
11679
  },
11251
- queryParameters: [
11252
- apiVersion,
11253
- filter,
11254
- maxpagesize1,
11255
- expand2
11256
- ],
11257
11680
  urlParameters: [
11258
11681
  $host,
11259
11682
  subscriptionId,
@@ -11356,7 +11779,7 @@ const setServicePropertiesOperationSpec$1 = {
11356
11779
  bodyMapper: CloudError
11357
11780
  }
11358
11781
  },
11359
- requestBody: parameters10,
11782
+ requestBody: parameters11,
11360
11783
  queryParameters: [apiVersion],
11361
11784
  urlParameters: [
11362
11785
  $host,
@@ -11696,11 +12119,6 @@ const listNextOperationSpec$1 = {
11696
12119
  bodyMapper: CloudError
11697
12120
  }
11698
12121
  },
11699
- queryParameters: [
11700
- apiVersion,
11701
- filter,
11702
- maxpagesize1
11703
- ],
11704
12122
  urlParameters: [
11705
12123
  $host,
11706
12124
  subscriptionId,
@@ -11803,7 +12221,7 @@ const setServicePropertiesOperationSpec = {
11803
12221
  bodyMapper: CloudError
11804
12222
  }
11805
12223
  },
11806
- requestBody: parameters11,
12224
+ requestBody: parameters12,
11807
12225
  queryParameters: [apiVersion],
11808
12226
  urlParameters: [
11809
12227
  $host,
@@ -12026,7 +12444,7 @@ const createOperationSpec = {
12026
12444
  bodyMapper: CloudError
12027
12445
  }
12028
12446
  },
12029
- requestBody: parameters12,
12447
+ requestBody: parameters13,
12030
12448
  queryParameters: [apiVersion],
12031
12449
  urlParameters: [
12032
12450
  $host,
@@ -12050,7 +12468,7 @@ const updateOperationSpec = {
12050
12468
  bodyMapper: CloudError
12051
12469
  }
12052
12470
  },
12053
- requestBody: parameters12,
12471
+ requestBody: parameters13,
12054
12472
  queryParameters: [apiVersion],
12055
12473
  urlParameters: [
12056
12474
  $host,
@@ -12137,7 +12555,6 @@ const listNextOperationSpec = {
12137
12555
  bodyMapper: CloudError
12138
12556
  }
12139
12557
  },
12140
- queryParameters: [apiVersion],
12141
12558
  urlParameters: [
12142
12559
  $host,
12143
12560
  subscriptionId,
@@ -12179,7 +12596,7 @@ class StorageManagementClient extends coreClient__namespace.ServiceClient {
12179
12596
  requestContentType: "application/json; charset=utf-8",
12180
12597
  credential: credentials
12181
12598
  };
12182
- const packageDetails = `azsdk-js-arm-storage/18.1.1`;
12599
+ const packageDetails = `azsdk-js-arm-storage/18.2.0`;
12183
12600
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
12184
12601
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
12185
12602
  : `${packageDetails}`;
@@ -12212,7 +12629,7 @@ class StorageManagementClient extends coreClient__namespace.ServiceClient {
12212
12629
  this.subscriptionId = subscriptionId;
12213
12630
  // Assigning values to Constant parameters
12214
12631
  this.$host = options.$host || "https://management.azure.com";
12215
- this.apiVersion = options.apiVersion || "2022-09-01";
12632
+ this.apiVersion = options.apiVersion || "2023-01-01";
12216
12633
  this.operations = new OperationsImpl(this);
12217
12634
  this.skus = new SkusImpl(this);
12218
12635
  this.storageAccounts = new StorageAccountsImpl(this);