@azure/arm-netapp 15.0.0 → 15.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (342) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +11 -0
  3. package/dist/index.js +1277 -216
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/accountBackupsDeleteSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/accountBackupsDeleteSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/accountBackupsDeleteSample.js +32 -0
  10. package/dist-esm/samples-dev/accountBackupsDeleteSample.js.map +1 -0
  11. package/dist-esm/samples-dev/accountBackupsGetSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/accountBackupsGetSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/accountBackupsGetSample.js +32 -0
  14. package/dist-esm/samples-dev/accountBackupsGetSample.js.map +1 -0
  15. package/dist-esm/samples-dev/accountBackupsListSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/accountBackupsListSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/accountBackupsListSample.js +45 -0
  18. package/dist-esm/samples-dev/accountBackupsListSample.js.map +1 -0
  19. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js +48 -0
  22. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js.map +1 -0
  23. package/dist-esm/samples-dev/accountsDeleteSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/accountsDeleteSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/accountsDeleteSample.js +31 -0
  26. package/dist-esm/samples-dev/accountsDeleteSample.js.map +1 -0
  27. package/dist-esm/samples-dev/accountsGetSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/accountsGetSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/accountsGetSample.js +31 -0
  30. package/dist-esm/samples-dev/accountsGetSample.js.map +1 -0
  31. package/dist-esm/samples-dev/accountsListBySubscriptionSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/accountsListBySubscriptionSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/accountsListBySubscriptionSample.js +43 -0
  34. package/dist-esm/samples-dev/accountsListBySubscriptionSample.js.map +1 -0
  35. package/dist-esm/samples-dev/accountsListSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/accountsListSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/accountsListSample.js +44 -0
  38. package/dist-esm/samples-dev/accountsListSample.js.map +1 -0
  39. package/dist-esm/samples-dev/accountsUpdateSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/accountsUpdateSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/accountsUpdateSample.js +32 -0
  42. package/dist-esm/samples-dev/accountsUpdateSample.js.map +1 -0
  43. package/dist-esm/samples-dev/backupPoliciesCreateSample.d.ts +2 -0
  44. package/dist-esm/samples-dev/backupPoliciesCreateSample.d.ts.map +1 -0
  45. package/dist-esm/samples-dev/backupPoliciesCreateSample.js +39 -0
  46. package/dist-esm/samples-dev/backupPoliciesCreateSample.js.map +1 -0
  47. package/dist-esm/samples-dev/backupPoliciesDeleteSample.d.ts +2 -0
  48. package/dist-esm/samples-dev/backupPoliciesDeleteSample.d.ts.map +1 -0
  49. package/dist-esm/samples-dev/backupPoliciesDeleteSample.js +32 -0
  50. package/dist-esm/samples-dev/backupPoliciesDeleteSample.js.map +1 -0
  51. package/dist-esm/samples-dev/backupPoliciesGetSample.d.ts +2 -0
  52. package/dist-esm/samples-dev/backupPoliciesGetSample.d.ts.map +1 -0
  53. package/dist-esm/samples-dev/backupPoliciesGetSample.js +32 -0
  54. package/dist-esm/samples-dev/backupPoliciesGetSample.js.map +1 -0
  55. package/dist-esm/samples-dev/backupPoliciesListSample.d.ts +2 -0
  56. package/dist-esm/samples-dev/backupPoliciesListSample.d.ts.map +1 -0
  57. package/dist-esm/samples-dev/backupPoliciesListSample.js +45 -0
  58. package/dist-esm/samples-dev/backupPoliciesListSample.js.map +1 -0
  59. package/dist-esm/samples-dev/backupPoliciesUpdateSample.d.ts +2 -0
  60. package/dist-esm/samples-dev/backupPoliciesUpdateSample.d.ts.map +1 -0
  61. package/dist-esm/samples-dev/backupPoliciesUpdateSample.js +39 -0
  62. package/dist-esm/samples-dev/backupPoliciesUpdateSample.js.map +1 -0
  63. package/dist-esm/samples-dev/backupsCreateSample.d.ts +2 -0
  64. package/dist-esm/samples-dev/backupsCreateSample.d.ts.map +1 -0
  65. package/dist-esm/samples-dev/backupsCreateSample.js +35 -0
  66. package/dist-esm/samples-dev/backupsCreateSample.js.map +1 -0
  67. package/dist-esm/samples-dev/backupsDeleteSample.d.ts +2 -0
  68. package/dist-esm/samples-dev/backupsDeleteSample.d.ts.map +1 -0
  69. package/dist-esm/samples-dev/backupsDeleteSample.js +34 -0
  70. package/dist-esm/samples-dev/backupsDeleteSample.js.map +1 -0
  71. package/dist-esm/samples-dev/backupsGetSample.d.ts +2 -0
  72. package/dist-esm/samples-dev/backupsGetSample.d.ts.map +1 -0
  73. package/dist-esm/samples-dev/backupsGetSample.js +34 -0
  74. package/dist-esm/samples-dev/backupsGetSample.js.map +1 -0
  75. package/dist-esm/samples-dev/backupsGetStatusSample.d.ts +2 -0
  76. package/dist-esm/samples-dev/backupsGetStatusSample.d.ts.map +1 -0
  77. package/dist-esm/samples-dev/backupsGetStatusSample.js +33 -0
  78. package/dist-esm/samples-dev/backupsGetStatusSample.js.map +1 -0
  79. package/dist-esm/samples-dev/backupsGetVolumeRestoreStatusSample.d.ts +2 -0
  80. package/dist-esm/samples-dev/backupsGetVolumeRestoreStatusSample.d.ts.map +1 -0
  81. package/dist-esm/samples-dev/backupsGetVolumeRestoreStatusSample.js +33 -0
  82. package/dist-esm/samples-dev/backupsGetVolumeRestoreStatusSample.js.map +1 -0
  83. package/dist-esm/samples-dev/backupsListSample.d.ts +2 -0
  84. package/dist-esm/samples-dev/backupsListSample.d.ts.map +1 -0
  85. package/dist-esm/samples-dev/backupsListSample.js +47 -0
  86. package/dist-esm/samples-dev/backupsListSample.js.map +1 -0
  87. package/dist-esm/samples-dev/backupsUpdateSample.d.ts +2 -0
  88. package/dist-esm/samples-dev/backupsUpdateSample.d.ts.map +1 -0
  89. package/dist-esm/samples-dev/backupsUpdateSample.js +36 -0
  90. package/dist-esm/samples-dev/backupsUpdateSample.js.map +1 -0
  91. package/dist-esm/samples-dev/netAppResourceCheckFilePathAvailabilitySample.d.ts +2 -0
  92. package/dist-esm/samples-dev/netAppResourceCheckFilePathAvailabilitySample.d.ts.map +1 -0
  93. package/dist-esm/samples-dev/netAppResourceCheckFilePathAvailabilitySample.js +32 -0
  94. package/dist-esm/samples-dev/netAppResourceCheckFilePathAvailabilitySample.js.map +1 -0
  95. package/dist-esm/samples-dev/netAppResourceCheckNameAvailabilitySample.d.ts +2 -0
  96. package/dist-esm/samples-dev/netAppResourceCheckNameAvailabilitySample.d.ts.map +1 -0
  97. package/dist-esm/samples-dev/netAppResourceCheckNameAvailabilitySample.js +33 -0
  98. package/dist-esm/samples-dev/netAppResourceCheckNameAvailabilitySample.js.map +1 -0
  99. package/dist-esm/samples-dev/netAppResourceCheckQuotaAvailabilitySample.d.ts +2 -0
  100. package/dist-esm/samples-dev/netAppResourceCheckQuotaAvailabilitySample.d.ts.map +1 -0
  101. package/dist-esm/samples-dev/netAppResourceCheckQuotaAvailabilitySample.js +33 -0
  102. package/dist-esm/samples-dev/netAppResourceCheckQuotaAvailabilitySample.js.map +1 -0
  103. package/dist-esm/samples-dev/netAppResourceQuotaLimitsGetSample.d.ts +2 -0
  104. package/dist-esm/samples-dev/netAppResourceQuotaLimitsGetSample.d.ts.map +1 -0
  105. package/dist-esm/samples-dev/netAppResourceQuotaLimitsGetSample.js +31 -0
  106. package/dist-esm/samples-dev/netAppResourceQuotaLimitsGetSample.js.map +1 -0
  107. package/dist-esm/samples-dev/netAppResourceQuotaLimitsListSample.d.ts +2 -0
  108. package/dist-esm/samples-dev/netAppResourceQuotaLimitsListSample.d.ts.map +1 -0
  109. package/dist-esm/samples-dev/netAppResourceQuotaLimitsListSample.js +44 -0
  110. package/dist-esm/samples-dev/netAppResourceQuotaLimitsListSample.js.map +1 -0
  111. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  112. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  113. package/dist-esm/samples-dev/operationsListSample.js +43 -0
  114. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  115. package/dist-esm/samples-dev/poolsCreateOrUpdateSample.d.ts +2 -0
  116. package/dist-esm/samples-dev/poolsCreateOrUpdateSample.d.ts.map +1 -0
  117. package/dist-esm/samples-dev/poolsCreateOrUpdateSample.js +38 -0
  118. package/dist-esm/samples-dev/poolsCreateOrUpdateSample.js.map +1 -0
  119. package/dist-esm/samples-dev/poolsDeleteSample.d.ts +2 -0
  120. package/dist-esm/samples-dev/poolsDeleteSample.d.ts.map +1 -0
  121. package/dist-esm/samples-dev/poolsDeleteSample.js +32 -0
  122. package/dist-esm/samples-dev/poolsDeleteSample.js.map +1 -0
  123. package/dist-esm/samples-dev/poolsGetSample.d.ts +2 -0
  124. package/dist-esm/samples-dev/poolsGetSample.d.ts.map +1 -0
  125. package/dist-esm/samples-dev/poolsGetSample.js +32 -0
  126. package/dist-esm/samples-dev/poolsGetSample.js.map +1 -0
  127. package/dist-esm/samples-dev/poolsListSample.d.ts +2 -0
  128. package/dist-esm/samples-dev/poolsListSample.d.ts.map +1 -0
  129. package/dist-esm/samples-dev/poolsListSample.js +45 -0
  130. package/dist-esm/samples-dev/poolsListSample.js.map +1 -0
  131. package/dist-esm/samples-dev/poolsUpdateSample.d.ts +2 -0
  132. package/dist-esm/samples-dev/poolsUpdateSample.d.ts.map +1 -0
  133. package/dist-esm/samples-dev/poolsUpdateSample.js +33 -0
  134. package/dist-esm/samples-dev/poolsUpdateSample.js.map +1 -0
  135. package/dist-esm/samples-dev/snapshotPoliciesCreateSample.d.ts +2 -0
  136. package/dist-esm/samples-dev/snapshotPoliciesCreateSample.d.ts.map +1 -0
  137. package/dist-esm/samples-dev/snapshotPoliciesCreateSample.js +50 -0
  138. package/dist-esm/samples-dev/snapshotPoliciesCreateSample.js.map +1 -0
  139. package/dist-esm/samples-dev/snapshotPoliciesDeleteSample.d.ts +2 -0
  140. package/dist-esm/samples-dev/snapshotPoliciesDeleteSample.d.ts.map +1 -0
  141. package/dist-esm/samples-dev/snapshotPoliciesDeleteSample.js +32 -0
  142. package/dist-esm/samples-dev/snapshotPoliciesDeleteSample.js.map +1 -0
  143. package/dist-esm/samples-dev/snapshotPoliciesGetSample.d.ts +2 -0
  144. package/dist-esm/samples-dev/snapshotPoliciesGetSample.d.ts.map +1 -0
  145. package/dist-esm/samples-dev/snapshotPoliciesGetSample.js +32 -0
  146. package/dist-esm/samples-dev/snapshotPoliciesGetSample.js.map +1 -0
  147. package/dist-esm/samples-dev/snapshotPoliciesListSample.d.ts +2 -0
  148. package/dist-esm/samples-dev/snapshotPoliciesListSample.d.ts.map +1 -0
  149. package/dist-esm/samples-dev/snapshotPoliciesListSample.js +45 -0
  150. package/dist-esm/samples-dev/snapshotPoliciesListSample.js.map +1 -0
  151. package/dist-esm/samples-dev/snapshotPoliciesListVolumesSample.d.ts +2 -0
  152. package/dist-esm/samples-dev/snapshotPoliciesListVolumesSample.d.ts.map +1 -0
  153. package/dist-esm/samples-dev/snapshotPoliciesListVolumesSample.js +32 -0
  154. package/dist-esm/samples-dev/snapshotPoliciesListVolumesSample.js.map +1 -0
  155. package/dist-esm/samples-dev/snapshotPoliciesUpdateSample.d.ts +2 -0
  156. package/dist-esm/samples-dev/snapshotPoliciesUpdateSample.d.ts.map +1 -0
  157. package/dist-esm/samples-dev/snapshotPoliciesUpdateSample.js +50 -0
  158. package/dist-esm/samples-dev/snapshotPoliciesUpdateSample.js.map +1 -0
  159. package/dist-esm/samples-dev/snapshotsCreateSample.d.ts +2 -0
  160. package/dist-esm/samples-dev/snapshotsCreateSample.d.ts.map +1 -0
  161. package/dist-esm/samples-dev/snapshotsCreateSample.js +35 -0
  162. package/dist-esm/samples-dev/snapshotsCreateSample.js.map +1 -0
  163. package/dist-esm/samples-dev/snapshotsDeleteSample.d.ts +2 -0
  164. package/dist-esm/samples-dev/snapshotsDeleteSample.d.ts.map +1 -0
  165. package/dist-esm/samples-dev/snapshotsDeleteSample.js +34 -0
  166. package/dist-esm/samples-dev/snapshotsDeleteSample.js.map +1 -0
  167. package/dist-esm/samples-dev/snapshotsGetSample.d.ts +2 -0
  168. package/dist-esm/samples-dev/snapshotsGetSample.d.ts.map +1 -0
  169. package/dist-esm/samples-dev/snapshotsGetSample.js +34 -0
  170. package/dist-esm/samples-dev/snapshotsGetSample.js.map +1 -0
  171. package/dist-esm/samples-dev/snapshotsListSample.d.ts +2 -0
  172. package/dist-esm/samples-dev/snapshotsListSample.d.ts.map +1 -0
  173. package/dist-esm/samples-dev/snapshotsListSample.js +47 -0
  174. package/dist-esm/samples-dev/snapshotsListSample.js.map +1 -0
  175. package/dist-esm/samples-dev/snapshotsRestoreFilesSample.d.ts +2 -0
  176. package/dist-esm/samples-dev/snapshotsRestoreFilesSample.d.ts.map +1 -0
  177. package/dist-esm/samples-dev/snapshotsRestoreFilesSample.js +37 -0
  178. package/dist-esm/samples-dev/snapshotsRestoreFilesSample.js.map +1 -0
  179. package/dist-esm/samples-dev/snapshotsUpdateSample.d.ts +2 -0
  180. package/dist-esm/samples-dev/snapshotsUpdateSample.d.ts.map +1 -0
  181. package/dist-esm/samples-dev/snapshotsUpdateSample.js +35 -0
  182. package/dist-esm/samples-dev/snapshotsUpdateSample.js.map +1 -0
  183. package/dist-esm/samples-dev/subvolumesCreateSample.d.ts +2 -0
  184. package/dist-esm/samples-dev/subvolumesCreateSample.d.ts.map +1 -0
  185. package/dist-esm/samples-dev/subvolumesCreateSample.js +35 -0
  186. package/dist-esm/samples-dev/subvolumesCreateSample.js.map +1 -0
  187. package/dist-esm/samples-dev/subvolumesDeleteSample.d.ts +2 -0
  188. package/dist-esm/samples-dev/subvolumesDeleteSample.d.ts.map +1 -0
  189. package/dist-esm/samples-dev/subvolumesDeleteSample.js +34 -0
  190. package/dist-esm/samples-dev/subvolumesDeleteSample.js.map +1 -0
  191. package/dist-esm/samples-dev/subvolumesGetMetadataSample.d.ts +2 -0
  192. package/dist-esm/samples-dev/subvolumesGetMetadataSample.d.ts.map +1 -0
  193. package/dist-esm/samples-dev/subvolumesGetMetadataSample.js +34 -0
  194. package/dist-esm/samples-dev/subvolumesGetMetadataSample.js.map +1 -0
  195. package/dist-esm/samples-dev/subvolumesGetSample.d.ts +2 -0
  196. package/dist-esm/samples-dev/subvolumesGetSample.d.ts.map +1 -0
  197. package/dist-esm/samples-dev/subvolumesGetSample.js +34 -0
  198. package/dist-esm/samples-dev/subvolumesGetSample.js.map +1 -0
  199. package/dist-esm/samples-dev/subvolumesListByVolumeSample.d.ts +2 -0
  200. package/dist-esm/samples-dev/subvolumesListByVolumeSample.d.ts.map +1 -0
  201. package/dist-esm/samples-dev/subvolumesListByVolumeSample.js +47 -0
  202. package/dist-esm/samples-dev/subvolumesListByVolumeSample.js.map +1 -0
  203. package/dist-esm/samples-dev/subvolumesUpdateSample.d.ts +2 -0
  204. package/dist-esm/samples-dev/subvolumesUpdateSample.d.ts.map +1 -0
  205. package/dist-esm/samples-dev/subvolumesUpdateSample.js +35 -0
  206. package/dist-esm/samples-dev/subvolumesUpdateSample.js.map +1 -0
  207. package/dist-esm/samples-dev/vaultsListSample.d.ts +2 -0
  208. package/dist-esm/samples-dev/vaultsListSample.d.ts.map +1 -0
  209. package/dist-esm/samples-dev/vaultsListSample.js +45 -0
  210. package/dist-esm/samples-dev/vaultsListSample.js.map +1 -0
  211. package/dist-esm/samples-dev/volumeGroupsCreateSample.d.ts +2 -0
  212. package/dist-esm/samples-dev/volumeGroupsCreateSample.d.ts.map +1 -0
  213. package/dist-esm/samples-dev/volumeGroupsCreateSample.js +76 -0
  214. package/dist-esm/samples-dev/volumeGroupsCreateSample.js.map +1 -0
  215. package/dist-esm/samples-dev/volumeGroupsDeleteSample.d.ts +2 -0
  216. package/dist-esm/samples-dev/volumeGroupsDeleteSample.d.ts.map +1 -0
  217. package/dist-esm/samples-dev/volumeGroupsDeleteSample.js +32 -0
  218. package/dist-esm/samples-dev/volumeGroupsDeleteSample.js.map +1 -0
  219. package/dist-esm/samples-dev/volumeGroupsGetSample.d.ts +2 -0
  220. package/dist-esm/samples-dev/volumeGroupsGetSample.d.ts.map +1 -0
  221. package/dist-esm/samples-dev/volumeGroupsGetSample.js +32 -0
  222. package/dist-esm/samples-dev/volumeGroupsGetSample.js.map +1 -0
  223. package/dist-esm/samples-dev/volumeGroupsListByNetAppAccountSample.d.ts +2 -0
  224. package/dist-esm/samples-dev/volumeGroupsListByNetAppAccountSample.d.ts.map +1 -0
  225. package/dist-esm/samples-dev/volumeGroupsListByNetAppAccountSample.js +45 -0
  226. package/dist-esm/samples-dev/volumeGroupsListByNetAppAccountSample.js.map +1 -0
  227. package/dist-esm/samples-dev/volumesAuthorizeReplicationSample.d.ts +2 -0
  228. package/dist-esm/samples-dev/volumesAuthorizeReplicationSample.d.ts.map +1 -0
  229. package/dist-esm/samples-dev/volumesAuthorizeReplicationSample.js +36 -0
  230. package/dist-esm/samples-dev/volumesAuthorizeReplicationSample.js.map +1 -0
  231. package/dist-esm/samples-dev/volumesBreakReplicationSample.d.ts +2 -0
  232. package/dist-esm/samples-dev/volumesBreakReplicationSample.d.ts.map +1 -0
  233. package/dist-esm/samples-dev/volumesBreakReplicationSample.js +35 -0
  234. package/dist-esm/samples-dev/volumesBreakReplicationSample.js.map +1 -0
  235. package/dist-esm/samples-dev/volumesCreateOrUpdateSample.d.ts +2 -0
  236. package/dist-esm/samples-dev/volumesCreateOrUpdateSample.d.ts.map +1 -0
  237. package/dist-esm/samples-dev/volumesCreateOrUpdateSample.js +42 -0
  238. package/dist-esm/samples-dev/volumesCreateOrUpdateSample.js.map +1 -0
  239. package/dist-esm/samples-dev/volumesDeleteReplicationSample.d.ts +2 -0
  240. package/dist-esm/samples-dev/volumesDeleteReplicationSample.d.ts.map +1 -0
  241. package/dist-esm/samples-dev/volumesDeleteReplicationSample.js +33 -0
  242. package/dist-esm/samples-dev/volumesDeleteReplicationSample.js.map +1 -0
  243. package/dist-esm/samples-dev/volumesDeleteSample.d.ts +2 -0
  244. package/dist-esm/samples-dev/volumesDeleteSample.d.ts.map +1 -0
  245. package/dist-esm/samples-dev/volumesDeleteSample.js +33 -0
  246. package/dist-esm/samples-dev/volumesDeleteSample.js.map +1 -0
  247. package/dist-esm/samples-dev/volumesGetSample.d.ts +2 -0
  248. package/dist-esm/samples-dev/volumesGetSample.d.ts.map +1 -0
  249. package/dist-esm/samples-dev/volumesGetSample.js +33 -0
  250. package/dist-esm/samples-dev/volumesGetSample.js.map +1 -0
  251. package/dist-esm/samples-dev/volumesListSample.d.ts +2 -0
  252. package/dist-esm/samples-dev/volumesListSample.d.ts.map +1 -0
  253. package/dist-esm/samples-dev/volumesListSample.js +46 -0
  254. package/dist-esm/samples-dev/volumesListSample.js.map +1 -0
  255. package/dist-esm/samples-dev/volumesPoolChangeSample.d.ts +2 -0
  256. package/dist-esm/samples-dev/volumesPoolChangeSample.d.ts.map +1 -0
  257. package/dist-esm/samples-dev/volumesPoolChangeSample.js +36 -0
  258. package/dist-esm/samples-dev/volumesPoolChangeSample.js.map +1 -0
  259. package/dist-esm/samples-dev/volumesReInitializeReplicationSample.d.ts +2 -0
  260. package/dist-esm/samples-dev/volumesReInitializeReplicationSample.d.ts.map +1 -0
  261. package/dist-esm/samples-dev/volumesReInitializeReplicationSample.js +33 -0
  262. package/dist-esm/samples-dev/volumesReInitializeReplicationSample.js.map +1 -0
  263. package/dist-esm/samples-dev/volumesReplicationStatusSample.d.ts +2 -0
  264. package/dist-esm/samples-dev/volumesReplicationStatusSample.d.ts.map +1 -0
  265. package/dist-esm/samples-dev/volumesReplicationStatusSample.js +33 -0
  266. package/dist-esm/samples-dev/volumesReplicationStatusSample.js.map +1 -0
  267. package/dist-esm/samples-dev/volumesResyncReplicationSample.d.ts +2 -0
  268. package/dist-esm/samples-dev/volumesResyncReplicationSample.d.ts.map +1 -0
  269. package/dist-esm/samples-dev/volumesResyncReplicationSample.js +33 -0
  270. package/dist-esm/samples-dev/volumesResyncReplicationSample.js.map +1 -0
  271. package/dist-esm/samples-dev/volumesRevertSample.d.ts +2 -0
  272. package/dist-esm/samples-dev/volumesRevertSample.d.ts.map +1 -0
  273. package/dist-esm/samples-dev/volumesRevertSample.js +36 -0
  274. package/dist-esm/samples-dev/volumesRevertSample.js.map +1 -0
  275. package/dist-esm/samples-dev/volumesUpdateSample.d.ts +2 -0
  276. package/dist-esm/samples-dev/volumesUpdateSample.d.ts.map +1 -0
  277. package/dist-esm/samples-dev/volumesUpdateSample.js +34 -0
  278. package/dist-esm/samples-dev/volumesUpdateSample.js.map +1 -0
  279. package/dist-esm/src/models/index.d.ts +201 -2
  280. package/dist-esm/src/models/index.d.ts.map +1 -1
  281. package/dist-esm/src/models/index.js +8 -0
  282. package/dist-esm/src/models/index.js.map +1 -1
  283. package/dist-esm/src/models/mappers.d.ts +6 -0
  284. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  285. package/dist-esm/src/models/mappers.js +316 -8
  286. package/dist-esm/src/models/mappers.js.map +1 -1
  287. package/dist-esm/src/models/parameters.d.ts +9 -4
  288. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  289. package/dist-esm/src/models/parameters.js +45 -9
  290. package/dist-esm/src/models/parameters.js.map +1 -1
  291. package/dist-esm/src/netAppManagementClient.d.ts +2 -1
  292. package/dist-esm/src/netAppManagementClient.d.ts.map +1 -1
  293. package/dist-esm/src/netAppManagementClient.js +4 -3
  294. package/dist-esm/src/netAppManagementClient.js.map +1 -1
  295. package/dist-esm/src/operations/backupPolicies.js +2 -2
  296. package/dist-esm/src/operations/backups.js +2 -2
  297. package/dist-esm/src/operations/index.d.ts +1 -0
  298. package/dist-esm/src/operations/index.d.ts.map +1 -1
  299. package/dist-esm/src/operations/index.js +1 -0
  300. package/dist-esm/src/operations/index.js.map +1 -1
  301. package/dist-esm/src/operations/snapshotPolicies.js +2 -2
  302. package/dist-esm/src/operations/snapshots.d.ts +23 -1
  303. package/dist-esm/src/operations/snapshots.d.ts.map +1 -1
  304. package/dist-esm/src/operations/snapshots.js +84 -0
  305. package/dist-esm/src/operations/snapshots.js.map +1 -1
  306. package/dist-esm/src/operations/subvolumes.d.ts +139 -0
  307. package/dist-esm/src/operations/subvolumes.d.ts.map +1 -0
  308. package/dist-esm/src/operations/subvolumes.js +564 -0
  309. package/dist-esm/src/operations/subvolumes.js.map +1 -0
  310. package/dist-esm/src/operations/volumeGroups.js +1 -1
  311. package/dist-esm/src/operations/volumes.js +1 -1
  312. package/dist-esm/src/operations/volumes.js.map +1 -1
  313. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  314. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  315. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  316. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  317. package/dist-esm/src/operationsInterfaces/snapshots.d.ts +23 -1
  318. package/dist-esm/src/operationsInterfaces/snapshots.d.ts.map +1 -1
  319. package/dist-esm/src/operationsInterfaces/subvolumes.d.ts +110 -0
  320. package/dist-esm/src/operationsInterfaces/subvolumes.d.ts.map +1 -0
  321. package/dist-esm/src/operationsInterfaces/subvolumes.js +9 -0
  322. package/dist-esm/src/operationsInterfaces/subvolumes.js.map +1 -0
  323. package/package.json +33 -12
  324. package/review/arm-netapp.api.md +149 -0
  325. package/rollup.config.js +6 -72
  326. package/src/models/index.ts +228 -2
  327. package/src/models/mappers.ts +329 -8
  328. package/src/models/parameters.ts +53 -9
  329. package/src/netAppManagementClient.ts +8 -4
  330. package/src/operations/backupPolicies.ts +2 -2
  331. package/src/operations/backups.ts +2 -2
  332. package/src/operations/index.ts +1 -0
  333. package/src/operations/snapshotPolicies.ts +2 -2
  334. package/src/operations/snapshots.ts +131 -1
  335. package/src/operations/subvolumes.ts +843 -0
  336. package/src/operations/volumeGroups.ts +1 -1
  337. package/src/operations/volumes.ts +1 -1
  338. package/src/operationsInterfaces/index.ts +1 -0
  339. package/src/operationsInterfaces/snapshots.ts +41 -1
  340. package/src/operationsInterfaces/subvolumes.ts +220 -0
  341. package/tsconfig.json +19 -5
  342. package/types/arm-netapp.d.ts +353 -2
