@azure/arm-storage 16.1.2 → 17.0.0-alpha.20211206.4

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 (437) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/{LICENSE.txt → LICENSE} +1 -1
  3. package/README.md +69 -80
  4. package/dist/index.js +10847 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/{esm/models/operationsMappers.js → dist-esm/src/index.js} +5 -2
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/lroImpl.d.ts +16 -0
  13. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  14. package/dist-esm/src/lroImpl.js +29 -0
  15. package/dist-esm/src/lroImpl.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +3500 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +351 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +150 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/mappers.js +2840 -2487
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +61 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/parameters.js +273 -155
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/blobContainers.d.ts +278 -0
  29. package/dist-esm/src/operations/blobContainers.d.ts.map +1 -0
  30. package/dist-esm/src/operations/blobContainers.js +721 -0
  31. package/dist-esm/src/operations/blobContainers.js.map +1 -0
  32. package/dist-esm/src/operations/blobInventoryPolicies.d.ts +73 -0
  33. package/dist-esm/src/operations/blobInventoryPolicies.d.ts.map +1 -0
  34. package/dist-esm/src/operations/blobInventoryPolicies.js +221 -0
  35. package/dist-esm/src/operations/blobInventoryPolicies.js.map +1 -0
  36. package/dist-esm/src/operations/blobServices.d.ts +60 -0
  37. package/dist-esm/src/operations/blobServices.d.ts.map +1 -0
  38. package/dist-esm/src/operations/blobServices.js +170 -0
  39. package/dist-esm/src/operations/blobServices.js.map +1 -0
  40. package/dist-esm/src/operations/deletedAccounts.d.ts +39 -0
  41. package/dist-esm/src/operations/deletedAccounts.d.ts.map +1 -0
  42. package/dist-esm/src/operations/deletedAccounts.js +154 -0
  43. package/dist-esm/src/operations/deletedAccounts.js.map +1 -0
  44. package/dist-esm/src/operations/encryptionScopes.d.ts +94 -0
  45. package/dist-esm/src/operations/encryptionScopes.d.ts.map +1 -0
  46. package/dist-esm/src/operations/encryptionScopes.js +278 -0
  47. package/dist-esm/src/operations/encryptionScopes.js.map +1 -0
  48. package/dist-esm/src/operations/fileServices.d.ts +47 -0
  49. package/dist-esm/src/operations/fileServices.d.ts.map +1 -0
  50. package/dist-esm/src/operations/fileServices.js +130 -0
  51. package/dist-esm/src/operations/fileServices.js.map +1 -0
  52. package/dist-esm/src/operations/fileShares.d.ts +132 -0
  53. package/dist-esm/src/operations/fileShares.d.ts.map +1 -0
  54. package/dist-esm/src/operations/fileShares.js +398 -0
  55. package/dist-esm/src/operations/fileShares.js.map +1 -0
  56. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  57. package/dist-esm/src/operations/index.d.ts.map +1 -0
  58. package/{esm → dist-esm/src}/operations/index.js +1 -2
  59. package/dist-esm/src/operations/index.js.map +1 -0
  60. package/dist-esm/src/operations/managementPolicies.d.ts +50 -0
  61. package/dist-esm/src/operations/managementPolicies.d.ts.map +1 -0
  62. package/dist-esm/src/operations/managementPolicies.js +126 -0
  63. package/dist-esm/src/operations/managementPolicies.js.map +1 -0
  64. package/dist-esm/src/operations/objectReplicationPoliciesOperations.d.ts +80 -0
  65. package/dist-esm/src/operations/objectReplicationPoliciesOperations.d.ts.map +1 -0
  66. package/dist-esm/src/operations/objectReplicationPoliciesOperations.js +228 -0
  67. package/dist-esm/src/operations/objectReplicationPoliciesOperations.js.map +1 -0
  68. package/dist-esm/src/operations/operations.d.ts +26 -0
  69. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  70. package/dist-esm/src/operations/operations.js +87 -0
  71. package/dist-esm/src/operations/operations.js.map +1 -0
  72. package/dist-esm/src/operations/privateEndpointConnections.d.ts +73 -0
  73. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  74. package/dist-esm/src/operations/privateEndpointConnections.js +228 -0
  75. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  76. package/dist-esm/src/operations/privateLinkResources.d.ts +23 -0
  77. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  78. package/dist-esm/src/operations/privateLinkResources.js +53 -0
  79. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  80. package/dist-esm/src/operations/queue.d.ts +101 -0
  81. package/dist-esm/src/operations/queue.d.ts.map +1 -0
  82. package/dist-esm/src/operations/queue.js +306 -0
  83. package/dist-esm/src/operations/queue.js.map +1 -0
  84. package/dist-esm/src/operations/queueServices.d.ts +47 -0
  85. package/dist-esm/src/operations/queueServices.d.ts.map +1 -0
  86. package/dist-esm/src/operations/queueServices.js +130 -0
  87. package/dist-esm/src/operations/queueServices.js.map +1 -0
  88. package/dist-esm/src/operations/skus.d.ts +26 -0
  89. package/dist-esm/src/operations/skus.d.ts.map +1 -0
  90. package/dist-esm/src/operations/skus.js +87 -0
  91. package/dist-esm/src/operations/skus.js.map +1 -0
  92. package/dist-esm/src/operations/storageAccounts.d.ts +284 -0
  93. package/dist-esm/src/operations/storageAccounts.d.ts.map +1 -0
  94. package/dist-esm/src/operations/storageAccounts.js +920 -0
  95. package/dist-esm/src/operations/storageAccounts.js.map +1 -0
  96. package/dist-esm/src/operations/tableOperations.d.ts +99 -0
  97. package/dist-esm/src/operations/tableOperations.d.ts.map +1 -0
  98. package/dist-esm/src/operations/tableOperations.js +292 -0
  99. package/dist-esm/src/operations/tableOperations.js.map +1 -0
  100. package/dist-esm/src/operations/tableServices.d.ts +47 -0
  101. package/dist-esm/src/operations/tableServices.d.ts.map +1 -0
  102. package/dist-esm/src/operations/tableServices.js +130 -0
  103. package/dist-esm/src/operations/tableServices.js.map +1 -0
  104. package/dist-esm/src/operations/usages.d.ts +28 -0
  105. package/dist-esm/src/operations/usages.d.ts.map +1 -0
  106. package/dist-esm/src/operations/usages.js +93 -0
  107. package/dist-esm/src/operations/usages.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/blobContainers.d.ts +246 -0
  109. package/dist-esm/src/operationsInterfaces/blobContainers.d.ts.map +1 -0
  110. package/{src/models/usagesMappers.ts → dist-esm/src/operationsInterfaces/blobContainers.js} +2 -7
  111. package/dist-esm/src/operationsInterfaces/blobContainers.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.d.ts +53 -0
  113. package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.d.ts.map +1 -0
  114. package/{esm/models/usagesMappers.js → dist-esm/src/operationsInterfaces/blobInventoryPolicies.js} +2 -2
  115. package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.js.map +1 -0
  116. package/dist-esm/src/operationsInterfaces/blobServices.d.ts +40 -0
  117. package/dist-esm/src/operationsInterfaces/blobServices.d.ts.map +1 -0
  118. package/{src/models/skusMappers.ts → dist-esm/src/operationsInterfaces/blobServices.js} +2 -8
  119. package/dist-esm/src/operationsInterfaces/blobServices.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/deletedAccounts.d.ts +18 -0
  121. package/dist-esm/src/operationsInterfaces/deletedAccounts.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/deletedAccounts.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/deletedAccounts.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/encryptionScopes.d.ts +63 -0
  125. package/dist-esm/src/operationsInterfaces/encryptionScopes.d.ts.map +1 -0
  126. package/dist-esm/src/operationsInterfaces/encryptionScopes.js +9 -0
  127. package/dist-esm/src/operationsInterfaces/encryptionScopes.js.map +1 -0
  128. package/dist-esm/src/operationsInterfaces/fileServices.d.ts +39 -0
  129. package/dist-esm/src/operationsInterfaces/fileServices.d.ts.map +1 -0
  130. package/dist-esm/src/operationsInterfaces/fileServices.js +9 -0
  131. package/dist-esm/src/operationsInterfaces/fileServices.js.map +1 -0
  132. package/dist-esm/src/operationsInterfaces/fileShares.d.ts +101 -0
  133. package/dist-esm/src/operationsInterfaces/fileShares.d.ts.map +1 -0
  134. package/dist-esm/src/operationsInterfaces/fileShares.js +9 -0
  135. package/dist-esm/src/operationsInterfaces/fileShares.js.map +1 -0
  136. package/dist-esm/src/operationsInterfaces/index.d.ts +20 -0
  137. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  138. package/dist-esm/src/operationsInterfaces/index.js +27 -0
  139. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  140. package/dist-esm/src/operationsInterfaces/managementPolicies.d.ts +42 -0
  141. package/dist-esm/src/operationsInterfaces/managementPolicies.d.ts.map +1 -0
  142. package/dist-esm/src/operationsInterfaces/managementPolicies.js +9 -0
  143. package/dist-esm/src/operationsInterfaces/managementPolicies.js.map +1 -0
  144. package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.d.ts +60 -0
  145. package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.d.ts.map +1 -0
  146. package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.js +9 -0
  147. package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.js.map +1 -0
  148. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  149. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  150. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  151. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  152. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +53 -0
  153. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  154. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  155. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  156. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +15 -0
  157. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  158. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  159. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  160. package/dist-esm/src/operationsInterfaces/queue.d.ts +70 -0
  161. package/dist-esm/src/operationsInterfaces/queue.d.ts.map +1 -0
  162. package/dist-esm/src/operationsInterfaces/queue.js +9 -0
  163. package/dist-esm/src/operationsInterfaces/queue.js.map +1 -0
  164. package/dist-esm/src/operationsInterfaces/queueServices.d.ts +39 -0
  165. package/dist-esm/src/operationsInterfaces/queueServices.d.ts.map +1 -0
  166. package/dist-esm/src/operationsInterfaces/queueServices.js +9 -0
  167. package/dist-esm/src/operationsInterfaces/queueServices.js.map +1 -0
  168. package/dist-esm/src/operationsInterfaces/skus.d.ts +11 -0
  169. package/dist-esm/src/operationsInterfaces/skus.d.ts.map +1 -0
  170. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/skus.js} +2 -1
  171. package/dist-esm/src/operationsInterfaces/skus.js.map +1 -0
  172. package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts +244 -0
  173. package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts.map +1 -0
  174. package/dist-esm/src/operationsInterfaces/storageAccounts.js +9 -0
  175. package/dist-esm/src/operationsInterfaces/storageAccounts.js.map +1 -0
  176. package/dist-esm/src/operationsInterfaces/tableOperations.d.ts +68 -0
  177. package/dist-esm/src/operationsInterfaces/tableOperations.d.ts.map +1 -0
  178. package/dist-esm/src/operationsInterfaces/tableOperations.js +9 -0
  179. package/dist-esm/src/operationsInterfaces/tableOperations.js.map +1 -0
  180. package/dist-esm/src/operationsInterfaces/tableServices.d.ts +39 -0
  181. package/dist-esm/src/operationsInterfaces/tableServices.d.ts.map +1 -0
  182. package/dist-esm/src/operationsInterfaces/tableServices.js +9 -0
  183. package/dist-esm/src/operationsInterfaces/tableServices.js.map +1 -0
  184. package/dist-esm/src/operationsInterfaces/usages.d.ts +12 -0
  185. package/dist-esm/src/operationsInterfaces/usages.d.ts.map +1 -0
  186. package/dist-esm/src/operationsInterfaces/usages.js +9 -0
  187. package/dist-esm/src/operationsInterfaces/usages.js.map +1 -0
  188. package/dist-esm/src/storageManagementClient.d.ts +36 -0
  189. package/dist-esm/src/storageManagementClient.d.ts.map +1 -0
  190. package/dist-esm/src/storageManagementClient.js +69 -0
  191. package/dist-esm/src/storageManagementClient.js.map +1 -0
  192. package/dist-esm/test/storage_examples.d.ts +4 -0
  193. package/dist-esm/test/storage_examples.d.ts.map +1 -0
  194. package/dist-esm/test/storage_examples.js +196 -0
  195. package/dist-esm/test/storage_examples.js.map +1 -0
  196. package/package.json +64 -21
  197. package/review/arm-storage.api.md +2730 -0
  198. package/rollup.config.js +181 -30
  199. package/src/{models/operationsMappers.ts → index.ts} +4 -9
  200. package/src/lroImpl.ts +34 -0
  201. package/src/models/index.ts +2869 -4433
  202. package/src/models/mappers.ts +2917 -2532
  203. package/src/models/parameters.ts +361 -156
  204. package/src/operations/blobContainers.ts +724 -1041
  205. package/src/operations/blobInventoryPolicies.ts +185 -215
  206. package/src/operations/blobServices.ts +153 -181
  207. package/src/operations/deletedAccounts.ts +114 -116
  208. package/src/operations/encryptionScopes.ts +236 -295
  209. package/src/operations/fileServices.ts +103 -175
  210. package/src/operations/fileShares.ts +338 -564
  211. package/src/operations/index.ts +1 -2
  212. package/src/operations/managementPolicies.ts +106 -179
  213. package/src/operations/objectReplicationPoliciesOperations.ts +190 -231
  214. package/src/operations/operations.ts +64 -42
  215. package/src/operations/privateEndpointConnections.ts +180 -218
  216. package/src/operations/privateLinkResources.ts +41 -64
  217. package/src/operations/queue.ts +272 -369
  218. package/src/operations/queueServices.ts +107 -177
  219. package/src/operations/skus.ts +62 -45
  220. package/src/operations/storageAccounts.ts +978 -831
  221. package/src/operations/tableOperations.ts +258 -332
  222. package/src/operations/tableServices.ts +107 -177
  223. package/src/operations/usages.ts +76 -49
  224. package/src/operationsInterfaces/blobContainers.ts +365 -0
  225. package/src/operationsInterfaces/blobInventoryPolicies.ts +91 -0
  226. package/src/operationsInterfaces/blobServices.ts +69 -0
  227. package/src/operationsInterfaces/deletedAccounts.ts +38 -0
  228. package/src/operationsInterfaces/encryptionScopes.ts +102 -0
  229. package/src/operationsInterfaces/fileServices.ts +68 -0
  230. package/src/operationsInterfaces/fileShares.ts +162 -0
  231. package/src/operationsInterfaces/index.ts +27 -0
  232. package/src/operationsInterfaces/managementPolicies.ts +74 -0
  233. package/src/operationsInterfaces/objectReplicationPoliciesOperations.ts +97 -0
  234. package/src/operationsInterfaces/operations.ts +22 -0
  235. package/src/operationsInterfaces/privateEndpointConnections.ts +90 -0
  236. package/src/operationsInterfaces/privateLinkResources.ts +30 -0
  237. package/src/operationsInterfaces/queue.ts +116 -0
  238. package/src/operationsInterfaces/queueServices.ts +68 -0
  239. package/src/operationsInterfaces/skus.ts +22 -0
  240. package/src/operationsInterfaces/storageAccounts.ts +387 -0
  241. package/src/operationsInterfaces/tableOperations.ts +111 -0
  242. package/src/operationsInterfaces/tableServices.ts +68 -0
  243. package/src/operationsInterfaces/usages.ts +24 -0
  244. package/src/storageManagementClient.ts +138 -68
  245. package/tsconfig.json +3 -3
  246. package/types/arm-storage.d.ts +5155 -0
  247. package/types/tsdoc-metadata.json +11 -0
  248. package/dist/arm-storage.js +0 -10687
  249. package/dist/arm-storage.js.map +0 -1
  250. package/dist/arm-storage.min.js +0 -1
  251. package/dist/arm-storage.min.js.map +0 -1
  252. package/esm/models/blobContainersMappers.d.ts +0 -2
  253. package/esm/models/blobContainersMappers.d.ts.map +0 -1
  254. package/esm/models/blobContainersMappers.js +0 -9
  255. package/esm/models/blobContainersMappers.js.map +0 -1
  256. package/esm/models/blobInventoryPoliciesMappers.d.ts +0 -2
  257. package/esm/models/blobInventoryPoliciesMappers.d.ts.map +0 -1
  258. package/esm/models/blobInventoryPoliciesMappers.js +0 -9
  259. package/esm/models/blobInventoryPoliciesMappers.js.map +0 -1
  260. package/esm/models/blobServicesMappers.d.ts +0 -2
  261. package/esm/models/blobServicesMappers.d.ts.map +0 -1
  262. package/esm/models/blobServicesMappers.js +0 -9
  263. package/esm/models/blobServicesMappers.js.map +0 -1
  264. package/esm/models/deletedAccountsMappers.d.ts +0 -2
  265. package/esm/models/deletedAccountsMappers.d.ts.map +0 -1
  266. package/esm/models/deletedAccountsMappers.js +0 -9
  267. package/esm/models/deletedAccountsMappers.js.map +0 -1
  268. package/esm/models/encryptionScopesMappers.d.ts +0 -2
  269. package/esm/models/encryptionScopesMappers.d.ts.map +0 -1
  270. package/esm/models/encryptionScopesMappers.js +0 -9
  271. package/esm/models/encryptionScopesMappers.js.map +0 -1
  272. package/esm/models/fileServicesMappers.d.ts +0 -2
  273. package/esm/models/fileServicesMappers.d.ts.map +0 -1
  274. package/esm/models/fileServicesMappers.js +0 -9
  275. package/esm/models/fileServicesMappers.js.map +0 -1
  276. package/esm/models/fileSharesMappers.d.ts +0 -2
  277. package/esm/models/fileSharesMappers.d.ts.map +0 -1
  278. package/esm/models/fileSharesMappers.js +0 -9
  279. package/esm/models/fileSharesMappers.js.map +0 -1
  280. package/esm/models/index.d.ts +0 -5116
  281. package/esm/models/index.d.ts.map +0 -1
  282. package/esm/models/index.js.map +0 -1
  283. package/esm/models/managementPoliciesMappers.d.ts +0 -2
  284. package/esm/models/managementPoliciesMappers.d.ts.map +0 -1
  285. package/esm/models/managementPoliciesMappers.js +0 -9
  286. package/esm/models/managementPoliciesMappers.js.map +0 -1
  287. package/esm/models/mappers.d.ts +0 -139
  288. package/esm/models/mappers.d.ts.map +0 -1
  289. package/esm/models/mappers.js.map +0 -1
  290. package/esm/models/objectReplicationPoliciesOperationsMappers.d.ts +0 -2
  291. package/esm/models/objectReplicationPoliciesOperationsMappers.d.ts.map +0 -1
  292. package/esm/models/objectReplicationPoliciesOperationsMappers.js +0 -9
  293. package/esm/models/objectReplicationPoliciesOperationsMappers.js.map +0 -1
  294. package/esm/models/operationsMappers.d.ts +0 -2
  295. package/esm/models/operationsMappers.d.ts.map +0 -1
  296. package/esm/models/operationsMappers.js.map +0 -1
  297. package/esm/models/parameters.d.ts +0 -34
  298. package/esm/models/parameters.d.ts.map +0 -1
  299. package/esm/models/parameters.js.map +0 -1
  300. package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
  301. package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
  302. package/esm/models/privateEndpointConnectionsMappers.js +0 -9
  303. package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
  304. package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
  305. package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
  306. package/esm/models/privateLinkResourcesMappers.js +0 -9
  307. package/esm/models/privateLinkResourcesMappers.js.map +0 -1
  308. package/esm/models/queueMappers.d.ts +0 -2
  309. package/esm/models/queueMappers.d.ts.map +0 -1
  310. package/esm/models/queueMappers.js +0 -9
  311. package/esm/models/queueMappers.js.map +0 -1
  312. package/esm/models/queueServicesMappers.d.ts +0 -2
  313. package/esm/models/queueServicesMappers.d.ts.map +0 -1
  314. package/esm/models/queueServicesMappers.js +0 -9
  315. package/esm/models/queueServicesMappers.js.map +0 -1
  316. package/esm/models/skusMappers.d.ts +0 -2
  317. package/esm/models/skusMappers.d.ts.map +0 -1
  318. package/esm/models/skusMappers.js +0 -9
  319. package/esm/models/skusMappers.js.map +0 -1
  320. package/esm/models/storageAccountsMappers.d.ts +0 -2
  321. package/esm/models/storageAccountsMappers.d.ts.map +0 -1
  322. package/esm/models/storageAccountsMappers.js +0 -9
  323. package/esm/models/storageAccountsMappers.js.map +0 -1
  324. package/esm/models/tableOperationsMappers.d.ts +0 -2
  325. package/esm/models/tableOperationsMappers.d.ts.map +0 -1
  326. package/esm/models/tableOperationsMappers.js +0 -9
  327. package/esm/models/tableOperationsMappers.js.map +0 -1
  328. package/esm/models/tableServicesMappers.d.ts +0 -2
  329. package/esm/models/tableServicesMappers.d.ts.map +0 -1
  330. package/esm/models/tableServicesMappers.js +0 -9
  331. package/esm/models/tableServicesMappers.js.map +0 -1
  332. package/esm/models/usagesMappers.d.ts +0 -2
  333. package/esm/models/usagesMappers.d.ts.map +0 -1
  334. package/esm/models/usagesMappers.js.map +0 -1
  335. package/esm/operations/blobContainers.d.ts +0 -627
  336. package/esm/operations/blobContainers.d.ts.map +0 -1
  337. package/esm/operations/blobContainers.js +0 -569
  338. package/esm/operations/blobContainers.js.map +0 -1
  339. package/esm/operations/blobInventoryPolicies.d.ts +0 -136
  340. package/esm/operations/blobInventoryPolicies.d.ts.map +0 -1
  341. package/esm/operations/blobInventoryPolicies.js +0 -164
  342. package/esm/operations/blobInventoryPolicies.js.map +0 -1
  343. package/esm/operations/blobServices.d.ts +0 -111
  344. package/esm/operations/blobServices.d.ts.map +0 -1
  345. package/esm/operations/blobServices.js +0 -127
  346. package/esm/operations/blobServices.js.map +0 -1
  347. package/esm/operations/deletedAccounts.d.ts +0 -67
  348. package/esm/operations/deletedAccounts.d.ts.map +0 -1
  349. package/esm/operations/deletedAccounts.js +0 -113
  350. package/esm/operations/deletedAccounts.js.map +0 -1
  351. package/esm/operations/encryptionScopes.d.ts +0 -196
  352. package/esm/operations/encryptionScopes.d.ts.map +0 -1
  353. package/esm/operations/encryptionScopes.js +0 -199
  354. package/esm/operations/encryptionScopes.js.map +0 -1
  355. package/esm/operations/fileServices.d.ts +0 -111
  356. package/esm/operations/fileServices.d.ts.map +0 -1
  357. package/esm/operations/fileServices.js +0 -127
  358. package/esm/operations/fileServices.js.map +0 -1
  359. package/esm/operations/fileShares.d.ts +0 -289
  360. package/esm/operations/fileShares.d.ts.map +0 -1
  361. package/esm/operations/fileShares.js +0 -247
  362. package/esm/operations/fileShares.js.map +0 -1
  363. package/esm/operations/index.d.ts.map +0 -1
  364. package/esm/operations/index.js.map +0 -1
  365. package/esm/operations/managementPolicies.d.ts +0 -109
  366. package/esm/operations/managementPolicies.d.ts.map +0 -1
  367. package/esm/operations/managementPolicies.js +0 -129
  368. package/esm/operations/managementPolicies.js.map +0 -1
  369. package/esm/operations/objectReplicationPoliciesOperations.d.ts +0 -157
  370. package/esm/operations/objectReplicationPoliciesOperations.d.ts.map +0 -1
  371. package/esm/operations/objectReplicationPoliciesOperations.js +0 -161
  372. package/esm/operations/objectReplicationPoliciesOperations.js.map +0 -1
  373. package/esm/operations/operations.d.ts +0 -28
  374. package/esm/operations/operations.d.ts.map +0 -1
  375. package/esm/operations/operations.js +0 -50
  376. package/esm/operations/operations.js.map +0 -1
  377. package/esm/operations/privateEndpointConnections.d.ts +0 -154
  378. package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
  379. package/esm/operations/privateEndpointConnections.js +0 -161
  380. package/esm/operations/privateEndpointConnections.js.map +0 -1
  381. package/esm/operations/privateLinkResources.d.ts +0 -43
  382. package/esm/operations/privateLinkResources.d.ts.map +0 -1
  383. package/esm/operations/privateLinkResources.js +0 -57
  384. package/esm/operations/privateLinkResources.js.map +0 -1
  385. package/esm/operations/queue.d.ts +0 -229
  386. package/esm/operations/queue.d.ts.map +0 -1
  387. package/esm/operations/queue.js +0 -239
  388. package/esm/operations/queue.js.map +0 -1
  389. package/esm/operations/queueServices.d.ts +0 -105
  390. package/esm/operations/queueServices.d.ts.map +0 -1
  391. package/esm/operations/queueServices.js +0 -131
  392. package/esm/operations/queueServices.js.map +0 -1
  393. package/esm/operations/skus.d.ts +0 -28
  394. package/esm/operations/skus.d.ts.map +0 -1
  395. package/esm/operations/skus.js +0 -53
  396. package/esm/operations/skus.js.map +0 -1
  397. package/esm/operations/storageAccounts.d.ts +0 -455
  398. package/esm/operations/storageAccounts.d.ts.map +0 -1
  399. package/esm/operations/storageAccounts.js +0 -642
  400. package/esm/operations/storageAccounts.js.map +0 -1
  401. package/esm/operations/tableOperations.d.ts +0 -217
  402. package/esm/operations/tableOperations.d.ts.map +0 -1
  403. package/esm/operations/tableOperations.js +0 -216
  404. package/esm/operations/tableOperations.js.map +0 -1
  405. package/esm/operations/tableServices.d.ts +0 -105
  406. package/esm/operations/tableServices.d.ts.map +0 -1
  407. package/esm/operations/tableServices.js +0 -131
  408. package/esm/operations/tableServices.js.map +0 -1
  409. package/esm/operations/usages.d.ts +0 -32
  410. package/esm/operations/usages.d.ts.map +0 -1
  411. package/esm/operations/usages.js +0 -55
  412. package/esm/operations/usages.js.map +0 -1
  413. package/esm/storageManagementClient.d.ts +0 -42
  414. package/esm/storageManagementClient.d.ts.map +0 -1
  415. package/esm/storageManagementClient.js +0 -55
  416. package/esm/storageManagementClient.js.map +0 -1
  417. package/esm/storageManagementClientContext.d.ts +0 -22
  418. package/esm/storageManagementClientContext.d.ts.map +0 -1
  419. package/esm/storageManagementClientContext.js +0 -61
  420. package/esm/storageManagementClientContext.js.map +0 -1
  421. package/src/models/blobContainersMappers.ts +0 -106
  422. package/src/models/blobInventoryPoliciesMappers.ts +0 -99
  423. package/src/models/blobServicesMappers.ts +0 -98
  424. package/src/models/deletedAccountsMappers.ts +0 -99
  425. package/src/models/encryptionScopesMappers.ts +0 -100
  426. package/src/models/fileServicesMappers.ts +0 -98
  427. package/src/models/fileSharesMappers.ts +0 -99
  428. package/src/models/managementPoliciesMappers.ts +0 -97
  429. package/src/models/objectReplicationPoliciesOperationsMappers.ts +0 -99
  430. package/src/models/privateEndpointConnectionsMappers.ts +0 -100
  431. package/src/models/privateLinkResourcesMappers.ts +0 -98
  432. package/src/models/queueMappers.ts +0 -98
  433. package/src/models/queueServicesMappers.ts +0 -98
  434. package/src/models/storageAccountsMappers.ts +0 -109
  435. package/src/models/tableOperationsMappers.ts +0 -98
  436. package/src/models/tableServicesMappers.ts +0 -98
  437. package/src/storageManagementClientContext.ts +0 -74
