@azure/arm-storage 16.1.1 → 17.0.0-alpha.20211111.1

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 (388) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/{LICENSE.txt → LICENSE} +1 -1
  3. package/README.md +63 -80
  4. package/dist/index.js +10964 -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/esm/coreClientLro.d.ts +26 -0
  9. package/esm/coreClientLro.d.ts.map +1 -0
  10. package/esm/coreClientLro.js +186 -0
  11. package/esm/coreClientLro.js.map +1 -0
  12. package/esm/index.d.ts +5002 -0
  13. package/esm/index.d.ts.map +1 -0
  14. package/esm/index.js +13 -0
  15. package/esm/index.js.map +1 -0
  16. package/esm/lro/azureAsyncPolling.d.ts +3 -0
  17. package/esm/lro/azureAsyncPolling.d.ts.map +1 -0
  18. package/esm/lro/azureAsyncPolling.js +67 -0
  19. package/esm/lro/azureAsyncPolling.js.map +1 -0
  20. package/esm/lro/bodyPolling.d.ts +8 -0
  21. package/esm/lro/bodyPolling.d.ts.map +1 -0
  22. package/esm/lro/bodyPolling.js +37 -0
  23. package/esm/lro/bodyPolling.js.map +1 -0
  24. package/esm/lro/index.d.ts +4 -0
  25. package/esm/lro/index.d.ts.map +1 -0
  26. package/{src/models/operationsMappers.ts → esm/lro/index.js} +5 -10
  27. package/esm/lro/index.js.map +1 -0
  28. package/esm/lro/locationPolling.d.ts +3 -0
  29. package/esm/lro/locationPolling.d.ts.map +1 -0
  30. package/esm/lro/locationPolling.js +19 -0
  31. package/esm/lro/locationPolling.js.map +1 -0
  32. package/esm/lro/lroEngine.d.ts +14 -0
  33. package/esm/lro/lroEngine.d.ts.map +1 -0
  34. package/esm/lro/lroEngine.js +41 -0
  35. package/esm/lro/lroEngine.js.map +1 -0
  36. package/esm/lro/models.d.ts +138 -0
  37. package/esm/lro/models.d.ts.map +1 -0
  38. package/esm/lro/models.js +14 -0
  39. package/esm/lro/models.js.map +1 -0
  40. package/esm/lro/operation.d.ts +36 -0
  41. package/esm/lro/operation.d.ts.map +1 -0
  42. package/esm/lro/operation.js +82 -0
  43. package/esm/lro/operation.js.map +1 -0
  44. package/esm/lro/passthrough.d.ts +3 -0
  45. package/esm/lro/passthrough.d.ts.map +1 -0
  46. package/esm/{models/operationsMappers.js → lro/passthrough.js} +8 -2
  47. package/esm/lro/passthrough.js.map +1 -0
  48. package/esm/lro/requestUtils.d.ts +16 -0
  49. package/esm/lro/requestUtils.d.ts.map +1 -0
  50. package/esm/lro/requestUtils.js +73 -0
  51. package/esm/lro/requestUtils.js.map +1 -0
  52. package/esm/lro/stateMachine.d.ts +18 -0
  53. package/esm/lro/stateMachine.d.ts.map +1 -0
  54. package/esm/lro/stateMachine.js +84 -0
  55. package/esm/lro/stateMachine.js.map +1 -0
  56. package/esm/models/index.d.ts +2673 -4395
  57. package/esm/models/index.d.ts.map +1 -1
  58. package/esm/models/index.js +331 -0
  59. package/esm/models/index.js.map +1 -1
  60. package/esm/models/mappers.d.ts +146 -138
  61. package/esm/models/mappers.d.ts.map +1 -1
  62. package/esm/models/mappers.js +2734 -2563
  63. package/esm/models/mappers.js.map +1 -1
  64. package/esm/models/parameters.d.ts +59 -33
  65. package/esm/models/parameters.d.ts.map +1 -1
  66. package/esm/models/parameters.js +267 -159
  67. package/esm/models/parameters.js.map +1 -1
  68. package/esm/operations/blobContainers.d.ts +213 -561
  69. package/esm/operations/blobContainers.d.ts.map +1 -1
  70. package/esm/operations/blobContainers.js +578 -429
  71. package/esm/operations/blobContainers.js.map +1 -1
  72. package/esm/operations/blobInventoryPolicies.d.ts +47 -109
  73. package/esm/operations/blobInventoryPolicies.d.ts.map +1 -1
  74. package/esm/operations/blobInventoryPolicies.js +163 -105
  75. package/esm/operations/blobInventoryPolicies.js.map +1 -1
  76. package/esm/operations/blobServices.d.ts +39 -89
  77. package/esm/operations/blobServices.d.ts.map +1 -1
  78. package/esm/operations/blobServices.js +133 -89
  79. package/esm/operations/blobServices.js.map +1 -1
  80. package/esm/operations/deletedAccounts.d.ts +20 -47
  81. package/esm/operations/deletedAccounts.d.ts.map +1 -1
  82. package/esm/operations/deletedAccounts.js +111 -69
  83. package/esm/operations/deletedAccounts.js.map +1 -1
  84. package/esm/operations/encryptionScopes.d.ts +65 -166
  85. package/esm/operations/encryptionScopes.d.ts.map +1 -1
  86. package/esm/operations/encryptionScopes.js +211 -131
  87. package/esm/operations/encryptionScopes.js.map +1 -1
  88. package/esm/operations/fileServices.d.ts +25 -89
  89. package/esm/operations/fileServices.d.ts.map +1 -1
  90. package/esm/operations/fileServices.js +86 -83
  91. package/esm/operations/fileServices.js.map +1 -1
  92. package/esm/operations/fileShares.d.ts +100 -256
  93. package/esm/operations/fileShares.d.ts.map +1 -1
  94. package/esm/operations/fileShares.js +316 -164
  95. package/esm/operations/fileShares.js.map +1 -1
  96. package/esm/operations/index.d.ts.map +1 -1
  97. package/esm/operations/index.js +1 -2
  98. package/esm/operations/index.js.map +1 -1
  99. package/esm/operations/managementPolicies.d.ts +30 -89
  100. package/esm/operations/managementPolicies.d.ts.map +1 -1
  101. package/esm/operations/managementPolicies.js +89 -92
  102. package/esm/operations/managementPolicies.js.map +1 -1
  103. package/esm/operations/objectReplicationPoliciesOperations.d.ts +54 -130
  104. package/esm/operations/objectReplicationPoliciesOperations.d.ts.map +1 -1
  105. package/esm/operations/objectReplicationPoliciesOperations.js +170 -102
  106. package/esm/operations/objectReplicationPoliciesOperations.js.map +1 -1
  107. package/esm/operations/operations.d.ts +14 -15
  108. package/esm/operations/operations.d.ts.map +1 -1
  109. package/esm/operations/operations.js +67 -29
  110. package/esm/operations/operations.js.map +1 -1
  111. package/esm/operations/privateEndpointConnections.d.ts +46 -126
  112. package/esm/operations/privateEndpointConnections.d.ts.map +1 -1
  113. package/esm/operations/privateEndpointConnections.js +171 -103
  114. package/esm/operations/privateEndpointConnections.js.map +1 -1
  115. package/esm/operations/privateLinkResources.d.ts +11 -31
  116. package/esm/operations/privateLinkResources.d.ts.map +1 -1
  117. package/esm/operations/privateLinkResources.js +32 -36
  118. package/esm/operations/privateLinkResources.js.map +1 -1
  119. package/esm/operations/queue.d.ts +69 -196
  120. package/esm/operations/queue.d.ts.map +1 -1
  121. package/esm/operations/queue.js +230 -162
  122. package/esm/operations/queue.js.map +1 -1
  123. package/esm/operations/queueServices.d.ts +29 -87
  124. package/esm/operations/queueServices.d.ts.map +1 -1
  125. package/esm/operations/queueServices.js +86 -87
  126. package/esm/operations/queueServices.js.map +1 -1
  127. package/esm/operations/skus.d.ts +14 -15
  128. package/esm/operations/skus.d.ts.map +1 -1
  129. package/esm/operations/skus.js +67 -32
  130. package/esm/operations/skus.js.map +1 -1
  131. package/esm/operations/storageAccounts.d.ts +163 -381
  132. package/esm/operations/storageAccounts.d.ts.map +1 -1
  133. package/esm/operations/storageAccounts.js +605 -501
  134. package/esm/operations/storageAccounts.js.map +1 -1
  135. package/esm/operations/tableOperations.d.ts +67 -184
  136. package/esm/operations/tableOperations.d.ts.map +1 -1
  137. package/esm/operations/tableOperations.js +220 -143
  138. package/esm/operations/tableOperations.js.map +1 -1
  139. package/esm/operations/tableServices.d.ts +29 -87
  140. package/esm/operations/tableServices.d.ts.map +1 -1
  141. package/esm/operations/tableServices.js +86 -87
  142. package/esm/operations/tableServices.js.map +1 -1
  143. package/esm/operations/usages.d.ts +15 -18
  144. package/esm/operations/usages.d.ts.map +1 -1
  145. package/esm/operations/usages.js +73 -34
  146. package/esm/operations/usages.js.map +1 -1
  147. package/esm/operationsInterfaces/blobContainers.d.ts +247 -0
  148. package/esm/operationsInterfaces/blobContainers.d.ts.map +1 -0
  149. package/{src/models/usagesMappers.ts → esm/operationsInterfaces/blobContainers.js} +2 -7
  150. package/esm/operationsInterfaces/blobContainers.js.map +1 -0
  151. package/esm/operationsInterfaces/blobInventoryPolicies.d.ts +54 -0
  152. package/esm/operationsInterfaces/blobInventoryPolicies.d.ts.map +1 -0
  153. package/esm/{models/usagesMappers.js → operationsInterfaces/blobInventoryPolicies.js} +2 -2
  154. package/esm/operationsInterfaces/blobInventoryPolicies.js.map +1 -0
  155. package/esm/operationsInterfaces/blobServices.d.ts +41 -0
  156. package/esm/operationsInterfaces/blobServices.d.ts.map +1 -0
  157. package/{src/models/skusMappers.ts → esm/operationsInterfaces/blobServices.js} +2 -8
  158. package/esm/operationsInterfaces/blobServices.js.map +1 -0
  159. package/esm/operationsInterfaces/deletedAccounts.d.ts +19 -0
  160. package/esm/operationsInterfaces/deletedAccounts.d.ts.map +1 -0
  161. package/esm/{models/skusMappers.js → operationsInterfaces/deletedAccounts.js} +2 -2
  162. package/esm/operationsInterfaces/deletedAccounts.js.map +1 -0
  163. package/esm/operationsInterfaces/encryptionScopes.d.ts +64 -0
  164. package/esm/operationsInterfaces/encryptionScopes.d.ts.map +1 -0
  165. package/esm/operationsInterfaces/encryptionScopes.js +9 -0
  166. package/esm/operationsInterfaces/encryptionScopes.js.map +1 -0
  167. package/esm/operationsInterfaces/fileServices.d.ts +39 -0
  168. package/esm/operationsInterfaces/fileServices.d.ts.map +1 -0
  169. package/esm/operationsInterfaces/fileServices.js +9 -0
  170. package/esm/operationsInterfaces/fileServices.js.map +1 -0
  171. package/esm/operationsInterfaces/fileShares.d.ts +102 -0
  172. package/esm/operationsInterfaces/fileShares.d.ts.map +1 -0
  173. package/esm/operationsInterfaces/fileShares.js +9 -0
  174. package/esm/operationsInterfaces/fileShares.js.map +1 -0
  175. package/esm/operationsInterfaces/index.d.ts +20 -0
  176. package/esm/operationsInterfaces/index.d.ts.map +1 -0
  177. package/esm/operationsInterfaces/index.js +27 -0
  178. package/esm/operationsInterfaces/index.js.map +1 -0
  179. package/esm/operationsInterfaces/managementPolicies.d.ts +42 -0
  180. package/esm/operationsInterfaces/managementPolicies.d.ts.map +1 -0
  181. package/esm/operationsInterfaces/managementPolicies.js +9 -0
  182. package/esm/operationsInterfaces/managementPolicies.js.map +1 -0
  183. package/esm/operationsInterfaces/objectReplicationPoliciesOperations.d.ts +61 -0
  184. package/esm/operationsInterfaces/objectReplicationPoliciesOperations.d.ts.map +1 -0
  185. package/esm/operationsInterfaces/objectReplicationPoliciesOperations.js +9 -0
  186. package/esm/operationsInterfaces/objectReplicationPoliciesOperations.js.map +1 -0
  187. package/esm/operationsInterfaces/operations.d.ts +12 -0
  188. package/esm/operationsInterfaces/operations.d.ts.map +1 -0
  189. package/esm/operationsInterfaces/operations.js +9 -0
  190. package/esm/operationsInterfaces/operations.js.map +1 -0
  191. package/esm/operationsInterfaces/privateEndpointConnections.d.ts +54 -0
  192. package/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  193. package/esm/operationsInterfaces/privateEndpointConnections.js +9 -0
  194. package/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  195. package/esm/operationsInterfaces/privateLinkResources.d.ts +15 -0
  196. package/esm/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  197. package/esm/operationsInterfaces/privateLinkResources.js +9 -0
  198. package/esm/operationsInterfaces/privateLinkResources.js.map +1 -0
  199. package/esm/operationsInterfaces/queue.d.ts +71 -0
  200. package/esm/operationsInterfaces/queue.d.ts.map +1 -0
  201. package/esm/operationsInterfaces/queue.js +9 -0
  202. package/esm/operationsInterfaces/queue.js.map +1 -0
  203. package/esm/operationsInterfaces/queueServices.d.ts +39 -0
  204. package/esm/operationsInterfaces/queueServices.d.ts.map +1 -0
  205. package/esm/operationsInterfaces/queueServices.js +9 -0
  206. package/esm/operationsInterfaces/queueServices.js.map +1 -0
  207. package/esm/operationsInterfaces/skus.d.ts +12 -0
  208. package/esm/operationsInterfaces/skus.d.ts.map +1 -0
  209. package/esm/operationsInterfaces/skus.js +9 -0
  210. package/esm/operationsInterfaces/skus.js.map +1 -0
  211. package/esm/operationsInterfaces/storageAccounts.d.ts +197 -0
  212. package/esm/operationsInterfaces/storageAccounts.d.ts.map +1 -0
  213. package/esm/operationsInterfaces/storageAccounts.js +9 -0
  214. package/esm/operationsInterfaces/storageAccounts.js.map +1 -0
  215. package/esm/operationsInterfaces/tableOperations.d.ts +69 -0
  216. package/esm/operationsInterfaces/tableOperations.d.ts.map +1 -0
  217. package/esm/operationsInterfaces/tableOperations.js +9 -0
  218. package/esm/operationsInterfaces/tableOperations.js.map +1 -0
  219. package/esm/operationsInterfaces/tableServices.d.ts +39 -0
  220. package/esm/operationsInterfaces/tableServices.d.ts.map +1 -0
  221. package/esm/operationsInterfaces/tableServices.js +9 -0
  222. package/esm/operationsInterfaces/tableServices.js.map +1 -0
  223. package/esm/operationsInterfaces/usages.d.ts +13 -0
  224. package/esm/operationsInterfaces/usages.d.ts.map +1 -0
  225. package/esm/operationsInterfaces/usages.js +9 -0
  226. package/esm/operationsInterfaces/usages.js.map +1 -0
  227. package/esm/storageManagementClient.d.ts +26 -35
  228. package/esm/storageManagementClient.d.ts.map +1 -1
  229. package/esm/storageManagementClient.js +27 -42
  230. package/esm/storageManagementClient.js.map +1 -1
  231. package/esm/storageManagementClientContext.d.ts +10 -16
  232. package/esm/storageManagementClientContext.d.ts.map +1 -1
  233. package/esm/storageManagementClientContext.js +32 -44
  234. package/esm/storageManagementClientContext.js.map +1 -1
  235. package/package.json +57 -18
  236. package/review/arm-storage.api.md +2659 -0
  237. package/rollup.config.js +181 -30
  238. package/src/coreClientLro.ts +323 -0
  239. package/src/index.ts +13 -0
  240. package/src/lro/azureAsyncPolling.ts +96 -0
  241. package/src/lro/bodyPolling.ts +54 -0
  242. package/src/lro/index.ts +26 -0
  243. package/src/lro/locationPolling.ts +30 -0
  244. package/src/lro/lroEngine.ts +61 -0
  245. package/src/lro/models.ts +173 -0
  246. package/src/lro/operation.ts +120 -0
  247. package/src/lro/passthrough.ts +23 -0
  248. package/src/lro/requestUtils.ts +105 -0
  249. package/src/lro/stateMachine.ts +138 -0
  250. package/src/models/index.ts +2813 -4492
  251. package/src/models/mappers.ts +2745 -2553
  252. package/src/models/parameters.ts +354 -160
  253. package/src/operations/blobContainers.ts +719 -1037
  254. package/src/operations/blobInventoryPolicies.ts +182 -211
  255. package/src/operations/blobServices.ts +150 -177
  256. package/src/operations/deletedAccounts.ts +111 -112
  257. package/src/operations/encryptionScopes.ts +233 -291
  258. package/src/operations/fileServices.ts +99 -171
  259. package/src/operations/fileShares.ts +335 -560
  260. package/src/operations/index.ts +1 -2
  261. package/src/operations/managementPolicies.ts +102 -175
  262. package/src/operations/objectReplicationPoliciesOperations.ts +187 -227
  263. package/src/operations/operations.ts +61 -38
  264. package/src/operations/privateEndpointConnections.ts +177 -214
  265. package/src/operations/privateLinkResources.ts +37 -60
  266. package/src/operations/queue.ts +269 -365
  267. package/src/operations/queueServices.ts +103 -173
  268. package/src/operations/skus.ts +59 -41
  269. package/src/operations/storageAccounts.ts +779 -872
  270. package/src/operations/tableOperations.ts +255 -328
  271. package/src/operations/tableServices.ts +103 -173
  272. package/src/operations/usages.ts +73 -45
  273. package/src/operationsInterfaces/blobContainers.ts +366 -0
  274. package/src/operationsInterfaces/blobInventoryPolicies.ts +92 -0
  275. package/src/operationsInterfaces/blobServices.ts +70 -0
  276. package/src/operationsInterfaces/deletedAccounts.ts +39 -0
  277. package/src/operationsInterfaces/encryptionScopes.ts +103 -0
  278. package/src/operationsInterfaces/fileServices.ts +68 -0
  279. package/src/operationsInterfaces/fileShares.ts +163 -0
  280. package/src/operationsInterfaces/index.ts +27 -0
  281. package/src/operationsInterfaces/managementPolicies.ts +74 -0
  282. package/src/operationsInterfaces/objectReplicationPoliciesOperations.ts +98 -0
  283. package/src/operationsInterfaces/operations.ts +23 -0
  284. package/src/operationsInterfaces/privateEndpointConnections.ts +91 -0
  285. package/src/operationsInterfaces/privateLinkResources.ts +30 -0
  286. package/src/operationsInterfaces/queue.ts +117 -0
  287. package/src/operationsInterfaces/queueServices.ts +68 -0
  288. package/src/operationsInterfaces/skus.ts +23 -0
  289. package/src/operationsInterfaces/storageAccounts.ts +320 -0
  290. package/src/operationsInterfaces/tableOperations.ts +112 -0
  291. package/src/operationsInterfaces/tableServices.ts +68 -0
  292. package/src/operationsInterfaces/usages.ts +25 -0
  293. package/src/storageManagementClient.ts +94 -67
  294. package/src/storageManagementClientContext.ts +42 -46
  295. package/tsconfig.json +2 -1
  296. package/dist/arm-storage.js +0 -10687
  297. package/dist/arm-storage.js.map +0 -1
  298. package/dist/arm-storage.min.js +0 -1
  299. package/dist/arm-storage.min.js.map +0 -1
  300. package/esm/models/blobContainersMappers.d.ts +0 -2
  301. package/esm/models/blobContainersMappers.d.ts.map +0 -1
  302. package/esm/models/blobContainersMappers.js +0 -9
  303. package/esm/models/blobContainersMappers.js.map +0 -1
  304. package/esm/models/blobInventoryPoliciesMappers.d.ts +0 -2
  305. package/esm/models/blobInventoryPoliciesMappers.d.ts.map +0 -1
  306. package/esm/models/blobInventoryPoliciesMappers.js +0 -9
  307. package/esm/models/blobInventoryPoliciesMappers.js.map +0 -1
  308. package/esm/models/blobServicesMappers.d.ts +0 -2
  309. package/esm/models/blobServicesMappers.d.ts.map +0 -1
  310. package/esm/models/blobServicesMappers.js +0 -9
  311. package/esm/models/blobServicesMappers.js.map +0 -1
  312. package/esm/models/deletedAccountsMappers.d.ts +0 -2
  313. package/esm/models/deletedAccountsMappers.d.ts.map +0 -1
  314. package/esm/models/deletedAccountsMappers.js +0 -9
  315. package/esm/models/deletedAccountsMappers.js.map +0 -1
  316. package/esm/models/encryptionScopesMappers.d.ts +0 -2
  317. package/esm/models/encryptionScopesMappers.d.ts.map +0 -1
  318. package/esm/models/encryptionScopesMappers.js +0 -9
  319. package/esm/models/encryptionScopesMappers.js.map +0 -1
  320. package/esm/models/fileServicesMappers.d.ts +0 -2
  321. package/esm/models/fileServicesMappers.d.ts.map +0 -1
  322. package/esm/models/fileServicesMappers.js +0 -9
  323. package/esm/models/fileServicesMappers.js.map +0 -1
  324. package/esm/models/fileSharesMappers.d.ts +0 -2
  325. package/esm/models/fileSharesMappers.d.ts.map +0 -1
  326. package/esm/models/fileSharesMappers.js +0 -9
  327. package/esm/models/fileSharesMappers.js.map +0 -1
  328. package/esm/models/managementPoliciesMappers.d.ts +0 -2
  329. package/esm/models/managementPoliciesMappers.d.ts.map +0 -1
  330. package/esm/models/managementPoliciesMappers.js +0 -9
  331. package/esm/models/managementPoliciesMappers.js.map +0 -1
  332. package/esm/models/objectReplicationPoliciesOperationsMappers.d.ts +0 -2
  333. package/esm/models/objectReplicationPoliciesOperationsMappers.d.ts.map +0 -1
  334. package/esm/models/objectReplicationPoliciesOperationsMappers.js +0 -9
  335. package/esm/models/objectReplicationPoliciesOperationsMappers.js.map +0 -1
  336. package/esm/models/operationsMappers.d.ts +0 -2
  337. package/esm/models/operationsMappers.d.ts.map +0 -1
  338. package/esm/models/operationsMappers.js.map +0 -1
  339. package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
  340. package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
  341. package/esm/models/privateEndpointConnectionsMappers.js +0 -9
  342. package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
  343. package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
  344. package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
  345. package/esm/models/privateLinkResourcesMappers.js +0 -9
  346. package/esm/models/privateLinkResourcesMappers.js.map +0 -1
  347. package/esm/models/queueMappers.d.ts +0 -2
  348. package/esm/models/queueMappers.d.ts.map +0 -1
  349. package/esm/models/queueMappers.js +0 -9
  350. package/esm/models/queueMappers.js.map +0 -1
  351. package/esm/models/queueServicesMappers.d.ts +0 -2
  352. package/esm/models/queueServicesMappers.d.ts.map +0 -1
  353. package/esm/models/queueServicesMappers.js +0 -9
  354. package/esm/models/queueServicesMappers.js.map +0 -1
  355. package/esm/models/skusMappers.d.ts +0 -2
  356. package/esm/models/skusMappers.d.ts.map +0 -1
  357. package/esm/models/skusMappers.js.map +0 -1
  358. package/esm/models/storageAccountsMappers.d.ts +0 -2
  359. package/esm/models/storageAccountsMappers.d.ts.map +0 -1
  360. package/esm/models/storageAccountsMappers.js +0 -9
  361. package/esm/models/storageAccountsMappers.js.map +0 -1
  362. package/esm/models/tableOperationsMappers.d.ts +0 -2
  363. package/esm/models/tableOperationsMappers.d.ts.map +0 -1
  364. package/esm/models/tableOperationsMappers.js +0 -9
  365. package/esm/models/tableOperationsMappers.js.map +0 -1
  366. package/esm/models/tableServicesMappers.d.ts +0 -2
  367. package/esm/models/tableServicesMappers.d.ts.map +0 -1
  368. package/esm/models/tableServicesMappers.js +0 -9
  369. package/esm/models/tableServicesMappers.js.map +0 -1
  370. package/esm/models/usagesMappers.d.ts +0 -2
  371. package/esm/models/usagesMappers.d.ts.map +0 -1
  372. package/esm/models/usagesMappers.js.map +0 -1
  373. package/src/models/blobContainersMappers.ts +0 -106
  374. package/src/models/blobInventoryPoliciesMappers.ts +0 -99
  375. package/src/models/blobServicesMappers.ts +0 -98
  376. package/src/models/deletedAccountsMappers.ts +0 -99
  377. package/src/models/encryptionScopesMappers.ts +0 -100
  378. package/src/models/fileServicesMappers.ts +0 -98
  379. package/src/models/fileSharesMappers.ts +0 -99
  380. package/src/models/managementPoliciesMappers.ts +0 -97
  381. package/src/models/objectReplicationPoliciesOperationsMappers.ts +0 -99
  382. package/src/models/privateEndpointConnectionsMappers.ts +0 -100
  383. package/src/models/privateLinkResourcesMappers.ts +0 -98
  384. package/src/models/queueMappers.ts +0 -98
  385. package/src/models/queueServicesMappers.ts +0 -98
  386. package/src/models/storageAccountsMappers.ts +0 -109
  387. package/src/models/tableOperationsMappers.ts +0 -98
  388. package/src/models/tableServicesMappers.ts +0 -98
