@azure/arm-netapp 14.1.1 → 15.0.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 (309) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +71 -79
  4. package/dist/index.js +8881 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +12 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/lroImpl.d.ts +16 -0
  13. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  14. package/dist-esm/src/lroImpl.js +29 -0
  15. package/dist-esm/src/lroImpl.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +2374 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +162 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +76 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/mappers.js +2254 -1426
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +46 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/dist-esm/src/models/parameters.js +319 -0
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/netAppManagementClient.d.ts +31 -0
  29. package/dist-esm/src/netAppManagementClient.d.ts.map +1 -0
  30. package/dist-esm/src/netAppManagementClient.js +64 -0
  31. package/dist-esm/src/netAppManagementClient.js.map +1 -0
  32. package/dist-esm/src/operations/accountBackups.d.ts +55 -0
  33. package/dist-esm/src/operations/accountBackups.d.ts.map +1 -0
  34. package/dist-esm/src/operations/accountBackups.js +195 -0
  35. package/dist-esm/src/operations/accountBackups.js.map +1 -0
  36. package/dist-esm/src/operations/accounts.d.ts +107 -0
  37. package/dist-esm/src/operations/accounts.d.ts.map +1 -0
  38. package/dist-esm/src/operations/accounts.js +482 -0
  39. package/dist-esm/src/operations/accounts.js.map +1 -0
  40. package/dist-esm/src/operations/backupPolicies.d.ts +91 -0
  41. package/dist-esm/src/operations/backupPolicies.d.ts.map +1 -0
  42. package/dist-esm/src/operations/backupPolicies.js +365 -0
  43. package/dist-esm/src/operations/backupPolicies.js.map +1 -0
  44. package/dist-esm/src/operations/backups.d.ts +125 -0
  45. package/dist-esm/src/operations/backups.d.ts.map +1 -0
  46. package/dist-esm/src/operations/backups.js +484 -0
  47. package/dist-esm/src/operations/backups.js.map +1 -0
  48. package/{esm → dist-esm/src}/operations/index.d.ts +2 -0
  49. package/dist-esm/src/operations/index.d.ts.map +1 -0
  50. package/dist-esm/src/operations/index.js +21 -0
  51. package/dist-esm/src/operations/index.js.map +1 -0
  52. package/dist-esm/src/operations/netAppResource.d.ts +40 -0
  53. package/dist-esm/src/operations/netAppResource.d.ts.map +1 -0
  54. package/dist-esm/src/operations/netAppResource.js +133 -0
  55. package/dist-esm/src/operations/netAppResource.js.map +1 -0
  56. package/dist-esm/src/operations/netAppResourceQuotaLimits.d.ts +35 -0
  57. package/dist-esm/src/operations/netAppResourceQuotaLimits.d.ts.map +1 -0
  58. package/dist-esm/src/operations/netAppResourceQuotaLimits.js +122 -0
  59. package/dist-esm/src/operations/netAppResourceQuotaLimits.js.map +1 -0
  60. package/dist-esm/src/operations/operations.d.ts +26 -0
  61. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  62. package/dist-esm/src/operations/operations.js +88 -0
  63. package/dist-esm/src/operations/operations.js.map +1 -0
  64. package/dist-esm/src/operations/pools.d.ts +99 -0
  65. package/dist-esm/src/operations/pools.d.ts.map +1 -0
  66. package/dist-esm/src/operations/pools.js +401 -0
  67. package/dist-esm/src/operations/pools.js.map +1 -0
  68. package/dist-esm/src/operations/snapshotPolicies.d.ts +90 -0
  69. package/dist-esm/src/operations/snapshotPolicies.d.ts.map +1 -0
  70. package/dist-esm/src/operations/snapshotPolicies.js +346 -0
  71. package/dist-esm/src/operations/snapshotPolicies.js.map +1 -0
  72. package/dist-esm/src/operations/snapshots.d.ts +109 -0
  73. package/dist-esm/src/operations/snapshots.d.ts.map +1 -0
  74. package/dist-esm/src/operations/snapshots.js +423 -0
  75. package/dist-esm/src/operations/snapshots.js.map +1 -0
  76. package/dist-esm/src/operations/vaults.d.ts +30 -0
  77. package/dist-esm/src/operations/vaults.d.ts.map +1 -0
  78. package/dist-esm/src/operations/vaults.js +97 -0
  79. package/dist-esm/src/operations/vaults.js.map +1 -0
  80. package/dist-esm/src/operations/volumeGroups.d.ts +73 -0
  81. package/dist-esm/src/operations/volumeGroups.d.ts.map +1 -0
  82. package/dist-esm/src/operations/volumeGroups.js +278 -0
  83. package/dist-esm/src/operations/volumeGroups.js.map +1 -0
  84. package/dist-esm/src/operations/volumes.d.ts +254 -0
  85. package/dist-esm/src/operations/volumes.d.ts.map +1 -0
  86. package/dist-esm/src/operations/volumes.js +956 -0
  87. package/dist-esm/src/operations/volumes.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/accountBackups.d.ts +38 -0
  89. package/dist-esm/src/operationsInterfaces/accountBackups.d.ts.map +1 -0
  90. package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/accountBackups.js} +2 -10
  91. package/dist-esm/src/operationsInterfaces/accountBackups.js.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/accounts.d.ts +71 -0
  93. package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
  94. package/{src/models/netAppResourceMappers.ts → dist-esm/src/operationsInterfaces/accounts.js} +2 -8
  95. package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/backupPolicies.d.ts +74 -0
  97. package/dist-esm/src/operationsInterfaces/backupPolicies.d.ts.map +1 -0
  98. package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/backupPolicies.js} +2 -2
  99. package/dist-esm/src/operationsInterfaces/backupPolicies.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/backups.d.ts +106 -0
  101. package/dist-esm/src/operationsInterfaces/backups.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/backups.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/backups.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/index.d.ts +14 -0
  105. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/index.js +21 -0
  107. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/netAppResource.d.ts +32 -0
  109. package/dist-esm/src/operationsInterfaces/netAppResource.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/netAppResource.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/netAppResource.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/netAppResourceQuotaLimits.d.ts +19 -0
  113. package/dist-esm/src/operationsInterfaces/netAppResourceQuotaLimits.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/netAppResourceQuotaLimits.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/netAppResourceQuotaLimits.js.map +1 -0
  116. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  117. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  118. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  119. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/pools.d.ts +74 -0
  121. package/dist-esm/src/operationsInterfaces/pools.d.ts.map +1 -0
  122. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/pools.js} +2 -1
  123. package/dist-esm/src/operationsInterfaces/pools.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/snapshotPolicies.d.ts +73 -0
  125. package/dist-esm/src/operationsInterfaces/snapshotPolicies.d.ts.map +1 -0
  126. package/dist-esm/src/operationsInterfaces/snapshotPolicies.js +9 -0
  127. package/dist-esm/src/operationsInterfaces/snapshotPolicies.js.map +1 -0
  128. package/dist-esm/src/operationsInterfaces/snapshots.d.ts +90 -0
  129. package/dist-esm/src/operationsInterfaces/snapshots.d.ts.map +1 -0
  130. package/dist-esm/src/operationsInterfaces/snapshots.js +9 -0
  131. package/dist-esm/src/operationsInterfaces/snapshots.js.map +1 -0
  132. package/dist-esm/src/operationsInterfaces/vaults.d.ts +13 -0
  133. package/dist-esm/src/operationsInterfaces/vaults.d.ts.map +1 -0
  134. package/dist-esm/src/operationsInterfaces/vaults.js +9 -0
  135. package/dist-esm/src/operationsInterfaces/vaults.js.map +1 -0
  136. package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts +56 -0
  137. package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts.map +1 -0
  138. package/dist-esm/src/operationsInterfaces/volumeGroups.js +9 -0
  139. package/dist-esm/src/operationsInterfaces/volumeGroups.js.map +1 -0
  140. package/dist-esm/src/operationsInterfaces/volumes.d.ts +227 -0
  141. package/dist-esm/src/operationsInterfaces/volumes.d.ts.map +1 -0
  142. package/dist-esm/src/operationsInterfaces/volumes.js +9 -0
  143. package/dist-esm/src/operationsInterfaces/volumes.js.map +1 -0
  144. package/dist-esm/test/sampleTest.d.ts +2 -0
  145. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  146. package/dist-esm/test/sampleTest.js +40 -0
  147. package/dist-esm/test/sampleTest.js.map +1 -0
  148. package/package.json +70 -32
  149. package/review/arm-netapp.api.md +1681 -0
  150. package/rollup.config.js +181 -30
  151. package/src/index.ts +12 -0
  152. package/src/lroImpl.ts +34 -0
  153. package/src/models/index.ts +1977 -2621
  154. package/src/models/mappers.ts +2392 -1509
  155. package/src/models/parameters.ts +281 -51
  156. package/src/netAppManagementClient.ts +128 -0
  157. package/src/operations/accountBackups.ts +187 -132
  158. package/src/operations/accounts.ts +506 -243
  159. package/src/operations/backupPolicies.ts +390 -223
  160. package/src/operations/backups.ts +486 -313
  161. package/src/operations/index.ts +3 -2
  162. package/src/operations/netAppResource.ts +112 -204
  163. package/src/operations/netAppResourceQuotaLimits.ts +150 -0
  164. package/src/operations/operations.ts +65 -43
  165. package/src/operations/pools.ts +430 -263
  166. package/src/operations/snapshotPolicies.ts +352 -282
  167. package/src/operations/snapshots.ts +459 -231
  168. package/src/operations/vaults.ts +81 -51
  169. package/src/operations/volumeGroups.ts +408 -0
  170. package/src/operations/volumes.ts +1101 -637
  171. package/src/operationsInterfaces/accountBackups.ts +72 -0
  172. package/src/operationsInterfaces/accounts.ts +139 -0
  173. package/src/operationsInterfaces/backupPolicies.ts +147 -0
  174. package/src/operationsInterfaces/backups.ts +202 -0
  175. package/{esm/operations/index.js → src/operationsInterfaces/index.ts} +4 -3
  176. package/src/operationsInterfaces/netAppResource.ts +66 -0
  177. package/src/operationsInterfaces/netAppResourceQuotaLimits.ts +40 -0
  178. package/src/operationsInterfaces/operations.ts +22 -0
  179. package/src/operationsInterfaces/pools.ts +144 -0
  180. package/src/operationsInterfaces/snapshotPolicies.ts +142 -0
  181. package/src/operationsInterfaces/snapshots.ts +178 -0
  182. package/src/operationsInterfaces/vaults.ts +26 -0
  183. package/src/operationsInterfaces/volumeGroups.ts +110 -0
  184. package/src/operationsInterfaces/volumes.ts +413 -0
  185. package/tsconfig.json +3 -3
  186. package/types/arm-netapp.d.ts +3485 -0
  187. package/types/tsdoc-metadata.json +11 -0
  188. package/dist/arm-netapp.js +0 -7016
  189. package/dist/arm-netapp.js.map +0 -1
  190. package/dist/arm-netapp.min.js +0 -1
  191. package/dist/arm-netapp.min.js.map +0 -1
  192. package/esm/azureNetAppFilesManagementClient.d.ts +0 -35
  193. package/esm/azureNetAppFilesManagementClient.d.ts.map +0 -1
  194. package/esm/azureNetAppFilesManagementClient.js +0 -48
  195. package/esm/azureNetAppFilesManagementClient.js.map +0 -1
  196. package/esm/azureNetAppFilesManagementClientContext.d.ts +0 -23
  197. package/esm/azureNetAppFilesManagementClientContext.d.ts.map +0 -1
  198. package/esm/azureNetAppFilesManagementClientContext.js +0 -61
  199. package/esm/azureNetAppFilesManagementClientContext.js.map +0 -1
  200. package/esm/models/accountBackupsMappers.d.ts +0 -2
  201. package/esm/models/accountBackupsMappers.d.ts.map +0 -1
  202. package/esm/models/accountBackupsMappers.js +0 -9
  203. package/esm/models/accountBackupsMappers.js.map +0 -1
  204. package/esm/models/accountsMappers.d.ts +0 -2
  205. package/esm/models/accountsMappers.d.ts.map +0 -1
  206. package/esm/models/accountsMappers.js +0 -9
  207. package/esm/models/accountsMappers.js.map +0 -1
  208. package/esm/models/backupPoliciesMappers.d.ts +0 -2
  209. package/esm/models/backupPoliciesMappers.d.ts.map +0 -1
  210. package/esm/models/backupPoliciesMappers.js +0 -9
  211. package/esm/models/backupPoliciesMappers.js.map +0 -1
  212. package/esm/models/backupsMappers.d.ts +0 -2
  213. package/esm/models/backupsMappers.d.ts.map +0 -1
  214. package/esm/models/backupsMappers.js +0 -9
  215. package/esm/models/backupsMappers.js.map +0 -1
  216. package/esm/models/index.d.ts +0 -3070
  217. package/esm/models/index.d.ts.map +0 -1
  218. package/esm/models/index.js.map +0 -1
  219. package/esm/models/mappers.d.ts +0 -65
  220. package/esm/models/mappers.d.ts.map +0 -1
  221. package/esm/models/mappers.js.map +0 -1
  222. package/esm/models/netAppResourceMappers.d.ts +0 -2
  223. package/esm/models/netAppResourceMappers.d.ts.map +0 -1
  224. package/esm/models/netAppResourceMappers.js +0 -9
  225. package/esm/models/netAppResourceMappers.js.map +0 -1
  226. package/esm/models/operationsMappers.d.ts +0 -2
  227. package/esm/models/operationsMappers.d.ts.map +0 -1
  228. package/esm/models/operationsMappers.js.map +0 -1
  229. package/esm/models/parameters.d.ts +0 -15
  230. package/esm/models/parameters.d.ts.map +0 -1
  231. package/esm/models/parameters.js +0 -158
  232. package/esm/models/parameters.js.map +0 -1
  233. package/esm/models/poolsMappers.d.ts +0 -2
  234. package/esm/models/poolsMappers.d.ts.map +0 -1
  235. package/esm/models/poolsMappers.js +0 -9
  236. package/esm/models/poolsMappers.js.map +0 -1
  237. package/esm/models/snapshotPoliciesMappers.d.ts +0 -2
  238. package/esm/models/snapshotPoliciesMappers.d.ts.map +0 -1
  239. package/esm/models/snapshotPoliciesMappers.js +0 -9
  240. package/esm/models/snapshotPoliciesMappers.js.map +0 -1
  241. package/esm/models/snapshotsMappers.d.ts +0 -2
  242. package/esm/models/snapshotsMappers.d.ts.map +0 -1
  243. package/esm/models/snapshotsMappers.js +0 -9
  244. package/esm/models/snapshotsMappers.js.map +0 -1
  245. package/esm/models/vaultsMappers.d.ts +0 -2
  246. package/esm/models/vaultsMappers.d.ts.map +0 -1
  247. package/esm/models/vaultsMappers.js +0 -9
  248. package/esm/models/vaultsMappers.js.map +0 -1
  249. package/esm/models/volumesMappers.d.ts +0 -2
  250. package/esm/models/volumesMappers.d.ts.map +0 -1
  251. package/esm/models/volumesMappers.js +0 -9
  252. package/esm/models/volumesMappers.js.map +0 -1
  253. package/esm/operations/accountBackups.d.ts +0 -81
  254. package/esm/operations/accountBackups.d.ts.map +0 -1
  255. package/esm/operations/accountBackups.js +0 -145
  256. package/esm/operations/accountBackups.js.map +0 -1
  257. package/esm/operations/accounts.d.ts +0 -132
  258. package/esm/operations/accounts.d.ts.map +0 -1
  259. package/esm/operations/accounts.js +0 -288
  260. package/esm/operations/accounts.js.map +0 -1
  261. package/esm/operations/backupPolicies.d.ts +0 -125
  262. package/esm/operations/backupPolicies.d.ts.map +0 -1
  263. package/esm/operations/backupPolicies.js +0 -277
  264. package/esm/operations/backupPolicies.js.map +0 -1
  265. package/esm/operations/backups.d.ts +0 -203
  266. package/esm/operations/backups.d.ts.map +0 -1
  267. package/esm/operations/backups.js +0 -379
  268. package/esm/operations/backups.js.map +0 -1
  269. package/esm/operations/index.d.ts.map +0 -1
  270. package/esm/operations/index.js.map +0 -1
  271. package/esm/operations/netAppResource.d.ts +0 -115
  272. package/esm/operations/netAppResource.d.ts.map +0 -1
  273. package/esm/operations/netAppResource.js +0 -145
  274. package/esm/operations/netAppResource.js.map +0 -1
  275. package/esm/operations/operations.d.ts +0 -29
  276. package/esm/operations/operations.d.ts.map +0 -1
  277. package/esm/operations/operations.js +0 -50
  278. package/esm/operations/operations.js.map +0 -1
  279. package/esm/operations/pools.d.ts +0 -144
  280. package/esm/operations/pools.d.ts.map +0 -1
  281. package/esm/operations/pools.js +0 -302
  282. package/esm/operations/pools.js.map +0 -1
  283. package/esm/operations/snapshotPolicies.d.ts +0 -149
  284. package/esm/operations/snapshotPolicies.d.ts.map +0 -1
  285. package/esm/operations/snapshotPolicies.js +0 -281
  286. package/esm/operations/snapshotPolicies.js.map +0 -1
  287. package/esm/operations/snapshots.d.ts +0 -149
  288. package/esm/operations/snapshots.d.ts.map +0 -1
  289. package/esm/operations/snapshots.js +0 -312
  290. package/esm/operations/snapshots.js.map +0 -1
  291. package/esm/operations/vaults.d.ts +0 -35
  292. package/esm/operations/vaults.d.ts.map +0 -1
  293. package/esm/operations/vaults.js +0 -57
  294. package/esm/operations/vaults.js.map +0 -1
  295. package/esm/operations/volumes.d.ts +0 -344
  296. package/esm/operations/volumes.d.ts.map +0 -1
  297. package/esm/operations/volumes.js +0 -800
  298. package/esm/operations/volumes.js.map +0 -1
  299. package/src/azureNetAppFilesManagementClient.ts +0 -68
  300. package/src/azureNetAppFilesManagementClientContext.ts +0 -68
  301. package/src/models/accountBackupsMappers.ts +0 -44
  302. package/src/models/accountsMappers.ts +0 -44
  303. package/src/models/backupPoliciesMappers.ts +0 -44
  304. package/src/models/backupsMappers.ts +0 -46
  305. package/src/models/poolsMappers.ts +0 -44
  306. package/src/models/snapshotPoliciesMappers.ts +0 -46
  307. package/src/models/snapshotsMappers.ts +0 -44
  308. package/src/models/vaultsMappers.ts +0 -44
  309. package/src/models/volumesMappers.ts +0 -49