@@ -3,160 +3,158 @@
3
3
  * Licensed under the MIT License.
4
4
  *
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is
7
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
7
  */
9
8
 
10
- import * as msRest from "@azure/ms-rest-js";
11
- import * as Models from "../models";
12
- import * as Mappers from "../models/objectReplicationPoliciesOperationsMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { ObjectReplicationPoliciesOperations } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
13
  import * as Parameters from "../models/parameters";
14
- import { StorageManagementClientContext } from "../storageManagementClientContext";
14
+ import { StorageManagementClient } from "../storageManagementClient";
15
+ import {
16
+ ObjectReplicationPolicy,
17
+ ObjectReplicationPoliciesListOptionalParams,
18
+ ObjectReplicationPoliciesListResponse,
19
+ ObjectReplicationPoliciesGetOptionalParams,
20
+ ObjectReplicationPoliciesGetResponse,
21
+ ObjectReplicationPoliciesCreateOrUpdateOptionalParams,
22
+ ObjectReplicationPoliciesCreateOrUpdateResponse,
23
+ ObjectReplicationPoliciesDeleteOptionalParams
24
+ } from "../models";
15
25
 
16
- /** Class representing a ObjectReplicationPoliciesOperations. */
17
- export class ObjectReplicationPoliciesOperations {
18
- private readonly client: StorageManagementClientContext;
26
+ /// <reference lib="esnext.asynciterable" />
27
+ /** Class containing ObjectReplicationPoliciesOperations operations. */
28
+ export class ObjectReplicationPoliciesOperationsImpl
29
+ implements ObjectReplicationPoliciesOperations {
30
+ private readonly client: StorageManagementClient;
19
31
 
20
32
  /**
21
- * Create a ObjectReplicationPoliciesOperations.
22
- * @param {StorageManagementClientContext} client Reference to the service client.
33
+ * Initialize a new instance of the class ObjectReplicationPoliciesOperations class.
34
+ * @param client Reference to the service client
23
35
  */
24
- constructor(client: StorageManagementClientContext) {
36
+ constructor(client: StorageManagementClient) {
25
37
  this.client = client;
26
38
  }
27
39
 
28
40
  /**
29
41
  * List the object replication policies associated with the storage account.
30
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
31
- * is case insensitive.
42
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
43
+ * case insensitive.
32
44
  * @param accountName The name of the storage account within the specified resource group. Storage
33
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
34
- * letters only.
35
- * @param [options] The optional parameters
36
- * @returns Promise<Models.ObjectReplicationPoliciesListResponse>
45
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
46
+ * only.
47
+ * @param options The options parameters.
37
48
  */
38
- list(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<Models.ObjectReplicationPoliciesListResponse>;
39
- /**
40
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
41
- * is case insensitive.
42
- * @param accountName The name of the storage account within the specified resource group. Storage
43
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
44
- * letters only.
45
- * @param callback The callback
46
- */
47
- list(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<Models.ObjectReplicationPolicies>): void;
49
+ public list(
50
+ resourceGroupName: string,
51
+ accountName: string,
52
+ options?: ObjectReplicationPoliciesListOptionalParams
53
+ ): PagedAsyncIterableIterator<ObjectReplicationPolicy> {
54
+ const iter = this.listPagingAll(resourceGroupName, accountName, options);
55
+ return {
56
+ next() {
57
+ return iter.next();
58
+ },
59
+ [Symbol.asyncIterator]() {
60
+ return this;
61
+ },
62
+ byPage: () => {
63
+ return this.listPagingPage(resourceGroupName, accountName, options);
64
+ }
65
+ };
66
+ }
67
+
68
+ private async *listPagingPage(
69
+ resourceGroupName: string,
70
+ accountName: string,
71
+ options?: ObjectReplicationPoliciesListOptionalParams
72
+ ): AsyncIterableIterator<ObjectReplicationPolicy[]> {
73
+ let result = await this._list(resourceGroupName, accountName, options);
74
+ yield result.value || [];
75
+ }
76
+
77
+ private async *listPagingAll(
78
+ resourceGroupName: string,
79
+ accountName: string,
80
+ options?: ObjectReplicationPoliciesListOptionalParams
81
+ ): AsyncIterableIterator<ObjectReplicationPolicy> {
82
+ for await (const page of this.listPagingPage(
83
+ resourceGroupName,
84
+ accountName,
85
+ options
86
+ )) {
87
+ yield* page;
88
+ }
89
+ }
90
+
48
91
  /**
49
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
50
- * is case insensitive.
92
+ * List the object replication policies associated with the storage account.
93
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
94
+ * case insensitive.
51
95
  * @param accountName The name of the storage account within the specified resource group. Storage
52
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
53
- * letters only.
54
- * @param options The optional parameters
55
- * @param callback The callback
96
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
97
+ * only.
98
+ * @param options The options parameters.
56
99
  */
57
- list(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ObjectReplicationPolicies>): void;
58
- list(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ObjectReplicationPolicies>, callback?: msRest.ServiceCallback<Models.ObjectReplicationPolicies>): Promise<Models.ObjectReplicationPoliciesListResponse> {
100
+ private _list(
101
+ resourceGroupName: string,
102
+ accountName: string,
103
+ options?: ObjectReplicationPoliciesListOptionalParams
104
+ ): Promise<ObjectReplicationPoliciesListResponse> {
59
105
  return this.client.sendOperationRequest(
60
- {
61
- resourceGroupName,
62
- accountName,
63
- options
64
- },
65
- listOperationSpec,
66
- callback) as Promise<Models.ObjectReplicationPoliciesListResponse>;
106
+ { resourceGroupName, accountName, options },
107
+ listOperationSpec
108
+ );
67
109
  }
68
110
 
69
111
  /**
70
112
  * Get the object replication policy of the storage account by policy ID.
71
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
72
- * is case insensitive.
73
- * @param accountName The name of the storage account within the specified resource group. Storage
74
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
75
- * letters only.
76
- * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
77
- * ID is unknown.
78
- * @param [options] The optional parameters
79
- * @returns Promise<Models.ObjectReplicationPoliciesGetResponse>
80
- */
81
- get(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, options?: msRest.RequestOptionsBase): Promise<Models.ObjectReplicationPoliciesGetResponse>;
82
- /**
83
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
84
- * is case insensitive.
85
- * @param accountName The name of the storage account within the specified resource group. Storage
86
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
87
- * letters only.
88
- * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
89
- * ID is unknown.
90
- * @param callback The callback
91
- */
92
- get(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, callback: msRest.ServiceCallback<Models.ObjectReplicationPolicy>): void;
93
- /**
94
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
95
- * is case insensitive.
113
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
114
+ * case insensitive.
96
115
  * @param accountName The name of the storage account within the specified resource group. Storage
97
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
98
- * letters only.
99
- * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
100
- * ID is unknown.
101
- * @param options The optional parameters
102
- * @param callback The callback
116
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
117
+ * only.
118
+ * @param objectReplicationPolicyId For the destination account, provide the value 'default'. Configure
119
+ * the policy on the destination account first. For the source account, provide the value of the policy
120
+ * ID that is returned when you download the policy that was defined on the destination account. The
121
+ * policy is downloaded as a JSON file.
122
+ * @param options The options parameters.
103
123
  */
104
- get(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ObjectReplicationPolicy>): void;
105
- get(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ObjectReplicationPolicy>, callback?: msRest.ServiceCallback<Models.ObjectReplicationPolicy>): Promise<Models.ObjectReplicationPoliciesGetResponse> {
124
+ get(
125
+ resourceGroupName: string,
126
+ accountName: string,
127
+ objectReplicationPolicyId: string,
128
+ options?: ObjectReplicationPoliciesGetOptionalParams
129
+ ): Promise<ObjectReplicationPoliciesGetResponse> {
106
130
  return this.client.sendOperationRequest(
107
- {
108
- resourceGroupName,
109
- accountName,
110
- objectReplicationPolicyId,
111
- options
112
- },
113
- getOperationSpec,
114
- callback) as Promise<Models.ObjectReplicationPoliciesGetResponse>;
131
+ { resourceGroupName, accountName, objectReplicationPolicyId, options },
132
+ getOperationSpec
133
+ );
115
134
  }
116
135
 
117
136
  /**
118
137
  * Create or update the object replication policy of the storage account.
119
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
120
- * is case insensitive.
121
- * @param accountName The name of the storage account within the specified resource group. Storage
122
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
123
- * letters only.
124
- * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
125
- * ID is unknown.
126
- * @param properties The object replication policy set to a storage account. A unique policy ID
127
- * will be created if absent.
128
- * @param [options] The optional parameters
129
- * @returns Promise<Models.ObjectReplicationPoliciesCreateOrUpdateResponse>
130
- */
131
- createOrUpdate(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, properties: Models.ObjectReplicationPolicy, options?: msRest.RequestOptionsBase): Promise<Models.ObjectReplicationPoliciesCreateOrUpdateResponse>;
132
- /**
133
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
134
- * is case insensitive.
135
- * @param accountName The name of the storage account within the specified resource group. Storage
136
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
137
- * letters only.
138
- * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
139
- * ID is unknown.
140
- * @param properties The object replication policy set to a storage account. A unique policy ID
141
- * will be created if absent.
142
- * @param callback The callback
143
- */
144
- createOrUpdate(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, properties: Models.ObjectReplicationPolicy, callback: msRest.ServiceCallback<Models.ObjectReplicationPolicy>): void;
145
- /**
146
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
147
- * is case insensitive.
138
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
139
+ * case insensitive.
148
140
  * @param accountName The name of the storage account within the specified resource group. Storage
149
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
150
- * letters only.
151
- * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
152
- * ID is unknown.
153
- * @param properties The object replication policy set to a storage account. A unique policy ID
154
- * will be created if absent.
155
- * @param options The optional parameters
156
- * @param callback The callback
141
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
142
+ * only.
143
+ * @param objectReplicationPolicyId For the destination account, provide the value 'default'. Configure
144
+ * the policy on the destination account first. For the source account, provide the value of the policy
145
+ * ID that is returned when you download the policy that was defined on the destination account. The
146
+ * policy is downloaded as a JSON file.
147
+ * @param properties The object replication policy set to a storage account. A unique policy ID will be
148
+ * created if absent.
149
+ * @param options The options parameters.
157
150
  */
158
- createOrUpdate(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, properties: Models.ObjectReplicationPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ObjectReplicationPolicy>): void;
159
- createOrUpdate(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, properties: Models.ObjectReplicationPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ObjectReplicationPolicy>, callback?: msRest.ServiceCallback<Models.ObjectReplicationPolicy>): Promise<Models.ObjectReplicationPoliciesCreateOrUpdateResponse> {
151
+ createOrUpdate(
152
+ resourceGroupName: string,
153
+ accountName: string,
154
+ objectReplicationPolicyId: string,
155
+ properties: ObjectReplicationPolicy,
156
+ options?: ObjectReplicationPoliciesCreateOrUpdateOptionalParams
157
+ ): Promise<ObjectReplicationPoliciesCreateOrUpdateResponse> {
160
158
  return this.client.sendOperationRequest(
161
159
  {
162
160
  resourceGroupName,
@@ -165,75 +163,42 @@ export class ObjectReplicationPoliciesOperations {
165
163
  properties,
166
164
  options
167
165
  },
168
- createOrUpdateOperationSpec,
169
- callback) as Promise<Models.ObjectReplicationPoliciesCreateOrUpdateResponse>;
166
+ createOrUpdateOperationSpec
167
+ );
170
168
  }
171
169
 
172
170
  /**
173
171
  * Deletes the object replication policy associated with the specified storage account.
174
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
175
- * is case insensitive.
172
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
173
+ * case insensitive.
176
174
  * @param accountName The name of the storage account within the specified resource group. Storage
177
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
178
- * letters only.
179
- * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
180
- * ID is unknown.
181
- * @param [options] The optional parameters
182
- * @returns Promise<msRest.RestResponse>
175
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
176
+ * only.
177
+ * @param objectReplicationPolicyId For the destination account, provide the value 'default'. Configure
178
+ * the policy on the destination account first. For the source account, provide the value of the policy
179
+ * ID that is returned when you download the policy that was defined on the destination account. The
180
+ * policy is downloaded as a JSON file.
181
+ * @param options The options parameters.
183
182
  */
184
- deleteMethod(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
185
- /**
186
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
187
- * is case insensitive.
188
- * @param accountName The name of the storage account within the specified resource group. Storage
189
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
190
- * letters only.
191
- * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
192
- * ID is unknown.
193
- * @param callback The callback
194
- */
195
- deleteMethod(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, callback: msRest.ServiceCallback<void>): void;
196
- /**
197
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
198
- * is case insensitive.
199
- * @param accountName The name of the storage account within the specified resource group. Storage
200
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
201
- * letters only.
202
- * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
203
- * ID is unknown.
204
- * @param options The optional parameters
205
- * @param callback The callback
206
- */
207
- deleteMethod(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
208
- deleteMethod(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
183
+ delete(
184
+ resourceGroupName: string,
185
+ accountName: string,
186
+ objectReplicationPolicyId: string,
187
+ options?: ObjectReplicationPoliciesDeleteOptionalParams
188
+ ): Promise<void> {
209
189
  return this.client.sendOperationRequest(
210
- {
211
- resourceGroupName,
212
- accountName,
213
- objectReplicationPolicyId,
214
- options
215
- },
216
- deleteMethodOperationSpec,
217
- callback);
190
+ { resourceGroupName, accountName, objectReplicationPolicyId, options },
191
+ deleteOperationSpec
192
+ );
218
193
  }
219
194
  }
220
-
221
195
  // Operation Specifications
222
- const serializer = new msRest.Serializer(Mappers);
223
- const listOperationSpec: msRest.OperationSpec = {
196
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
197
+
198
+ const listOperationSpec: coreClient.OperationSpec = {
199
+ path:
200
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies",
224
201
  httpMethod: "GET",
225
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies",
226
- urlParameters: [
227
- Parameters.resourceGroupName,
228
- Parameters.accountName,
229
- Parameters.subscriptionId
230
- ],
231
- queryParameters: [
232
- Parameters.apiVersion
233
- ],
234
- headerParameters: [
235
- Parameters.acceptLanguage
236
- ],
237
202
  responses: {
238
203
  200: {
239
204
  bodyMapper: Mappers.ObjectReplicationPolicies
@@ -242,24 +207,20 @@ const listOperationSpec: msRest.OperationSpec = {
242
207
  bodyMapper: Mappers.ErrorResponse
243
208
  }
244
209
  },
245
- serializer
246
- };
247
-
248
- const getOperationSpec: msRest.OperationSpec = {
249
- httpMethod: "GET",
250
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}",
210
+ queryParameters: [Parameters.apiVersion],
251
211
  urlParameters: [
252
- Parameters.resourceGroupName,
253
- Parameters.accountName,
212
+ Parameters.$host,
254
213
  Parameters.subscriptionId,
255
- Parameters.objectReplicationPolicyId
256
- ],
257
- queryParameters: [
258
- Parameters.apiVersion
259
- ],
260
- headerParameters: [
261
- Parameters.acceptLanguage
214
+ Parameters.resourceGroupName,
215
+ Parameters.accountName1
262
216
  ],
217
+ headerParameters: [Parameters.accept],
218
+ serializer
219
+ };
220
+ const getOperationSpec: coreClient.OperationSpec = {
221
+ path:
222
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}",
223
+ httpMethod: "GET",
263
224
  responses: {
264
225
  200: {
265
226
  bodyMapper: Mappers.ObjectReplicationPolicy
@@ -268,31 +229,21 @@ const getOperationSpec: msRest.OperationSpec = {
268
229
  bodyMapper: Mappers.ErrorResponse
269
230
  }
270
231
  },
271
- serializer
272
- };
273
-
274
- const createOrUpdateOperationSpec: msRest.OperationSpec = {
275
- httpMethod: "PUT",
276
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}",
232
+ queryParameters: [Parameters.apiVersion],
277
233
  urlParameters: [
278
- Parameters.resourceGroupName,
279
- Parameters.accountName,
234
+ Parameters.$host,
280
235
  Parameters.subscriptionId,
236
+ Parameters.resourceGroupName,
237
+ Parameters.accountName1,
281
238
  Parameters.objectReplicationPolicyId
282
239
  ],
283
- queryParameters: [
284
- Parameters.apiVersion
285
- ],
286
- headerParameters: [
287
- Parameters.acceptLanguage
288
- ],
289
- requestBody: {
290
- parameterPath: "properties",
291
- mapper: {
292
- ...Mappers.ObjectReplicationPolicy,
293
- required: true
294
- }
295
- },
240
+ headerParameters: [Parameters.accept],
241
+ serializer
242
+ };
243
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
244
+ path:
245
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}",
246
+ httpMethod: "PUT",
296
247
  responses: {
297
248
  200: {
298
249
  bodyMapper: Mappers.ObjectReplicationPolicy
@@ -301,24 +252,23 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = {
301
252
  bodyMapper: Mappers.ErrorResponse
302
253
  }
303
254
  },
304
- serializer
305
- };
306
-
307
- const deleteMethodOperationSpec: msRest.OperationSpec = {
308
- httpMethod: "DELETE",
309
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}",
255
+ requestBody: Parameters.properties3,
256
+ queryParameters: [Parameters.apiVersion],
310
257
  urlParameters: [
311
- Parameters.resourceGroupName,
312
- Parameters.accountName,
258
+ Parameters.$host,
313
259
  Parameters.subscriptionId,
260
+ Parameters.resourceGroupName,
261
+ Parameters.accountName1,
314
262
  Parameters.objectReplicationPolicyId
315
263
  ],
316
- queryParameters: [
317
- Parameters.apiVersion
318
- ],
319
- headerParameters: [
320
- Parameters.acceptLanguage
321
- ],
264
+ headerParameters: [Parameters.accept, Parameters.contentType],
265
+ mediaType: "json",
266
+ serializer
267
+ };
268
+ const deleteOperationSpec: coreClient.OperationSpec = {
269
+ path:
270
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}",
271
+ httpMethod: "DELETE",
322
272
  responses: {
323
273
  200: {},
324
274
  204: {},
@@ -326,5 +276,14 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
326
276
  bodyMapper: Mappers.ErrorResponse
327
277
  }
328
278
  },
279
+ queryParameters: [Parameters.apiVersion],
280
+ urlParameters: [
281
+ Parameters.$host,
282
+ Parameters.subscriptionId,
283
+ Parameters.resourceGroupName,
284
+ Parameters.accountName1,
285
+ Parameters.objectReplicationPolicyId
286
+ ],
287
+ headerParameters: [Parameters.accept],
329
288
  serializer
330
289
  };
@@ -3,71 +3,93 @@
3
3
  * Licensed under the MIT License.
4
4
  *
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is
7
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
7
  */
9
8
 
10
- import * as msRest from "@azure/ms-rest-js";
11
- import * as Models from "../models";
12
- import * as Mappers from "../models/operationsMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Operations } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
13
  import * as Parameters from "../models/parameters";
14
- import { StorageManagementClientContext } from "../storageManagementClientContext";
14
+ import { StorageManagementClient } from "../storageManagementClient";
15
+ import {
16
+ Operation,
17
+ OperationsListOptionalParams,
18
+ OperationsListResponse
19
+ } from "../models";
15
20
 
16
- /** Class representing a Operations. */
17
- export class Operations {
18
- private readonly client: StorageManagementClientContext;
21
+ /// <reference lib="esnext.asynciterable" />
22
+ /** Class containing Operations operations. */
23
+ export class OperationsImpl implements Operations {
24
+ private readonly client: StorageManagementClient;
19
25
 
20
26
  /**
21
- * Create a Operations.
22
- * @param {StorageManagementClientContext} client Reference to the service client.
27
+ * Initialize a new instance of the class Operations class.
28
+ * @param client Reference to the service client
23
29
  */
24
- constructor(client: StorageManagementClientContext) {
30
+ constructor(client: StorageManagementClient) {
25
31
  this.client = client;
26
32
  }
27
33
 
28
34
  /**
29
35
  * Lists all of the available Storage Rest API operations.
30
- * @param [options] The optional parameters
31
- * @returns Promise<Models.OperationsListResponse>
36
+ * @param options The options parameters.
32
37
  */
33
- list(options?: msRest.RequestOptionsBase): Promise<Models.OperationsListResponse>;
34
- /**
35
- * @param callback The callback
36
- */
37
- list(callback: msRest.ServiceCallback<Models.OperationListResult>): void;
38
+ public list(
39
+ options?: OperationsListOptionalParams
40
+ ): PagedAsyncIterableIterator<Operation> {
41
+ const iter = this.listPagingAll(options);
42
+ return {
43
+ next() {
44
+ return iter.next();
45
+ },
46
+ [Symbol.asyncIterator]() {
47
+ return this;
48
+ },
49
+ byPage: () => {
50
+ return this.listPagingPage(options);
51
+ }
52
+ };
53
+ }
54
+
55
+ private async *listPagingPage(
56
+ options?: OperationsListOptionalParams
57
+ ): AsyncIterableIterator<Operation[]> {
58
+ let result = await this._list(options);
59
+ yield result.value || [];
60
+ }
61
+
62
+ private async *listPagingAll(
63
+ options?: OperationsListOptionalParams
64
+ ): AsyncIterableIterator<Operation> {
65
+ for await (const page of this.listPagingPage(options)) {
66
+ yield* page;
67
+ }
68
+ }
69
+
38
70
  /**
39
- * @param options The optional parameters
40
- * @param callback The callback
71
+ * Lists all of the available Storage Rest API operations.
72
+ * @param options The options parameters.
41
73
  */
42
- list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OperationListResult>): void;
43
- list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationListResult>, callback?: msRest.ServiceCallback<Models.OperationListResult>): Promise<Models.OperationsListResponse> {
44
- return this.client.sendOperationRequest(
45
- {
46
- options
47
- },
48
- listOperationSpec,
49
- callback) as Promise<Models.OperationsListResponse>;
74
+ private _list(
75
+ options?: OperationsListOptionalParams
76
+ ): Promise<OperationsListResponse> {
77
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
50
78
  }
51
79
  }
52
-
53
80
  // Operation Specifications
54
- const serializer = new msRest.Serializer(Mappers);
55
- const listOperationSpec: msRest.OperationSpec = {
81
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
82
+
83
+ const listOperationSpec: coreClient.OperationSpec = {
84
+ path: "/providers/Microsoft.Storage/operations",
56
85
  httpMethod: "GET",
57
- path: "providers/Microsoft.Storage/operations",
58
- queryParameters: [
59
- Parameters.apiVersion
60
- ],
61
- headerParameters: [
62
- Parameters.acceptLanguage
63
- ],
64
86
  responses: {
65
87
  200: {
66
88
  bodyMapper: Mappers.OperationListResult
67
- },
68
- default: {
69
- bodyMapper: Mappers.CloudError
70
89
  }
71
90
  },
91
+ queryParameters: [Parameters.apiVersion],
92
+ urlParameters: [Parameters.$host],
93
+ headerParameters: [Parameters.accept],
72
94
  serializer
73
95
  };