@@ -3,23 +3,36 @@
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/privateEndpointConnectionsMappers";
9
+ import "@azure/core-paging";
10
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
+ import { PrivateEndpointConnections } from "../operationsInterfaces";
12
+ import * as coreClient from "@azure/core-client";
13
+ import * as Mappers from "../models/mappers";
13
14
  import * as Parameters from "../models/parameters";
14
15
  import { StorageManagementClientContext } from "../storageManagementClientContext";
16
+ import {
17
+ PrivateEndpointConnection,
18
+ PrivateEndpointConnectionsListOptionalParams,
19
+ PrivateEndpointConnectionsListResponse,
20
+ PrivateEndpointConnectionsGetOptionalParams,
21
+ PrivateEndpointConnectionsGetResponse,
22
+ PrivateEndpointConnectionsPutOptionalParams,
23
+ PrivateEndpointConnectionsPutResponse,
24
+ PrivateEndpointConnectionsDeleteOptionalParams
25
+ } from "../models";
15
26
 
27
+ /// <reference lib="esnext.asynciterable" />
16
28
  /** Class representing a PrivateEndpointConnections. */
17
- export class PrivateEndpointConnections {
29
+ export class PrivateEndpointConnectionsImpl
30
+ implements PrivateEndpointConnections {
18
31
  private readonly client: StorageManagementClientContext;
19
32
 
20
33
  /**
21
- * Create a PrivateEndpointConnections.
22
- * @param {StorageManagementClientContext} client Reference to the service client.
34
+ * Initialize a new instance of the class PrivateEndpointConnections class.
35
+ * @param client Reference to the service client
23
36
  */
24
37
  constructor(client: StorageManagementClientContext) {
25
38
  this.client = client;
@@ -27,82 +40,92 @@ export class PrivateEndpointConnections {
27
40
 
28
41
  /**
29
42
  * List all the private endpoint connections 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.
43
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
44
+ * case insensitive.
32
45
  * @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.PrivateEndpointConnectionsListResponse>
46
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
47
+ * only.
48
+ * @param options The options parameters.
37
49
  */
38
- list(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateEndpointConnectionsListResponse>;
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.PrivateEndpointConnectionListResult>): void;
50
+ public list(
51
+ resourceGroupName: string,
52
+ accountName: string,
53
+ options?: PrivateEndpointConnectionsListOptionalParams
54
+ ): PagedAsyncIterableIterator<PrivateEndpointConnection> {
55
+ const iter = this.listPagingAll(resourceGroupName, accountName, options);
56
+ return {
57
+ next() {
58
+ return iter.next();
59
+ },
60
+ [Symbol.asyncIterator]() {
61
+ return this;
62
+ },
63
+ byPage: () => {
64
+ return this.listPagingPage(resourceGroupName, accountName, options);
65
+ }
66
+ };
67
+ }
68
+
69
+ private async *listPagingPage(
70
+ resourceGroupName: string,
71
+ accountName: string,
72
+ options?: PrivateEndpointConnectionsListOptionalParams
73
+ ): AsyncIterableIterator<PrivateEndpointConnection[]> {
74
+ let result = await this._list(resourceGroupName, accountName, options);
75
+ yield result.value || [];
76
+ }
77
+
78
+ private async *listPagingAll(
79
+ resourceGroupName: string,
80
+ accountName: string,
81
+ options?: PrivateEndpointConnectionsListOptionalParams
82
+ ): AsyncIterableIterator<PrivateEndpointConnection> {
83
+ for await (const page of this.listPagingPage(
84
+ resourceGroupName,
85
+ accountName,
86
+ options
87
+ )) {
88
+ yield* page;
89
+ }
90
+ }
91
+
48
92
  /**
49
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
50
- * is case insensitive.
93
+ * List all the private endpoint connections associated with the storage account.
94
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
95
+ * case insensitive.
51
96
  * @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
97
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
98
+ * only.
99
+ * @param options The options parameters.
56
100
  */
57
- list(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PrivateEndpointConnectionListResult>): void;
58
- list(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PrivateEndpointConnectionListResult>, callback?: msRest.ServiceCallback<Models.PrivateEndpointConnectionListResult>): Promise<Models.PrivateEndpointConnectionsListResponse> {
101
+ private _list(
102
+ resourceGroupName: string,
103
+ accountName: string,
104
+ options?: PrivateEndpointConnectionsListOptionalParams
105
+ ): Promise<PrivateEndpointConnectionsListResponse> {
59
106
  return this.client.sendOperationRequest(
60
- {
61
- resourceGroupName,
62
- accountName,
63
- options
64
- },
65
- listOperationSpec,
66
- callback) as Promise<Models.PrivateEndpointConnectionsListResponse>;
107
+ { resourceGroupName, accountName, options },
108
+ listOperationSpec
109
+ );
67
110
  }
68
111
 
69
112
  /**
70
113
  * Gets the specified private endpoint connection associated with the storage account.
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 privateEndpointConnectionName The name of the private endpoint connection associated with
77
- * the Azure resource
78
- * @param [options] The optional parameters
79
- * @returns Promise<Models.PrivateEndpointConnectionsGetResponse>
80
- */
81
- get(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateEndpointConnectionsGetResponse>;
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 privateEndpointConnectionName The name of the private endpoint connection associated with
89
- * the Azure resource
90
- * @param callback The callback
91
- */
92
- get(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback<Models.PrivateEndpointConnection>): void;
93
- /**
94
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
95
- * is case insensitive.
114
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
115
+ * case insensitive.
96
116
  * @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 privateEndpointConnectionName The name of the private endpoint connection associated with
100
- * the Azure resource
101
- * @param options The optional parameters
102
- * @param callback The callback
117
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
118
+ * only.
119
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
120
+ * Azure resource
121
+ * @param options The options parameters.
103
122
  */
104
- get(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PrivateEndpointConnection>): void;
105
- get(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PrivateEndpointConnection>, callback?: msRest.ServiceCallback<Models.PrivateEndpointConnection>): Promise<Models.PrivateEndpointConnectionsGetResponse> {
123
+ get(
124
+ resourceGroupName: string,
125
+ accountName: string,
126
+ privateEndpointConnectionName: string,
127
+ options?: PrivateEndpointConnectionsGetOptionalParams
128
+ ): Promise<PrivateEndpointConnectionsGetResponse> {
106
129
  return this.client.sendOperationRequest(
107
130
  {
108
131
  resourceGroupName,
@@ -110,50 +133,29 @@ export class PrivateEndpointConnections {
110
133
  privateEndpointConnectionName,
111
134
  options
112
135
  },
113
- getOperationSpec,
114
- callback) as Promise<Models.PrivateEndpointConnectionsGetResponse>;
136
+ getOperationSpec
137
+ );
115
138
  }
116
139
 
117
140
  /**
118
141
  * Update the state of specified private endpoint connection associated with 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 privateEndpointConnectionName The name of the private endpoint connection associated with
125
- * the Azure resource
126
- * @param properties The private endpoint connection properties.
127
- * @param [options] The optional parameters
128
- * @returns Promise<Models.PrivateEndpointConnectionsPutResponse>
129
- */
130
- put(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise<Models.PrivateEndpointConnectionsPutResponse>;
131
- /**
132
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
133
- * is case insensitive.
142
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
143
+ * case insensitive.
134
144
  * @param accountName The name of the storage account within the specified resource group. Storage
135
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
136
- * letters only.
137
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with
138
- * the Azure resource
145
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
146
+ * only.
147
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
148
+ * Azure resource
139
149
  * @param properties The private endpoint connection properties.
140
- * @param callback The callback
150
+ * @param options The options parameters.
141
151
  */
142
- put(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, callback: msRest.ServiceCallback<Models.PrivateEndpointConnection>): void;
143
- /**
144
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
145
- * is case insensitive.
146
- * @param accountName The name of the storage account within the specified resource group. Storage
147
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
148
- * letters only.
149
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with
150
- * the Azure resource
151
- * @param properties The private endpoint connection properties.
152
- * @param options The optional parameters
153
- * @param callback The callback
154
- */
155
- put(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PrivateEndpointConnection>): void;
156
- put(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PrivateEndpointConnection>, callback?: msRest.ServiceCallback<Models.PrivateEndpointConnection>): Promise<Models.PrivateEndpointConnectionsPutResponse> {
152
+ put(
153
+ resourceGroupName: string,
154
+ accountName: string,
155
+ privateEndpointConnectionName: string,
156
+ properties: PrivateEndpointConnection,
157
+ options?: PrivateEndpointConnectionsPutOptionalParams
158
+ ): Promise<PrivateEndpointConnectionsPutResponse> {
157
159
  return this.client.sendOperationRequest(
158
160
  {
159
161
  resourceGroupName,
@@ -162,47 +164,27 @@ export class PrivateEndpointConnections {
162
164
  properties,
163
165
  options
164
166
  },
165
- putOperationSpec,
166
- callback) as Promise<Models.PrivateEndpointConnectionsPutResponse>;
167
+ putOperationSpec
168
+ );
167
169
  }
168
170
 
169
171
  /**
170
172
  * Deletes the specified private endpoint connection associated with the storage account.
171
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
172
- * is case insensitive.
173
- * @param accountName The name of the storage account within the specified resource group. Storage
174
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
175
- * letters only.
176
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with
177
- * the Azure resource
178
- * @param [options] The optional parameters
179
- * @returns Promise<msRest.RestResponse>
180
- */
181
- deleteMethod(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
182
- /**
183
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
184
- * is case insensitive.
185
- * @param accountName The name of the storage account within the specified resource group. Storage
186
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
187
- * letters only.
188
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with
189
- * the Azure resource
190
- * @param callback The callback
191
- */
192
- deleteMethod(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback<void>): void;
193
- /**
194
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
195
- * is case insensitive.
173
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
174
+ * case insensitive.
196
175
  * @param accountName The name of the storage account within the specified resource group. Storage
197
- * account names must be between 3 and 24 characters in length and use numbers and lower-case
198
- * letters only.
199
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with
200
- * the Azure resource
201
- * @param options The optional parameters
202
- * @param callback The callback
176
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
177
+ * only.
178
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
179
+ * Azure resource
180
+ * @param options The options parameters.
203
181
  */
204
- deleteMethod(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
205
- deleteMethod(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
182
+ delete(
183
+ resourceGroupName: string,
184
+ accountName: string,
185
+ privateEndpointConnectionName: string,
186
+ options?: PrivateEndpointConnectionsDeleteOptionalParams
187
+ ): Promise<void> {
206
188
  return this.client.sendOperationRequest(
207
189
  {
208
190
  resourceGroupName,
@@ -210,53 +192,36 @@ export class PrivateEndpointConnections {
210
192
  privateEndpointConnectionName,
211
193
  options
212
194
  },
213
- deleteMethodOperationSpec,
214
- callback);
195
+ deleteOperationSpec
196
+ );
215
197
  }
216
198
  }
217
-
218
199
  // Operation Specifications
219
- const serializer = new msRest.Serializer(Mappers);
220
- const listOperationSpec: msRest.OperationSpec = {
200
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
201
+
202
+ const listOperationSpec: coreClient.OperationSpec = {
203
+ path:
204
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections",
221
205
  httpMethod: "GET",
222
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections",
223
- urlParameters: [
224
- Parameters.resourceGroupName,
225
- Parameters.accountName,
226
- Parameters.subscriptionId
227
- ],
228
- queryParameters: [
229
- Parameters.apiVersion
230
- ],
231
- headerParameters: [
232
- Parameters.acceptLanguage
233
- ],
234
206
  responses: {
235
207
  200: {
236
208
  bodyMapper: Mappers.PrivateEndpointConnectionListResult
237
- },
238
- default: {
239
- bodyMapper: Mappers.CloudError
240
209
  }
241
210
  },
242
- serializer
243
- };
244
-
245
- const getOperationSpec: msRest.OperationSpec = {
246
- httpMethod: "GET",
247
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
211
+ queryParameters: [Parameters.apiVersion],
248
212
  urlParameters: [
249
- Parameters.resourceGroupName,
250
- Parameters.accountName,
213
+ Parameters.$host,
251
214
  Parameters.subscriptionId,
252
- Parameters.privateEndpointConnectionName
253
- ],
254
- queryParameters: [
255
- Parameters.apiVersion
256
- ],
257
- headerParameters: [
258
- Parameters.acceptLanguage
215
+ Parameters.resourceGroupName,
216
+ Parameters.accountName1
259
217
  ],
218
+ headerParameters: [Parameters.accept],
219
+ serializer
220
+ };
221
+ const getOperationSpec: coreClient.OperationSpec = {
222
+ path:
223
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
224
+ httpMethod: "GET",
260
225
  responses: {
261
226
  200: {
262
227
  bodyMapper: Mappers.PrivateEndpointConnection
@@ -265,31 +230,21 @@ const getOperationSpec: msRest.OperationSpec = {
265
230
  bodyMapper: Mappers.ErrorResponse
266
231
  }
267
232
  },
268
- serializer
269
- };
270
-
271
- const putOperationSpec: msRest.OperationSpec = {
272
- httpMethod: "PUT",
273
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
233
+ queryParameters: [Parameters.apiVersion],
274
234
  urlParameters: [
275
- Parameters.resourceGroupName,
276
- Parameters.accountName,
235
+ Parameters.$host,
277
236
  Parameters.subscriptionId,
237
+ Parameters.resourceGroupName,
238
+ Parameters.accountName1,
278
239
  Parameters.privateEndpointConnectionName
279
240
  ],
280
- queryParameters: [
281
- Parameters.apiVersion
282
- ],
283
- headerParameters: [
284
- Parameters.acceptLanguage
285
- ],
286
- requestBody: {
287
- parameterPath: "properties",
288
- mapper: {
289
- ...Mappers.PrivateEndpointConnection,
290
- required: true
291
- }
292
- },
241
+ headerParameters: [Parameters.accept],
242
+ serializer
243
+ };
244
+ const putOperationSpec: coreClient.OperationSpec = {
245
+ path:
246
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
247
+ httpMethod: "PUT",
293
248
  responses: {
294
249
  200: {
295
250
  bodyMapper: Mappers.PrivateEndpointConnection
@@ -298,24 +253,23 @@ const putOperationSpec: msRest.OperationSpec = {
298
253
  bodyMapper: Mappers.ErrorResponse
299
254
  }
300
255
  },
301
- serializer
302
- };
303
-
304
- const deleteMethodOperationSpec: msRest.OperationSpec = {
305
- httpMethod: "DELETE",
306
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
256
+ requestBody: Parameters.properties2,
257
+ queryParameters: [Parameters.apiVersion],
307
258
  urlParameters: [
308
- Parameters.resourceGroupName,
309
- Parameters.accountName,
259
+ Parameters.$host,
310
260
  Parameters.subscriptionId,
261
+ Parameters.resourceGroupName,
262
+ Parameters.accountName1,
311
263
  Parameters.privateEndpointConnectionName
312
264
  ],
313
- queryParameters: [
314
- Parameters.apiVersion
315
- ],
316
- headerParameters: [
317
- Parameters.acceptLanguage
318
- ],
265
+ headerParameters: [Parameters.accept, Parameters.contentType],
266
+ mediaType: "json",
267
+ serializer
268
+ };
269
+ const deleteOperationSpec: coreClient.OperationSpec = {
270
+ path:
271
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
272
+ httpMethod: "DELETE",
319
273
  responses: {
320
274
  200: {},
321
275
  204: {},
@@ -323,5 +277,14 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
323
277
  bodyMapper: Mappers.ErrorResponse
324
278
  }
325
279
  },
280
+ queryParameters: [Parameters.apiVersion],
281
+ urlParameters: [
282
+ Parameters.$host,
283
+ Parameters.subscriptionId,
284
+ Parameters.resourceGroupName,
285
+ Parameters.accountName1,
286
+ Parameters.privateEndpointConnectionName
287
+ ],
288
+ headerParameters: [Parameters.accept],
326
289
  serializer
327
290
  };
@@ -3,23 +3,26 @@
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/privateLinkResourcesMappers";
9
+ import { PrivateLinkResources } from "../operationsInterfaces";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
13
12
  import * as Parameters from "../models/parameters";
14
13
  import { StorageManagementClientContext } from "../storageManagementClientContext";
14
+ import {
15
+ PrivateLinkResourcesListByStorageAccountOptionalParams,
16
+ PrivateLinkResourcesListByStorageAccountResponse
17
+ } from "../models";
15
18
 
16
19
  /** Class representing a PrivateLinkResources. */
17
- export class PrivateLinkResources {
20
+ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
18
21
  private readonly client: StorageManagementClientContext;
19
22
 
20
23
  /**
21
- * Create a PrivateLinkResources.
22
- * @param {StorageManagementClientContext} client Reference to the service client.
24
+ * Initialize a new instance of the class PrivateLinkResources class.
25
+ * @param client Reference to the service client
23
26
  */
24
27
  constructor(client: StorageManagementClientContext) {
25
28
  this.client = client;
@@ -27,69 +30,43 @@ export class PrivateLinkResources {
27
30
 
28
31
  /**
29
32
  * Gets the private link resources that need to be created for a storage account.
30
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
31
- * is case insensitive.
33
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is
34
+ * case insensitive.
32
35
  * @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.PrivateLinkResourcesListByStorageAccountResponse>
36
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case letters
37
+ * only.
38
+ * @param options The options parameters.
37
39
  */
38
- listByStorageAccount(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateLinkResourcesListByStorageAccountResponse>;
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
- listByStorageAccount(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<Models.PrivateLinkResourceListResult>): void;
48
- /**
49
- * @param resourceGroupName The name of the resource group within the user's subscription. The name
50
- * is case insensitive.
51
- * @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
56
- */
57
- listByStorageAccount(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PrivateLinkResourceListResult>): void;
58
- listByStorageAccount(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PrivateLinkResourceListResult>, callback?: msRest.ServiceCallback<Models.PrivateLinkResourceListResult>): Promise<Models.PrivateLinkResourcesListByStorageAccountResponse> {
40
+ listByStorageAccount(
41
+ resourceGroupName: string,
42
+ accountName: string,
43
+ options?: PrivateLinkResourcesListByStorageAccountOptionalParams
44
+ ): Promise<PrivateLinkResourcesListByStorageAccountResponse> {
59
45
  return this.client.sendOperationRequest(
60
- {
61
- resourceGroupName,
62
- accountName,
63
- options
64
- },
65
- listByStorageAccountOperationSpec,
66
- callback) as Promise<Models.PrivateLinkResourcesListByStorageAccountResponse>;
46
+ { resourceGroupName, accountName, options },
47
+ listByStorageAccountOperationSpec
48
+ );
67
49
  }
68
50
  }
69
-
70
51
  // Operation Specifications
71
- const serializer = new msRest.Serializer(Mappers);
72
- const listByStorageAccountOperationSpec: msRest.OperationSpec = {
52
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
53
+
54
+ const listByStorageAccountOperationSpec: coreClient.OperationSpec = {
55
+ path:
56
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateLinkResources",
73
57
  httpMethod: "GET",
74
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateLinkResources",
75
- urlParameters: [
76
- Parameters.resourceGroupName,
77
- Parameters.accountName,
78
- Parameters.subscriptionId
79
- ],
80
- queryParameters: [
81
- Parameters.apiVersion
82
- ],
83
- headerParameters: [
84
- Parameters.acceptLanguage
85
- ],
86
58
  responses: {
87
59
  200: {
88
60
  bodyMapper: Mappers.PrivateLinkResourceListResult
89
- },
90
- default: {
91
- bodyMapper: Mappers.CloudError
92
61
  }
93
62
  },
63
+ queryParameters: [Parameters.apiVersion],
64
+ urlParameters: [
65
+ Parameters.$host,
66
+ Parameters.subscriptionId,
67
+ Parameters.resourceGroupName,
68
+ Parameters.accountName1
69
+ ],
70
+ headerParameters: [Parameters.accept],
94
71
  serializer
95
72
  };