@@ -3,12 +3,12 @@
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
9
  export * from "./operations";
11
10
  export * from "./netAppResource";
11
+ export * from "./netAppResourceQuotaLimits";
12
12
  export * from "./accounts";
13
13
  export * from "./pools";
14
14
  export * from "./volumes";
@@ -18,3 +18,4 @@ export * from "./backups";
18
18
  export * from "./accountBackups";
19
19
  export * from "./backupPolicies";
20
20
  export * from "./vaults";
21
+ export * from "./volumeGroups";
@@ -3,271 +3,179 @@
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/netAppResourceMappers";
9
+ import { NetAppResource } 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
- import { AzureNetAppFilesManagementClientContext } from "../azureNetAppFilesManagementClientContext";
13
+ import { NetAppManagementClient } from "../netAppManagementClient";
14
+ import {
15
+ CheckNameResourceTypes,
16
+ NetAppResourceCheckNameAvailabilityOptionalParams,
17
+ NetAppResourceCheckNameAvailabilityResponse,
18
+ NetAppResourceCheckFilePathAvailabilityOptionalParams,
19
+ NetAppResourceCheckFilePathAvailabilityResponse,
20
+ CheckQuotaNameResourceTypes,
21
+ NetAppResourceCheckQuotaAvailabilityOptionalParams,
22
+ NetAppResourceCheckQuotaAvailabilityResponse
23
+ } from "../models";
15
24
 
