@azure/arm-storage 18.1.1-alpha.20230810.1 → 18.2.0

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 +7 -6
  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
package/src/lroImpl.ts CHANGED
@@ -6,29 +6,37 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT license.
11
+
12
+ import { AbortSignalLike } from "@azure/abort-controller";
9
13
  import { LongRunningOperation, LroResponse } from "@azure/core-lro";
10
14
 
11
- export class LroImpl<T> implements LongRunningOperation<T> {
12
- constructor(
13
- private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,
14
- private args: Record<string, unknown>,
15
- private spec: {
16
- readonly requestBody?: unknown;
17
- readonly path?: string;
18
- readonly httpMethod: string;
19
- } & Record<string, any>,
20
- public requestPath: string = spec.path!,
21
- public requestMethod: string = spec.httpMethod
22
- ) {}
23
- public async sendInitialRequest(): Promise<LroResponse<T>> {
24
- return this.sendOperationFn(this.args, this.spec);
25
- }
26
- public async sendPollRequest(path: string): Promise<LroResponse<T>> {
27
- const { requestBody, ...restSpec } = this.spec;
28
- return this.sendOperationFn(this.args, {
29
- ...restSpec,
30
- path,
31
- httpMethod: "GET"
32
- });
33
- }
15
+ export function createLroSpec<T>(inputs: {
16
+ sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
17
+ args: Record<string, unknown>;
18
+ spec: {
19
+ readonly requestBody?: unknown;
20
+ readonly path?: string;
21
+ readonly httpMethod: string;
22
+ } & Record<string, any>;
23
+ }): LongRunningOperation<T> {
24
+ const { args, spec, sendOperationFn } = inputs;
25
+ return {
26
+ requestMethod: spec.httpMethod,
27
+ requestPath: spec.path!,
28
+ sendInitialRequest: () => sendOperationFn(args, spec),
29
+ sendPollRequest: (
30
+ path: string,
31
+ options?: { abortSignal?: AbortSignalLike }
32
+ ) => {
33
+ const { requestBody, ...restSpec } = spec;
34
+ return sendOperationFn(args, {
35
+ ...restSpec,
36
+ httpMethod: "GET",
37
+ path,
38
+ abortSignal: options?.abortSignal
39
+ });
40
+ }
41
+ };
34
42
  }
@@ -217,7 +217,7 @@ export interface StorageAccountCreateParameters {
217
217
  largeFileSharesState?: LargeFileSharesState;
218
218
  /** Maintains information about the network routing choice opted by the user for data transfer */
219
219
  routingPreference?: RoutingPreference;
220
- /** Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property. */
220
+ /** Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is false for this property. */
221
221
  allowBlobPublicAccess?: boolean;
222
222
  /** Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. */
223
223
  minimumTlsVersion?: MinimumTlsVersion;
@@ -225,7 +225,7 @@ export interface StorageAccountCreateParameters {
225
225
  allowSharedKeyAccess?: boolean;
226
226
  /** NFS 3.0 protocol support enabled if set to true. */
227
227
  enableNfsV3?: boolean;
228
- /** Allow or disallow cross AAD tenant object replication. The default interpretation is true for this property. */
228
+ /** Allow or disallow cross AAD tenant object replication. Set this property to true for new or existing accounts only if object replication policies will involve storage accounts in different AAD tenants. The default interpretation is false for new accounts to follow best security practices by default. */
229
229
  allowCrossTenantReplication?: boolean;
230
230
  /** A boolean flag which indicates whether the default authentication is OAuth or not. The default interpretation is false for this property. */
231
231
  defaultToOAuthAuthentication?: boolean;
@@ -597,6 +597,21 @@ export interface GeoReplicationStats {
597
597
  * NOTE: This property will not be serialized. It can only be populated by the server.
598
598
  */
599
599
  readonly canFailover?: boolean;
600
+ /**
601
+ * A boolean flag which indicates whether or not planned account failover is supported for the account.
602
+ * NOTE: This property will not be serialized. It can only be populated by the server.
603
+ */
604
+ readonly canPlannedFailover?: boolean;
605
+ /**
606
+ * The redundancy type of the account after an account failover is performed.
607
+ * NOTE: This property will not be serialized. It can only be populated by the server.
608
+ */
609
+ readonly postFailoverRedundancy?: PostFailoverRedundancy;
610
+ /**
611
+ * The redundancy type of the account after a planned account failover is performed.
612
+ * NOTE: This property will not be serialized. It can only be populated by the server.
613
+ */
614
+ readonly postPlannedFailoverRedundancy?: PostPlannedFailoverRedundancy;
600
615
  }
601
616
 
602
617
  /** The Private Endpoint resource. */
@@ -732,13 +747,13 @@ export interface StorageAccountUpdateParameters {
732
747
  largeFileSharesState?: LargeFileSharesState;
733
748
  /** Maintains information about the network routing choice opted by the user for data transfer */
734
749
  routingPreference?: RoutingPreference;
735
- /** Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property. */
750
+ /** Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is false for this property. */
736
751
  allowBlobPublicAccess?: boolean;
737
752
  /** Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. */
738
753
  minimumTlsVersion?: MinimumTlsVersion;
739
754
  /** Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true. */
740
755
  allowSharedKeyAccess?: boolean;
741
- /** Allow or disallow cross AAD tenant object replication. The default interpretation is true for this property. */
756
+ /** Allow or disallow cross AAD tenant object replication. Set this property to true for new or existing accounts only if object replication policies will involve storage accounts in different AAD tenants. The default interpretation is false for new accounts to follow best security practices by default. */
742
757
  allowCrossTenantReplication?: boolean;
743
758
  /** A boolean flag which indicates whether the default authentication is OAuth or not. The default interpretation is false for this property. */
744
759
  defaultToOAuthAuthentication?: boolean;
@@ -955,6 +970,85 @@ export interface ListServiceSasResponse {
955
970
  readonly serviceSasToken?: string;
956
971
  }
957
972
 
973
+ /** The parameters or status associated with an ongoing or enqueued storage account migration in order to update its current SKU or region. */
974
+ export interface StorageAccountMigration {
975
+ /**
976
+ * Migration Resource Id
977
+ * NOTE: This property will not be serialized. It can only be populated by the server.
978
+ */
979
+ readonly id?: string;
980
+ /** current value is 'default' for customer initiated migration */
981
+ name?: string;
982
+ /** SrpAccountMigrationType in ARM contract which is 'accountMigrations' */
983
+ type?: string;
984
+ /** Target sku name for the account */
985
+ targetSkuName: SkuName;
986
+ /**
987
+ * Current status of migration
988
+ * NOTE: This property will not be serialized. It can only be populated by the server.
989
+ */
990
+ readonly migrationStatus?: MigrationStatus;
991
+ /**
992
+ * Error code for migration failure
993
+ * NOTE: This property will not be serialized. It can only be populated by the server.
994
+ */
995
+ readonly migrationFailedReason?: string;
996
+ /**
997
+ * Reason for migration failure
998
+ * NOTE: This property will not be serialized. It can only be populated by the server.
999
+ */
1000
+ readonly migrationFailedDetailedReason?: string;
1001
+ }
1002
+
1003
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
1004
+ export interface ErrorResponseAutoGenerated {
1005
+ /** The error object. */
1006
+ error?: ErrorDetail;
1007
+ }
1008
+
1009
+ /** The error detail. */
1010
+ export interface ErrorDetail {
1011
+ /**
1012
+ * The error code.
1013
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1014
+ */
1015
+ readonly code?: string;
1016
+ /**
1017
+ * The error message.
1018
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1019
+ */
1020
+ readonly message?: string;
1021
+ /**
1022
+ * The error target.
1023
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1024
+ */
1025
+ readonly target?: string;
1026
+ /**
1027
+ * The error details.
1028
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1029
+ */
1030
+ readonly details?: ErrorDetail[];
1031
+ /**
1032
+ * The error additional info.
1033
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1034
+ */
1035
+ readonly additionalInfo?: ErrorAdditionalInfo[];
1036
+ }
1037
+
1038
+ /** The resource management error additional info. */
1039
+ export interface ErrorAdditionalInfo {
1040
+ /**
1041
+ * The additional info type.
1042
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1043
+ */
1044
+ readonly type?: string;
1045
+ /**
1046
+ * The additional info.
1047
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1048
+ */
1049
+ readonly info?: Record<string, unknown>;
1050
+ }
1051
+
958
1052
  /** The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. */
959
1053
  export interface ManagementPolicySchema {
960
1054
  /** The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. */
@@ -1130,6 +1224,14 @@ export interface BlobInventoryPolicyFilter {
1130
1224
  includeSnapshots?: boolean;
1131
1225
  /** For 'Container' definition.objectType the definition.schemaFields must include 'Deleted, Version, DeletedTime and RemainingRetentionDays'. For 'Blob' definition.objectType and HNS enabled storage accounts the definition.schemaFields must include 'DeletionId, Deleted, DeletedTime and RemainingRetentionDays' and for Hns disabled accounts the definition.schemaFields must include 'Deleted and RemainingRetentionDays', else it must be excluded. */
1132
1226
  includeDeleted?: boolean;
1227
+ /** This property is used to filter objects based on the object creation time */
1228
+ creationTime?: BlobInventoryCreationTime;
1229
+ }
1230
+
1231
+ /** This property defines the creation time based filtering condition. Blob Inventory schema parameter 'Creation-Time' is mandatory with this filter. */
1232
+ export interface BlobInventoryCreationTime {
1233
+ /** When set the policy filters the objects that are created in the last N days. Where N is an integer value between 1 to 36500. */
1234
+ lastNDays?: number;
1133
1235
  }
1134
1236
 
1135
1237
  /** Metadata pertaining to creation and last modification of the resource. */
@@ -2052,7 +2154,7 @@ export interface StorageAccount extends TrackedResource {
2052
2154
  * NOTE: This property will not be serialized. It can only be populated by the server.
2053
2155
  */
2054
2156
  readonly blobRestoreStatus?: BlobRestoreStatus;
2055
- /** Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property. */
2157
+ /** Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is false for this property. */
2056
2158
  allowBlobPublicAccess?: boolean;
2057
2159
  /** Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. */
2058
2160
  minimumTlsVersion?: MinimumTlsVersion;
@@ -2060,7 +2162,7 @@ export interface StorageAccount extends TrackedResource {
2060
2162
  allowSharedKeyAccess?: boolean;
2061
2163
  /** NFS 3.0 protocol support enabled if set to true. */
2062
2164
  enableNfsV3?: boolean;
2063
- /** Allow or disallow cross AAD tenant object replication. The default interpretation is true for this property. */
2165
+ /** Allow or disallow cross AAD tenant object replication. Set this property to true for new or existing accounts only if object replication policies will involve storage accounts in different AAD tenants. The default interpretation is false for new accounts to follow best security practices by default. */
2064
2166
  allowCrossTenantReplication?: boolean;
2065
2167
  /** A boolean flag which indicates whether the default authentication is OAuth or not. The default interpretation is false for this property. */
2066
2168
  defaultToOAuthAuthentication?: boolean;
@@ -2074,6 +2176,16 @@ export interface StorageAccount extends TrackedResource {
2074
2176
  storageAccountSkuConversionStatus?: StorageAccountSkuConversionStatus;
2075
2177
  /** Allows you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier. */
2076
2178
  dnsEndpointType?: DnsEndpointType;
2179
+ /**
2180
+ * This property will be set to true or false on an event of ongoing migration. Default value is null.
2181
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2182
+ */
2183
+ readonly isSkuConversionBlocked?: boolean;
2184
+ /**
2185
+ * If customer initiated account migration is in progress, the value will be true else it will be null.
2186
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2187
+ */
2188
+ readonly accountMigrationInProgress?: boolean;
2077
2189
  }
2078
2190
 
2079
2191
  /** Deleted storage account */
@@ -2428,6 +2540,11 @@ export interface FileShare extends AzureEntityResource {
2428
2540
  readonly snapshotTime?: Date;
2429
2541
  }
2430
2542
 
2543
+ /** Defines headers for StorageAccounts_customerInitiatedMigration operation. */
2544
+ export interface StorageAccountsCustomerInitiatedMigrationHeaders {
2545
+ location?: string;
2546
+ }
2547
+
2431
2548
  /** Defines headers for BlobContainers_createOrUpdateImmutabilityPolicy operation. */
2432
2549
  export interface BlobContainersCreateOrUpdateImmutabilityPolicyHeaders {
2433
2550
  /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. */
@@ -2905,6 +3022,48 @@ export enum KnownGeoReplicationStatus {
2905
3022
  */
2906
3023
  export type GeoReplicationStatus = string;
2907
3024
 
3025
+ /** Known values of {@link PostFailoverRedundancy} that the service accepts. */
3026
+ export enum KnownPostFailoverRedundancy {
3027
+ /** StandardLRS */
3028
+ StandardLRS = "Standard_LRS",
3029
+ /** StandardZRS */
3030
+ StandardZRS = "Standard_ZRS"
3031
+ }
3032
+
3033
+ /**
3034
+ * Defines values for PostFailoverRedundancy. \
3035
+ * {@link KnownPostFailoverRedundancy} can be used interchangeably with PostFailoverRedundancy,
3036
+ * this enum contains the known values that the service supports.
3037
+ * ### Known values supported by the service
3038
+ * **Standard_LRS** \
3039
+ * **Standard_ZRS**
3040
+ */
3041
+ export type PostFailoverRedundancy = string;
3042
+
3043
+ /** Known values of {@link PostPlannedFailoverRedundancy} that the service accepts. */
3044
+ export enum KnownPostPlannedFailoverRedundancy {
3045
+ /** StandardGRS */
3046
+ StandardGRS = "Standard_GRS",
3047
+ /** StandardGzrs */
3048
+ StandardGzrs = "Standard_GZRS",
3049
+ /** StandardRagrs */
3050
+ StandardRagrs = "Standard_RAGRS",
3051
+ /** StandardRagzrs */
3052
+ StandardRagzrs = "Standard_RAGZRS"
3053
+ }
3054
+
3055
+ /**
3056
+ * Defines values for PostPlannedFailoverRedundancy. \
3057
+ * {@link KnownPostPlannedFailoverRedundancy} can be used interchangeably with PostPlannedFailoverRedundancy,
3058
+ * this enum contains the known values that the service supports.
3059
+ * ### Known values supported by the service
3060
+ * **Standard_GRS** \
3061
+ * **Standard_GZRS** \
3062
+ * **Standard_RAGRS** \
3063
+ * **Standard_RAGZRS**
3064
+ */
3065
+ export type PostPlannedFailoverRedundancy = string;
3066
+
2908
3067
  /** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
2909
3068
  export enum KnownPrivateEndpointServiceConnectionStatus {
2910
3069
  /** Pending */
@@ -3097,6 +3256,48 @@ export enum KnownSignedResource {
3097
3256
  */
3098
3257
  export type SignedResource = string;
3099
3258
 
3259
+ /** Known values of {@link MigrationStatus} that the service accepts. */
3260
+ export enum KnownMigrationStatus {
3261
+ /** Invalid */
3262
+ Invalid = "Invalid",
3263
+ /** SubmittedForConversion */
3264
+ SubmittedForConversion = "SubmittedForConversion",
3265
+ /** InProgress */
3266
+ InProgress = "InProgress",
3267
+ /** Complete */
3268
+ Complete = "Complete",
3269
+ /** Failed */
3270
+ Failed = "Failed"
3271
+ }
3272
+
3273
+ /**
3274
+ * Defines values for MigrationStatus. \
3275
+ * {@link KnownMigrationStatus} can be used interchangeably with MigrationStatus,
3276
+ * this enum contains the known values that the service supports.
3277
+ * ### Known values supported by the service
3278
+ * **Invalid** \
3279
+ * **SubmittedForConversion** \
3280
+ * **InProgress** \
3281
+ * **Complete** \
3282
+ * **Failed**
3283
+ */
3284
+ export type MigrationStatus = string;
3285
+
3286
+ /** Known values of {@link MigrationName} that the service accepts. */
3287
+ export enum KnownMigrationName {
3288
+ /** Default */
3289
+ Default = "default"
3290
+ }
3291
+
3292
+ /**
3293
+ * Defines values for MigrationName. \
3294
+ * {@link KnownMigrationName} can be used interchangeably with MigrationName,
3295
+ * this enum contains the known values that the service supports.
3296
+ * ### Known values supported by the service
3297
+ * **default**
3298
+ */
3299
+ export type MigrationName = string;
3300
+
3100
3301
  /** Known values of {@link ManagementPolicyName} that the service accepts. */
3101
3302
  export enum KnownManagementPolicyName {
3102
3303
  /** Default */
@@ -3309,7 +3510,11 @@ export enum KnownAllowedMethods {
3309
3510
  /** PUT */
3310
3511
  PUT = "PUT",
3311
3512
  /** Patch */
3312
- Patch = "PATCH"
3513
+ Patch = "PATCH",
3514
+ /** Connect */
3515
+ Connect = "CONNECT",
3516
+ /** Trace */
3517
+ Trace = "TRACE"
3313
3518
  }
3314
3519
 
3315
3520
  /**
@@ -3324,7 +3529,9 @@ export enum KnownAllowedMethods {
3324
3529
  * **POST** \
3325
3530
  * **OPTIONS** \
3326
3531
  * **PUT** \
3327
- * **PATCH**
3532
+ * **PATCH** \
3533
+ * **CONNECT** \
3534
+ * **TRACE**
3328
3535
  */
3329
3536
  export type AllowedMethods = string;
3330
3537
 
@@ -3745,6 +3952,22 @@ export interface StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParam
3745
3952
  resumeFrom?: string;
3746
3953
  }
3747
3954
 
3955
+ /** Optional parameters. */
3956
+ export interface StorageAccountsCustomerInitiatedMigrationOptionalParams
3957
+ extends coreClient.OperationOptions {
3958
+ /** Delay to wait until next poll, in milliseconds. */
3959
+ updateIntervalInMs?: number;
3960
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
3961
+ resumeFrom?: string;
3962
+ }
3963
+
3964
+ /** Optional parameters. */
3965
+ export interface StorageAccountsGetCustomerInitiatedMigrationOptionalParams
3966
+ extends coreClient.OperationOptions {}
3967
+
3968
+ /** Contains response data for the getCustomerInitiatedMigration operation. */
3969
+ export type StorageAccountsGetCustomerInitiatedMigrationResponse = StorageAccountMigration;
3970
+
3748
3971
  /** Optional parameters. */
3749
3972
  export interface StorageAccountsRestoreBlobRangesOptionalParams
3750
3973
  extends coreClient.OperationOptions {
@@ -3979,14 +4202,7 @@ export type EncryptionScopesListResponse = EncryptionScopeListResult;
3979
4202
 
3980
4203
  /** Optional parameters. */
3981
4204
  export interface EncryptionScopesListNextOptionalParams
3982
- extends coreClient.OperationOptions {
3983
- /** Optional, specifies the maximum number of encryption scopes that will be included in the list response. */
3984
- maxpagesize?: number;
3985
- /** Optional. When specified, only encryption scope names starting with the filter will be listed. */
3986
- filter?: string;
3987
- /** Optional, when specified, will list encryption scopes with the specific state. Defaults to All */
3988
- include?: ListEncryptionScopesInclude;
3989
- }
4205
+ extends coreClient.OperationOptions {}
3990
4206
 
3991
4207
  /** Contains response data for the listNext operation. */
3992
4208
  export type EncryptionScopesListNextResponse = EncryptionScopeListResult;
@@ -4137,14 +4353,7 @@ export interface BlobContainersObjectLevelWormOptionalParams
4137
4353
 
4138
4354
  /** Optional parameters. */
4139
4355
  export interface BlobContainersListNextOptionalParams
4140
- extends coreClient.OperationOptions {
4141
- /** Optional. When specified, only container names starting with the filter will be listed. */
4142
- filter?: string;
4143
- /** Optional. Specified maximum number of containers that can be included in the list. */
4144
- maxpagesize?: string;
4145
- /** Optional, used to include the properties for soft deleted blob containers. */
4146
- include?: ListContainersInclude;
4147
- }
4356
+ extends coreClient.OperationOptions {}
4148
4357
 
4149
4358
  /** Contains response data for the listNext operation. */
4150
4359
  export type BlobContainersListNextResponse = ListContainerItems;
@@ -4241,14 +4450,7 @@ export type FileSharesLeaseResponse = FileSharesLeaseHeaders &
4241
4450
 
4242
4451
  /** Optional parameters. */
4243
4452
  export interface FileSharesListNextOptionalParams
4244
- extends coreClient.OperationOptions {
4245
- /** Optional. When specified, only share names starting with the filter will be listed. */
4246
- filter?: string;
4247
- /** Optional. Specified maximum number of shares that can be included in the list. */
4248
- maxpagesize?: string;
4249
- /** Optional, used to expand the properties within share's properties. Valid values are: deleted, snapshots. Should be passed as a string with delimiter ',' */
4250
- expand?: string;
4251
- }
4453
+ extends coreClient.OperationOptions {}
4252
4454
 
4253
4455
  /** Contains response data for the listNext operation. */
4254
4456
  export type FileSharesListNextResponse = FileShareItems;
@@ -4311,12 +4513,7 @@ export type QueueListResponse = ListQueueResource;
4311
4513
 
4312
4514
  /** Optional parameters. */
4313
4515
  export interface QueueListNextOptionalParams
4314
- extends coreClient.OperationOptions {
4315
- /** Optional, When specified, only the queues with a name starting with the given filter will be listed. */
4316
- filter?: string;
4317
- /** Optional, a maximum number of queues that should be included in a list queue response */
4318
- maxpagesize?: string;
4319
- }
4516
+ extends coreClient.OperationOptions {}
4320
4517
 
4321
4518
  /** Contains response data for the listNext operation. */
4322
4519
  export type QueueListNextResponse = ListQueueResource;