@@ -0,0 +1,843 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Subvolumes } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { NetAppManagementClient } from "../netAppManagementClient";
15
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
+ import { LroImpl } from "../lroImpl";
17
+ import {
18
+ SubvolumeInfo,
19
+ SubvolumesListByVolumeNextOptionalParams,
20
+ SubvolumesListByVolumeOptionalParams,
21
+ SubvolumesListByVolumeResponse,
22
+ SubvolumesGetOptionalParams,
23
+ SubvolumesGetResponse,
24
+ SubvolumesCreateOptionalParams,
25
+ SubvolumesCreateResponse,
26
+ SubvolumePatchRequest,
27
+ SubvolumesUpdateOptionalParams,
28
+ SubvolumesUpdateResponse,
29
+ SubvolumesDeleteOptionalParams,
30
+ SubvolumesGetMetadataOptionalParams,
31
+ SubvolumesGetMetadataResponse,
32
+ SubvolumesListByVolumeNextResponse
33
+ } from "../models";
34
+
35
+ /// <reference lib="esnext.asynciterable" />
36
+ /** Class containing Subvolumes operations. */
37
+ export class SubvolumesImpl implements Subvolumes {
38
+ private readonly client: NetAppManagementClient;
39
+
40
+ /**
41
+ * Initialize a new instance of the class Subvolumes class.
42
+ * @param client Reference to the service client
43
+ */
44
+ constructor(client: NetAppManagementClient) {
45
+ this.client = client;
46
+ }
47
+
48
+ /**
49
+ * Returns a list of the subvolumes in the volume
50
+ * @param resourceGroupName The name of the resource group.
51
+ * @param accountName The name of the NetApp account
52
+ * @param poolName The name of the capacity pool
53
+ * @param volumeName The name of the volume
54
+ * @param options The options parameters.
55
+ */
56
+ public listByVolume(
57
+ resourceGroupName: string,
58
+ accountName: string,
59
+ poolName: string,
60
+ volumeName: string,
61
+ options?: SubvolumesListByVolumeOptionalParams
62
+ ): PagedAsyncIterableIterator<SubvolumeInfo> {
63
+ const iter = this.listByVolumePagingAll(
64
+ resourceGroupName,
65
+ accountName,
66
+ poolName,
67
+ volumeName,
68
+ options
69
+ );
70
+ return {
71
+ next() {
72
+ return iter.next();
73
+ },
74
+ [Symbol.asyncIterator]() {
75
+ return this;
76
+ },
77
+ byPage: () => {
78
+ return this.listByVolumePagingPage(
79
+ resourceGroupName,
80
+ accountName,
81
+ poolName,
82
+ volumeName,
83
+ options
84
+ );
85
+ }
86
+ };
87
+ }
88
+
89
+ private async *listByVolumePagingPage(
90
+ resourceGroupName: string,
91
+ accountName: string,
92
+ poolName: string,
93
+ volumeName: string,
94
+ options?: SubvolumesListByVolumeOptionalParams
95
+ ): AsyncIterableIterator<SubvolumeInfo[]> {
96
+ let result = await this._listByVolume(
97
+ resourceGroupName,
98
+ accountName,
99
+ poolName,
100
+ volumeName,
101
+ options
102
+ );
103
+ yield result.value || [];
104
+ let continuationToken = result.nextLink;
105
+ while (continuationToken) {
106
+ result = await this._listByVolumeNext(
107
+ resourceGroupName,
108
+ accountName,
109
+ poolName,
110
+ volumeName,
111
+ continuationToken,
112
+ options
113
+ );
114
+ continuationToken = result.nextLink;
115
+ yield result.value || [];
116
+ }
117
+ }
118
+
119
+ private async *listByVolumePagingAll(
120
+ resourceGroupName: string,
121
+ accountName: string,
122
+ poolName: string,
123
+ volumeName: string,
124
+ options?: SubvolumesListByVolumeOptionalParams
125
+ ): AsyncIterableIterator<SubvolumeInfo> {
126
+ for await (const page of this.listByVolumePagingPage(
127
+ resourceGroupName,
128
+ accountName,
129
+ poolName,
130
+ volumeName,
131
+ options
132
+ )) {
133
+ yield* page;
134
+ }
135
+ }
136
+
137
+ /**
138
+ * Returns a list of the subvolumes in the volume
139
+ * @param resourceGroupName The name of the resource group.
140
+ * @param accountName The name of the NetApp account
141
+ * @param poolName The name of the capacity pool
142
+ * @param volumeName The name of the volume
143
+ * @param options The options parameters.
144
+ */
145
+ private _listByVolume(
146
+ resourceGroupName: string,
147
+ accountName: string,
148
+ poolName: string,
149
+ volumeName: string,
150
+ options?: SubvolumesListByVolumeOptionalParams
151
+ ): Promise<SubvolumesListByVolumeResponse> {
152
+ return this.client.sendOperationRequest(
153
+ { resourceGroupName, accountName, poolName, volumeName, options },
154
+ listByVolumeOperationSpec
155
+ );
156
+ }
157
+
158
+ /**
159
+ * Returns the path associated with the subvolumeName provided
160
+ * @param resourceGroupName The name of the resource group.
161
+ * @param accountName The name of the NetApp account
162
+ * @param poolName The name of the capacity pool
163
+ * @param volumeName The name of the volume
164
+ * @param subvolumeName The name of the subvolume.
165
+ * @param options The options parameters.
166
+ */
167
+ get(
168
+ resourceGroupName: string,
169
+ accountName: string,
170
+ poolName: string,
171
+ volumeName: string,
172
+ subvolumeName: string,
173
+ options?: SubvolumesGetOptionalParams
174
+ ): Promise<SubvolumesGetResponse> {
175
+ return this.client.sendOperationRequest(
176
+ {
177
+ resourceGroupName,
178
+ accountName,
179
+ poolName,
180
+ volumeName,
181
+ subvolumeName,
182
+ options
183
+ },
184
+ getOperationSpec
185
+ );
186
+ }
187
+
188
+ /**
189
+ * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath
190
+ * @param resourceGroupName The name of the resource group.
191
+ * @param accountName The name of the NetApp account
192
+ * @param poolName The name of the capacity pool
193
+ * @param volumeName The name of the volume
194
+ * @param subvolumeName The name of the subvolume.
195
+ * @param body Subvolume object supplied in the body of the operation.
196
+ * @param options The options parameters.
197
+ */
198
+ async beginCreate(
199
+ resourceGroupName: string,
200
+ accountName: string,
201
+ poolName: string,
202
+ volumeName: string,
203
+ subvolumeName: string,
204
+ body: SubvolumeInfo,
205
+ options?: SubvolumesCreateOptionalParams
206
+ ): Promise<
207
+ PollerLike<
208
+ PollOperationState<SubvolumesCreateResponse>,
209
+ SubvolumesCreateResponse
210
+ >
211
+ > {
212
+ const directSendOperation = async (
213
+ args: coreClient.OperationArguments,
214
+ spec: coreClient.OperationSpec
215
+ ): Promise<SubvolumesCreateResponse> => {
216
+ return this.client.sendOperationRequest(args, spec);
217
+ };
218
+ const sendOperation = async (
219
+ args: coreClient.OperationArguments,
220
+ spec: coreClient.OperationSpec
221
+ ) => {
222
+ let currentRawResponse:
223
+ | coreClient.FullOperationResponse
224
+ | undefined = undefined;
225
+ const providedCallback = args.options?.onResponse;
226
+ const callback: coreClient.RawResponseCallback = (
227
+ rawResponse: coreClient.FullOperationResponse,
228
+ flatResponse: unknown
229
+ ) => {
230
+ currentRawResponse = rawResponse;
231
+ providedCallback?.(rawResponse, flatResponse);
232
+ };
233
+ const updatedArgs = {
234
+ ...args,
235
+ options: {
236
+ ...args.options,
237
+ onResponse: callback
238
+ }
239
+ };
240
+ const flatResponse = await directSendOperation(updatedArgs, spec);
241
+ return {
242
+ flatResponse,
243
+ rawResponse: {
244
+ statusCode: currentRawResponse!.status,
245
+ body: currentRawResponse!.parsedBody,
246
+ headers: currentRawResponse!.headers.toJSON()
247
+ }
248
+ };
249
+ };
250
+
251
+ const lro = new LroImpl(
252
+ sendOperation,
253
+ {
254
+ resourceGroupName,
255
+ accountName,
256
+ poolName,
257
+ volumeName,
258
+ subvolumeName,
259
+ body,
260
+ options
261
+ },
262
+ createOperationSpec
263
+ );
264
+ return new LroEngine(lro, {
265
+ resumeFrom: options?.resumeFrom,
266
+ intervalInMs: options?.updateIntervalInMs,
267
+ lroResourceLocationConfig: "azure-async-operation"
268
+ });
269
+ }
270
+
271
+ /**
272
+ * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath
273
+ * @param resourceGroupName The name of the resource group.
274
+ * @param accountName The name of the NetApp account
275
+ * @param poolName The name of the capacity pool
276
+ * @param volumeName The name of the volume
277
+ * @param subvolumeName The name of the subvolume.
278
+ * @param body Subvolume object supplied in the body of the operation.
279
+ * @param options The options parameters.
280
+ */
281
+ async beginCreateAndWait(
282
+ resourceGroupName: string,
283
+ accountName: string,
284
+ poolName: string,
285
+ volumeName: string,
286
+ subvolumeName: string,
287
+ body: SubvolumeInfo,
288
+ options?: SubvolumesCreateOptionalParams
289
+ ): Promise<SubvolumesCreateResponse> {
290
+ const poller = await this.beginCreate(
291
+ resourceGroupName,
292
+ accountName,
293
+ poolName,
294
+ volumeName,
295
+ subvolumeName,
296
+ body,
297
+ options
298
+ );
299
+ return poller.pollUntilDone();
300
+ }
301
+
302
+ /**
303
+ * Patch a subvolume
304
+ * @param resourceGroupName The name of the resource group.
305
+ * @param accountName The name of the NetApp account
306
+ * @param poolName The name of the capacity pool
307
+ * @param volumeName The name of the volume
308
+ * @param subvolumeName The name of the subvolume.
309
+ * @param body Subvolume object supplied in the body of the operation.
310
+ * @param options The options parameters.
311
+ */
312
+ async beginUpdate(
313
+ resourceGroupName: string,
314
+ accountName: string,
315
+ poolName: string,
316
+ volumeName: string,
317
+ subvolumeName: string,
318
+ body: SubvolumePatchRequest,
319
+ options?: SubvolumesUpdateOptionalParams
320
+ ): Promise<
321
+ PollerLike<
322
+ PollOperationState<SubvolumesUpdateResponse>,
323
+ SubvolumesUpdateResponse
324
+ >
325
+ > {
326
+ const directSendOperation = async (
327
+ args: coreClient.OperationArguments,
328
+ spec: coreClient.OperationSpec
329
+ ): Promise<SubvolumesUpdateResponse> => {
330
+ return this.client.sendOperationRequest(args, spec);
331
+ };
332
+ const sendOperation = async (
333
+ args: coreClient.OperationArguments,
334
+ spec: coreClient.OperationSpec
335
+ ) => {
336
+ let currentRawResponse:
337
+ | coreClient.FullOperationResponse
338
+ | undefined = undefined;
339
+ const providedCallback = args.options?.onResponse;
340
+ const callback: coreClient.RawResponseCallback = (
341
+ rawResponse: coreClient.FullOperationResponse,
342
+ flatResponse: unknown
343
+ ) => {
344
+ currentRawResponse = rawResponse;
345
+ providedCallback?.(rawResponse, flatResponse);
346
+ };
347
+ const updatedArgs = {
348
+ ...args,
349
+ options: {
350
+ ...args.options,
351
+ onResponse: callback
352
+ }
353
+ };
354
+ const flatResponse = await directSendOperation(updatedArgs, spec);
355
+ return {
356
+ flatResponse,
357
+ rawResponse: {
358
+ statusCode: currentRawResponse!.status,
359
+ body: currentRawResponse!.parsedBody,
360
+ headers: currentRawResponse!.headers.toJSON()
361
+ }
362
+ };
363
+ };
364
+
365
+ const lro = new LroImpl(
366
+ sendOperation,
367
+ {
368
+ resourceGroupName,
369
+ accountName,
370
+ poolName,
371
+ volumeName,
372
+ subvolumeName,
373
+ body,
374
+ options
375
+ },
376
+ updateOperationSpec
377
+ );
378
+ return new LroEngine(lro, {
379
+ resumeFrom: options?.resumeFrom,
380
+ intervalInMs: options?.updateIntervalInMs,
381
+ lroResourceLocationConfig: "azure-async-operation"
382
+ });
383
+ }
384
+
385
+ /**
386
+ * Patch a subvolume
387
+ * @param resourceGroupName The name of the resource group.
388
+ * @param accountName The name of the NetApp account
389
+ * @param poolName The name of the capacity pool
390
+ * @param volumeName The name of the volume
391
+ * @param subvolumeName The name of the subvolume.
392
+ * @param body Subvolume object supplied in the body of the operation.
393
+ * @param options The options parameters.
394
+ */
395
+ async beginUpdateAndWait(
396
+ resourceGroupName: string,
397
+ accountName: string,
398
+ poolName: string,
399
+ volumeName: string,
400
+ subvolumeName: string,
401
+ body: SubvolumePatchRequest,
402
+ options?: SubvolumesUpdateOptionalParams
403
+ ): Promise<SubvolumesUpdateResponse> {
404
+ const poller = await this.beginUpdate(
405
+ resourceGroupName,
406
+ accountName,
407
+ poolName,
408
+ volumeName,
409
+ subvolumeName,
410
+ body,
411
+ options
412
+ );
413
+ return poller.pollUntilDone();
414
+ }
415
+
416
+ /**
417
+ * Delete subvolume
418
+ * @param resourceGroupName The name of the resource group.
419
+ * @param accountName The name of the NetApp account
420
+ * @param poolName The name of the capacity pool
421
+ * @param volumeName The name of the volume
422
+ * @param subvolumeName The name of the subvolume.
423
+ * @param options The options parameters.
424
+ */
425
+ async beginDelete(
426
+ resourceGroupName: string,
427
+ accountName: string,
428
+ poolName: string,
429
+ volumeName: string,
430
+ subvolumeName: string,
431
+ options?: SubvolumesDeleteOptionalParams
432
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
433
+ const directSendOperation = async (
434
+ args: coreClient.OperationArguments,
435
+ spec: coreClient.OperationSpec
436
+ ): Promise<void> => {
437
+ return this.client.sendOperationRequest(args, spec);
438
+ };
439
+ const sendOperation = async (
440
+ args: coreClient.OperationArguments,
441
+ spec: coreClient.OperationSpec
442
+ ) => {
443
+ let currentRawResponse:
444
+ | coreClient.FullOperationResponse
445
+ | undefined = undefined;
446
+ const providedCallback = args.options?.onResponse;
447
+ const callback: coreClient.RawResponseCallback = (
448
+ rawResponse: coreClient.FullOperationResponse,
449
+ flatResponse: unknown
450
+ ) => {
451
+ currentRawResponse = rawResponse;
452
+ providedCallback?.(rawResponse, flatResponse);
453
+ };
454
+ const updatedArgs = {
455
+ ...args,
456
+ options: {
457
+ ...args.options,
458
+ onResponse: callback
459
+ }
460
+ };
461
+ const flatResponse = await directSendOperation(updatedArgs, spec);
462
+ return {
463
+ flatResponse,
464
+ rawResponse: {
465
+ statusCode: currentRawResponse!.status,
466
+ body: currentRawResponse!.parsedBody,
467
+ headers: currentRawResponse!.headers.toJSON()
468
+ }
469
+ };
470
+ };
471
+
472
+ const lro = new LroImpl(
473
+ sendOperation,
474
+ {
475
+ resourceGroupName,
476
+ accountName,
477
+ poolName,
478
+ volumeName,
479
+ subvolumeName,
480
+ options
481
+ },
482
+ deleteOperationSpec
483
+ );
484
+ return new LroEngine(lro, {
485
+ resumeFrom: options?.resumeFrom,
486
+ intervalInMs: options?.updateIntervalInMs,
487
+ lroResourceLocationConfig: "azure-async-operation"
488
+ });
489
+ }
490
+
491
+ /**
492
+ * Delete subvolume
493
+ * @param resourceGroupName The name of the resource group.
494
+ * @param accountName The name of the NetApp account
495
+ * @param poolName The name of the capacity pool
496
+ * @param volumeName The name of the volume
497
+ * @param subvolumeName The name of the subvolume.
498
+ * @param options The options parameters.
499
+ */
500
+ async beginDeleteAndWait(
501
+ resourceGroupName: string,
502
+ accountName: string,
503
+ poolName: string,
504
+ volumeName: string,
505
+ subvolumeName: string,
506
+ options?: SubvolumesDeleteOptionalParams
507
+ ): Promise<void> {
508
+ const poller = await this.beginDelete(
509
+ resourceGroupName,
510
+ accountName,
511
+ poolName,
512
+ volumeName,
513
+ subvolumeName,
514
+ options
515
+ );
516
+ return poller.pollUntilDone();
517
+ }
518
+
519
+ /**
520
+ * Get details of the specified subvolume
521
+ * @param resourceGroupName The name of the resource group.
522
+ * @param accountName The name of the NetApp account
523
+ * @param poolName The name of the capacity pool
524
+ * @param volumeName The name of the volume
525
+ * @param subvolumeName The name of the subvolume.
526
+ * @param options The options parameters.
527
+ */
528
+ async beginGetMetadata(
529
+ resourceGroupName: string,
530
+ accountName: string,
531
+ poolName: string,
532
+ volumeName: string,
533
+ subvolumeName: string,
534
+ options?: SubvolumesGetMetadataOptionalParams
535
+ ): Promise<
536
+ PollerLike<
537
+ PollOperationState<SubvolumesGetMetadataResponse>,
538
+ SubvolumesGetMetadataResponse
539
+ >
540
+ > {
541
+ const directSendOperation = async (
542
+ args: coreClient.OperationArguments,
543
+ spec: coreClient.OperationSpec
544
+ ): Promise<SubvolumesGetMetadataResponse> => {
545
+ return this.client.sendOperationRequest(args, spec);
546
+ };
547
+ const sendOperation = async (
548
+ args: coreClient.OperationArguments,
549
+ spec: coreClient.OperationSpec
550
+ ) => {
551
+ let currentRawResponse:
552
+ | coreClient.FullOperationResponse
553
+ | undefined = undefined;
554
+ const providedCallback = args.options?.onResponse;
555
+ const callback: coreClient.RawResponseCallback = (
556
+ rawResponse: coreClient.FullOperationResponse,
557
+ flatResponse: unknown
558
+ ) => {
559
+ currentRawResponse = rawResponse;
560
+ providedCallback?.(rawResponse, flatResponse);
561
+ };
562
+ const updatedArgs = {
563
+ ...args,
564
+ options: {
565
+ ...args.options,
566
+ onResponse: callback
567
+ }
568
+ };
569
+ const flatResponse = await directSendOperation(updatedArgs, spec);
570
+ return {
571
+ flatResponse,
572
+ rawResponse: {
573
+ statusCode: currentRawResponse!.status,
574
+ body: currentRawResponse!.parsedBody,
575
+ headers: currentRawResponse!.headers.toJSON()
576
+ }
577
+ };
578
+ };
579
+
580
+ const lro = new LroImpl(
581
+ sendOperation,
582
+ {
583
+ resourceGroupName,
584
+ accountName,
585
+ poolName,
586
+ volumeName,
587
+ subvolumeName,
588
+ options
589
+ },
590
+ getMetadataOperationSpec
591
+ );
592
+ return new LroEngine(lro, {
593
+ resumeFrom: options?.resumeFrom,
594
+ intervalInMs: options?.updateIntervalInMs,
595
+ lroResourceLocationConfig: "azure-async-operation"
596
+ });
597
+ }
598
+
599
+ /**
600
+ * Get details of the specified subvolume
601
+ * @param resourceGroupName The name of the resource group.
602
+ * @param accountName The name of the NetApp account
603
+ * @param poolName The name of the capacity pool
604
+ * @param volumeName The name of the volume
605
+ * @param subvolumeName The name of the subvolume.
606
+ * @param options The options parameters.
607
+ */
608
+ async beginGetMetadataAndWait(
609
+ resourceGroupName: string,
610
+ accountName: string,
611
+ poolName: string,
612
+ volumeName: string,
613
+ subvolumeName: string,
614
+ options?: SubvolumesGetMetadataOptionalParams
615
+ ): Promise<SubvolumesGetMetadataResponse> {
616
+ const poller = await this.beginGetMetadata(
617
+ resourceGroupName,
618
+ accountName,
619
+ poolName,
620
+ volumeName,
621
+ subvolumeName,
622
+ options
623
+ );
624
+ return poller.pollUntilDone();
625
+ }
626
+
627
+ /**
628
+ * ListByVolumeNext
629
+ * @param resourceGroupName The name of the resource group.
630
+ * @param accountName The name of the NetApp account
631
+ * @param poolName The name of the capacity pool
632
+ * @param volumeName The name of the volume
633
+ * @param nextLink The nextLink from the previous successful call to the ListByVolume method.
634
+ * @param options The options parameters.
635
+ */
636
+ private _listByVolumeNext(
637
+ resourceGroupName: string,
638
+ accountName: string,
639
+ poolName: string,
640
+ volumeName: string,
641
+ nextLink: string,
642
+ options?: SubvolumesListByVolumeNextOptionalParams
643
+ ): Promise<SubvolumesListByVolumeNextResponse> {
644
+ return this.client.sendOperationRequest(
645
+ {
646
+ resourceGroupName,
647
+ accountName,
648
+ poolName,
649
+ volumeName,
650
+ nextLink,
651
+ options
652
+ },
653
+ listByVolumeNextOperationSpec
654
+ );
655
+ }
656
+ }
657
+ // Operation Specifications
658
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
659
+
660
+ const listByVolumeOperationSpec: coreClient.OperationSpec = {
661
+ path:
662
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes",
663
+ httpMethod: "GET",
664
+ responses: {
665
+ 200: {
666
+ bodyMapper: Mappers.SubvolumesList
667
+ },
668
+ default: {}
669
+ },
670
+ queryParameters: [Parameters.apiVersion],
671
+ urlParameters: [
672
+ Parameters.$host,
673
+ Parameters.subscriptionId,
674
+ Parameters.resourceGroupName,
675
+ Parameters.accountName,
676
+ Parameters.poolName,
677
+ Parameters.volumeName
678
+ ],
679
+ headerParameters: [Parameters.accept],
680
+ serializer
681
+ };
682
+ const getOperationSpec: coreClient.OperationSpec = {
683
+ path:
684
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}",
685
+ httpMethod: "GET",
686
+ responses: {
687
+ 200: {
688
+ bodyMapper: Mappers.SubvolumeInfo
689
+ },
690
+ default: {}
691
+ },
692
+ queryParameters: [Parameters.apiVersion],
693
+ urlParameters: [
694
+ Parameters.$host,
695
+ Parameters.subscriptionId,
696
+ Parameters.resourceGroupName,
697
+ Parameters.accountName,
698
+ Parameters.poolName,
699
+ Parameters.volumeName,
700
+ Parameters.subvolumeName
701
+ ],
702
+ headerParameters: [Parameters.accept],
703
+ serializer
704
+ };
705
+ const createOperationSpec: coreClient.OperationSpec = {
706
+ path:
707
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}",
708
+ httpMethod: "PUT",
709
+ responses: {
710
+ 200: {
711
+ bodyMapper: Mappers.SubvolumeInfo
712
+ },
713
+ 201: {
714
+ bodyMapper: Mappers.SubvolumeInfo
715
+ },
716
+ 202: {
717
+ bodyMapper: Mappers.SubvolumeInfo
718
+ },
719
+ 204: {
720
+ bodyMapper: Mappers.SubvolumeInfo
721
+ },
722
+ default: {}
723
+ },
724
+ requestBody: Parameters.body23,
725
+ queryParameters: [Parameters.apiVersion],
726
+ urlParameters: [
727
+ Parameters.$host,
728
+ Parameters.subscriptionId,
729
+ Parameters.resourceGroupName,
730
+ Parameters.accountName,
731
+ Parameters.poolName,
732
+ Parameters.volumeName,
733
+ Parameters.subvolumeName
734
+ ],
735
+ headerParameters: [Parameters.accept, Parameters.contentType],
736
+ mediaType: "json",
737
+ serializer
738
+ };
739
+ const updateOperationSpec: coreClient.OperationSpec = {
740
+ path:
741
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}",
742
+ httpMethod: "PATCH",
743
+ responses: {
744
+ 200: {
745
+ bodyMapper: Mappers.SubvolumeInfo
746
+ },
747
+ 201: {
748
+ bodyMapper: Mappers.SubvolumeInfo
749
+ },
750
+ 202: {
751
+ bodyMapper: Mappers.SubvolumeInfo
752
+ },
753
+ 204: {
754
+ bodyMapper: Mappers.SubvolumeInfo
755
+ },
756
+ default: {}
757
+ },
758
+ requestBody: Parameters.body24,
759
+ queryParameters: [Parameters.apiVersion],
760
+ urlParameters: [
761
+ Parameters.$host,
762
+ Parameters.subscriptionId,
763
+ Parameters.resourceGroupName,
764
+ Parameters.accountName,
765
+ Parameters.poolName,
766
+ Parameters.volumeName,
767
+ Parameters.subvolumeName
768
+ ],
769
+ headerParameters: [Parameters.accept, Parameters.contentType],
770
+ mediaType: "json",
771
+ serializer
772
+ };
773
+ const deleteOperationSpec: coreClient.OperationSpec = {
774
+ path:
775
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}",
776
+ httpMethod: "DELETE",
777
+ responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
778
+ queryParameters: [Parameters.apiVersion],
779
+ urlParameters: [
780
+ Parameters.$host,
781
+ Parameters.subscriptionId,
782
+ Parameters.resourceGroupName,
783
+ Parameters.accountName,
784
+ Parameters.poolName,
785
+ Parameters.volumeName,
786
+ Parameters.subvolumeName
787
+ ],
788
+ serializer
789
+ };
790
+ const getMetadataOperationSpec: coreClient.OperationSpec = {
791
+ path:
792
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}/getMetadata",
793
+ httpMethod: "POST",
794
+ responses: {
795
+ 200: {
796
+ bodyMapper: Mappers.SubvolumeModel
797
+ },
798
+ 201: {
799
+ bodyMapper: Mappers.SubvolumeModel
800
+ },
801
+ 202: {
802
+ bodyMapper: Mappers.SubvolumeModel
803
+ },
804
+ 204: {
805
+ bodyMapper: Mappers.SubvolumeModel
806
+ },
807
+ default: {}
808
+ },
809
+ queryParameters: [Parameters.apiVersion],
810
+ urlParameters: [
811
+ Parameters.$host,
812
+ Parameters.subscriptionId,
813
+ Parameters.resourceGroupName,
814
+ Parameters.accountName,
815
+ Parameters.poolName,
816
+ Parameters.volumeName,
817
+ Parameters.subvolumeName
818
+ ],
819
+ headerParameters: [Parameters.accept],
820
+ serializer
821
+ };
822
+ const listByVolumeNextOperationSpec: coreClient.OperationSpec = {
823
+ path: "{nextLink}",
824
+ httpMethod: "GET",
825
+ responses: {
826
+ 200: {
827
+ bodyMapper: Mappers.SubvolumesList
828
+ },
829
+ default: {}
830
+ },
831
+ queryParameters: [Parameters.apiVersion],
832
+ urlParameters: [
833
+ Parameters.$host,
834
+ Parameters.subscriptionId,
835
+ Parameters.resourceGroupName,
836
+ Parameters.accountName,
837
+ Parameters.nextLink,
838
+ Parameters.poolName,
839
+ Parameters.volumeName
840
+ ],
841
+ headerParameters: [Parameters.accept],
842
+ serializer
843
+ };