16
- /** Class representing a NetAppResource. */
17
- export class NetAppResource {
18
- private readonly client: AzureNetAppFilesManagementClientContext;
25
+ /** Class containing NetAppResource operations. */
26
+ export class NetAppResourceImpl implements NetAppResource {
27
+ private readonly client: NetAppManagementClient;
19
28
 
20
29
  /**
21
- * Create a NetAppResource.
22
- * @param {AzureNetAppFilesManagementClientContext} client Reference to the service client.
30
+ * Initialize a new instance of the class NetAppResource class.
31
+ * @param client Reference to the service client
23
32
  */
24
- constructor(client: AzureNetAppFilesManagementClientContext) {
33
+ constructor(client: NetAppManagementClient) {
25
34
  this.client = client;
26
35
  }
27
36
 
28
37
  /**
29
38
  * Check if a resource name is available.
30
- * @summary Check resource name availability
31
39
  * @param location The location
32
40
  * @param name Resource name to verify.
33
- * @param type Resource type used for verification. Possible values include:
34
- * 'Microsoft.NetApp/netAppAccounts', 'Microsoft.NetApp/netAppAccounts/capacityPools',
35
- * 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes',
36
- * 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'
37
41
  * @param resourceGroup Resource group name.
38
- * @param [options] The optional parameters
39
- * @returns Promise<Models.NetAppResourceCheckNameAvailabilityResponse>
42
+ * @param typeParam Resource type used for verification.
43
+ * @param options The options parameters.
40
44
  */
41
- checkNameAvailability(location: string, name: string, type: Models.CheckNameResourceTypes, resourceGroup: string, options?: msRest.RequestOptionsBase): Promise<Models.NetAppResourceCheckNameAvailabilityResponse>;
42
- /**
43
- * @param location The location
44
- * @param name Resource name to verify.
45
- * @param type Resource type used for verification. Possible values include:
46
- * 'Microsoft.NetApp/netAppAccounts', 'Microsoft.NetApp/netAppAccounts/capacityPools',
47
- * 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes',
48
- * 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'
49
- * @param resourceGroup Resource group name.
50
- * @param callback The callback
51
- */
52
- checkNameAvailability(location: string, name: string, type: Models.CheckNameResourceTypes, resourceGroup: string, callback: msRest.ServiceCallback<Models.CheckAvailabilityResponse>): void;
53
- /**
54
- * @param location The location
55
- * @param name Resource name to verify.
56
- * @param type Resource type used for verification. Possible values include:
57
- * 'Microsoft.NetApp/netAppAccounts', 'Microsoft.NetApp/netAppAccounts/capacityPools',
58
- * 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes',
59
- * 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'
60
- * @param resourceGroup Resource group name.
61
- * @param options The optional parameters
62
- * @param callback The callback
63
- */
64
- checkNameAvailability(location: string, name: string, type: Models.CheckNameResourceTypes, resourceGroup: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CheckAvailabilityResponse>): void;
65
- checkNameAvailability(location: string, name: string, type: Models.CheckNameResourceTypes, resourceGroup: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CheckAvailabilityResponse>, callback?: msRest.ServiceCallback<Models.CheckAvailabilityResponse>): Promise<Models.NetAppResourceCheckNameAvailabilityResponse> {
45
+ checkNameAvailability(
46
+ location: string,
47
+ name: string,
48
+ resourceGroup: string,
49
+ typeParam: CheckNameResourceTypes,
50
+ options?: NetAppResourceCheckNameAvailabilityOptionalParams
51
+ ): Promise<NetAppResourceCheckNameAvailabilityResponse> {
66
52
  return this.client.sendOperationRequest(
67
- {
68
- location,
69
- name,
70
- type,
71
- resourceGroup,
72
- options
73
- },
74
- checkNameAvailabilityOperationSpec,
75
- callback) as Promise<Models.NetAppResourceCheckNameAvailabilityResponse>;
53
+ { location, name, resourceGroup, typeParam, options },
54
+ checkNameAvailabilityOperationSpec
55
+ );
76
56
  }
77
57
 
78
58
  /**
79
59
  * Check if a file path is available.
80
- * @summary Check file path availability
81
60
  * @param location The location
82
61
  * @param name File path to verify.
83
62
  * @param subnetId The Azure Resource URI for a delegated subnet. Must have the delegation
84
- * Microsoft.NetApp/volumes
85
- * @param [options] The optional parameters
86
- * @returns Promise<Models.NetAppResourceCheckFilePathAvailabilityResponse>
63
+ * Microsoft.NetApp/volumes
64
+ * @param options The options parameters.
87
65
  */
88
- checkFilePathAvailability(location: string, name: string, subnetId: string, options?: msRest.RequestOptionsBase): Promise<Models.NetAppResourceCheckFilePathAvailabilityResponse>;
89
- /**
90
- * @param location The location
91
- * @param name File path to verify.
92
- * @param subnetId The Azure Resource URI for a delegated subnet. Must have the delegation
93
- * Microsoft.NetApp/volumes
94
- * @param callback The callback
95
- */
96
- checkFilePathAvailability(location: string, name: string, subnetId: string, callback: msRest.ServiceCallback<Models.CheckAvailabilityResponse>): void;
97
- /**
98
- * @param location The location
99
- * @param name File path to verify.
100
- * @param subnetId The Azure Resource URI for a delegated subnet. Must have the delegation
101
- * Microsoft.NetApp/volumes
102
- * @param options The optional parameters
103
- * @param callback The callback
104
- */
105
- checkFilePathAvailability(location: string, name: string, subnetId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CheckAvailabilityResponse>): void;
106
- checkFilePathAvailability(location: string, name: string, subnetId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CheckAvailabilityResponse>, callback?: msRest.ServiceCallback<Models.CheckAvailabilityResponse>): Promise<Models.NetAppResourceCheckFilePathAvailabilityResponse> {
66
+ checkFilePathAvailability(
67
+ location: string,
68
+ name: string,
69
+ subnetId: string,
70
+ options?: NetAppResourceCheckFilePathAvailabilityOptionalParams
71
+ ): Promise<NetAppResourceCheckFilePathAvailabilityResponse> {
107
72
  return this.client.sendOperationRequest(
108
- {
109
- location,
110
- name,
111
- subnetId,
112
- options
113
- },
114
- checkFilePathAvailabilityOperationSpec,
115
- callback) as Promise<Models.NetAppResourceCheckFilePathAvailabilityResponse>;
73
+ { location, name, subnetId, options },
74
+ checkFilePathAvailabilityOperationSpec
75
+ );
116
76
  }
117
77
 
118
78
  /**
119
79
  * Check if a quota is available.
120
- * @summary Check quota availability
121
80
  * @param location The location
122
81
  * @param name Name of the resource to verify.
123
- * @param type Resource type used for verification. Possible values include:
124
- * 'Microsoft.NetApp/netAppAccounts', 'Microsoft.NetApp/netAppAccounts/capacityPools',
125
- * 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes',
126
- * 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'
127
82
  * @param resourceGroup Resource group name.
128
- * @param [options] The optional parameters
129
- * @returns Promise<Models.NetAppResourceCheckQuotaAvailabilityResponse>
83
+ * @param typeParam Resource type used for verification.
84
+ * @param options The options parameters.
130
85
  */
131
- checkQuotaAvailability(location: string, name: string, type: Models.CheckQuotaNameResourceTypes, resourceGroup: string, options?: msRest.RequestOptionsBase): Promise<Models.NetAppResourceCheckQuotaAvailabilityResponse>;
132
- /**
133
- * @param location The location
134
- * @param name Name of the resource to verify.
135
- * @param type Resource type used for verification. Possible values include:
136
- * 'Microsoft.NetApp/netAppAccounts', 'Microsoft.NetApp/netAppAccounts/capacityPools',
137
- * 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes',
138
- * 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'
139
- * @param resourceGroup Resource group name.
140
- * @param callback The callback
141
- */
142
- checkQuotaAvailability(location: string, name: string, type: Models.CheckQuotaNameResourceTypes, resourceGroup: string, callback: msRest.ServiceCallback<Models.CheckAvailabilityResponse>): void;
143
- /**
144
- * @param location The location
145
- * @param name Name of the resource to verify.
146
- * @param type Resource type used for verification. Possible values include:
147
- * 'Microsoft.NetApp/netAppAccounts', 'Microsoft.NetApp/netAppAccounts/capacityPools',
148
- * 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes',
149
- * 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'
150
- * @param resourceGroup Resource group name.
151
- * @param options The optional parameters
152
- * @param callback The callback
153
- */
154
- checkQuotaAvailability(location: string, name: string, type: Models.CheckQuotaNameResourceTypes, resourceGroup: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CheckAvailabilityResponse>): void;
155
- checkQuotaAvailability(location: string, name: string, type: Models.CheckQuotaNameResourceTypes, resourceGroup: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CheckAvailabilityResponse>, callback?: msRest.ServiceCallback<Models.CheckAvailabilityResponse>): Promise<Models.NetAppResourceCheckQuotaAvailabilityResponse> {
86
+ checkQuotaAvailability(
87
+ location: string,
88
+ name: string,
89
+ resourceGroup: string,
90
+ typeParam: CheckQuotaNameResourceTypes,
91
+ options?: NetAppResourceCheckQuotaAvailabilityOptionalParams
92
+ ): Promise<NetAppResourceCheckQuotaAvailabilityResponse> {
156
93
  return this.client.sendOperationRequest(
157
- {
158
- location,
159
- name,
160
- type,
161
- resourceGroup,
162
- options
163
- },
164
- checkQuotaAvailabilityOperationSpec,
165
- callback) as Promise<Models.NetAppResourceCheckQuotaAvailabilityResponse>;
94
+ { location, name, resourceGroup, typeParam, options },
95
+ checkQuotaAvailabilityOperationSpec
96
+ );
166
97
  }
167
98
  }
168
-
169
99
  // Operation Specifications
170
- const serializer = new msRest.Serializer(Mappers);
171
- const checkNameAvailabilityOperationSpec: msRest.OperationSpec = {
100
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
101
+
102
+ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {
103
+ path:
104
+ "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability",
172
105
  httpMethod: "POST",
173
- path: "subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability",
174
- urlParameters: [
175
- Parameters.subscriptionId,
176
- Parameters.location
177
- ],
178
- queryParameters: [
179
- Parameters.apiVersion
180
- ],
181
- headerParameters: [
182
- Parameters.acceptLanguage
183
- ],
184
- requestBody: {
185
- parameterPath: {
186
- name: "name",
187
- type: "type",
188
- resourceGroup: "resourceGroup"
189
- },
190
- mapper: {
191
- ...Mappers.ResourceNameAvailabilityRequest,
192
- required: true
193
- }
194
- },
195
106
  responses: {
196
107
  200: {
197
108
  bodyMapper: Mappers.CheckAvailabilityResponse
198
109
  },
199
- default: {
200
- bodyMapper: Mappers.CloudError
201
- }
110
+ default: {}
202
111
  },
203
- serializer
204
- };
205
-
206
- const checkFilePathAvailabilityOperationSpec: msRest.OperationSpec = {
207
- httpMethod: "POST",
208
- path: "subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability",
209
- urlParameters: [
210
- Parameters.subscriptionId,
211
- Parameters.location
212
- ],
213
- queryParameters: [
214
- Parameters.apiVersion
215
- ],
216
- headerParameters: [
217
- Parameters.acceptLanguage
218
- ],
219
112
  requestBody: {
220
113
  parameterPath: {
221
- name: "name",
222
- subnetId: "subnetId"
114
+ name: ["name"],
115
+ typeParam: ["typeParam"],
116
+ resourceGroup: ["resourceGroup"]
223
117
  },
224
- mapper: {
225
- ...Mappers.FilePathAvailabilityRequest,
226
- required: true
227
- }
118
+ mapper: { ...Mappers.ResourceNameAvailabilityRequest, required: true }
228
119
  },
120
+ queryParameters: [Parameters.apiVersion],
121
+ urlParameters: [
122
+ Parameters.$host,
123
+ Parameters.subscriptionId,
124
+ Parameters.location
125
+ ],
126
+ headerParameters: [Parameters.accept, Parameters.contentType],
127
+ mediaType: "json",
128
+ serializer
129
+ };
130
+ const checkFilePathAvailabilityOperationSpec: coreClient.OperationSpec = {
131
+ path:
132
+ "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability",
133
+ httpMethod: "POST",
229
134
  responses: {
230
135
  200: {
231
136
  bodyMapper: Mappers.CheckAvailabilityResponse
232
137
  },
233
- default: {
234
- bodyMapper: Mappers.CloudError
235
- }
138
+ default: {}
236
139
  },
237
- serializer
238
- };
239
-
240
- const checkQuotaAvailabilityOperationSpec: msRest.OperationSpec = {
241
- httpMethod: "POST",
242
- path: "subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkQuotaAvailability",
140
+ requestBody: {
141
+ parameterPath: { name: ["name"], subnetId: ["subnetId"] },
142
+ mapper: { ...Mappers.FilePathAvailabilityRequest, required: true }
143
+ },
144
+ queryParameters: [Parameters.apiVersion],
243
145
  urlParameters: [
146
+ Parameters.$host,
244
147
  Parameters.subscriptionId,
245
148
  Parameters.location
246
149
  ],
247
- queryParameters: [
248
- Parameters.apiVersion
249
- ],
250
- headerParameters: [
251
- Parameters.acceptLanguage
252
- ],
253
- requestBody: {
254
- parameterPath: {
255
- name: "name",
256
- type: "type",
257
- resourceGroup: "resourceGroup"
258
- },
259
- mapper: {
260
- ...Mappers.QuotaAvailabilityRequest,
261
- required: true
262
- }
263
- },
150
+ headerParameters: [Parameters.accept, Parameters.contentType],
151
+ mediaType: "json",
152
+ serializer
153
+ };
154
+ const checkQuotaAvailabilityOperationSpec: coreClient.OperationSpec = {
155
+ path:
156
+ "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkQuotaAvailability",
157
+ httpMethod: "POST",
264
158
  responses: {
265
159
  200: {
266
160
  bodyMapper: Mappers.CheckAvailabilityResponse
267
161
  },
268
- default: {
269
- bodyMapper: Mappers.CloudError
270
- }
162
+ default: {}
163
+ },
164
+ requestBody: {
165
+ parameterPath: {
166
+ name: ["name"],
167
+ typeParam: ["typeParam"],
168
+ resourceGroup: ["resourceGroup"]
169
+ },
170
+ mapper: { ...Mappers.QuotaAvailabilityRequest, required: true }
271
171
  },
172
+ queryParameters: [Parameters.apiVersion],
173
+ urlParameters: [
174
+ Parameters.$host,
175
+ Parameters.subscriptionId,
176
+ Parameters.location
177
+ ],
178
+ headerParameters: [Parameters.accept, Parameters.contentType],
179
+ mediaType: "json",
272
180
  serializer
273
181
  };
@@ -0,0 +1,150 @@
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 { NetAppResourceQuotaLimits } 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 {
16
+ SubscriptionQuotaItem,
17
+ NetAppResourceQuotaLimitsListOptionalParams,
18
+ NetAppResourceQuotaLimitsListResponse,
19
+ NetAppResourceQuotaLimitsGetOptionalParams,
20
+ NetAppResourceQuotaLimitsGetResponse
21
+ } from "../models";
22
+
23
+ /// <reference lib="esnext.asynciterable" />
24
+ /** Class containing NetAppResourceQuotaLimits operations. */
25
+ export class NetAppResourceQuotaLimitsImpl
26
+ implements NetAppResourceQuotaLimits {
27
+ private readonly client: NetAppManagementClient;
28
+
29
+ /**
30
+ * Initialize a new instance of the class NetAppResourceQuotaLimits class.
31
+ * @param client Reference to the service client
32
+ */
33
+ constructor(client: NetAppManagementClient) {
34
+ this.client = client;
35
+ }
36
+
37
+ /**
38
+ * Get the default and current limits for quotas
39
+ * @param location The location
40
+ * @param options The options parameters.
41
+ */
42
+ public list(
43
+ location: string,
44
+ options?: NetAppResourceQuotaLimitsListOptionalParams
45
+ ): PagedAsyncIterableIterator<SubscriptionQuotaItem> {
46
+ const iter = this.listPagingAll(location, options);
47
+ return {
48
+ next() {
49
+ return iter.next();
50
+ },
51
+ [Symbol.asyncIterator]() {
52
+ return this;
53
+ },
54
+ byPage: () => {
55
+ return this.listPagingPage(location, options);
56
+ }
57
+ };
58
+ }
59
+
60
+ private async *listPagingPage(
61
+ location: string,
62
+ options?: NetAppResourceQuotaLimitsListOptionalParams
63
+ ): AsyncIterableIterator<SubscriptionQuotaItem[]> {
64
+ let result = await this._list(location, options);
65
+ yield result.value || [];
66
+ }
67
+
68
+ private async *listPagingAll(
69
+ location: string,
70
+ options?: NetAppResourceQuotaLimitsListOptionalParams
71
+ ): AsyncIterableIterator<SubscriptionQuotaItem> {
72
+ for await (const page of this.listPagingPage(location, options)) {
73
+ yield* page;
74
+ }
75
+ }
76
+
77
+ /**
78
+ * Get the default and current limits for quotas
79
+ * @param location The location
80
+ * @param options The options parameters.
81
+ */
82
+ private _list(
83
+ location: string,
84
+ options?: NetAppResourceQuotaLimitsListOptionalParams
85
+ ): Promise<NetAppResourceQuotaLimitsListResponse> {
86
+ return this.client.sendOperationRequest(
87
+ { location, options },
88
+ listOperationSpec
89
+ );
90
+ }
91
+
92
+ /**
93
+ * Get the default and current subscription quota limit
94
+ * @param location The location
95
+ * @param quotaLimitName The name of the Quota Limit
96
+ * @param options The options parameters.
97
+ */
98
+ get(
99
+ location: string,
100
+ quotaLimitName: string,
101
+ options?: NetAppResourceQuotaLimitsGetOptionalParams
102
+ ): Promise<NetAppResourceQuotaLimitsGetResponse> {
103
+ return this.client.sendOperationRequest(
104
+ { location, quotaLimitName, options },
105
+ getOperationSpec
106
+ );
107
+ }
108
+ }
109
+ // Operation Specifications
110
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
111
+
112
+ const listOperationSpec: coreClient.OperationSpec = {
113
+ path:
114
+ "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits",
115
+ httpMethod: "GET",
116
+ responses: {
117
+ 200: {
118
+ bodyMapper: Mappers.SubscriptionQuotaItemList
119
+ },
120
+ default: {}
121
+ },
122
+ queryParameters: [Parameters.apiVersion],
123
+ urlParameters: [
124
+ Parameters.$host,
125
+ Parameters.subscriptionId,
126
+ Parameters.location
127
+ ],
128
+ headerParameters: [Parameters.accept],
129
+ serializer
130
+ };
131
+ const getOperationSpec: coreClient.OperationSpec = {
132
+ path:
133
+ "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits/{quotaLimitName}",
134
+ httpMethod: "GET",
135
+ responses: {
136
+ 200: {
137
+ bodyMapper: Mappers.SubscriptionQuotaItem
138
+ },
139
+ default: {}
140
+ },
141
+ queryParameters: [Parameters.apiVersion],
142
+ urlParameters: [
143
+ Parameters.$host,
144
+ Parameters.subscriptionId,
145
+ Parameters.location,
146
+ Parameters.quotaLimitName
147
+ ],
148
+ headerParameters: [Parameters.accept],
149
+ serializer
150
+ };