@azure/arm-avs 1.0.0 → 3.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 (301) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +72 -73
  4. package/dist/index.js +11681 -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/azureVMwareSolutionAPI.d.ts +33 -0
  9. package/dist-esm/src/azureVMwareSolutionAPI.d.ts.map +1 -0
  10. package/dist-esm/src/azureVMwareSolutionAPI.js +66 -0
  11. package/dist-esm/src/azureVMwareSolutionAPI.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/lroImpl.d.ts +16 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/src/lroImpl.js +29 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +2962 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +363 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +115 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/dist-esm/src/models/mappers.js +3114 -0
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +53 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/dist-esm/src/models/parameters.js +409 -0
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/addons.d.ts +81 -0
  33. package/dist-esm/src/operations/addons.d.ts.map +1 -0
  34. package/dist-esm/src/operations/addons.js +331 -0
  35. package/dist-esm/src/operations/addons.js.map +1 -0
  36. package/dist-esm/src/operations/authorizations.d.ts +81 -0
  37. package/dist-esm/src/operations/authorizations.d.ts.map +1 -0
  38. package/dist-esm/src/operations/authorizations.js +337 -0
  39. package/dist-esm/src/operations/authorizations.js.map +1 -0
  40. package/dist-esm/src/operations/cloudLinks.d.ts +81 -0
  41. package/dist-esm/src/operations/cloudLinks.d.ts.map +1 -0
  42. package/dist-esm/src/operations/cloudLinks.js +337 -0
  43. package/dist-esm/src/operations/cloudLinks.js.map +1 -0
  44. package/dist-esm/src/operations/clusters.d.ts +99 -0
  45. package/dist-esm/src/operations/clusters.d.ts.map +1 -0
  46. package/dist-esm/src/operations/clusters.js +423 -0
  47. package/dist-esm/src/operations/clusters.js.map +1 -0
  48. package/dist-esm/src/operations/datastores.d.ts +89 -0
  49. package/dist-esm/src/operations/datastores.d.ts.map +1 -0
  50. package/dist-esm/src/operations/datastores.js +363 -0
  51. package/dist-esm/src/operations/datastores.js.map +1 -0
  52. package/dist-esm/src/operations/globalReachConnections.d.ts +81 -0
  53. package/dist-esm/src/operations/globalReachConnections.d.ts.map +1 -0
  54. package/dist-esm/src/operations/globalReachConnections.js +347 -0
  55. package/dist-esm/src/operations/globalReachConnections.js.map +1 -0
  56. package/dist-esm/src/operations/hcxEnterpriseSites.d.ts +63 -0
  57. package/dist-esm/src/operations/hcxEnterpriseSites.d.ts.map +1 -0
  58. package/dist-esm/src/operations/hcxEnterpriseSites.js +244 -0
  59. package/dist-esm/src/operations/hcxEnterpriseSites.js.map +1 -0
  60. package/dist-esm/src/operations/index.d.ts +17 -0
  61. package/dist-esm/src/operations/index.d.ts.map +1 -0
  62. package/dist-esm/src/operations/index.js +24 -0
  63. package/dist-esm/src/operations/index.js.map +1 -0
  64. package/dist-esm/src/operations/locations.d.ts +25 -0
  65. package/dist-esm/src/operations/locations.d.ts.map +1 -0
  66. package/dist-esm/src/operations/locations.js +79 -0
  67. package/dist-esm/src/operations/locations.js.map +1 -0
  68. package/dist-esm/src/operations/operations.d.ts +32 -0
  69. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  70. package/dist-esm/src/operations/operations.js +120 -0
  71. package/dist-esm/src/operations/operations.js.map +1 -0
  72. package/dist-esm/src/operations/placementPolicies.d.ts +116 -0
  73. package/dist-esm/src/operations/placementPolicies.d.ts.map +1 -0
  74. package/dist-esm/src/operations/placementPolicies.js +466 -0
  75. package/dist-esm/src/operations/placementPolicies.js.map +1 -0
  76. package/dist-esm/src/operations/privateClouds.d.ts +142 -0
  77. package/dist-esm/src/operations/privateClouds.d.ts.map +1 -0
  78. package/dist-esm/src/operations/privateClouds.js +672 -0
  79. package/dist-esm/src/operations/privateClouds.js.map +1 -0
  80. package/dist-esm/src/operations/scriptCmdlets.d.ts +53 -0
  81. package/dist-esm/src/operations/scriptCmdlets.d.ts.map +1 -0
  82. package/dist-esm/src/operations/scriptCmdlets.js +191 -0
  83. package/dist-esm/src/operations/scriptCmdlets.js.map +1 -0
  84. package/dist-esm/src/operations/scriptExecutions.d.ts +89 -0
  85. package/dist-esm/src/operations/scriptExecutions.d.ts.map +1 -0
  86. package/dist-esm/src/operations/scriptExecutions.js +371 -0
  87. package/dist-esm/src/operations/scriptExecutions.js.map +1 -0
  88. package/dist-esm/src/operations/scriptPackages.d.ts +46 -0
  89. package/dist-esm/src/operations/scriptPackages.d.ts.map +1 -0
  90. package/dist-esm/src/operations/scriptPackages.js +169 -0
  91. package/dist-esm/src/operations/scriptPackages.js.map +1 -0
  92. package/dist-esm/src/operations/virtualMachines.d.ts +71 -0
  93. package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -0
  94. package/dist-esm/src/operations/virtualMachines.js +272 -0
  95. package/dist-esm/src/operations/virtualMachines.js.map +1 -0
  96. package/dist-esm/src/operations/workloadNetworks.d.ts +661 -0
  97. package/dist-esm/src/operations/workloadNetworks.d.ts.map +1 -0
  98. package/dist-esm/src/operations/workloadNetworks.js +3049 -0
  99. package/dist-esm/src/operations/workloadNetworks.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/addons.d.ts +56 -0
  101. package/dist-esm/src/operationsInterfaces/addons.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/addons.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/addons.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/authorizations.d.ts +56 -0
  105. package/dist-esm/src/operationsInterfaces/authorizations.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/authorizations.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/authorizations.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/cloudLinks.d.ts +56 -0
  109. package/dist-esm/src/operationsInterfaces/cloudLinks.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/cloudLinks.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/cloudLinks.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/clusters.d.ts +74 -0
  113. package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/clusters.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/clusters.js.map +1 -0
  116. package/dist-esm/src/operationsInterfaces/datastores.d.ts +62 -0
  117. package/dist-esm/src/operationsInterfaces/datastores.d.ts.map +1 -0
  118. package/dist-esm/src/operationsInterfaces/datastores.js +9 -0
  119. package/dist-esm/src/operationsInterfaces/datastores.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/globalReachConnections.d.ts +56 -0
  121. package/dist-esm/src/operationsInterfaces/globalReachConnections.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/globalReachConnections.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/globalReachConnections.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/hcxEnterpriseSites.d.ts +38 -0
  125. package/dist-esm/src/operationsInterfaces/hcxEnterpriseSites.d.ts.map +1 -0
  126. package/dist-esm/src/operationsInterfaces/hcxEnterpriseSites.js +9 -0
  127. package/dist-esm/src/operationsInterfaces/hcxEnterpriseSites.js.map +1 -0
  128. package/dist-esm/src/operationsInterfaces/index.d.ts +17 -0
  129. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  130. package/dist-esm/src/operationsInterfaces/index.js +24 -0
  131. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  132. package/dist-esm/src/operationsInterfaces/locations.d.ts +17 -0
  133. package/dist-esm/src/operationsInterfaces/locations.d.ts.map +1 -0
  134. package/dist-esm/src/operationsInterfaces/locations.js +9 -0
  135. package/dist-esm/src/operationsInterfaces/locations.js.map +1 -0
  136. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  137. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  138. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  139. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  140. package/dist-esm/src/operationsInterfaces/placementPolicies.d.ts +89 -0
  141. package/dist-esm/src/operationsInterfaces/placementPolicies.d.ts.map +1 -0
  142. package/dist-esm/src/operationsInterfaces/placementPolicies.js +9 -0
  143. package/dist-esm/src/operationsInterfaces/placementPolicies.js.map +1 -0
  144. package/dist-esm/src/operationsInterfaces/privateClouds.d.ts +106 -0
  145. package/dist-esm/src/operationsInterfaces/privateClouds.d.ts.map +1 -0
  146. package/dist-esm/src/operationsInterfaces/privateClouds.js +9 -0
  147. package/dist-esm/src/operationsInterfaces/privateClouds.js.map +1 -0
  148. package/dist-esm/src/operationsInterfaces/scriptCmdlets.d.ts +25 -0
  149. package/dist-esm/src/operationsInterfaces/scriptCmdlets.d.ts.map +1 -0
  150. package/dist-esm/src/operationsInterfaces/scriptCmdlets.js +9 -0
  151. package/dist-esm/src/operationsInterfaces/scriptCmdlets.js.map +1 -0
  152. package/dist-esm/src/operationsInterfaces/scriptExecutions.d.ts +64 -0
  153. package/dist-esm/src/operationsInterfaces/scriptExecutions.d.ts.map +1 -0
  154. package/dist-esm/src/operationsInterfaces/scriptExecutions.js +9 -0
  155. package/dist-esm/src/operationsInterfaces/scriptExecutions.js.map +1 -0
  156. package/dist-esm/src/operationsInterfaces/scriptPackages.d.ts +21 -0
  157. package/dist-esm/src/operationsInterfaces/scriptPackages.d.ts.map +1 -0
  158. package/dist-esm/src/operationsInterfaces/scriptPackages.js +9 -0
  159. package/dist-esm/src/operationsInterfaces/scriptPackages.js.map +1 -0
  160. package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +44 -0
  161. package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts.map +1 -0
  162. package/dist-esm/src/operationsInterfaces/virtualMachines.js +9 -0
  163. package/dist-esm/src/operationsInterfaces/virtualMachines.js.map +1 -0
  164. package/dist-esm/src/operationsInterfaces/workloadNetworks.d.ts +500 -0
  165. package/dist-esm/src/operationsInterfaces/workloadNetworks.d.ts.map +1 -0
  166. package/dist-esm/src/operationsInterfaces/workloadNetworks.js +9 -0
  167. package/dist-esm/src/operationsInterfaces/workloadNetworks.js.map +1 -0
  168. package/dist-esm/test/sampleTest.d.ts +2 -0
  169. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  170. package/dist-esm/test/sampleTest.js +40 -0
  171. package/dist-esm/test/sampleTest.js.map +1 -0
  172. package/package.json +65 -31
  173. package/review/arm-avs.api.md +2534 -0
  174. package/rollup.config.js +181 -30
  175. package/src/azureVMwareSolutionAPI.ts +139 -0
  176. package/src/index.ts +12 -0
  177. package/src/lroImpl.ts +34 -0
  178. package/src/models/index.ts +3101 -931
  179. package/src/models/mappers.ts +2874 -387
  180. package/src/models/parameters.ts +407 -44
  181. package/src/operations/addons.ts +472 -0
  182. package/src/operations/authorizations.ts +341 -196
  183. package/src/operations/cloudLinks.ts +478 -0
  184. package/src/operations/clusters.ts +444 -238
  185. package/src/operations/datastores.ts +525 -0
  186. package/src/operations/globalReachConnections.ts +488 -0
  187. package/src/operations/hcxEnterpriseSites.ts +200 -210
  188. package/src/operations/index.ts +13 -5
  189. package/src/operations/locations.ts +56 -83
  190. package/src/operations/operations.ts +87 -73
  191. package/src/operations/placementPolicies.ts +677 -0
  192. package/src/operations/privateClouds.ts +705 -319
  193. package/src/operations/scriptCmdlets.ts +266 -0
  194. package/src/operations/scriptExecutions.ts +524 -0
  195. package/src/operations/scriptPackages.ts +229 -0
  196. package/src/operations/virtualMachines.ts +390 -0
  197. package/src/operations/workloadNetworks.ts +4398 -0
  198. package/src/operationsInterfaces/addons.ts +109 -0
  199. package/src/operationsInterfaces/authorizations.ts +109 -0
  200. package/src/operationsInterfaces/cloudLinks.ts +109 -0
  201. package/src/operationsInterfaces/clusters.ts +147 -0
  202. package/src/operationsInterfaces/datastores.ts +121 -0
  203. package/src/operationsInterfaces/globalReachConnections.ts +109 -0
  204. package/src/operationsInterfaces/hcxEnterpriseSites.ts +75 -0
  205. package/src/operationsInterfaces/index.ts +24 -0
  206. package/src/operationsInterfaces/locations.ts +36 -0
  207. package/src/operationsInterfaces/operations.ts +22 -0
  208. package/src/operationsInterfaces/placementPolicies.ts +170 -0
  209. package/src/operationsInterfaces/privateClouds.ts +198 -0
  210. package/src/operationsInterfaces/scriptCmdlets.ts +50 -0
  211. package/src/operationsInterfaces/scriptExecutions.ts +124 -0
  212. package/src/operationsInterfaces/scriptPackages.ts +44 -0
  213. package/src/operationsInterfaces/virtualMachines.ts +85 -0
  214. package/src/operationsInterfaces/workloadNetworks.ts +951 -0
  215. package/tsconfig.json +3 -3
  216. package/types/arm-avs.d.ts +4645 -0
  217. package/types/tsdoc-metadata.json +11 -0
  218. package/dist/arm-avs.js +0 -2585
  219. package/dist/arm-avs.js.map +0 -1
  220. package/dist/arm-avs.min.js +0 -1
  221. package/dist/arm-avs.min.js.map +0 -1
  222. package/esm/avsClient.d.ts +0 -23
  223. package/esm/avsClient.d.ts.map +0 -1
  224. package/esm/avsClient.js +0 -38
  225. package/esm/avsClient.js.map +0 -1
  226. package/esm/avsClientContext.d.ts +0 -16
  227. package/esm/avsClientContext.d.ts.map +0 -1
  228. package/esm/avsClientContext.js +0 -56
  229. package/esm/avsClientContext.js.map +0 -1
  230. package/esm/models/authorizationsMappers.d.ts +0 -2
  231. package/esm/models/authorizationsMappers.d.ts.map +0 -1
  232. package/esm/models/authorizationsMappers.js +0 -9
  233. package/esm/models/authorizationsMappers.js.map +0 -1
  234. package/esm/models/clustersMappers.d.ts +0 -2
  235. package/esm/models/clustersMappers.d.ts.map +0 -1
  236. package/esm/models/clustersMappers.js +0 -9
  237. package/esm/models/clustersMappers.js.map +0 -1
  238. package/esm/models/hcxEnterpriseSitesMappers.d.ts +0 -2
  239. package/esm/models/hcxEnterpriseSitesMappers.d.ts.map +0 -1
  240. package/esm/models/hcxEnterpriseSitesMappers.js +0 -9
  241. package/esm/models/hcxEnterpriseSitesMappers.js.map +0 -1
  242. package/esm/models/index.d.ts +0 -1163
  243. package/esm/models/index.d.ts.map +0 -1
  244. package/esm/models/index.js +0 -8
  245. package/esm/models/index.js.map +0 -1
  246. package/esm/models/locationsMappers.d.ts +0 -2
  247. package/esm/models/locationsMappers.d.ts.map +0 -1
  248. package/esm/models/locationsMappers.js +0 -9
  249. package/esm/models/locationsMappers.js.map +0 -1
  250. package/esm/models/mappers.d.ts +0 -30
  251. package/esm/models/mappers.d.ts.map +0 -1
  252. package/esm/models/mappers.js +0 -881
  253. package/esm/models/mappers.js.map +0 -1
  254. package/esm/models/operationsMappers.d.ts +0 -2
  255. package/esm/models/operationsMappers.d.ts.map +0 -1
  256. package/esm/models/operationsMappers.js +0 -9
  257. package/esm/models/operationsMappers.js.map +0 -1
  258. package/esm/models/parameters.d.ts +0 -12
  259. package/esm/models/parameters.d.ts.map +0 -1
  260. package/esm/models/parameters.js +0 -122
  261. package/esm/models/parameters.js.map +0 -1
  262. package/esm/models/privateCloudsMappers.d.ts +0 -2
  263. package/esm/models/privateCloudsMappers.d.ts.map +0 -1
  264. package/esm/models/privateCloudsMappers.js +0 -9
  265. package/esm/models/privateCloudsMappers.js.map +0 -1
  266. package/esm/operations/authorizations.d.ts +0 -115
  267. package/esm/operations/authorizations.d.ts.map +0 -1
  268. package/esm/operations/authorizations.js +0 -239
  269. package/esm/operations/authorizations.js.map +0 -1
  270. package/esm/operations/clusters.d.ts +0 -133
  271. package/esm/operations/clusters.d.ts.map +0 -1
  272. package/esm/operations/clusters.js +0 -299
  273. package/esm/operations/clusters.js.map +0 -1
  274. package/esm/operations/hcxEnterpriseSites.d.ts +0 -127
  275. package/esm/operations/hcxEnterpriseSites.d.ts.map +0 -1
  276. package/esm/operations/hcxEnterpriseSites.js +0 -196
  277. package/esm/operations/hcxEnterpriseSites.js.map +0 -1
  278. package/esm/operations/index.d.ts +0 -7
  279. package/esm/operations/index.d.ts.map +0 -1
  280. package/esm/operations/index.js +0 -16
  281. package/esm/operations/index.js.map +0 -1
  282. package/esm/operations/locations.d.ts +0 -49
  283. package/esm/operations/locations.d.ts.map +0 -1
  284. package/esm/operations/locations.js +0 -85
  285. package/esm/operations/locations.js.map +0 -1
  286. package/esm/operations/operations.d.ts +0 -46
  287. package/esm/operations/operations.d.ts.map +0 -1
  288. package/esm/operations/operations.js +0 -77
  289. package/esm/operations/operations.js.map +0 -1
  290. package/esm/operations/privateClouds.d.ts +0 -177
  291. package/esm/operations/privateClouds.d.ts.map +0 -1
  292. package/esm/operations/privateClouds.js +0 -365
  293. package/esm/operations/privateClouds.js.map +0 -1
  294. package/src/avsClient.ts +0 -52
  295. package/src/avsClientContext.ts +0 -62
  296. package/src/models/authorizationsMappers.ts +0 -27
  297. package/src/models/clustersMappers.ts +0 -28
  298. package/src/models/hcxEnterpriseSitesMappers.ts +0 -27
  299. package/src/models/locationsMappers.ts +0 -15
  300. package/src/models/operationsMappers.ts +0 -16
  301. package/src/models/privateCloudsMappers.ts +0 -29
@@ -0,0 +1,4398 @@
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 { WorkloadNetworks } 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 { AzureVMwareSolutionAPI } from "../azureVMwareSolutionAPI";
15
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
+ import { LroImpl } from "../lroImpl";
17
+ import {
18
+ WorkloadNetworkSegment,
19
+ WorkloadNetworksListSegmentsNextOptionalParams,
20
+ WorkloadNetworksListSegmentsOptionalParams,
21
+ WorkloadNetworkDhcp,
22
+ WorkloadNetworksListDhcpNextOptionalParams,
23
+ WorkloadNetworksListDhcpOptionalParams,
24
+ WorkloadNetworkGateway,
25
+ WorkloadNetworksListGatewaysNextOptionalParams,
26
+ WorkloadNetworksListGatewaysOptionalParams,
27
+ WorkloadNetworkPortMirroring,
28
+ WorkloadNetworksListPortMirroringNextOptionalParams,
29
+ WorkloadNetworksListPortMirroringOptionalParams,
30
+ WorkloadNetworkVMGroup,
31
+ WorkloadNetworksListVMGroupsNextOptionalParams,
32
+ WorkloadNetworksListVMGroupsOptionalParams,
33
+ WorkloadNetworkVirtualMachine,
34
+ WorkloadNetworksListVirtualMachinesNextOptionalParams,
35
+ WorkloadNetworksListVirtualMachinesOptionalParams,
36
+ WorkloadNetworkDnsService,
37
+ WorkloadNetworksListDnsServicesNextOptionalParams,
38
+ WorkloadNetworksListDnsServicesOptionalParams,
39
+ WorkloadNetworkDnsZone,
40
+ WorkloadNetworksListDnsZonesNextOptionalParams,
41
+ WorkloadNetworksListDnsZonesOptionalParams,
42
+ WorkloadNetworkPublicIP,
43
+ WorkloadNetworksListPublicIPsNextOptionalParams,
44
+ WorkloadNetworksListPublicIPsOptionalParams,
45
+ WorkloadNetworksListSegmentsResponse,
46
+ WorkloadNetworksGetSegmentOptionalParams,
47
+ WorkloadNetworksGetSegmentResponse,
48
+ WorkloadNetworksCreateSegmentsOptionalParams,
49
+ WorkloadNetworksCreateSegmentsResponse,
50
+ WorkloadNetworksUpdateSegmentsOptionalParams,
51
+ WorkloadNetworksUpdateSegmentsResponse,
52
+ WorkloadNetworksDeleteSegmentOptionalParams,
53
+ WorkloadNetworksListDhcpResponse,
54
+ WorkloadNetworksGetDhcpOptionalParams,
55
+ WorkloadNetworksGetDhcpResponse,
56
+ WorkloadNetworksCreateDhcpOptionalParams,
57
+ WorkloadNetworksCreateDhcpResponse,
58
+ WorkloadNetworksUpdateDhcpOptionalParams,
59
+ WorkloadNetworksUpdateDhcpResponse,
60
+ WorkloadNetworksDeleteDhcpOptionalParams,
61
+ WorkloadNetworksListGatewaysResponse,
62
+ WorkloadNetworksGetGatewayOptionalParams,
63
+ WorkloadNetworksGetGatewayResponse,
64
+ WorkloadNetworksListPortMirroringResponse,
65
+ WorkloadNetworksGetPortMirroringOptionalParams,
66
+ WorkloadNetworksGetPortMirroringResponse,
67
+ WorkloadNetworksCreatePortMirroringOptionalParams,
68
+ WorkloadNetworksCreatePortMirroringResponse,
69
+ WorkloadNetworksUpdatePortMirroringOptionalParams,
70
+ WorkloadNetworksUpdatePortMirroringResponse,
71
+ WorkloadNetworksDeletePortMirroringOptionalParams,
72
+ WorkloadNetworksListVMGroupsResponse,
73
+ WorkloadNetworksGetVMGroupOptionalParams,
74
+ WorkloadNetworksGetVMGroupResponse,
75
+ WorkloadNetworksCreateVMGroupOptionalParams,
76
+ WorkloadNetworksCreateVMGroupResponse,
77
+ WorkloadNetworksUpdateVMGroupOptionalParams,
78
+ WorkloadNetworksUpdateVMGroupResponse,
79
+ WorkloadNetworksDeleteVMGroupOptionalParams,
80
+ WorkloadNetworksListVirtualMachinesResponse,
81
+ WorkloadNetworksGetVirtualMachineOptionalParams,
82
+ WorkloadNetworksGetVirtualMachineResponse,
83
+ WorkloadNetworksListDnsServicesResponse,
84
+ WorkloadNetworksGetDnsServiceOptionalParams,
85
+ WorkloadNetworksGetDnsServiceResponse,
86
+ WorkloadNetworksCreateDnsServiceOptionalParams,
87
+ WorkloadNetworksCreateDnsServiceResponse,
88
+ WorkloadNetworksUpdateDnsServiceOptionalParams,
89
+ WorkloadNetworksUpdateDnsServiceResponse,
90
+ WorkloadNetworksDeleteDnsServiceOptionalParams,
91
+ WorkloadNetworksListDnsZonesResponse,
92
+ WorkloadNetworksGetDnsZoneOptionalParams,
93
+ WorkloadNetworksGetDnsZoneResponse,
94
+ WorkloadNetworksCreateDnsZoneOptionalParams,
95
+ WorkloadNetworksCreateDnsZoneResponse,
96
+ WorkloadNetworksUpdateDnsZoneOptionalParams,
97
+ WorkloadNetworksUpdateDnsZoneResponse,
98
+ WorkloadNetworksDeleteDnsZoneOptionalParams,
99
+ WorkloadNetworksListPublicIPsResponse,
100
+ WorkloadNetworksGetPublicIPOptionalParams,
101
+ WorkloadNetworksGetPublicIPResponse,
102
+ WorkloadNetworksCreatePublicIPOptionalParams,
103
+ WorkloadNetworksCreatePublicIPResponse,
104
+ WorkloadNetworksDeletePublicIPOptionalParams,
105
+ WorkloadNetworksListSegmentsNextResponse,
106
+ WorkloadNetworksListDhcpNextResponse,
107
+ WorkloadNetworksListGatewaysNextResponse,
108
+ WorkloadNetworksListPortMirroringNextResponse,
109
+ WorkloadNetworksListVMGroupsNextResponse,
110
+ WorkloadNetworksListVirtualMachinesNextResponse,
111
+ WorkloadNetworksListDnsServicesNextResponse,
112
+ WorkloadNetworksListDnsZonesNextResponse,
113
+ WorkloadNetworksListPublicIPsNextResponse
114
+ } from "../models";
115
+
116
+ /// <reference lib="esnext.asynciterable" />
117
+ /** Class containing WorkloadNetworks operations. */
118
+ export class WorkloadNetworksImpl implements WorkloadNetworks {
119
+ private readonly client: AzureVMwareSolutionAPI;
120
+
121
+ /**
122
+ * Initialize a new instance of the class WorkloadNetworks class.
123
+ * @param client Reference to the service client
124
+ */
125
+ constructor(client: AzureVMwareSolutionAPI) {
126
+ this.client = client;
127
+ }
128
+
129
+ /**
130
+ * List of segments in a private cloud workload network.
131
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
132
+ * @param privateCloudName Name of the private cloud
133
+ * @param options The options parameters.
134
+ */
135
+ public listSegments(
136
+ resourceGroupName: string,
137
+ privateCloudName: string,
138
+ options?: WorkloadNetworksListSegmentsOptionalParams
139
+ ): PagedAsyncIterableIterator<WorkloadNetworkSegment> {
140
+ const iter = this.listSegmentsPagingAll(
141
+ resourceGroupName,
142
+ privateCloudName,
143
+ options
144
+ );
145
+ return {
146
+ next() {
147
+ return iter.next();
148
+ },
149
+ [Symbol.asyncIterator]() {
150
+ return this;
151
+ },
152
+ byPage: () => {
153
+ return this.listSegmentsPagingPage(
154
+ resourceGroupName,
155
+ privateCloudName,
156
+ options
157
+ );
158
+ }
159
+ };
160
+ }
161
+
162
+ private async *listSegmentsPagingPage(
163
+ resourceGroupName: string,
164
+ privateCloudName: string,
165
+ options?: WorkloadNetworksListSegmentsOptionalParams
166
+ ): AsyncIterableIterator<WorkloadNetworkSegment[]> {
167
+ let result = await this._listSegments(
168
+ resourceGroupName,
169
+ privateCloudName,
170
+ options
171
+ );
172
+ yield result.value || [];
173
+ let continuationToken = result.nextLink;
174
+ while (continuationToken) {
175
+ result = await this._listSegmentsNext(
176
+ resourceGroupName,
177
+ privateCloudName,
178
+ continuationToken,
179
+ options
180
+ );
181
+ continuationToken = result.nextLink;
182
+ yield result.value || [];
183
+ }
184
+ }
185
+
186
+ private async *listSegmentsPagingAll(
187
+ resourceGroupName: string,
188
+ privateCloudName: string,
189
+ options?: WorkloadNetworksListSegmentsOptionalParams
190
+ ): AsyncIterableIterator<WorkloadNetworkSegment> {
191
+ for await (const page of this.listSegmentsPagingPage(
192
+ resourceGroupName,
193
+ privateCloudName,
194
+ options
195
+ )) {
196
+ yield* page;
197
+ }
198
+ }
199
+
200
+ /**
201
+ * List dhcp in a private cloud workload network.
202
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
203
+ * @param privateCloudName Name of the private cloud
204
+ * @param options The options parameters.
205
+ */
206
+ public listDhcp(
207
+ resourceGroupName: string,
208
+ privateCloudName: string,
209
+ options?: WorkloadNetworksListDhcpOptionalParams
210
+ ): PagedAsyncIterableIterator<WorkloadNetworkDhcp> {
211
+ const iter = this.listDhcpPagingAll(
212
+ resourceGroupName,
213
+ privateCloudName,
214
+ options
215
+ );
216
+ return {
217
+ next() {
218
+ return iter.next();
219
+ },
220
+ [Symbol.asyncIterator]() {
221
+ return this;
222
+ },
223
+ byPage: () => {
224
+ return this.listDhcpPagingPage(
225
+ resourceGroupName,
226
+ privateCloudName,
227
+ options
228
+ );
229
+ }
230
+ };
231
+ }
232
+
233
+ private async *listDhcpPagingPage(
234
+ resourceGroupName: string,
235
+ privateCloudName: string,
236
+ options?: WorkloadNetworksListDhcpOptionalParams
237
+ ): AsyncIterableIterator<WorkloadNetworkDhcp[]> {
238
+ let result = await this._listDhcp(
239
+ resourceGroupName,
240
+ privateCloudName,
241
+ options
242
+ );
243
+ yield result.value || [];
244
+ let continuationToken = result.nextLink;
245
+ while (continuationToken) {
246
+ result = await this._listDhcpNext(
247
+ resourceGroupName,
248
+ privateCloudName,
249
+ continuationToken,
250
+ options
251
+ );
252
+ continuationToken = result.nextLink;
253
+ yield result.value || [];
254
+ }
255
+ }
256
+
257
+ private async *listDhcpPagingAll(
258
+ resourceGroupName: string,
259
+ privateCloudName: string,
260
+ options?: WorkloadNetworksListDhcpOptionalParams
261
+ ): AsyncIterableIterator<WorkloadNetworkDhcp> {
262
+ for await (const page of this.listDhcpPagingPage(
263
+ resourceGroupName,
264
+ privateCloudName,
265
+ options
266
+ )) {
267
+ yield* page;
268
+ }
269
+ }
270
+
271
+ /**
272
+ * List of gateways in a private cloud workload network.
273
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
274
+ * @param privateCloudName Name of the private cloud
275
+ * @param options The options parameters.
276
+ */
277
+ public listGateways(
278
+ resourceGroupName: string,
279
+ privateCloudName: string,
280
+ options?: WorkloadNetworksListGatewaysOptionalParams
281
+ ): PagedAsyncIterableIterator<WorkloadNetworkGateway> {
282
+ const iter = this.listGatewaysPagingAll(
283
+ resourceGroupName,
284
+ privateCloudName,
285
+ options
286
+ );
287
+ return {
288
+ next() {
289
+ return iter.next();
290
+ },
291
+ [Symbol.asyncIterator]() {
292
+ return this;
293
+ },
294
+ byPage: () => {
295
+ return this.listGatewaysPagingPage(
296
+ resourceGroupName,
297
+ privateCloudName,
298
+ options
299
+ );
300
+ }
301
+ };
302
+ }
303
+
304
+ private async *listGatewaysPagingPage(
305
+ resourceGroupName: string,
306
+ privateCloudName: string,
307
+ options?: WorkloadNetworksListGatewaysOptionalParams
308
+ ): AsyncIterableIterator<WorkloadNetworkGateway[]> {
309
+ let result = await this._listGateways(
310
+ resourceGroupName,
311
+ privateCloudName,
312
+ options
313
+ );
314
+ yield result.value || [];
315
+ let continuationToken = result.nextLink;
316
+ while (continuationToken) {
317
+ result = await this._listGatewaysNext(
318
+ resourceGroupName,
319
+ privateCloudName,
320
+ continuationToken,
321
+ options
322
+ );
323
+ continuationToken = result.nextLink;
324
+ yield result.value || [];
325
+ }
326
+ }
327
+
328
+ private async *listGatewaysPagingAll(
329
+ resourceGroupName: string,
330
+ privateCloudName: string,
331
+ options?: WorkloadNetworksListGatewaysOptionalParams
332
+ ): AsyncIterableIterator<WorkloadNetworkGateway> {
333
+ for await (const page of this.listGatewaysPagingPage(
334
+ resourceGroupName,
335
+ privateCloudName,
336
+ options
337
+ )) {
338
+ yield* page;
339
+ }
340
+ }
341
+
342
+ /**
343
+ * List of port mirroring profiles in a private cloud workload network.
344
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
345
+ * @param privateCloudName Name of the private cloud
346
+ * @param options The options parameters.
347
+ */
348
+ public listPortMirroring(
349
+ resourceGroupName: string,
350
+ privateCloudName: string,
351
+ options?: WorkloadNetworksListPortMirroringOptionalParams
352
+ ): PagedAsyncIterableIterator<WorkloadNetworkPortMirroring> {
353
+ const iter = this.listPortMirroringPagingAll(
354
+ resourceGroupName,
355
+ privateCloudName,
356
+ options
357
+ );
358
+ return {
359
+ next() {
360
+ return iter.next();
361
+ },
362
+ [Symbol.asyncIterator]() {
363
+ return this;
364
+ },
365
+ byPage: () => {
366
+ return this.listPortMirroringPagingPage(
367
+ resourceGroupName,
368
+ privateCloudName,
369
+ options
370
+ );
371
+ }
372
+ };
373
+ }
374
+
375
+ private async *listPortMirroringPagingPage(
376
+ resourceGroupName: string,
377
+ privateCloudName: string,
378
+ options?: WorkloadNetworksListPortMirroringOptionalParams
379
+ ): AsyncIterableIterator<WorkloadNetworkPortMirroring[]> {
380
+ let result = await this._listPortMirroring(
381
+ resourceGroupName,
382
+ privateCloudName,
383
+ options
384
+ );
385
+ yield result.value || [];
386
+ let continuationToken = result.nextLink;
387
+ while (continuationToken) {
388
+ result = await this._listPortMirroringNext(
389
+ resourceGroupName,
390
+ privateCloudName,
391
+ continuationToken,
392
+ options
393
+ );
394
+ continuationToken = result.nextLink;
395
+ yield result.value || [];
396
+ }
397
+ }
398
+
399
+ private async *listPortMirroringPagingAll(
400
+ resourceGroupName: string,
401
+ privateCloudName: string,
402
+ options?: WorkloadNetworksListPortMirroringOptionalParams
403
+ ): AsyncIterableIterator<WorkloadNetworkPortMirroring> {
404
+ for await (const page of this.listPortMirroringPagingPage(
405
+ resourceGroupName,
406
+ privateCloudName,
407
+ options
408
+ )) {
409
+ yield* page;
410
+ }
411
+ }
412
+
413
+ /**
414
+ * List of vm groups in a private cloud workload network.
415
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
416
+ * @param privateCloudName Name of the private cloud
417
+ * @param options The options parameters.
418
+ */
419
+ public listVMGroups(
420
+ resourceGroupName: string,
421
+ privateCloudName: string,
422
+ options?: WorkloadNetworksListVMGroupsOptionalParams
423
+ ): PagedAsyncIterableIterator<WorkloadNetworkVMGroup> {
424
+ const iter = this.listVMGroupsPagingAll(
425
+ resourceGroupName,
426
+ privateCloudName,
427
+ options
428
+ );
429
+ return {
430
+ next() {
431
+ return iter.next();
432
+ },
433
+ [Symbol.asyncIterator]() {
434
+ return this;
435
+ },
436
+ byPage: () => {
437
+ return this.listVMGroupsPagingPage(
438
+ resourceGroupName,
439
+ privateCloudName,
440
+ options
441
+ );
442
+ }
443
+ };
444
+ }
445
+
446
+ private async *listVMGroupsPagingPage(
447
+ resourceGroupName: string,
448
+ privateCloudName: string,
449
+ options?: WorkloadNetworksListVMGroupsOptionalParams
450
+ ): AsyncIterableIterator<WorkloadNetworkVMGroup[]> {
451
+ let result = await this._listVMGroups(
452
+ resourceGroupName,
453
+ privateCloudName,
454
+ options
455
+ );
456
+ yield result.value || [];
457
+ let continuationToken = result.nextLink;
458
+ while (continuationToken) {
459
+ result = await this._listVMGroupsNext(
460
+ resourceGroupName,
461
+ privateCloudName,
462
+ continuationToken,
463
+ options
464
+ );
465
+ continuationToken = result.nextLink;
466
+ yield result.value || [];
467
+ }
468
+ }
469
+
470
+ private async *listVMGroupsPagingAll(
471
+ resourceGroupName: string,
472
+ privateCloudName: string,
473
+ options?: WorkloadNetworksListVMGroupsOptionalParams
474
+ ): AsyncIterableIterator<WorkloadNetworkVMGroup> {
475
+ for await (const page of this.listVMGroupsPagingPage(
476
+ resourceGroupName,
477
+ privateCloudName,
478
+ options
479
+ )) {
480
+ yield* page;
481
+ }
482
+ }
483
+
484
+ /**
485
+ * List of virtual machines in a private cloud workload network.
486
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
487
+ * @param privateCloudName Name of the private cloud
488
+ * @param options The options parameters.
489
+ */
490
+ public listVirtualMachines(
491
+ resourceGroupName: string,
492
+ privateCloudName: string,
493
+ options?: WorkloadNetworksListVirtualMachinesOptionalParams
494
+ ): PagedAsyncIterableIterator<WorkloadNetworkVirtualMachine> {
495
+ const iter = this.listVirtualMachinesPagingAll(
496
+ resourceGroupName,
497
+ privateCloudName,
498
+ options
499
+ );
500
+ return {
501
+ next() {
502
+ return iter.next();
503
+ },
504
+ [Symbol.asyncIterator]() {
505
+ return this;
506
+ },
507
+ byPage: () => {
508
+ return this.listVirtualMachinesPagingPage(
509
+ resourceGroupName,
510
+ privateCloudName,
511
+ options
512
+ );
513
+ }
514
+ };
515
+ }
516
+
517
+ private async *listVirtualMachinesPagingPage(
518
+ resourceGroupName: string,
519
+ privateCloudName: string,
520
+ options?: WorkloadNetworksListVirtualMachinesOptionalParams
521
+ ): AsyncIterableIterator<WorkloadNetworkVirtualMachine[]> {
522
+ let result = await this._listVirtualMachines(
523
+ resourceGroupName,
524
+ privateCloudName,
525
+ options
526
+ );
527
+ yield result.value || [];
528
+ let continuationToken = result.nextLink;
529
+ while (continuationToken) {
530
+ result = await this._listVirtualMachinesNext(
531
+ resourceGroupName,
532
+ privateCloudName,
533
+ continuationToken,
534
+ options
535
+ );
536
+ continuationToken = result.nextLink;
537
+ yield result.value || [];
538
+ }
539
+ }
540
+
541
+ private async *listVirtualMachinesPagingAll(
542
+ resourceGroupName: string,
543
+ privateCloudName: string,
544
+ options?: WorkloadNetworksListVirtualMachinesOptionalParams
545
+ ): AsyncIterableIterator<WorkloadNetworkVirtualMachine> {
546
+ for await (const page of this.listVirtualMachinesPagingPage(
547
+ resourceGroupName,
548
+ privateCloudName,
549
+ options
550
+ )) {
551
+ yield* page;
552
+ }
553
+ }
554
+
555
+ /**
556
+ * List of DNS services in a private cloud workload network.
557
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
558
+ * @param privateCloudName Name of the private cloud
559
+ * @param options The options parameters.
560
+ */
561
+ public listDnsServices(
562
+ resourceGroupName: string,
563
+ privateCloudName: string,
564
+ options?: WorkloadNetworksListDnsServicesOptionalParams
565
+ ): PagedAsyncIterableIterator<WorkloadNetworkDnsService> {
566
+ const iter = this.listDnsServicesPagingAll(
567
+ resourceGroupName,
568
+ privateCloudName,
569
+ options
570
+ );
571
+ return {
572
+ next() {
573
+ return iter.next();
574
+ },
575
+ [Symbol.asyncIterator]() {
576
+ return this;
577
+ },
578
+ byPage: () => {
579
+ return this.listDnsServicesPagingPage(
580
+ resourceGroupName,
581
+ privateCloudName,
582
+ options
583
+ );
584
+ }
585
+ };
586
+ }
587
+
588
+ private async *listDnsServicesPagingPage(
589
+ resourceGroupName: string,
590
+ privateCloudName: string,
591
+ options?: WorkloadNetworksListDnsServicesOptionalParams
592
+ ): AsyncIterableIterator<WorkloadNetworkDnsService[]> {
593
+ let result = await this._listDnsServices(
594
+ resourceGroupName,
595
+ privateCloudName,
596
+ options
597
+ );
598
+ yield result.value || [];
599
+ let continuationToken = result.nextLink;
600
+ while (continuationToken) {
601
+ result = await this._listDnsServicesNext(
602
+ resourceGroupName,
603
+ privateCloudName,
604
+ continuationToken,
605
+ options
606
+ );
607
+ continuationToken = result.nextLink;
608
+ yield result.value || [];
609
+ }
610
+ }
611
+
612
+ private async *listDnsServicesPagingAll(
613
+ resourceGroupName: string,
614
+ privateCloudName: string,
615
+ options?: WorkloadNetworksListDnsServicesOptionalParams
616
+ ): AsyncIterableIterator<WorkloadNetworkDnsService> {
617
+ for await (const page of this.listDnsServicesPagingPage(
618
+ resourceGroupName,
619
+ privateCloudName,
620
+ options
621
+ )) {
622
+ yield* page;
623
+ }
624
+ }
625
+
626
+ /**
627
+ * List of DNS zones in a private cloud workload network.
628
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
629
+ * @param privateCloudName Name of the private cloud
630
+ * @param options The options parameters.
631
+ */
632
+ public listDnsZones(
633
+ resourceGroupName: string,
634
+ privateCloudName: string,
635
+ options?: WorkloadNetworksListDnsZonesOptionalParams
636
+ ): PagedAsyncIterableIterator<WorkloadNetworkDnsZone> {
637
+ const iter = this.listDnsZonesPagingAll(
638
+ resourceGroupName,
639
+ privateCloudName,
640
+ options
641
+ );
642
+ return {
643
+ next() {
644
+ return iter.next();
645
+ },
646
+ [Symbol.asyncIterator]() {
647
+ return this;
648
+ },
649
+ byPage: () => {
650
+ return this.listDnsZonesPagingPage(
651
+ resourceGroupName,
652
+ privateCloudName,
653
+ options
654
+ );
655
+ }
656
+ };
657
+ }
658
+
659
+ private async *listDnsZonesPagingPage(
660
+ resourceGroupName: string,
661
+ privateCloudName: string,
662
+ options?: WorkloadNetworksListDnsZonesOptionalParams
663
+ ): AsyncIterableIterator<WorkloadNetworkDnsZone[]> {
664
+ let result = await this._listDnsZones(
665
+ resourceGroupName,
666
+ privateCloudName,
667
+ options
668
+ );
669
+ yield result.value || [];
670
+ let continuationToken = result.nextLink;
671
+ while (continuationToken) {
672
+ result = await this._listDnsZonesNext(
673
+ resourceGroupName,
674
+ privateCloudName,
675
+ continuationToken,
676
+ options
677
+ );
678
+ continuationToken = result.nextLink;
679
+ yield result.value || [];
680
+ }
681
+ }
682
+
683
+ private async *listDnsZonesPagingAll(
684
+ resourceGroupName: string,
685
+ privateCloudName: string,
686
+ options?: WorkloadNetworksListDnsZonesOptionalParams
687
+ ): AsyncIterableIterator<WorkloadNetworkDnsZone> {
688
+ for await (const page of this.listDnsZonesPagingPage(
689
+ resourceGroupName,
690
+ privateCloudName,
691
+ options
692
+ )) {
693
+ yield* page;
694
+ }
695
+ }
696
+
697
+ /**
698
+ * List of Public IP Blocks in a private cloud workload network.
699
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
700
+ * @param privateCloudName Name of the private cloud
701
+ * @param options The options parameters.
702
+ */
703
+ public listPublicIPs(
704
+ resourceGroupName: string,
705
+ privateCloudName: string,
706
+ options?: WorkloadNetworksListPublicIPsOptionalParams
707
+ ): PagedAsyncIterableIterator<WorkloadNetworkPublicIP> {
708
+ const iter = this.listPublicIPsPagingAll(
709
+ resourceGroupName,
710
+ privateCloudName,
711
+ options
712
+ );
713
+ return {
714
+ next() {
715
+ return iter.next();
716
+ },
717
+ [Symbol.asyncIterator]() {
718
+ return this;
719
+ },
720
+ byPage: () => {
721
+ return this.listPublicIPsPagingPage(
722
+ resourceGroupName,
723
+ privateCloudName,
724
+ options
725
+ );
726
+ }
727
+ };
728
+ }
729
+
730
+ private async *listPublicIPsPagingPage(
731
+ resourceGroupName: string,
732
+ privateCloudName: string,
733
+ options?: WorkloadNetworksListPublicIPsOptionalParams
734
+ ): AsyncIterableIterator<WorkloadNetworkPublicIP[]> {
735
+ let result = await this._listPublicIPs(
736
+ resourceGroupName,
737
+ privateCloudName,
738
+ options
739
+ );
740
+ yield result.value || [];
741
+ let continuationToken = result.nextLink;
742
+ while (continuationToken) {
743
+ result = await this._listPublicIPsNext(
744
+ resourceGroupName,
745
+ privateCloudName,
746
+ continuationToken,
747
+ options
748
+ );
749
+ continuationToken = result.nextLink;
750
+ yield result.value || [];
751
+ }
752
+ }
753
+
754
+ private async *listPublicIPsPagingAll(
755
+ resourceGroupName: string,
756
+ privateCloudName: string,
757
+ options?: WorkloadNetworksListPublicIPsOptionalParams
758
+ ): AsyncIterableIterator<WorkloadNetworkPublicIP> {
759
+ for await (const page of this.listPublicIPsPagingPage(
760
+ resourceGroupName,
761
+ privateCloudName,
762
+ options
763
+ )) {
764
+ yield* page;
765
+ }
766
+ }
767
+
768
+ /**
769
+ * List of segments in a private cloud workload network.
770
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
771
+ * @param privateCloudName Name of the private cloud
772
+ * @param options The options parameters.
773
+ */
774
+ private _listSegments(
775
+ resourceGroupName: string,
776
+ privateCloudName: string,
777
+ options?: WorkloadNetworksListSegmentsOptionalParams
778
+ ): Promise<WorkloadNetworksListSegmentsResponse> {
779
+ return this.client.sendOperationRequest(
780
+ { resourceGroupName, privateCloudName, options },
781
+ listSegmentsOperationSpec
782
+ );
783
+ }
784
+
785
+ /**
786
+ * Get a segment by id in a private cloud workload network.
787
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
788
+ * @param privateCloudName Name of the private cloud
789
+ * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name
790
+ * @param options The options parameters.
791
+ */
792
+ getSegment(
793
+ resourceGroupName: string,
794
+ privateCloudName: string,
795
+ segmentId: string,
796
+ options?: WorkloadNetworksGetSegmentOptionalParams
797
+ ): Promise<WorkloadNetworksGetSegmentResponse> {
798
+ return this.client.sendOperationRequest(
799
+ { resourceGroupName, privateCloudName, segmentId, options },
800
+ getSegmentOperationSpec
801
+ );
802
+ }
803
+
804
+ /**
805
+ * Create a segment by id in a private cloud workload network.
806
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
807
+ * @param privateCloudName Name of the private cloud
808
+ * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name
809
+ * @param workloadNetworkSegment NSX Segment
810
+ * @param options The options parameters.
811
+ */
812
+ async beginCreateSegments(
813
+ resourceGroupName: string,
814
+ privateCloudName: string,
815
+ segmentId: string,
816
+ workloadNetworkSegment: WorkloadNetworkSegment,
817
+ options?: WorkloadNetworksCreateSegmentsOptionalParams
818
+ ): Promise<
819
+ PollerLike<
820
+ PollOperationState<WorkloadNetworksCreateSegmentsResponse>,
821
+ WorkloadNetworksCreateSegmentsResponse
822
+ >
823
+ > {
824
+ const directSendOperation = async (
825
+ args: coreClient.OperationArguments,
826
+ spec: coreClient.OperationSpec
827
+ ): Promise<WorkloadNetworksCreateSegmentsResponse> => {
828
+ return this.client.sendOperationRequest(args, spec);
829
+ };
830
+ const sendOperation = async (
831
+ args: coreClient.OperationArguments,
832
+ spec: coreClient.OperationSpec
833
+ ) => {
834
+ let currentRawResponse:
835
+ | coreClient.FullOperationResponse
836
+ | undefined = undefined;
837
+ const providedCallback = args.options?.onResponse;
838
+ const callback: coreClient.RawResponseCallback = (
839
+ rawResponse: coreClient.FullOperationResponse,
840
+ flatResponse: unknown
841
+ ) => {
842
+ currentRawResponse = rawResponse;
843
+ providedCallback?.(rawResponse, flatResponse);
844
+ };
845
+ const updatedArgs = {
846
+ ...args,
847
+ options: {
848
+ ...args.options,
849
+ onResponse: callback
850
+ }
851
+ };
852
+ const flatResponse = await directSendOperation(updatedArgs, spec);
853
+ return {
854
+ flatResponse,
855
+ rawResponse: {
856
+ statusCode: currentRawResponse!.status,
857
+ body: currentRawResponse!.parsedBody,
858
+ headers: currentRawResponse!.headers.toJSON()
859
+ }
860
+ };
861
+ };
862
+
863
+ const lro = new LroImpl(
864
+ sendOperation,
865
+ {
866
+ resourceGroupName,
867
+ privateCloudName,
868
+ segmentId,
869
+ workloadNetworkSegment,
870
+ options
871
+ },
872
+ createSegmentsOperationSpec
873
+ );
874
+ return new LroEngine(lro, {
875
+ resumeFrom: options?.resumeFrom,
876
+ intervalInMs: options?.updateIntervalInMs
877
+ });
878
+ }
879
+
880
+ /**
881
+ * Create a segment by id in a private cloud workload network.
882
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
883
+ * @param privateCloudName Name of the private cloud
884
+ * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name
885
+ * @param workloadNetworkSegment NSX Segment
886
+ * @param options The options parameters.
887
+ */
888
+ async beginCreateSegmentsAndWait(
889
+ resourceGroupName: string,
890
+ privateCloudName: string,
891
+ segmentId: string,
892
+ workloadNetworkSegment: WorkloadNetworkSegment,
893
+ options?: WorkloadNetworksCreateSegmentsOptionalParams
894
+ ): Promise<WorkloadNetworksCreateSegmentsResponse> {
895
+ const poller = await this.beginCreateSegments(
896
+ resourceGroupName,
897
+ privateCloudName,
898
+ segmentId,
899
+ workloadNetworkSegment,
900
+ options
901
+ );
902
+ return poller.pollUntilDone();
903
+ }
904
+
905
+ /**
906
+ * Create or update a segment by id in a private cloud workload network.
907
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
908
+ * @param privateCloudName Name of the private cloud
909
+ * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name
910
+ * @param workloadNetworkSegment NSX Segment
911
+ * @param options The options parameters.
912
+ */
913
+ async beginUpdateSegments(
914
+ resourceGroupName: string,
915
+ privateCloudName: string,
916
+ segmentId: string,
917
+ workloadNetworkSegment: WorkloadNetworkSegment,
918
+ options?: WorkloadNetworksUpdateSegmentsOptionalParams
919
+ ): Promise<
920
+ PollerLike<
921
+ PollOperationState<WorkloadNetworksUpdateSegmentsResponse>,
922
+ WorkloadNetworksUpdateSegmentsResponse
923
+ >
924
+ > {
925
+ const directSendOperation = async (
926
+ args: coreClient.OperationArguments,
927
+ spec: coreClient.OperationSpec
928
+ ): Promise<WorkloadNetworksUpdateSegmentsResponse> => {
929
+ return this.client.sendOperationRequest(args, spec);
930
+ };
931
+ const sendOperation = async (
932
+ args: coreClient.OperationArguments,
933
+ spec: coreClient.OperationSpec
934
+ ) => {
935
+ let currentRawResponse:
936
+ | coreClient.FullOperationResponse
937
+ | undefined = undefined;
938
+ const providedCallback = args.options?.onResponse;
939
+ const callback: coreClient.RawResponseCallback = (
940
+ rawResponse: coreClient.FullOperationResponse,
941
+ flatResponse: unknown
942
+ ) => {
943
+ currentRawResponse = rawResponse;
944
+ providedCallback?.(rawResponse, flatResponse);
945
+ };
946
+ const updatedArgs = {
947
+ ...args,
948
+ options: {
949
+ ...args.options,
950
+ onResponse: callback
951
+ }
952
+ };
953
+ const flatResponse = await directSendOperation(updatedArgs, spec);
954
+ return {
955
+ flatResponse,
956
+ rawResponse: {
957
+ statusCode: currentRawResponse!.status,
958
+ body: currentRawResponse!.parsedBody,
959
+ headers: currentRawResponse!.headers.toJSON()
960
+ }
961
+ };
962
+ };
963
+
964
+ const lro = new LroImpl(
965
+ sendOperation,
966
+ {
967
+ resourceGroupName,
968
+ privateCloudName,
969
+ segmentId,
970
+ workloadNetworkSegment,
971
+ options
972
+ },
973
+ updateSegmentsOperationSpec
974
+ );
975
+ return new LroEngine(lro, {
976
+ resumeFrom: options?.resumeFrom,
977
+ intervalInMs: options?.updateIntervalInMs
978
+ });
979
+ }
980
+
981
+ /**
982
+ * Create or update a segment by id in a private cloud workload network.
983
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
984
+ * @param privateCloudName Name of the private cloud
985
+ * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name
986
+ * @param workloadNetworkSegment NSX Segment
987
+ * @param options The options parameters.
988
+ */
989
+ async beginUpdateSegmentsAndWait(
990
+ resourceGroupName: string,
991
+ privateCloudName: string,
992
+ segmentId: string,
993
+ workloadNetworkSegment: WorkloadNetworkSegment,
994
+ options?: WorkloadNetworksUpdateSegmentsOptionalParams
995
+ ): Promise<WorkloadNetworksUpdateSegmentsResponse> {
996
+ const poller = await this.beginUpdateSegments(
997
+ resourceGroupName,
998
+ privateCloudName,
999
+ segmentId,
1000
+ workloadNetworkSegment,
1001
+ options
1002
+ );
1003
+ return poller.pollUntilDone();
1004
+ }
1005
+
1006
+ /**
1007
+ * Delete a segment by id in a private cloud workload network.
1008
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1009
+ * @param privateCloudName Name of the private cloud
1010
+ * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name
1011
+ * @param options The options parameters.
1012
+ */
1013
+ async beginDeleteSegment(
1014
+ resourceGroupName: string,
1015
+ privateCloudName: string,
1016
+ segmentId: string,
1017
+ options?: WorkloadNetworksDeleteSegmentOptionalParams
1018
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
1019
+ const directSendOperation = async (
1020
+ args: coreClient.OperationArguments,
1021
+ spec: coreClient.OperationSpec
1022
+ ): Promise<void> => {
1023
+ return this.client.sendOperationRequest(args, spec);
1024
+ };
1025
+ const sendOperation = async (
1026
+ args: coreClient.OperationArguments,
1027
+ spec: coreClient.OperationSpec
1028
+ ) => {
1029
+ let currentRawResponse:
1030
+ | coreClient.FullOperationResponse
1031
+ | undefined = undefined;
1032
+ const providedCallback = args.options?.onResponse;
1033
+ const callback: coreClient.RawResponseCallback = (
1034
+ rawResponse: coreClient.FullOperationResponse,
1035
+ flatResponse: unknown
1036
+ ) => {
1037
+ currentRawResponse = rawResponse;
1038
+ providedCallback?.(rawResponse, flatResponse);
1039
+ };
1040
+ const updatedArgs = {
1041
+ ...args,
1042
+ options: {
1043
+ ...args.options,
1044
+ onResponse: callback
1045
+ }
1046
+ };
1047
+ const flatResponse = await directSendOperation(updatedArgs, spec);
1048
+ return {
1049
+ flatResponse,
1050
+ rawResponse: {
1051
+ statusCode: currentRawResponse!.status,
1052
+ body: currentRawResponse!.parsedBody,
1053
+ headers: currentRawResponse!.headers.toJSON()
1054
+ }
1055
+ };
1056
+ };
1057
+
1058
+ const lro = new LroImpl(
1059
+ sendOperation,
1060
+ { resourceGroupName, privateCloudName, segmentId, options },
1061
+ deleteSegmentOperationSpec
1062
+ );
1063
+ return new LroEngine(lro, {
1064
+ resumeFrom: options?.resumeFrom,
1065
+ intervalInMs: options?.updateIntervalInMs
1066
+ });
1067
+ }
1068
+
1069
+ /**
1070
+ * Delete a segment by id in a private cloud workload network.
1071
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1072
+ * @param privateCloudName Name of the private cloud
1073
+ * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name
1074
+ * @param options The options parameters.
1075
+ */
1076
+ async beginDeleteSegmentAndWait(
1077
+ resourceGroupName: string,
1078
+ privateCloudName: string,
1079
+ segmentId: string,
1080
+ options?: WorkloadNetworksDeleteSegmentOptionalParams
1081
+ ): Promise<void> {
1082
+ const poller = await this.beginDeleteSegment(
1083
+ resourceGroupName,
1084
+ privateCloudName,
1085
+ segmentId,
1086
+ options
1087
+ );
1088
+ return poller.pollUntilDone();
1089
+ }
1090
+
1091
+ /**
1092
+ * List dhcp in a private cloud workload network.
1093
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1094
+ * @param privateCloudName Name of the private cloud
1095
+ * @param options The options parameters.
1096
+ */
1097
+ private _listDhcp(
1098
+ resourceGroupName: string,
1099
+ privateCloudName: string,
1100
+ options?: WorkloadNetworksListDhcpOptionalParams
1101
+ ): Promise<WorkloadNetworksListDhcpResponse> {
1102
+ return this.client.sendOperationRequest(
1103
+ { resourceGroupName, privateCloudName, options },
1104
+ listDhcpOperationSpec
1105
+ );
1106
+ }
1107
+
1108
+ /**
1109
+ * Get dhcp by id in a private cloud workload network.
1110
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1111
+ * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name
1112
+ * @param privateCloudName Name of the private cloud
1113
+ * @param options The options parameters.
1114
+ */
1115
+ getDhcp(
1116
+ resourceGroupName: string,
1117
+ dhcpId: string,
1118
+ privateCloudName: string,
1119
+ options?: WorkloadNetworksGetDhcpOptionalParams
1120
+ ): Promise<WorkloadNetworksGetDhcpResponse> {
1121
+ return this.client.sendOperationRequest(
1122
+ { resourceGroupName, dhcpId, privateCloudName, options },
1123
+ getDhcpOperationSpec
1124
+ );
1125
+ }
1126
+
1127
+ /**
1128
+ * Create dhcp by id in a private cloud workload network.
1129
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1130
+ * @param privateCloudName Name of the private cloud
1131
+ * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name
1132
+ * @param workloadNetworkDhcp NSX DHCP
1133
+ * @param options The options parameters.
1134
+ */
1135
+ async beginCreateDhcp(
1136
+ resourceGroupName: string,
1137
+ privateCloudName: string,
1138
+ dhcpId: string,
1139
+ workloadNetworkDhcp: WorkloadNetworkDhcp,
1140
+ options?: WorkloadNetworksCreateDhcpOptionalParams
1141
+ ): Promise<
1142
+ PollerLike<
1143
+ PollOperationState<WorkloadNetworksCreateDhcpResponse>,
1144
+ WorkloadNetworksCreateDhcpResponse
1145
+ >
1146
+ > {
1147
+ const directSendOperation = async (
1148
+ args: coreClient.OperationArguments,
1149
+ spec: coreClient.OperationSpec
1150
+ ): Promise<WorkloadNetworksCreateDhcpResponse> => {
1151
+ return this.client.sendOperationRequest(args, spec);
1152
+ };
1153
+ const sendOperation = async (
1154
+ args: coreClient.OperationArguments,
1155
+ spec: coreClient.OperationSpec
1156
+ ) => {
1157
+ let currentRawResponse:
1158
+ | coreClient.FullOperationResponse
1159
+ | undefined = undefined;
1160
+ const providedCallback = args.options?.onResponse;
1161
+ const callback: coreClient.RawResponseCallback = (
1162
+ rawResponse: coreClient.FullOperationResponse,
1163
+ flatResponse: unknown
1164
+ ) => {
1165
+ currentRawResponse = rawResponse;
1166
+ providedCallback?.(rawResponse, flatResponse);
1167
+ };
1168
+ const updatedArgs = {
1169
+ ...args,
1170
+ options: {
1171
+ ...args.options,
1172
+ onResponse: callback
1173
+ }
1174
+ };
1175
+ const flatResponse = await directSendOperation(updatedArgs, spec);
1176
+ return {
1177
+ flatResponse,
1178
+ rawResponse: {
1179
+ statusCode: currentRawResponse!.status,
1180
+ body: currentRawResponse!.parsedBody,
1181
+ headers: currentRawResponse!.headers.toJSON()
1182
+ }
1183
+ };
1184
+ };
1185
+
1186
+ const lro = new LroImpl(
1187
+ sendOperation,
1188
+ {
1189
+ resourceGroupName,
1190
+ privateCloudName,
1191
+ dhcpId,
1192
+ workloadNetworkDhcp,
1193
+ options
1194
+ },
1195
+ createDhcpOperationSpec
1196
+ );
1197
+ return new LroEngine(lro, {
1198
+ resumeFrom: options?.resumeFrom,
1199
+ intervalInMs: options?.updateIntervalInMs
1200
+ });
1201
+ }
1202
+
1203
+ /**
1204
+ * Create dhcp by id in a private cloud workload network.
1205
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1206
+ * @param privateCloudName Name of the private cloud
1207
+ * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name
1208
+ * @param workloadNetworkDhcp NSX DHCP
1209
+ * @param options The options parameters.
1210
+ */
1211
+ async beginCreateDhcpAndWait(
1212
+ resourceGroupName: string,
1213
+ privateCloudName: string,
1214
+ dhcpId: string,
1215
+ workloadNetworkDhcp: WorkloadNetworkDhcp,
1216
+ options?: WorkloadNetworksCreateDhcpOptionalParams
1217
+ ): Promise<WorkloadNetworksCreateDhcpResponse> {
1218
+ const poller = await this.beginCreateDhcp(
1219
+ resourceGroupName,
1220
+ privateCloudName,
1221
+ dhcpId,
1222
+ workloadNetworkDhcp,
1223
+ options
1224
+ );
1225
+ return poller.pollUntilDone();
1226
+ }
1227
+
1228
+ /**
1229
+ * Create or update dhcp by id in a private cloud workload network.
1230
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1231
+ * @param privateCloudName Name of the private cloud
1232
+ * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name
1233
+ * @param workloadNetworkDhcp NSX DHCP
1234
+ * @param options The options parameters.
1235
+ */
1236
+ async beginUpdateDhcp(
1237
+ resourceGroupName: string,
1238
+ privateCloudName: string,
1239
+ dhcpId: string,
1240
+ workloadNetworkDhcp: WorkloadNetworkDhcp,
1241
+ options?: WorkloadNetworksUpdateDhcpOptionalParams
1242
+ ): Promise<
1243
+ PollerLike<
1244
+ PollOperationState<WorkloadNetworksUpdateDhcpResponse>,
1245
+ WorkloadNetworksUpdateDhcpResponse
1246
+ >
1247
+ > {
1248
+ const directSendOperation = async (
1249
+ args: coreClient.OperationArguments,
1250
+ spec: coreClient.OperationSpec
1251
+ ): Promise<WorkloadNetworksUpdateDhcpResponse> => {
1252
+ return this.client.sendOperationRequest(args, spec);
1253
+ };
1254
+ const sendOperation = async (
1255
+ args: coreClient.OperationArguments,
1256
+ spec: coreClient.OperationSpec
1257
+ ) => {
1258
+ let currentRawResponse:
1259
+ | coreClient.FullOperationResponse
1260
+ | undefined = undefined;
1261
+ const providedCallback = args.options?.onResponse;
1262
+ const callback: coreClient.RawResponseCallback = (
1263
+ rawResponse: coreClient.FullOperationResponse,
1264
+ flatResponse: unknown
1265
+ ) => {
1266
+ currentRawResponse = rawResponse;
1267
+ providedCallback?.(rawResponse, flatResponse);
1268
+ };
1269
+ const updatedArgs = {
1270
+ ...args,
1271
+ options: {
1272
+ ...args.options,
1273
+ onResponse: callback
1274
+ }
1275
+ };
1276
+ const flatResponse = await directSendOperation(updatedArgs, spec);
1277
+ return {
1278
+ flatResponse,
1279
+ rawResponse: {
1280
+ statusCode: currentRawResponse!.status,
1281
+ body: currentRawResponse!.parsedBody,
1282
+ headers: currentRawResponse!.headers.toJSON()
1283
+ }
1284
+ };
1285
+ };
1286
+
1287
+ const lro = new LroImpl(
1288
+ sendOperation,
1289
+ {
1290
+ resourceGroupName,
1291
+ privateCloudName,
1292
+ dhcpId,
1293
+ workloadNetworkDhcp,
1294
+ options
1295
+ },
1296
+ updateDhcpOperationSpec
1297
+ );
1298
+ return new LroEngine(lro, {
1299
+ resumeFrom: options?.resumeFrom,
1300
+ intervalInMs: options?.updateIntervalInMs
1301
+ });
1302
+ }
1303
+
1304
+ /**
1305
+ * Create or update dhcp by id in a private cloud workload network.
1306
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1307
+ * @param privateCloudName Name of the private cloud
1308
+ * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name
1309
+ * @param workloadNetworkDhcp NSX DHCP
1310
+ * @param options The options parameters.
1311
+ */
1312
+ async beginUpdateDhcpAndWait(
1313
+ resourceGroupName: string,
1314
+ privateCloudName: string,
1315
+ dhcpId: string,
1316
+ workloadNetworkDhcp: WorkloadNetworkDhcp,
1317
+ options?: WorkloadNetworksUpdateDhcpOptionalParams
1318
+ ): Promise<WorkloadNetworksUpdateDhcpResponse> {
1319
+ const poller = await this.beginUpdateDhcp(
1320
+ resourceGroupName,
1321
+ privateCloudName,
1322
+ dhcpId,
1323
+ workloadNetworkDhcp,
1324
+ options
1325
+ );
1326
+ return poller.pollUntilDone();
1327
+ }
1328
+
1329
+ /**
1330
+ * Delete dhcp by id in a private cloud workload network.
1331
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1332
+ * @param privateCloudName Name of the private cloud
1333
+ * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name
1334
+ * @param options The options parameters.
1335
+ */
1336
+ async beginDeleteDhcp(
1337
+ resourceGroupName: string,
1338
+ privateCloudName: string,
1339
+ dhcpId: string,
1340
+ options?: WorkloadNetworksDeleteDhcpOptionalParams
1341
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
1342
+ const directSendOperation = async (
1343
+ args: coreClient.OperationArguments,
1344
+ spec: coreClient.OperationSpec
1345
+ ): Promise<void> => {
1346
+ return this.client.sendOperationRequest(args, spec);
1347
+ };
1348
+ const sendOperation = async (
1349
+ args: coreClient.OperationArguments,
1350
+ spec: coreClient.OperationSpec
1351
+ ) => {
1352
+ let currentRawResponse:
1353
+ | coreClient.FullOperationResponse
1354
+ | undefined = undefined;
1355
+ const providedCallback = args.options?.onResponse;
1356
+ const callback: coreClient.RawResponseCallback = (
1357
+ rawResponse: coreClient.FullOperationResponse,
1358
+ flatResponse: unknown
1359
+ ) => {
1360
+ currentRawResponse = rawResponse;
1361
+ providedCallback?.(rawResponse, flatResponse);
1362
+ };
1363
+ const updatedArgs = {
1364
+ ...args,
1365
+ options: {
1366
+ ...args.options,
1367
+ onResponse: callback
1368
+ }
1369
+ };
1370
+ const flatResponse = await directSendOperation(updatedArgs, spec);
1371
+ return {
1372
+ flatResponse,
1373
+ rawResponse: {
1374
+ statusCode: currentRawResponse!.status,
1375
+ body: currentRawResponse!.parsedBody,
1376
+ headers: currentRawResponse!.headers.toJSON()
1377
+ }
1378
+ };
1379
+ };
1380
+
1381
+ const lro = new LroImpl(
1382
+ sendOperation,
1383
+ { resourceGroupName, privateCloudName, dhcpId, options },
1384
+ deleteDhcpOperationSpec
1385
+ );
1386
+ return new LroEngine(lro, {
1387
+ resumeFrom: options?.resumeFrom,
1388
+ intervalInMs: options?.updateIntervalInMs
1389
+ });
1390
+ }
1391
+
1392
+ /**
1393
+ * Delete dhcp by id in a private cloud workload network.
1394
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1395
+ * @param privateCloudName Name of the private cloud
1396
+ * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name
1397
+ * @param options The options parameters.
1398
+ */
1399
+ async beginDeleteDhcpAndWait(
1400
+ resourceGroupName: string,
1401
+ privateCloudName: string,
1402
+ dhcpId: string,
1403
+ options?: WorkloadNetworksDeleteDhcpOptionalParams
1404
+ ): Promise<void> {
1405
+ const poller = await this.beginDeleteDhcp(
1406
+ resourceGroupName,
1407
+ privateCloudName,
1408
+ dhcpId,
1409
+ options
1410
+ );
1411
+ return poller.pollUntilDone();
1412
+ }
1413
+
1414
+ /**
1415
+ * List of gateways in a private cloud workload network.
1416
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1417
+ * @param privateCloudName Name of the private cloud
1418
+ * @param options The options parameters.
1419
+ */
1420
+ private _listGateways(
1421
+ resourceGroupName: string,
1422
+ privateCloudName: string,
1423
+ options?: WorkloadNetworksListGatewaysOptionalParams
1424
+ ): Promise<WorkloadNetworksListGatewaysResponse> {
1425
+ return this.client.sendOperationRequest(
1426
+ { resourceGroupName, privateCloudName, options },
1427
+ listGatewaysOperationSpec
1428
+ );
1429
+ }
1430
+
1431
+ /**
1432
+ * Get a gateway by id in a private cloud workload network.
1433
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1434
+ * @param privateCloudName Name of the private cloud
1435
+ * @param gatewayId NSX Gateway identifier. Generally the same as the Gateway's display name
1436
+ * @param options The options parameters.
1437
+ */
1438
+ getGateway(
1439
+ resourceGroupName: string,
1440
+ privateCloudName: string,
1441
+ gatewayId: string,
1442
+ options?: WorkloadNetworksGetGatewayOptionalParams
1443
+ ): Promise<WorkloadNetworksGetGatewayResponse> {
1444
+ return this.client.sendOperationRequest(
1445
+ { resourceGroupName, privateCloudName, gatewayId, options },
1446
+ getGatewayOperationSpec
1447
+ );
1448
+ }
1449
+
1450
+ /**
1451
+ * List of port mirroring profiles in a private cloud workload network.
1452
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1453
+ * @param privateCloudName Name of the private cloud
1454
+ * @param options The options parameters.
1455
+ */
1456
+ private _listPortMirroring(
1457
+ resourceGroupName: string,
1458
+ privateCloudName: string,
1459
+ options?: WorkloadNetworksListPortMirroringOptionalParams
1460
+ ): Promise<WorkloadNetworksListPortMirroringResponse> {
1461
+ return this.client.sendOperationRequest(
1462
+ { resourceGroupName, privateCloudName, options },
1463
+ listPortMirroringOperationSpec
1464
+ );
1465
+ }
1466
+
1467
+ /**
1468
+ * Get a port mirroring profile by id in a private cloud workload network.
1469
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1470
+ * @param privateCloudName Name of the private cloud
1471
+ * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring
1472
+ * display name
1473
+ * @param options The options parameters.
1474
+ */
1475
+ getPortMirroring(
1476
+ resourceGroupName: string,
1477
+ privateCloudName: string,
1478
+ portMirroringId: string,
1479
+ options?: WorkloadNetworksGetPortMirroringOptionalParams
1480
+ ): Promise<WorkloadNetworksGetPortMirroringResponse> {
1481
+ return this.client.sendOperationRequest(
1482
+ { resourceGroupName, privateCloudName, portMirroringId, options },
1483
+ getPortMirroringOperationSpec
1484
+ );
1485
+ }
1486
+
1487
+ /**
1488
+ * Create a port mirroring profile by id in a private cloud workload network.
1489
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1490
+ * @param privateCloudName Name of the private cloud
1491
+ * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring
1492
+ * display name
1493
+ * @param workloadNetworkPortMirroring NSX port mirroring
1494
+ * @param options The options parameters.
1495
+ */
1496
+ async beginCreatePortMirroring(
1497
+ resourceGroupName: string,
1498
+ privateCloudName: string,
1499
+ portMirroringId: string,
1500
+ workloadNetworkPortMirroring: WorkloadNetworkPortMirroring,
1501
+ options?: WorkloadNetworksCreatePortMirroringOptionalParams
1502
+ ): Promise<
1503
+ PollerLike<
1504
+ PollOperationState<WorkloadNetworksCreatePortMirroringResponse>,
1505
+ WorkloadNetworksCreatePortMirroringResponse
1506
+ >
1507
+ > {
1508
+ const directSendOperation = async (
1509
+ args: coreClient.OperationArguments,
1510
+ spec: coreClient.OperationSpec
1511
+ ): Promise<WorkloadNetworksCreatePortMirroringResponse> => {
1512
+ return this.client.sendOperationRequest(args, spec);
1513
+ };
1514
+ const sendOperation = async (
1515
+ args: coreClient.OperationArguments,
1516
+ spec: coreClient.OperationSpec
1517
+ ) => {
1518
+ let currentRawResponse:
1519
+ | coreClient.FullOperationResponse
1520
+ | undefined = undefined;
1521
+ const providedCallback = args.options?.onResponse;
1522
+ const callback: coreClient.RawResponseCallback = (
1523
+ rawResponse: coreClient.FullOperationResponse,
1524
+ flatResponse: unknown
1525
+ ) => {
1526
+ currentRawResponse = rawResponse;
1527
+ providedCallback?.(rawResponse, flatResponse);
1528
+ };
1529
+ const updatedArgs = {
1530
+ ...args,
1531
+ options: {
1532
+ ...args.options,
1533
+ onResponse: callback
1534
+ }
1535
+ };
1536
+ const flatResponse = await directSendOperation(updatedArgs, spec);
1537
+ return {
1538
+ flatResponse,
1539
+ rawResponse: {
1540
+ statusCode: currentRawResponse!.status,
1541
+ body: currentRawResponse!.parsedBody,
1542
+ headers: currentRawResponse!.headers.toJSON()
1543
+ }
1544
+ };
1545
+ };
1546
+
1547
+ const lro = new LroImpl(
1548
+ sendOperation,
1549
+ {
1550
+ resourceGroupName,
1551
+ privateCloudName,
1552
+ portMirroringId,
1553
+ workloadNetworkPortMirroring,
1554
+ options
1555
+ },
1556
+ createPortMirroringOperationSpec
1557
+ );
1558
+ return new LroEngine(lro, {
1559
+ resumeFrom: options?.resumeFrom,
1560
+ intervalInMs: options?.updateIntervalInMs
1561
+ });
1562
+ }
1563
+
1564
+ /**
1565
+ * Create a port mirroring profile by id in a private cloud workload network.
1566
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1567
+ * @param privateCloudName Name of the private cloud
1568
+ * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring
1569
+ * display name
1570
+ * @param workloadNetworkPortMirroring NSX port mirroring
1571
+ * @param options The options parameters.
1572
+ */
1573
+ async beginCreatePortMirroringAndWait(
1574
+ resourceGroupName: string,
1575
+ privateCloudName: string,
1576
+ portMirroringId: string,
1577
+ workloadNetworkPortMirroring: WorkloadNetworkPortMirroring,
1578
+ options?: WorkloadNetworksCreatePortMirroringOptionalParams
1579
+ ): Promise<WorkloadNetworksCreatePortMirroringResponse> {
1580
+ const poller = await this.beginCreatePortMirroring(
1581
+ resourceGroupName,
1582
+ privateCloudName,
1583
+ portMirroringId,
1584
+ workloadNetworkPortMirroring,
1585
+ options
1586
+ );
1587
+ return poller.pollUntilDone();
1588
+ }
1589
+
1590
+ /**
1591
+ * Create or update a port mirroring profile by id in a private cloud workload network.
1592
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1593
+ * @param privateCloudName Name of the private cloud
1594
+ * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring
1595
+ * display name
1596
+ * @param workloadNetworkPortMirroring NSX port mirroring
1597
+ * @param options The options parameters.
1598
+ */
1599
+ async beginUpdatePortMirroring(
1600
+ resourceGroupName: string,
1601
+ privateCloudName: string,
1602
+ portMirroringId: string,
1603
+ workloadNetworkPortMirroring: WorkloadNetworkPortMirroring,
1604
+ options?: WorkloadNetworksUpdatePortMirroringOptionalParams
1605
+ ): Promise<
1606
+ PollerLike<
1607
+ PollOperationState<WorkloadNetworksUpdatePortMirroringResponse>,
1608
+ WorkloadNetworksUpdatePortMirroringResponse
1609
+ >
1610
+ > {
1611
+ const directSendOperation = async (
1612
+ args: coreClient.OperationArguments,
1613
+ spec: coreClient.OperationSpec
1614
+ ): Promise<WorkloadNetworksUpdatePortMirroringResponse> => {
1615
+ return this.client.sendOperationRequest(args, spec);
1616
+ };
1617
+ const sendOperation = async (
1618
+ args: coreClient.OperationArguments,
1619
+ spec: coreClient.OperationSpec
1620
+ ) => {
1621
+ let currentRawResponse:
1622
+ | coreClient.FullOperationResponse
1623
+ | undefined = undefined;
1624
+ const providedCallback = args.options?.onResponse;
1625
+ const callback: coreClient.RawResponseCallback = (
1626
+ rawResponse: coreClient.FullOperationResponse,
1627
+ flatResponse: unknown
1628
+ ) => {
1629
+ currentRawResponse = rawResponse;
1630
+ providedCallback?.(rawResponse, flatResponse);
1631
+ };
1632
+ const updatedArgs = {
1633
+ ...args,
1634
+ options: {
1635
+ ...args.options,
1636
+ onResponse: callback
1637
+ }
1638
+ };
1639
+ const flatResponse = await directSendOperation(updatedArgs, spec);
1640
+ return {
1641
+ flatResponse,
1642
+ rawResponse: {
1643
+ statusCode: currentRawResponse!.status,
1644
+ body: currentRawResponse!.parsedBody,
1645
+ headers: currentRawResponse!.headers.toJSON()
1646
+ }
1647
+ };
1648
+ };
1649
+
1650
+ const lro = new LroImpl(
1651
+ sendOperation,
1652
+ {
1653
+ resourceGroupName,
1654
+ privateCloudName,
1655
+ portMirroringId,
1656
+ workloadNetworkPortMirroring,
1657
+ options
1658
+ },
1659
+ updatePortMirroringOperationSpec
1660
+ );
1661
+ return new LroEngine(lro, {
1662
+ resumeFrom: options?.resumeFrom,
1663
+ intervalInMs: options?.updateIntervalInMs
1664
+ });
1665
+ }
1666
+
1667
+ /**
1668
+ * Create or update a port mirroring profile by id in a private cloud workload network.
1669
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1670
+ * @param privateCloudName Name of the private cloud
1671
+ * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring
1672
+ * display name
1673
+ * @param workloadNetworkPortMirroring NSX port mirroring
1674
+ * @param options The options parameters.
1675
+ */
1676
+ async beginUpdatePortMirroringAndWait(
1677
+ resourceGroupName: string,
1678
+ privateCloudName: string,
1679
+ portMirroringId: string,
1680
+ workloadNetworkPortMirroring: WorkloadNetworkPortMirroring,
1681
+ options?: WorkloadNetworksUpdatePortMirroringOptionalParams
1682
+ ): Promise<WorkloadNetworksUpdatePortMirroringResponse> {
1683
+ const poller = await this.beginUpdatePortMirroring(
1684
+ resourceGroupName,
1685
+ privateCloudName,
1686
+ portMirroringId,
1687
+ workloadNetworkPortMirroring,
1688
+ options
1689
+ );
1690
+ return poller.pollUntilDone();
1691
+ }
1692
+
1693
+ /**
1694
+ * Delete a port mirroring profile by id in a private cloud workload network.
1695
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1696
+ * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring
1697
+ * display name
1698
+ * @param privateCloudName Name of the private cloud
1699
+ * @param options The options parameters.
1700
+ */
1701
+ async beginDeletePortMirroring(
1702
+ resourceGroupName: string,
1703
+ portMirroringId: string,
1704
+ privateCloudName: string,
1705
+ options?: WorkloadNetworksDeletePortMirroringOptionalParams
1706
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
1707
+ const directSendOperation = async (
1708
+ args: coreClient.OperationArguments,
1709
+ spec: coreClient.OperationSpec
1710
+ ): Promise<void> => {
1711
+ return this.client.sendOperationRequest(args, spec);
1712
+ };
1713
+ const sendOperation = async (
1714
+ args: coreClient.OperationArguments,
1715
+ spec: coreClient.OperationSpec
1716
+ ) => {
1717
+ let currentRawResponse:
1718
+ | coreClient.FullOperationResponse
1719
+ | undefined = undefined;
1720
+ const providedCallback = args.options?.onResponse;
1721
+ const callback: coreClient.RawResponseCallback = (
1722
+ rawResponse: coreClient.FullOperationResponse,
1723
+ flatResponse: unknown
1724
+ ) => {
1725
+ currentRawResponse = rawResponse;
1726
+ providedCallback?.(rawResponse, flatResponse);
1727
+ };
1728
+ const updatedArgs = {
1729
+ ...args,
1730
+ options: {
1731
+ ...args.options,
1732
+ onResponse: callback
1733
+ }
1734
+ };
1735
+ const flatResponse = await directSendOperation(updatedArgs, spec);
1736
+ return {
1737
+ flatResponse,
1738
+ rawResponse: {
1739
+ statusCode: currentRawResponse!.status,
1740
+ body: currentRawResponse!.parsedBody,
1741
+ headers: currentRawResponse!.headers.toJSON()
1742
+ }
1743
+ };
1744
+ };
1745
+
1746
+ const lro = new LroImpl(
1747
+ sendOperation,
1748
+ { resourceGroupName, portMirroringId, privateCloudName, options },
1749
+ deletePortMirroringOperationSpec
1750
+ );
1751
+ return new LroEngine(lro, {
1752
+ resumeFrom: options?.resumeFrom,
1753
+ intervalInMs: options?.updateIntervalInMs
1754
+ });
1755
+ }
1756
+
1757
+ /**
1758
+ * Delete a port mirroring profile by id in a private cloud workload network.
1759
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1760
+ * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring
1761
+ * display name
1762
+ * @param privateCloudName Name of the private cloud
1763
+ * @param options The options parameters.
1764
+ */
1765
+ async beginDeletePortMirroringAndWait(
1766
+ resourceGroupName: string,
1767
+ portMirroringId: string,
1768
+ privateCloudName: string,
1769
+ options?: WorkloadNetworksDeletePortMirroringOptionalParams
1770
+ ): Promise<void> {
1771
+ const poller = await this.beginDeletePortMirroring(
1772
+ resourceGroupName,
1773
+ portMirroringId,
1774
+ privateCloudName,
1775
+ options
1776
+ );
1777
+ return poller.pollUntilDone();
1778
+ }
1779
+
1780
+ /**
1781
+ * List of vm groups in a private cloud workload network.
1782
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1783
+ * @param privateCloudName Name of the private cloud
1784
+ * @param options The options parameters.
1785
+ */
1786
+ private _listVMGroups(
1787
+ resourceGroupName: string,
1788
+ privateCloudName: string,
1789
+ options?: WorkloadNetworksListVMGroupsOptionalParams
1790
+ ): Promise<WorkloadNetworksListVMGroupsResponse> {
1791
+ return this.client.sendOperationRequest(
1792
+ { resourceGroupName, privateCloudName, options },
1793
+ listVMGroupsOperationSpec
1794
+ );
1795
+ }
1796
+
1797
+ /**
1798
+ * Get a vm group by id in a private cloud workload network.
1799
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1800
+ * @param privateCloudName Name of the private cloud
1801
+ * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name
1802
+ * @param options The options parameters.
1803
+ */
1804
+ getVMGroup(
1805
+ resourceGroupName: string,
1806
+ privateCloudName: string,
1807
+ vmGroupId: string,
1808
+ options?: WorkloadNetworksGetVMGroupOptionalParams
1809
+ ): Promise<WorkloadNetworksGetVMGroupResponse> {
1810
+ return this.client.sendOperationRequest(
1811
+ { resourceGroupName, privateCloudName, vmGroupId, options },
1812
+ getVMGroupOperationSpec
1813
+ );
1814
+ }
1815
+
1816
+ /**
1817
+ * Create a vm group by id in a private cloud workload network.
1818
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1819
+ * @param privateCloudName Name of the private cloud
1820
+ * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name
1821
+ * @param workloadNetworkVMGroup NSX VM Group
1822
+ * @param options The options parameters.
1823
+ */
1824
+ async beginCreateVMGroup(
1825
+ resourceGroupName: string,
1826
+ privateCloudName: string,
1827
+ vmGroupId: string,
1828
+ workloadNetworkVMGroup: WorkloadNetworkVMGroup,
1829
+ options?: WorkloadNetworksCreateVMGroupOptionalParams
1830
+ ): Promise<
1831
+ PollerLike<
1832
+ PollOperationState<WorkloadNetworksCreateVMGroupResponse>,
1833
+ WorkloadNetworksCreateVMGroupResponse
1834
+ >
1835
+ > {
1836
+ const directSendOperation = async (
1837
+ args: coreClient.OperationArguments,
1838
+ spec: coreClient.OperationSpec
1839
+ ): Promise<WorkloadNetworksCreateVMGroupResponse> => {
1840
+ return this.client.sendOperationRequest(args, spec);
1841
+ };
1842
+ const sendOperation = async (
1843
+ args: coreClient.OperationArguments,
1844
+ spec: coreClient.OperationSpec
1845
+ ) => {
1846
+ let currentRawResponse:
1847
+ | coreClient.FullOperationResponse
1848
+ | undefined = undefined;
1849
+ const providedCallback = args.options?.onResponse;
1850
+ const callback: coreClient.RawResponseCallback = (
1851
+ rawResponse: coreClient.FullOperationResponse,
1852
+ flatResponse: unknown
1853
+ ) => {
1854
+ currentRawResponse = rawResponse;
1855
+ providedCallback?.(rawResponse, flatResponse);
1856
+ };
1857
+ const updatedArgs = {
1858
+ ...args,
1859
+ options: {
1860
+ ...args.options,
1861
+ onResponse: callback
1862
+ }
1863
+ };
1864
+ const flatResponse = await directSendOperation(updatedArgs, spec);
1865
+ return {
1866
+ flatResponse,
1867
+ rawResponse: {
1868
+ statusCode: currentRawResponse!.status,
1869
+ body: currentRawResponse!.parsedBody,
1870
+ headers: currentRawResponse!.headers.toJSON()
1871
+ }
1872
+ };
1873
+ };
1874
+
1875
+ const lro = new LroImpl(
1876
+ sendOperation,
1877
+ {
1878
+ resourceGroupName,
1879
+ privateCloudName,
1880
+ vmGroupId,
1881
+ workloadNetworkVMGroup,
1882
+ options
1883
+ },
1884
+ createVMGroupOperationSpec
1885
+ );
1886
+ return new LroEngine(lro, {
1887
+ resumeFrom: options?.resumeFrom,
1888
+ intervalInMs: options?.updateIntervalInMs
1889
+ });
1890
+ }
1891
+
1892
+ /**
1893
+ * Create a vm group by id in a private cloud workload network.
1894
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1895
+ * @param privateCloudName Name of the private cloud
1896
+ * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name
1897
+ * @param workloadNetworkVMGroup NSX VM Group
1898
+ * @param options The options parameters.
1899
+ */
1900
+ async beginCreateVMGroupAndWait(
1901
+ resourceGroupName: string,
1902
+ privateCloudName: string,
1903
+ vmGroupId: string,
1904
+ workloadNetworkVMGroup: WorkloadNetworkVMGroup,
1905
+ options?: WorkloadNetworksCreateVMGroupOptionalParams
1906
+ ): Promise<WorkloadNetworksCreateVMGroupResponse> {
1907
+ const poller = await this.beginCreateVMGroup(
1908
+ resourceGroupName,
1909
+ privateCloudName,
1910
+ vmGroupId,
1911
+ workloadNetworkVMGroup,
1912
+ options
1913
+ );
1914
+ return poller.pollUntilDone();
1915
+ }
1916
+
1917
+ /**
1918
+ * Create or update a vm group by id in a private cloud workload network.
1919
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1920
+ * @param privateCloudName Name of the private cloud
1921
+ * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name
1922
+ * @param workloadNetworkVMGroup NSX VM Group
1923
+ * @param options The options parameters.
1924
+ */
1925
+ async beginUpdateVMGroup(
1926
+ resourceGroupName: string,
1927
+ privateCloudName: string,
1928
+ vmGroupId: string,
1929
+ workloadNetworkVMGroup: WorkloadNetworkVMGroup,
1930
+ options?: WorkloadNetworksUpdateVMGroupOptionalParams
1931
+ ): Promise<
1932
+ PollerLike<
1933
+ PollOperationState<WorkloadNetworksUpdateVMGroupResponse>,
1934
+ WorkloadNetworksUpdateVMGroupResponse
1935
+ >
1936
+ > {
1937
+ const directSendOperation = async (
1938
+ args: coreClient.OperationArguments,
1939
+ spec: coreClient.OperationSpec
1940
+ ): Promise<WorkloadNetworksUpdateVMGroupResponse> => {
1941
+ return this.client.sendOperationRequest(args, spec);
1942
+ };
1943
+ const sendOperation = async (
1944
+ args: coreClient.OperationArguments,
1945
+ spec: coreClient.OperationSpec
1946
+ ) => {
1947
+ let currentRawResponse:
1948
+ | coreClient.FullOperationResponse
1949
+ | undefined = undefined;
1950
+ const providedCallback = args.options?.onResponse;
1951
+ const callback: coreClient.RawResponseCallback = (
1952
+ rawResponse: coreClient.FullOperationResponse,
1953
+ flatResponse: unknown
1954
+ ) => {
1955
+ currentRawResponse = rawResponse;
1956
+ providedCallback?.(rawResponse, flatResponse);
1957
+ };
1958
+ const updatedArgs = {
1959
+ ...args,
1960
+ options: {
1961
+ ...args.options,
1962
+ onResponse: callback
1963
+ }
1964
+ };
1965
+ const flatResponse = await directSendOperation(updatedArgs, spec);
1966
+ return {
1967
+ flatResponse,
1968
+ rawResponse: {
1969
+ statusCode: currentRawResponse!.status,
1970
+ body: currentRawResponse!.parsedBody,
1971
+ headers: currentRawResponse!.headers.toJSON()
1972
+ }
1973
+ };
1974
+ };
1975
+
1976
+ const lro = new LroImpl(
1977
+ sendOperation,
1978
+ {
1979
+ resourceGroupName,
1980
+ privateCloudName,
1981
+ vmGroupId,
1982
+ workloadNetworkVMGroup,
1983
+ options
1984
+ },
1985
+ updateVMGroupOperationSpec
1986
+ );
1987
+ return new LroEngine(lro, {
1988
+ resumeFrom: options?.resumeFrom,
1989
+ intervalInMs: options?.updateIntervalInMs
1990
+ });
1991
+ }
1992
+
1993
+ /**
1994
+ * Create or update a vm group by id in a private cloud workload network.
1995
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1996
+ * @param privateCloudName Name of the private cloud
1997
+ * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name
1998
+ * @param workloadNetworkVMGroup NSX VM Group
1999
+ * @param options The options parameters.
2000
+ */
2001
+ async beginUpdateVMGroupAndWait(
2002
+ resourceGroupName: string,
2003
+ privateCloudName: string,
2004
+ vmGroupId: string,
2005
+ workloadNetworkVMGroup: WorkloadNetworkVMGroup,
2006
+ options?: WorkloadNetworksUpdateVMGroupOptionalParams
2007
+ ): Promise<WorkloadNetworksUpdateVMGroupResponse> {
2008
+ const poller = await this.beginUpdateVMGroup(
2009
+ resourceGroupName,
2010
+ privateCloudName,
2011
+ vmGroupId,
2012
+ workloadNetworkVMGroup,
2013
+ options
2014
+ );
2015
+ return poller.pollUntilDone();
2016
+ }
2017
+
2018
+ /**
2019
+ * Delete a vm group by id in a private cloud workload network.
2020
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2021
+ * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name
2022
+ * @param privateCloudName Name of the private cloud
2023
+ * @param options The options parameters.
2024
+ */
2025
+ async beginDeleteVMGroup(
2026
+ resourceGroupName: string,
2027
+ vmGroupId: string,
2028
+ privateCloudName: string,
2029
+ options?: WorkloadNetworksDeleteVMGroupOptionalParams
2030
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
2031
+ const directSendOperation = async (
2032
+ args: coreClient.OperationArguments,
2033
+ spec: coreClient.OperationSpec
2034
+ ): Promise<void> => {
2035
+ return this.client.sendOperationRequest(args, spec);
2036
+ };
2037
+ const sendOperation = async (
2038
+ args: coreClient.OperationArguments,
2039
+ spec: coreClient.OperationSpec
2040
+ ) => {
2041
+ let currentRawResponse:
2042
+ | coreClient.FullOperationResponse
2043
+ | undefined = undefined;
2044
+ const providedCallback = args.options?.onResponse;
2045
+ const callback: coreClient.RawResponseCallback = (
2046
+ rawResponse: coreClient.FullOperationResponse,
2047
+ flatResponse: unknown
2048
+ ) => {
2049
+ currentRawResponse = rawResponse;
2050
+ providedCallback?.(rawResponse, flatResponse);
2051
+ };
2052
+ const updatedArgs = {
2053
+ ...args,
2054
+ options: {
2055
+ ...args.options,
2056
+ onResponse: callback
2057
+ }
2058
+ };
2059
+ const flatResponse = await directSendOperation(updatedArgs, spec);
2060
+ return {
2061
+ flatResponse,
2062
+ rawResponse: {
2063
+ statusCode: currentRawResponse!.status,
2064
+ body: currentRawResponse!.parsedBody,
2065
+ headers: currentRawResponse!.headers.toJSON()
2066
+ }
2067
+ };
2068
+ };
2069
+
2070
+ const lro = new LroImpl(
2071
+ sendOperation,
2072
+ { resourceGroupName, vmGroupId, privateCloudName, options },
2073
+ deleteVMGroupOperationSpec
2074
+ );
2075
+ return new LroEngine(lro, {
2076
+ resumeFrom: options?.resumeFrom,
2077
+ intervalInMs: options?.updateIntervalInMs
2078
+ });
2079
+ }
2080
+
2081
+ /**
2082
+ * Delete a vm group by id in a private cloud workload network.
2083
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2084
+ * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name
2085
+ * @param privateCloudName Name of the private cloud
2086
+ * @param options The options parameters.
2087
+ */
2088
+ async beginDeleteVMGroupAndWait(
2089
+ resourceGroupName: string,
2090
+ vmGroupId: string,
2091
+ privateCloudName: string,
2092
+ options?: WorkloadNetworksDeleteVMGroupOptionalParams
2093
+ ): Promise<void> {
2094
+ const poller = await this.beginDeleteVMGroup(
2095
+ resourceGroupName,
2096
+ vmGroupId,
2097
+ privateCloudName,
2098
+ options
2099
+ );
2100
+ return poller.pollUntilDone();
2101
+ }
2102
+
2103
+ /**
2104
+ * List of virtual machines in a private cloud workload network.
2105
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2106
+ * @param privateCloudName Name of the private cloud
2107
+ * @param options The options parameters.
2108
+ */
2109
+ private _listVirtualMachines(
2110
+ resourceGroupName: string,
2111
+ privateCloudName: string,
2112
+ options?: WorkloadNetworksListVirtualMachinesOptionalParams
2113
+ ): Promise<WorkloadNetworksListVirtualMachinesResponse> {
2114
+ return this.client.sendOperationRequest(
2115
+ { resourceGroupName, privateCloudName, options },
2116
+ listVirtualMachinesOperationSpec
2117
+ );
2118
+ }
2119
+
2120
+ /**
2121
+ * Get a virtual machine by id in a private cloud workload network.
2122
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2123
+ * @param privateCloudName Name of the private cloud
2124
+ * @param virtualMachineId Virtual Machine identifier
2125
+ * @param options The options parameters.
2126
+ */
2127
+ getVirtualMachine(
2128
+ resourceGroupName: string,
2129
+ privateCloudName: string,
2130
+ virtualMachineId: string,
2131
+ options?: WorkloadNetworksGetVirtualMachineOptionalParams
2132
+ ): Promise<WorkloadNetworksGetVirtualMachineResponse> {
2133
+ return this.client.sendOperationRequest(
2134
+ { resourceGroupName, privateCloudName, virtualMachineId, options },
2135
+ getVirtualMachineOperationSpec
2136
+ );
2137
+ }
2138
+
2139
+ /**
2140
+ * List of DNS services in a private cloud workload network.
2141
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2142
+ * @param privateCloudName Name of the private cloud
2143
+ * @param options The options parameters.
2144
+ */
2145
+ private _listDnsServices(
2146
+ resourceGroupName: string,
2147
+ privateCloudName: string,
2148
+ options?: WorkloadNetworksListDnsServicesOptionalParams
2149
+ ): Promise<WorkloadNetworksListDnsServicesResponse> {
2150
+ return this.client.sendOperationRequest(
2151
+ { resourceGroupName, privateCloudName, options },
2152
+ listDnsServicesOperationSpec
2153
+ );
2154
+ }
2155
+
2156
+ /**
2157
+ * Get a DNS service by id in a private cloud workload network.
2158
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2159
+ * @param privateCloudName Name of the private cloud
2160
+ * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display name
2161
+ * @param options The options parameters.
2162
+ */
2163
+ getDnsService(
2164
+ resourceGroupName: string,
2165
+ privateCloudName: string,
2166
+ dnsServiceId: string,
2167
+ options?: WorkloadNetworksGetDnsServiceOptionalParams
2168
+ ): Promise<WorkloadNetworksGetDnsServiceResponse> {
2169
+ return this.client.sendOperationRequest(
2170
+ { resourceGroupName, privateCloudName, dnsServiceId, options },
2171
+ getDnsServiceOperationSpec
2172
+ );
2173
+ }
2174
+
2175
+ /**
2176
+ * Create a DNS service by id in a private cloud workload network.
2177
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2178
+ * @param privateCloudName Name of the private cloud
2179
+ * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display name
2180
+ * @param workloadNetworkDnsService NSX DNS Service
2181
+ * @param options The options parameters.
2182
+ */
2183
+ async beginCreateDnsService(
2184
+ resourceGroupName: string,
2185
+ privateCloudName: string,
2186
+ dnsServiceId: string,
2187
+ workloadNetworkDnsService: WorkloadNetworkDnsService,
2188
+ options?: WorkloadNetworksCreateDnsServiceOptionalParams
2189
+ ): Promise<
2190
+ PollerLike<
2191
+ PollOperationState<WorkloadNetworksCreateDnsServiceResponse>,
2192
+ WorkloadNetworksCreateDnsServiceResponse
2193
+ >
2194
+ > {
2195
+ const directSendOperation = async (
2196
+ args: coreClient.OperationArguments,
2197
+ spec: coreClient.OperationSpec
2198
+ ): Promise<WorkloadNetworksCreateDnsServiceResponse> => {
2199
+ return this.client.sendOperationRequest(args, spec);
2200
+ };
2201
+ const sendOperation = async (
2202
+ args: coreClient.OperationArguments,
2203
+ spec: coreClient.OperationSpec
2204
+ ) => {
2205
+ let currentRawResponse:
2206
+ | coreClient.FullOperationResponse
2207
+ | undefined = undefined;
2208
+ const providedCallback = args.options?.onResponse;
2209
+ const callback: coreClient.RawResponseCallback = (
2210
+ rawResponse: coreClient.FullOperationResponse,
2211
+ flatResponse: unknown
2212
+ ) => {
2213
+ currentRawResponse = rawResponse;
2214
+ providedCallback?.(rawResponse, flatResponse);
2215
+ };
2216
+ const updatedArgs = {
2217
+ ...args,
2218
+ options: {
2219
+ ...args.options,
2220
+ onResponse: callback
2221
+ }
2222
+ };
2223
+ const flatResponse = await directSendOperation(updatedArgs, spec);
2224
+ return {
2225
+ flatResponse,
2226
+ rawResponse: {
2227
+ statusCode: currentRawResponse!.status,
2228
+ body: currentRawResponse!.parsedBody,
2229
+ headers: currentRawResponse!.headers.toJSON()
2230
+ }
2231
+ };
2232
+ };
2233
+
2234
+ const lro = new LroImpl(
2235
+ sendOperation,
2236
+ {
2237
+ resourceGroupName,
2238
+ privateCloudName,
2239
+ dnsServiceId,
2240
+ workloadNetworkDnsService,
2241
+ options
2242
+ },
2243
+ createDnsServiceOperationSpec
2244
+ );
2245
+ return new LroEngine(lro, {
2246
+ resumeFrom: options?.resumeFrom,
2247
+ intervalInMs: options?.updateIntervalInMs
2248
+ });
2249
+ }
2250
+
2251
+ /**
2252
+ * Create a DNS service by id in a private cloud workload network.
2253
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2254
+ * @param privateCloudName Name of the private cloud
2255
+ * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display name
2256
+ * @param workloadNetworkDnsService NSX DNS Service
2257
+ * @param options The options parameters.
2258
+ */
2259
+ async beginCreateDnsServiceAndWait(
2260
+ resourceGroupName: string,
2261
+ privateCloudName: string,
2262
+ dnsServiceId: string,
2263
+ workloadNetworkDnsService: WorkloadNetworkDnsService,
2264
+ options?: WorkloadNetworksCreateDnsServiceOptionalParams
2265
+ ): Promise<WorkloadNetworksCreateDnsServiceResponse> {
2266
+ const poller = await this.beginCreateDnsService(
2267
+ resourceGroupName,
2268
+ privateCloudName,
2269
+ dnsServiceId,
2270
+ workloadNetworkDnsService,
2271
+ options
2272
+ );
2273
+ return poller.pollUntilDone();
2274
+ }
2275
+
2276
+ /**
2277
+ * Create or update a DNS service by id in a private cloud workload network.
2278
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2279
+ * @param privateCloudName Name of the private cloud
2280
+ * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display name
2281
+ * @param workloadNetworkDnsService NSX DNS Service
2282
+ * @param options The options parameters.
2283
+ */
2284
+ async beginUpdateDnsService(
2285
+ resourceGroupName: string,
2286
+ privateCloudName: string,
2287
+ dnsServiceId: string,
2288
+ workloadNetworkDnsService: WorkloadNetworkDnsService,
2289
+ options?: WorkloadNetworksUpdateDnsServiceOptionalParams
2290
+ ): Promise<
2291
+ PollerLike<
2292
+ PollOperationState<WorkloadNetworksUpdateDnsServiceResponse>,
2293
+ WorkloadNetworksUpdateDnsServiceResponse
2294
+ >
2295
+ > {
2296
+ const directSendOperation = async (
2297
+ args: coreClient.OperationArguments,
2298
+ spec: coreClient.OperationSpec
2299
+ ): Promise<WorkloadNetworksUpdateDnsServiceResponse> => {
2300
+ return this.client.sendOperationRequest(args, spec);
2301
+ };
2302
+ const sendOperation = async (
2303
+ args: coreClient.OperationArguments,
2304
+ spec: coreClient.OperationSpec
2305
+ ) => {
2306
+ let currentRawResponse:
2307
+ | coreClient.FullOperationResponse
2308
+ | undefined = undefined;
2309
+ const providedCallback = args.options?.onResponse;
2310
+ const callback: coreClient.RawResponseCallback = (
2311
+ rawResponse: coreClient.FullOperationResponse,
2312
+ flatResponse: unknown
2313
+ ) => {
2314
+ currentRawResponse = rawResponse;
2315
+ providedCallback?.(rawResponse, flatResponse);
2316
+ };
2317
+ const updatedArgs = {
2318
+ ...args,
2319
+ options: {
2320
+ ...args.options,
2321
+ onResponse: callback
2322
+ }
2323
+ };
2324
+ const flatResponse = await directSendOperation(updatedArgs, spec);
2325
+ return {
2326
+ flatResponse,
2327
+ rawResponse: {
2328
+ statusCode: currentRawResponse!.status,
2329
+ body: currentRawResponse!.parsedBody,
2330
+ headers: currentRawResponse!.headers.toJSON()
2331
+ }
2332
+ };
2333
+ };
2334
+
2335
+ const lro = new LroImpl(
2336
+ sendOperation,
2337
+ {
2338
+ resourceGroupName,
2339
+ privateCloudName,
2340
+ dnsServiceId,
2341
+ workloadNetworkDnsService,
2342
+ options
2343
+ },
2344
+ updateDnsServiceOperationSpec
2345
+ );
2346
+ return new LroEngine(lro, {
2347
+ resumeFrom: options?.resumeFrom,
2348
+ intervalInMs: options?.updateIntervalInMs
2349
+ });
2350
+ }
2351
+
2352
+ /**
2353
+ * Create or update a DNS service by id in a private cloud workload network.
2354
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2355
+ * @param privateCloudName Name of the private cloud
2356
+ * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display name
2357
+ * @param workloadNetworkDnsService NSX DNS Service
2358
+ * @param options The options parameters.
2359
+ */
2360
+ async beginUpdateDnsServiceAndWait(
2361
+ resourceGroupName: string,
2362
+ privateCloudName: string,
2363
+ dnsServiceId: string,
2364
+ workloadNetworkDnsService: WorkloadNetworkDnsService,
2365
+ options?: WorkloadNetworksUpdateDnsServiceOptionalParams
2366
+ ): Promise<WorkloadNetworksUpdateDnsServiceResponse> {
2367
+ const poller = await this.beginUpdateDnsService(
2368
+ resourceGroupName,
2369
+ privateCloudName,
2370
+ dnsServiceId,
2371
+ workloadNetworkDnsService,
2372
+ options
2373
+ );
2374
+ return poller.pollUntilDone();
2375
+ }
2376
+
2377
+ /**
2378
+ * Delete a DNS service by id in a private cloud workload network.
2379
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2380
+ * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display name
2381
+ * @param privateCloudName Name of the private cloud
2382
+ * @param options The options parameters.
2383
+ */
2384
+ async beginDeleteDnsService(
2385
+ resourceGroupName: string,
2386
+ dnsServiceId: string,
2387
+ privateCloudName: string,
2388
+ options?: WorkloadNetworksDeleteDnsServiceOptionalParams
2389
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
2390
+ const directSendOperation = async (
2391
+ args: coreClient.OperationArguments,
2392
+ spec: coreClient.OperationSpec
2393
+ ): Promise<void> => {
2394
+ return this.client.sendOperationRequest(args, spec);
2395
+ };
2396
+ const sendOperation = async (
2397
+ args: coreClient.OperationArguments,
2398
+ spec: coreClient.OperationSpec
2399
+ ) => {
2400
+ let currentRawResponse:
2401
+ | coreClient.FullOperationResponse
2402
+ | undefined = undefined;
2403
+ const providedCallback = args.options?.onResponse;
2404
+ const callback: coreClient.RawResponseCallback = (
2405
+ rawResponse: coreClient.FullOperationResponse,
2406
+ flatResponse: unknown
2407
+ ) => {
2408
+ currentRawResponse = rawResponse;
2409
+ providedCallback?.(rawResponse, flatResponse);
2410
+ };
2411
+ const updatedArgs = {
2412
+ ...args,
2413
+ options: {
2414
+ ...args.options,
2415
+ onResponse: callback
2416
+ }
2417
+ };
2418
+ const flatResponse = await directSendOperation(updatedArgs, spec);
2419
+ return {
2420
+ flatResponse,
2421
+ rawResponse: {
2422
+ statusCode: currentRawResponse!.status,
2423
+ body: currentRawResponse!.parsedBody,
2424
+ headers: currentRawResponse!.headers.toJSON()
2425
+ }
2426
+ };
2427
+ };
2428
+
2429
+ const lro = new LroImpl(
2430
+ sendOperation,
2431
+ { resourceGroupName, dnsServiceId, privateCloudName, options },
2432
+ deleteDnsServiceOperationSpec
2433
+ );
2434
+ return new LroEngine(lro, {
2435
+ resumeFrom: options?.resumeFrom,
2436
+ intervalInMs: options?.updateIntervalInMs
2437
+ });
2438
+ }
2439
+
2440
+ /**
2441
+ * Delete a DNS service by id in a private cloud workload network.
2442
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2443
+ * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display name
2444
+ * @param privateCloudName Name of the private cloud
2445
+ * @param options The options parameters.
2446
+ */
2447
+ async beginDeleteDnsServiceAndWait(
2448
+ resourceGroupName: string,
2449
+ dnsServiceId: string,
2450
+ privateCloudName: string,
2451
+ options?: WorkloadNetworksDeleteDnsServiceOptionalParams
2452
+ ): Promise<void> {
2453
+ const poller = await this.beginDeleteDnsService(
2454
+ resourceGroupName,
2455
+ dnsServiceId,
2456
+ privateCloudName,
2457
+ options
2458
+ );
2459
+ return poller.pollUntilDone();
2460
+ }
2461
+
2462
+ /**
2463
+ * List of DNS zones in a private cloud workload network.
2464
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2465
+ * @param privateCloudName Name of the private cloud
2466
+ * @param options The options parameters.
2467
+ */
2468
+ private _listDnsZones(
2469
+ resourceGroupName: string,
2470
+ privateCloudName: string,
2471
+ options?: WorkloadNetworksListDnsZonesOptionalParams
2472
+ ): Promise<WorkloadNetworksListDnsZonesResponse> {
2473
+ return this.client.sendOperationRequest(
2474
+ { resourceGroupName, privateCloudName, options },
2475
+ listDnsZonesOperationSpec
2476
+ );
2477
+ }
2478
+
2479
+ /**
2480
+ * Get a DNS zone by id in a private cloud workload network.
2481
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2482
+ * @param privateCloudName Name of the private cloud
2483
+ * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
2484
+ * @param options The options parameters.
2485
+ */
2486
+ getDnsZone(
2487
+ resourceGroupName: string,
2488
+ privateCloudName: string,
2489
+ dnsZoneId: string,
2490
+ options?: WorkloadNetworksGetDnsZoneOptionalParams
2491
+ ): Promise<WorkloadNetworksGetDnsZoneResponse> {
2492
+ return this.client.sendOperationRequest(
2493
+ { resourceGroupName, privateCloudName, dnsZoneId, options },
2494
+ getDnsZoneOperationSpec
2495
+ );
2496
+ }
2497
+
2498
+ /**
2499
+ * Create a DNS zone by id in a private cloud workload network.
2500
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2501
+ * @param privateCloudName Name of the private cloud
2502
+ * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
2503
+ * @param workloadNetworkDnsZone NSX DNS Zone
2504
+ * @param options The options parameters.
2505
+ */
2506
+ async beginCreateDnsZone(
2507
+ resourceGroupName: string,
2508
+ privateCloudName: string,
2509
+ dnsZoneId: string,
2510
+ workloadNetworkDnsZone: WorkloadNetworkDnsZone,
2511
+ options?: WorkloadNetworksCreateDnsZoneOptionalParams
2512
+ ): Promise<
2513
+ PollerLike<
2514
+ PollOperationState<WorkloadNetworksCreateDnsZoneResponse>,
2515
+ WorkloadNetworksCreateDnsZoneResponse
2516
+ >
2517
+ > {
2518
+ const directSendOperation = async (
2519
+ args: coreClient.OperationArguments,
2520
+ spec: coreClient.OperationSpec
2521
+ ): Promise<WorkloadNetworksCreateDnsZoneResponse> => {
2522
+ return this.client.sendOperationRequest(args, spec);
2523
+ };
2524
+ const sendOperation = async (
2525
+ args: coreClient.OperationArguments,
2526
+ spec: coreClient.OperationSpec
2527
+ ) => {
2528
+ let currentRawResponse:
2529
+ | coreClient.FullOperationResponse
2530
+ | undefined = undefined;
2531
+ const providedCallback = args.options?.onResponse;
2532
+ const callback: coreClient.RawResponseCallback = (
2533
+ rawResponse: coreClient.FullOperationResponse,
2534
+ flatResponse: unknown
2535
+ ) => {
2536
+ currentRawResponse = rawResponse;
2537
+ providedCallback?.(rawResponse, flatResponse);
2538
+ };
2539
+ const updatedArgs = {
2540
+ ...args,
2541
+ options: {
2542
+ ...args.options,
2543
+ onResponse: callback
2544
+ }
2545
+ };
2546
+ const flatResponse = await directSendOperation(updatedArgs, spec);
2547
+ return {
2548
+ flatResponse,
2549
+ rawResponse: {
2550
+ statusCode: currentRawResponse!.status,
2551
+ body: currentRawResponse!.parsedBody,
2552
+ headers: currentRawResponse!.headers.toJSON()
2553
+ }
2554
+ };
2555
+ };
2556
+
2557
+ const lro = new LroImpl(
2558
+ sendOperation,
2559
+ {
2560
+ resourceGroupName,
2561
+ privateCloudName,
2562
+ dnsZoneId,
2563
+ workloadNetworkDnsZone,
2564
+ options
2565
+ },
2566
+ createDnsZoneOperationSpec
2567
+ );
2568
+ return new LroEngine(lro, {
2569
+ resumeFrom: options?.resumeFrom,
2570
+ intervalInMs: options?.updateIntervalInMs
2571
+ });
2572
+ }
2573
+
2574
+ /**
2575
+ * Create a DNS zone by id in a private cloud workload network.
2576
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2577
+ * @param privateCloudName Name of the private cloud
2578
+ * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
2579
+ * @param workloadNetworkDnsZone NSX DNS Zone
2580
+ * @param options The options parameters.
2581
+ */
2582
+ async beginCreateDnsZoneAndWait(
2583
+ resourceGroupName: string,
2584
+ privateCloudName: string,
2585
+ dnsZoneId: string,
2586
+ workloadNetworkDnsZone: WorkloadNetworkDnsZone,
2587
+ options?: WorkloadNetworksCreateDnsZoneOptionalParams
2588
+ ): Promise<WorkloadNetworksCreateDnsZoneResponse> {
2589
+ const poller = await this.beginCreateDnsZone(
2590
+ resourceGroupName,
2591
+ privateCloudName,
2592
+ dnsZoneId,
2593
+ workloadNetworkDnsZone,
2594
+ options
2595
+ );
2596
+ return poller.pollUntilDone();
2597
+ }
2598
+
2599
+ /**
2600
+ * Create or update a DNS zone by id in a private cloud workload network.
2601
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2602
+ * @param privateCloudName Name of the private cloud
2603
+ * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
2604
+ * @param workloadNetworkDnsZone NSX DNS Zone
2605
+ * @param options The options parameters.
2606
+ */
2607
+ async beginUpdateDnsZone(
2608
+ resourceGroupName: string,
2609
+ privateCloudName: string,
2610
+ dnsZoneId: string,
2611
+ workloadNetworkDnsZone: WorkloadNetworkDnsZone,
2612
+ options?: WorkloadNetworksUpdateDnsZoneOptionalParams
2613
+ ): Promise<
2614
+ PollerLike<
2615
+ PollOperationState<WorkloadNetworksUpdateDnsZoneResponse>,
2616
+ WorkloadNetworksUpdateDnsZoneResponse
2617
+ >
2618
+ > {
2619
+ const directSendOperation = async (
2620
+ args: coreClient.OperationArguments,
2621
+ spec: coreClient.OperationSpec
2622
+ ): Promise<WorkloadNetworksUpdateDnsZoneResponse> => {
2623
+ return this.client.sendOperationRequest(args, spec);
2624
+ };
2625
+ const sendOperation = async (
2626
+ args: coreClient.OperationArguments,
2627
+ spec: coreClient.OperationSpec
2628
+ ) => {
2629
+ let currentRawResponse:
2630
+ | coreClient.FullOperationResponse
2631
+ | undefined = undefined;
2632
+ const providedCallback = args.options?.onResponse;
2633
+ const callback: coreClient.RawResponseCallback = (
2634
+ rawResponse: coreClient.FullOperationResponse,
2635
+ flatResponse: unknown
2636
+ ) => {
2637
+ currentRawResponse = rawResponse;
2638
+ providedCallback?.(rawResponse, flatResponse);
2639
+ };
2640
+ const updatedArgs = {
2641
+ ...args,
2642
+ options: {
2643
+ ...args.options,
2644
+ onResponse: callback
2645
+ }
2646
+ };
2647
+ const flatResponse = await directSendOperation(updatedArgs, spec);
2648
+ return {
2649
+ flatResponse,
2650
+ rawResponse: {
2651
+ statusCode: currentRawResponse!.status,
2652
+ body: currentRawResponse!.parsedBody,
2653
+ headers: currentRawResponse!.headers.toJSON()
2654
+ }
2655
+ };
2656
+ };
2657
+
2658
+ const lro = new LroImpl(
2659
+ sendOperation,
2660
+ {
2661
+ resourceGroupName,
2662
+ privateCloudName,
2663
+ dnsZoneId,
2664
+ workloadNetworkDnsZone,
2665
+ options
2666
+ },
2667
+ updateDnsZoneOperationSpec
2668
+ );
2669
+ return new LroEngine(lro, {
2670
+ resumeFrom: options?.resumeFrom,
2671
+ intervalInMs: options?.updateIntervalInMs
2672
+ });
2673
+ }
2674
+
2675
+ /**
2676
+ * Create or update a DNS zone by id in a private cloud workload network.
2677
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2678
+ * @param privateCloudName Name of the private cloud
2679
+ * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
2680
+ * @param workloadNetworkDnsZone NSX DNS Zone
2681
+ * @param options The options parameters.
2682
+ */
2683
+ async beginUpdateDnsZoneAndWait(
2684
+ resourceGroupName: string,
2685
+ privateCloudName: string,
2686
+ dnsZoneId: string,
2687
+ workloadNetworkDnsZone: WorkloadNetworkDnsZone,
2688
+ options?: WorkloadNetworksUpdateDnsZoneOptionalParams
2689
+ ): Promise<WorkloadNetworksUpdateDnsZoneResponse> {
2690
+ const poller = await this.beginUpdateDnsZone(
2691
+ resourceGroupName,
2692
+ privateCloudName,
2693
+ dnsZoneId,
2694
+ workloadNetworkDnsZone,
2695
+ options
2696
+ );
2697
+ return poller.pollUntilDone();
2698
+ }
2699
+
2700
+ /**
2701
+ * Delete a DNS zone by id in a private cloud workload network.
2702
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2703
+ * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
2704
+ * @param privateCloudName Name of the private cloud
2705
+ * @param options The options parameters.
2706
+ */
2707
+ async beginDeleteDnsZone(
2708
+ resourceGroupName: string,
2709
+ dnsZoneId: string,
2710
+ privateCloudName: string,
2711
+ options?: WorkloadNetworksDeleteDnsZoneOptionalParams
2712
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
2713
+ const directSendOperation = async (
2714
+ args: coreClient.OperationArguments,
2715
+ spec: coreClient.OperationSpec
2716
+ ): Promise<void> => {
2717
+ return this.client.sendOperationRequest(args, spec);
2718
+ };
2719
+ const sendOperation = async (
2720
+ args: coreClient.OperationArguments,
2721
+ spec: coreClient.OperationSpec
2722
+ ) => {
2723
+ let currentRawResponse:
2724
+ | coreClient.FullOperationResponse
2725
+ | undefined = undefined;
2726
+ const providedCallback = args.options?.onResponse;
2727
+ const callback: coreClient.RawResponseCallback = (
2728
+ rawResponse: coreClient.FullOperationResponse,
2729
+ flatResponse: unknown
2730
+ ) => {
2731
+ currentRawResponse = rawResponse;
2732
+ providedCallback?.(rawResponse, flatResponse);
2733
+ };
2734
+ const updatedArgs = {
2735
+ ...args,
2736
+ options: {
2737
+ ...args.options,
2738
+ onResponse: callback
2739
+ }
2740
+ };
2741
+ const flatResponse = await directSendOperation(updatedArgs, spec);
2742
+ return {
2743
+ flatResponse,
2744
+ rawResponse: {
2745
+ statusCode: currentRawResponse!.status,
2746
+ body: currentRawResponse!.parsedBody,
2747
+ headers: currentRawResponse!.headers.toJSON()
2748
+ }
2749
+ };
2750
+ };
2751
+
2752
+ const lro = new LroImpl(
2753
+ sendOperation,
2754
+ { resourceGroupName, dnsZoneId, privateCloudName, options },
2755
+ deleteDnsZoneOperationSpec
2756
+ );
2757
+ return new LroEngine(lro, {
2758
+ resumeFrom: options?.resumeFrom,
2759
+ intervalInMs: options?.updateIntervalInMs
2760
+ });
2761
+ }
2762
+
2763
+ /**
2764
+ * Delete a DNS zone by id in a private cloud workload network.
2765
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2766
+ * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
2767
+ * @param privateCloudName Name of the private cloud
2768
+ * @param options The options parameters.
2769
+ */
2770
+ async beginDeleteDnsZoneAndWait(
2771
+ resourceGroupName: string,
2772
+ dnsZoneId: string,
2773
+ privateCloudName: string,
2774
+ options?: WorkloadNetworksDeleteDnsZoneOptionalParams
2775
+ ): Promise<void> {
2776
+ const poller = await this.beginDeleteDnsZone(
2777
+ resourceGroupName,
2778
+ dnsZoneId,
2779
+ privateCloudName,
2780
+ options
2781
+ );
2782
+ return poller.pollUntilDone();
2783
+ }
2784
+
2785
+ /**
2786
+ * List of Public IP Blocks in a private cloud workload network.
2787
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2788
+ * @param privateCloudName Name of the private cloud
2789
+ * @param options The options parameters.
2790
+ */
2791
+ private _listPublicIPs(
2792
+ resourceGroupName: string,
2793
+ privateCloudName: string,
2794
+ options?: WorkloadNetworksListPublicIPsOptionalParams
2795
+ ): Promise<WorkloadNetworksListPublicIPsResponse> {
2796
+ return this.client.sendOperationRequest(
2797
+ { resourceGroupName, privateCloudName, options },
2798
+ listPublicIPsOperationSpec
2799
+ );
2800
+ }
2801
+
2802
+ /**
2803
+ * Get a Public IP Block by id in a private cloud workload network.
2804
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2805
+ * @param privateCloudName Name of the private cloud
2806
+ * @param publicIPId NSX Public IP Block identifier. Generally the same as the Public IP Block's
2807
+ * display name
2808
+ * @param options The options parameters.
2809
+ */
2810
+ getPublicIP(
2811
+ resourceGroupName: string,
2812
+ privateCloudName: string,
2813
+ publicIPId: string,
2814
+ options?: WorkloadNetworksGetPublicIPOptionalParams
2815
+ ): Promise<WorkloadNetworksGetPublicIPResponse> {
2816
+ return this.client.sendOperationRequest(
2817
+ { resourceGroupName, privateCloudName, publicIPId, options },
2818
+ getPublicIPOperationSpec
2819
+ );
2820
+ }
2821
+
2822
+ /**
2823
+ * Create a Public IP Block by id in a private cloud workload network.
2824
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2825
+ * @param privateCloudName Name of the private cloud
2826
+ * @param publicIPId NSX Public IP Block identifier. Generally the same as the Public IP Block's
2827
+ * display name
2828
+ * @param workloadNetworkPublicIP NSX Public IP Block
2829
+ * @param options The options parameters.
2830
+ */
2831
+ async beginCreatePublicIP(
2832
+ resourceGroupName: string,
2833
+ privateCloudName: string,
2834
+ publicIPId: string,
2835
+ workloadNetworkPublicIP: WorkloadNetworkPublicIP,
2836
+ options?: WorkloadNetworksCreatePublicIPOptionalParams
2837
+ ): Promise<
2838
+ PollerLike<
2839
+ PollOperationState<WorkloadNetworksCreatePublicIPResponse>,
2840
+ WorkloadNetworksCreatePublicIPResponse
2841
+ >
2842
+ > {
2843
+ const directSendOperation = async (
2844
+ args: coreClient.OperationArguments,
2845
+ spec: coreClient.OperationSpec
2846
+ ): Promise<WorkloadNetworksCreatePublicIPResponse> => {
2847
+ return this.client.sendOperationRequest(args, spec);
2848
+ };
2849
+ const sendOperation = async (
2850
+ args: coreClient.OperationArguments,
2851
+ spec: coreClient.OperationSpec
2852
+ ) => {
2853
+ let currentRawResponse:
2854
+ | coreClient.FullOperationResponse
2855
+ | undefined = undefined;
2856
+ const providedCallback = args.options?.onResponse;
2857
+ const callback: coreClient.RawResponseCallback = (
2858
+ rawResponse: coreClient.FullOperationResponse,
2859
+ flatResponse: unknown
2860
+ ) => {
2861
+ currentRawResponse = rawResponse;
2862
+ providedCallback?.(rawResponse, flatResponse);
2863
+ };
2864
+ const updatedArgs = {
2865
+ ...args,
2866
+ options: {
2867
+ ...args.options,
2868
+ onResponse: callback
2869
+ }
2870
+ };
2871
+ const flatResponse = await directSendOperation(updatedArgs, spec);
2872
+ return {
2873
+ flatResponse,
2874
+ rawResponse: {
2875
+ statusCode: currentRawResponse!.status,
2876
+ body: currentRawResponse!.parsedBody,
2877
+ headers: currentRawResponse!.headers.toJSON()
2878
+ }
2879
+ };
2880
+ };
2881
+
2882
+ const lro = new LroImpl(
2883
+ sendOperation,
2884
+ {
2885
+ resourceGroupName,
2886
+ privateCloudName,
2887
+ publicIPId,
2888
+ workloadNetworkPublicIP,
2889
+ options
2890
+ },
2891
+ createPublicIPOperationSpec
2892
+ );
2893
+ return new LroEngine(lro, {
2894
+ resumeFrom: options?.resumeFrom,
2895
+ intervalInMs: options?.updateIntervalInMs
2896
+ });
2897
+ }
2898
+
2899
+ /**
2900
+ * Create a Public IP Block by id in a private cloud workload network.
2901
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2902
+ * @param privateCloudName Name of the private cloud
2903
+ * @param publicIPId NSX Public IP Block identifier. Generally the same as the Public IP Block's
2904
+ * display name
2905
+ * @param workloadNetworkPublicIP NSX Public IP Block
2906
+ * @param options The options parameters.
2907
+ */
2908
+ async beginCreatePublicIPAndWait(
2909
+ resourceGroupName: string,
2910
+ privateCloudName: string,
2911
+ publicIPId: string,
2912
+ workloadNetworkPublicIP: WorkloadNetworkPublicIP,
2913
+ options?: WorkloadNetworksCreatePublicIPOptionalParams
2914
+ ): Promise<WorkloadNetworksCreatePublicIPResponse> {
2915
+ const poller = await this.beginCreatePublicIP(
2916
+ resourceGroupName,
2917
+ privateCloudName,
2918
+ publicIPId,
2919
+ workloadNetworkPublicIP,
2920
+ options
2921
+ );
2922
+ return poller.pollUntilDone();
2923
+ }
2924
+
2925
+ /**
2926
+ * Delete a Public IP Block by id in a private cloud workload network.
2927
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2928
+ * @param publicIPId NSX Public IP Block identifier. Generally the same as the Public IP Block's
2929
+ * display name
2930
+ * @param privateCloudName Name of the private cloud
2931
+ * @param options The options parameters.
2932
+ */
2933
+ async beginDeletePublicIP(
2934
+ resourceGroupName: string,
2935
+ publicIPId: string,
2936
+ privateCloudName: string,
2937
+ options?: WorkloadNetworksDeletePublicIPOptionalParams
2938
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
2939
+ const directSendOperation = async (
2940
+ args: coreClient.OperationArguments,
2941
+ spec: coreClient.OperationSpec
2942
+ ): Promise<void> => {
2943
+ return this.client.sendOperationRequest(args, spec);
2944
+ };
2945
+ const sendOperation = async (
2946
+ args: coreClient.OperationArguments,
2947
+ spec: coreClient.OperationSpec
2948
+ ) => {
2949
+ let currentRawResponse:
2950
+ | coreClient.FullOperationResponse
2951
+ | undefined = undefined;
2952
+ const providedCallback = args.options?.onResponse;
2953
+ const callback: coreClient.RawResponseCallback = (
2954
+ rawResponse: coreClient.FullOperationResponse,
2955
+ flatResponse: unknown
2956
+ ) => {
2957
+ currentRawResponse = rawResponse;
2958
+ providedCallback?.(rawResponse, flatResponse);
2959
+ };
2960
+ const updatedArgs = {
2961
+ ...args,
2962
+ options: {
2963
+ ...args.options,
2964
+ onResponse: callback
2965
+ }
2966
+ };
2967
+ const flatResponse = await directSendOperation(updatedArgs, spec);
2968
+ return {
2969
+ flatResponse,
2970
+ rawResponse: {
2971
+ statusCode: currentRawResponse!.status,
2972
+ body: currentRawResponse!.parsedBody,
2973
+ headers: currentRawResponse!.headers.toJSON()
2974
+ }
2975
+ };
2976
+ };
2977
+
2978
+ const lro = new LroImpl(
2979
+ sendOperation,
2980
+ { resourceGroupName, publicIPId, privateCloudName, options },
2981
+ deletePublicIPOperationSpec
2982
+ );
2983
+ return new LroEngine(lro, {
2984
+ resumeFrom: options?.resumeFrom,
2985
+ intervalInMs: options?.updateIntervalInMs
2986
+ });
2987
+ }
2988
+
2989
+ /**
2990
+ * Delete a Public IP Block by id in a private cloud workload network.
2991
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2992
+ * @param publicIPId NSX Public IP Block identifier. Generally the same as the Public IP Block's
2993
+ * display name
2994
+ * @param privateCloudName Name of the private cloud
2995
+ * @param options The options parameters.
2996
+ */
2997
+ async beginDeletePublicIPAndWait(
2998
+ resourceGroupName: string,
2999
+ publicIPId: string,
3000
+ privateCloudName: string,
3001
+ options?: WorkloadNetworksDeletePublicIPOptionalParams
3002
+ ): Promise<void> {
3003
+ const poller = await this.beginDeletePublicIP(
3004
+ resourceGroupName,
3005
+ publicIPId,
3006
+ privateCloudName,
3007
+ options
3008
+ );
3009
+ return poller.pollUntilDone();
3010
+ }
3011
+
3012
+ /**
3013
+ * ListSegmentsNext
3014
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3015
+ * @param privateCloudName Name of the private cloud
3016
+ * @param nextLink The nextLink from the previous successful call to the ListSegments method.
3017
+ * @param options The options parameters.
3018
+ */
3019
+ private _listSegmentsNext(
3020
+ resourceGroupName: string,
3021
+ privateCloudName: string,
3022
+ nextLink: string,
3023
+ options?: WorkloadNetworksListSegmentsNextOptionalParams
3024
+ ): Promise<WorkloadNetworksListSegmentsNextResponse> {
3025
+ return this.client.sendOperationRequest(
3026
+ { resourceGroupName, privateCloudName, nextLink, options },
3027
+ listSegmentsNextOperationSpec
3028
+ );
3029
+ }
3030
+
3031
+ /**
3032
+ * ListDhcpNext
3033
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3034
+ * @param privateCloudName Name of the private cloud
3035
+ * @param nextLink The nextLink from the previous successful call to the ListDhcp method.
3036
+ * @param options The options parameters.
3037
+ */
3038
+ private _listDhcpNext(
3039
+ resourceGroupName: string,
3040
+ privateCloudName: string,
3041
+ nextLink: string,
3042
+ options?: WorkloadNetworksListDhcpNextOptionalParams
3043
+ ): Promise<WorkloadNetworksListDhcpNextResponse> {
3044
+ return this.client.sendOperationRequest(
3045
+ { resourceGroupName, privateCloudName, nextLink, options },
3046
+ listDhcpNextOperationSpec
3047
+ );
3048
+ }
3049
+
3050
+ /**
3051
+ * ListGatewaysNext
3052
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3053
+ * @param privateCloudName Name of the private cloud
3054
+ * @param nextLink The nextLink from the previous successful call to the ListGateways method.
3055
+ * @param options The options parameters.
3056
+ */
3057
+ private _listGatewaysNext(
3058
+ resourceGroupName: string,
3059
+ privateCloudName: string,
3060
+ nextLink: string,
3061
+ options?: WorkloadNetworksListGatewaysNextOptionalParams
3062
+ ): Promise<WorkloadNetworksListGatewaysNextResponse> {
3063
+ return this.client.sendOperationRequest(
3064
+ { resourceGroupName, privateCloudName, nextLink, options },
3065
+ listGatewaysNextOperationSpec
3066
+ );
3067
+ }
3068
+
3069
+ /**
3070
+ * ListPortMirroringNext
3071
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3072
+ * @param privateCloudName Name of the private cloud
3073
+ * @param nextLink The nextLink from the previous successful call to the ListPortMirroring method.
3074
+ * @param options The options parameters.
3075
+ */
3076
+ private _listPortMirroringNext(
3077
+ resourceGroupName: string,
3078
+ privateCloudName: string,
3079
+ nextLink: string,
3080
+ options?: WorkloadNetworksListPortMirroringNextOptionalParams
3081
+ ): Promise<WorkloadNetworksListPortMirroringNextResponse> {
3082
+ return this.client.sendOperationRequest(
3083
+ { resourceGroupName, privateCloudName, nextLink, options },
3084
+ listPortMirroringNextOperationSpec
3085
+ );
3086
+ }
3087
+
3088
+ /**
3089
+ * ListVMGroupsNext
3090
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3091
+ * @param privateCloudName Name of the private cloud
3092
+ * @param nextLink The nextLink from the previous successful call to the ListVMGroups method.
3093
+ * @param options The options parameters.
3094
+ */
3095
+ private _listVMGroupsNext(
3096
+ resourceGroupName: string,
3097
+ privateCloudName: string,
3098
+ nextLink: string,
3099
+ options?: WorkloadNetworksListVMGroupsNextOptionalParams
3100
+ ): Promise<WorkloadNetworksListVMGroupsNextResponse> {
3101
+ return this.client.sendOperationRequest(
3102
+ { resourceGroupName, privateCloudName, nextLink, options },
3103
+ listVMGroupsNextOperationSpec
3104
+ );
3105
+ }
3106
+
3107
+ /**
3108
+ * ListVirtualMachinesNext
3109
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3110
+ * @param privateCloudName Name of the private cloud
3111
+ * @param nextLink The nextLink from the previous successful call to the ListVirtualMachines method.
3112
+ * @param options The options parameters.
3113
+ */
3114
+ private _listVirtualMachinesNext(
3115
+ resourceGroupName: string,
3116
+ privateCloudName: string,
3117
+ nextLink: string,
3118
+ options?: WorkloadNetworksListVirtualMachinesNextOptionalParams
3119
+ ): Promise<WorkloadNetworksListVirtualMachinesNextResponse> {
3120
+ return this.client.sendOperationRequest(
3121
+ { resourceGroupName, privateCloudName, nextLink, options },
3122
+ listVirtualMachinesNextOperationSpec
3123
+ );
3124
+ }
3125
+
3126
+ /**
3127
+ * ListDnsServicesNext
3128
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3129
+ * @param privateCloudName Name of the private cloud
3130
+ * @param nextLink The nextLink from the previous successful call to the ListDnsServices method.
3131
+ * @param options The options parameters.
3132
+ */
3133
+ private _listDnsServicesNext(
3134
+ resourceGroupName: string,
3135
+ privateCloudName: string,
3136
+ nextLink: string,
3137
+ options?: WorkloadNetworksListDnsServicesNextOptionalParams
3138
+ ): Promise<WorkloadNetworksListDnsServicesNextResponse> {
3139
+ return this.client.sendOperationRequest(
3140
+ { resourceGroupName, privateCloudName, nextLink, options },
3141
+ listDnsServicesNextOperationSpec
3142
+ );
3143
+ }
3144
+
3145
+ /**
3146
+ * ListDnsZonesNext
3147
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3148
+ * @param privateCloudName Name of the private cloud
3149
+ * @param nextLink The nextLink from the previous successful call to the ListDnsZones method.
3150
+ * @param options The options parameters.
3151
+ */
3152
+ private _listDnsZonesNext(
3153
+ resourceGroupName: string,
3154
+ privateCloudName: string,
3155
+ nextLink: string,
3156
+ options?: WorkloadNetworksListDnsZonesNextOptionalParams
3157
+ ): Promise<WorkloadNetworksListDnsZonesNextResponse> {
3158
+ return this.client.sendOperationRequest(
3159
+ { resourceGroupName, privateCloudName, nextLink, options },
3160
+ listDnsZonesNextOperationSpec
3161
+ );
3162
+ }
3163
+
3164
+ /**
3165
+ * ListPublicIPsNext
3166
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3167
+ * @param privateCloudName Name of the private cloud
3168
+ * @param nextLink The nextLink from the previous successful call to the ListPublicIPs method.
3169
+ * @param options The options parameters.
3170
+ */
3171
+ private _listPublicIPsNext(
3172
+ resourceGroupName: string,
3173
+ privateCloudName: string,
3174
+ nextLink: string,
3175
+ options?: WorkloadNetworksListPublicIPsNextOptionalParams
3176
+ ): Promise<WorkloadNetworksListPublicIPsNextResponse> {
3177
+ return this.client.sendOperationRequest(
3178
+ { resourceGroupName, privateCloudName, nextLink, options },
3179
+ listPublicIPsNextOperationSpec
3180
+ );
3181
+ }
3182
+ }
3183
+ // Operation Specifications
3184
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
3185
+
3186
+ const listSegmentsOperationSpec: coreClient.OperationSpec = {
3187
+ path:
3188
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments",
3189
+ httpMethod: "GET",
3190
+ responses: {
3191
+ 200: {
3192
+ bodyMapper: Mappers.WorkloadNetworkSegmentsList
3193
+ },
3194
+ default: {
3195
+ bodyMapper: Mappers.CloudError
3196
+ }
3197
+ },
3198
+ queryParameters: [Parameters.apiVersion],
3199
+ urlParameters: [
3200
+ Parameters.$host,
3201
+ Parameters.subscriptionId,
3202
+ Parameters.resourceGroupName,
3203
+ Parameters.privateCloudName
3204
+ ],
3205
+ headerParameters: [Parameters.accept],
3206
+ serializer
3207
+ };
3208
+ const getSegmentOperationSpec: coreClient.OperationSpec = {
3209
+ path:
3210
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}",
3211
+ httpMethod: "GET",
3212
+ responses: {
3213
+ 200: {
3214
+ bodyMapper: Mappers.WorkloadNetworkSegment
3215
+ },
3216
+ default: {
3217
+ bodyMapper: Mappers.CloudError
3218
+ }
3219
+ },
3220
+ queryParameters: [Parameters.apiVersion],
3221
+ urlParameters: [
3222
+ Parameters.$host,
3223
+ Parameters.subscriptionId,
3224
+ Parameters.resourceGroupName,
3225
+ Parameters.privateCloudName,
3226
+ Parameters.segmentId
3227
+ ],
3228
+ headerParameters: [Parameters.accept],
3229
+ serializer
3230
+ };
3231
+ const createSegmentsOperationSpec: coreClient.OperationSpec = {
3232
+ path:
3233
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}",
3234
+ httpMethod: "PUT",
3235
+ responses: {
3236
+ 200: {
3237
+ bodyMapper: Mappers.WorkloadNetworkSegment
3238
+ },
3239
+ 201: {
3240
+ bodyMapper: Mappers.WorkloadNetworkSegment
3241
+ },
3242
+ 202: {
3243
+ bodyMapper: Mappers.WorkloadNetworkSegment
3244
+ },
3245
+ 204: {
3246
+ bodyMapper: Mappers.WorkloadNetworkSegment
3247
+ },
3248
+ default: {
3249
+ bodyMapper: Mappers.CloudError
3250
+ }
3251
+ },
3252
+ requestBody: Parameters.workloadNetworkSegment,
3253
+ queryParameters: [Parameters.apiVersion],
3254
+ urlParameters: [
3255
+ Parameters.$host,
3256
+ Parameters.subscriptionId,
3257
+ Parameters.resourceGroupName,
3258
+ Parameters.privateCloudName,
3259
+ Parameters.segmentId
3260
+ ],
3261
+ headerParameters: [Parameters.accept, Parameters.contentType],
3262
+ mediaType: "json",
3263
+ serializer
3264
+ };
3265
+ const updateSegmentsOperationSpec: coreClient.OperationSpec = {
3266
+ path:
3267
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}",
3268
+ httpMethod: "PATCH",
3269
+ responses: {
3270
+ 200: {
3271
+ bodyMapper: Mappers.WorkloadNetworkSegment
3272
+ },
3273
+ 201: {
3274
+ bodyMapper: Mappers.WorkloadNetworkSegment
3275
+ },
3276
+ 202: {
3277
+ bodyMapper: Mappers.WorkloadNetworkSegment
3278
+ },
3279
+ 204: {
3280
+ bodyMapper: Mappers.WorkloadNetworkSegment
3281
+ },
3282
+ default: {
3283
+ bodyMapper: Mappers.CloudError
3284
+ }
3285
+ },
3286
+ requestBody: Parameters.workloadNetworkSegment,
3287
+ queryParameters: [Parameters.apiVersion],
3288
+ urlParameters: [
3289
+ Parameters.$host,
3290
+ Parameters.subscriptionId,
3291
+ Parameters.resourceGroupName,
3292
+ Parameters.privateCloudName,
3293
+ Parameters.segmentId
3294
+ ],
3295
+ headerParameters: [Parameters.accept, Parameters.contentType],
3296
+ mediaType: "json",
3297
+ serializer
3298
+ };
3299
+ const deleteSegmentOperationSpec: coreClient.OperationSpec = {
3300
+ path:
3301
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}",
3302
+ httpMethod: "DELETE",
3303
+ responses: {
3304
+ 200: {},
3305
+ 201: {},
3306
+ 202: {},
3307
+ 204: {},
3308
+ default: {
3309
+ bodyMapper: Mappers.CloudError
3310
+ }
3311
+ },
3312
+ queryParameters: [Parameters.apiVersion],
3313
+ urlParameters: [
3314
+ Parameters.$host,
3315
+ Parameters.subscriptionId,
3316
+ Parameters.resourceGroupName,
3317
+ Parameters.privateCloudName,
3318
+ Parameters.segmentId
3319
+ ],
3320
+ headerParameters: [Parameters.accept],
3321
+ serializer
3322
+ };
3323
+ const listDhcpOperationSpec: coreClient.OperationSpec = {
3324
+ path:
3325
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations",
3326
+ httpMethod: "GET",
3327
+ responses: {
3328
+ 200: {
3329
+ bodyMapper: Mappers.WorkloadNetworkDhcpList
3330
+ },
3331
+ default: {
3332
+ bodyMapper: Mappers.CloudError
3333
+ }
3334
+ },
3335
+ queryParameters: [Parameters.apiVersion],
3336
+ urlParameters: [
3337
+ Parameters.$host,
3338
+ Parameters.subscriptionId,
3339
+ Parameters.resourceGroupName,
3340
+ Parameters.privateCloudName
3341
+ ],
3342
+ headerParameters: [Parameters.accept],
3343
+ serializer
3344
+ };
3345
+ const getDhcpOperationSpec: coreClient.OperationSpec = {
3346
+ path:
3347
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}",
3348
+ httpMethod: "GET",
3349
+ responses: {
3350
+ 200: {
3351
+ bodyMapper: Mappers.WorkloadNetworkDhcp
3352
+ },
3353
+ default: {
3354
+ bodyMapper: Mappers.CloudError
3355
+ }
3356
+ },
3357
+ queryParameters: [Parameters.apiVersion],
3358
+ urlParameters: [
3359
+ Parameters.$host,
3360
+ Parameters.subscriptionId,
3361
+ Parameters.resourceGroupName,
3362
+ Parameters.privateCloudName,
3363
+ Parameters.dhcpId
3364
+ ],
3365
+ headerParameters: [Parameters.accept],
3366
+ serializer
3367
+ };
3368
+ const createDhcpOperationSpec: coreClient.OperationSpec = {
3369
+ path:
3370
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}",
3371
+ httpMethod: "PUT",
3372
+ responses: {
3373
+ 200: {
3374
+ bodyMapper: Mappers.WorkloadNetworkDhcp
3375
+ },
3376
+ 201: {
3377
+ bodyMapper: Mappers.WorkloadNetworkDhcp
3378
+ },
3379
+ 202: {
3380
+ bodyMapper: Mappers.WorkloadNetworkDhcp
3381
+ },
3382
+ 204: {
3383
+ bodyMapper: Mappers.WorkloadNetworkDhcp
3384
+ },
3385
+ default: {
3386
+ bodyMapper: Mappers.CloudError
3387
+ }
3388
+ },
3389
+ requestBody: Parameters.workloadNetworkDhcp,
3390
+ queryParameters: [Parameters.apiVersion],
3391
+ urlParameters: [
3392
+ Parameters.$host,
3393
+ Parameters.subscriptionId,
3394
+ Parameters.resourceGroupName,
3395
+ Parameters.privateCloudName,
3396
+ Parameters.dhcpId
3397
+ ],
3398
+ headerParameters: [Parameters.accept, Parameters.contentType],
3399
+ mediaType: "json",
3400
+ serializer
3401
+ };
3402
+ const updateDhcpOperationSpec: coreClient.OperationSpec = {
3403
+ path:
3404
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}",
3405
+ httpMethod: "PATCH",
3406
+ responses: {
3407
+ 200: {
3408
+ bodyMapper: Mappers.WorkloadNetworkDhcp
3409
+ },
3410
+ 201: {
3411
+ bodyMapper: Mappers.WorkloadNetworkDhcp
3412
+ },
3413
+ 202: {
3414
+ bodyMapper: Mappers.WorkloadNetworkDhcp
3415
+ },
3416
+ 204: {
3417
+ bodyMapper: Mappers.WorkloadNetworkDhcp
3418
+ },
3419
+ default: {
3420
+ bodyMapper: Mappers.CloudError
3421
+ }
3422
+ },
3423
+ requestBody: Parameters.workloadNetworkDhcp,
3424
+ queryParameters: [Parameters.apiVersion],
3425
+ urlParameters: [
3426
+ Parameters.$host,
3427
+ Parameters.subscriptionId,
3428
+ Parameters.resourceGroupName,
3429
+ Parameters.privateCloudName,
3430
+ Parameters.dhcpId
3431
+ ],
3432
+ headerParameters: [Parameters.accept, Parameters.contentType],
3433
+ mediaType: "json",
3434
+ serializer
3435
+ };
3436
+ const deleteDhcpOperationSpec: coreClient.OperationSpec = {
3437
+ path:
3438
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}",
3439
+ httpMethod: "DELETE",
3440
+ responses: {
3441
+ 200: {},
3442
+ 201: {},
3443
+ 202: {},
3444
+ 204: {},
3445
+ default: {
3446
+ bodyMapper: Mappers.CloudError
3447
+ }
3448
+ },
3449
+ queryParameters: [Parameters.apiVersion],
3450
+ urlParameters: [
3451
+ Parameters.$host,
3452
+ Parameters.subscriptionId,
3453
+ Parameters.resourceGroupName,
3454
+ Parameters.privateCloudName,
3455
+ Parameters.dhcpId
3456
+ ],
3457
+ headerParameters: [Parameters.accept],
3458
+ serializer
3459
+ };
3460
+ const listGatewaysOperationSpec: coreClient.OperationSpec = {
3461
+ path:
3462
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways",
3463
+ httpMethod: "GET",
3464
+ responses: {
3465
+ 200: {
3466
+ bodyMapper: Mappers.WorkloadNetworkGatewayList
3467
+ },
3468
+ default: {
3469
+ bodyMapper: Mappers.CloudError
3470
+ }
3471
+ },
3472
+ queryParameters: [Parameters.apiVersion],
3473
+ urlParameters: [
3474
+ Parameters.$host,
3475
+ Parameters.subscriptionId,
3476
+ Parameters.resourceGroupName,
3477
+ Parameters.privateCloudName
3478
+ ],
3479
+ headerParameters: [Parameters.accept],
3480
+ serializer
3481
+ };
3482
+ const getGatewayOperationSpec: coreClient.OperationSpec = {
3483
+ path:
3484
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId}",
3485
+ httpMethod: "GET",
3486
+ responses: {
3487
+ 200: {
3488
+ bodyMapper: Mappers.WorkloadNetworkGateway
3489
+ },
3490
+ default: {
3491
+ bodyMapper: Mappers.CloudError
3492
+ }
3493
+ },
3494
+ queryParameters: [Parameters.apiVersion],
3495
+ urlParameters: [
3496
+ Parameters.$host,
3497
+ Parameters.subscriptionId,
3498
+ Parameters.resourceGroupName,
3499
+ Parameters.privateCloudName,
3500
+ Parameters.gatewayId
3501
+ ],
3502
+ headerParameters: [Parameters.accept],
3503
+ serializer
3504
+ };
3505
+ const listPortMirroringOperationSpec: coreClient.OperationSpec = {
3506
+ path:
3507
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles",
3508
+ httpMethod: "GET",
3509
+ responses: {
3510
+ 200: {
3511
+ bodyMapper: Mappers.WorkloadNetworkPortMirroringList
3512
+ },
3513
+ default: {
3514
+ bodyMapper: Mappers.CloudError
3515
+ }
3516
+ },
3517
+ queryParameters: [Parameters.apiVersion],
3518
+ urlParameters: [
3519
+ Parameters.$host,
3520
+ Parameters.subscriptionId,
3521
+ Parameters.resourceGroupName,
3522
+ Parameters.privateCloudName
3523
+ ],
3524
+ headerParameters: [Parameters.accept],
3525
+ serializer
3526
+ };
3527
+ const getPortMirroringOperationSpec: coreClient.OperationSpec = {
3528
+ path:
3529
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}",
3530
+ httpMethod: "GET",
3531
+ responses: {
3532
+ 200: {
3533
+ bodyMapper: Mappers.WorkloadNetworkPortMirroring
3534
+ },
3535
+ default: {
3536
+ bodyMapper: Mappers.CloudError
3537
+ }
3538
+ },
3539
+ queryParameters: [Parameters.apiVersion],
3540
+ urlParameters: [
3541
+ Parameters.$host,
3542
+ Parameters.subscriptionId,
3543
+ Parameters.resourceGroupName,
3544
+ Parameters.privateCloudName,
3545
+ Parameters.portMirroringId
3546
+ ],
3547
+ headerParameters: [Parameters.accept],
3548
+ serializer
3549
+ };
3550
+ const createPortMirroringOperationSpec: coreClient.OperationSpec = {
3551
+ path:
3552
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}",
3553
+ httpMethod: "PUT",
3554
+ responses: {
3555
+ 200: {
3556
+ bodyMapper: Mappers.WorkloadNetworkPortMirroring
3557
+ },
3558
+ 201: {
3559
+ bodyMapper: Mappers.WorkloadNetworkPortMirroring
3560
+ },
3561
+ 202: {
3562
+ bodyMapper: Mappers.WorkloadNetworkPortMirroring
3563
+ },
3564
+ 204: {
3565
+ bodyMapper: Mappers.WorkloadNetworkPortMirroring
3566
+ },
3567
+ default: {
3568
+ bodyMapper: Mappers.CloudError
3569
+ }
3570
+ },
3571
+ requestBody: Parameters.workloadNetworkPortMirroring,
3572
+ queryParameters: [Parameters.apiVersion],
3573
+ urlParameters: [
3574
+ Parameters.$host,
3575
+ Parameters.subscriptionId,
3576
+ Parameters.resourceGroupName,
3577
+ Parameters.privateCloudName,
3578
+ Parameters.portMirroringId
3579
+ ],
3580
+ headerParameters: [Parameters.accept, Parameters.contentType],
3581
+ mediaType: "json",
3582
+ serializer
3583
+ };
3584
+ const updatePortMirroringOperationSpec: coreClient.OperationSpec = {
3585
+ path:
3586
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}",
3587
+ httpMethod: "PATCH",
3588
+ responses: {
3589
+ 200: {
3590
+ bodyMapper: Mappers.WorkloadNetworkPortMirroring
3591
+ },
3592
+ 201: {
3593
+ bodyMapper: Mappers.WorkloadNetworkPortMirroring
3594
+ },
3595
+ 202: {
3596
+ bodyMapper: Mappers.WorkloadNetworkPortMirroring
3597
+ },
3598
+ 204: {
3599
+ bodyMapper: Mappers.WorkloadNetworkPortMirroring
3600
+ },
3601
+ default: {
3602
+ bodyMapper: Mappers.CloudError
3603
+ }
3604
+ },
3605
+ requestBody: Parameters.workloadNetworkPortMirroring,
3606
+ queryParameters: [Parameters.apiVersion],
3607
+ urlParameters: [
3608
+ Parameters.$host,
3609
+ Parameters.subscriptionId,
3610
+ Parameters.resourceGroupName,
3611
+ Parameters.privateCloudName,
3612
+ Parameters.portMirroringId
3613
+ ],
3614
+ headerParameters: [Parameters.accept, Parameters.contentType],
3615
+ mediaType: "json",
3616
+ serializer
3617
+ };
3618
+ const deletePortMirroringOperationSpec: coreClient.OperationSpec = {
3619
+ path:
3620
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}",
3621
+ httpMethod: "DELETE",
3622
+ responses: {
3623
+ 200: {},
3624
+ 201: {},
3625
+ 202: {},
3626
+ 204: {},
3627
+ default: {
3628
+ bodyMapper: Mappers.CloudError
3629
+ }
3630
+ },
3631
+ queryParameters: [Parameters.apiVersion],
3632
+ urlParameters: [
3633
+ Parameters.$host,
3634
+ Parameters.subscriptionId,
3635
+ Parameters.resourceGroupName,
3636
+ Parameters.privateCloudName,
3637
+ Parameters.portMirroringId
3638
+ ],
3639
+ headerParameters: [Parameters.accept],
3640
+ serializer
3641
+ };
3642
+ const listVMGroupsOperationSpec: coreClient.OperationSpec = {
3643
+ path:
3644
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups",
3645
+ httpMethod: "GET",
3646
+ responses: {
3647
+ 200: {
3648
+ bodyMapper: Mappers.WorkloadNetworkVMGroupsList
3649
+ },
3650
+ default: {
3651
+ bodyMapper: Mappers.CloudError
3652
+ }
3653
+ },
3654
+ queryParameters: [Parameters.apiVersion],
3655
+ urlParameters: [
3656
+ Parameters.$host,
3657
+ Parameters.subscriptionId,
3658
+ Parameters.resourceGroupName,
3659
+ Parameters.privateCloudName
3660
+ ],
3661
+ headerParameters: [Parameters.accept],
3662
+ serializer
3663
+ };
3664
+ const getVMGroupOperationSpec: coreClient.OperationSpec = {
3665
+ path:
3666
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}",
3667
+ httpMethod: "GET",
3668
+ responses: {
3669
+ 200: {
3670
+ bodyMapper: Mappers.WorkloadNetworkVMGroup
3671
+ },
3672
+ default: {
3673
+ bodyMapper: Mappers.CloudError
3674
+ }
3675
+ },
3676
+ queryParameters: [Parameters.apiVersion],
3677
+ urlParameters: [
3678
+ Parameters.$host,
3679
+ Parameters.subscriptionId,
3680
+ Parameters.resourceGroupName,
3681
+ Parameters.privateCloudName,
3682
+ Parameters.vmGroupId
3683
+ ],
3684
+ headerParameters: [Parameters.accept],
3685
+ serializer
3686
+ };
3687
+ const createVMGroupOperationSpec: coreClient.OperationSpec = {
3688
+ path:
3689
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}",
3690
+ httpMethod: "PUT",
3691
+ responses: {
3692
+ 200: {
3693
+ bodyMapper: Mappers.WorkloadNetworkVMGroup
3694
+ },
3695
+ 201: {
3696
+ bodyMapper: Mappers.WorkloadNetworkVMGroup
3697
+ },
3698
+ 202: {
3699
+ bodyMapper: Mappers.WorkloadNetworkVMGroup
3700
+ },
3701
+ 204: {
3702
+ bodyMapper: Mappers.WorkloadNetworkVMGroup
3703
+ },
3704
+ default: {
3705
+ bodyMapper: Mappers.CloudError
3706
+ }
3707
+ },
3708
+ requestBody: Parameters.workloadNetworkVMGroup,
3709
+ queryParameters: [Parameters.apiVersion],
3710
+ urlParameters: [
3711
+ Parameters.$host,
3712
+ Parameters.subscriptionId,
3713
+ Parameters.resourceGroupName,
3714
+ Parameters.privateCloudName,
3715
+ Parameters.vmGroupId
3716
+ ],
3717
+ headerParameters: [Parameters.accept, Parameters.contentType],
3718
+ mediaType: "json",
3719
+ serializer
3720
+ };
3721
+ const updateVMGroupOperationSpec: coreClient.OperationSpec = {
3722
+ path:
3723
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}",
3724
+ httpMethod: "PATCH",
3725
+ responses: {
3726
+ 200: {
3727
+ bodyMapper: Mappers.WorkloadNetworkVMGroup
3728
+ },
3729
+ 201: {
3730
+ bodyMapper: Mappers.WorkloadNetworkVMGroup
3731
+ },
3732
+ 202: {
3733
+ bodyMapper: Mappers.WorkloadNetworkVMGroup
3734
+ },
3735
+ 204: {
3736
+ bodyMapper: Mappers.WorkloadNetworkVMGroup
3737
+ },
3738
+ default: {
3739
+ bodyMapper: Mappers.CloudError
3740
+ }
3741
+ },
3742
+ requestBody: Parameters.workloadNetworkVMGroup,
3743
+ queryParameters: [Parameters.apiVersion],
3744
+ urlParameters: [
3745
+ Parameters.$host,
3746
+ Parameters.subscriptionId,
3747
+ Parameters.resourceGroupName,
3748
+ Parameters.privateCloudName,
3749
+ Parameters.vmGroupId
3750
+ ],
3751
+ headerParameters: [Parameters.accept, Parameters.contentType],
3752
+ mediaType: "json",
3753
+ serializer
3754
+ };
3755
+ const deleteVMGroupOperationSpec: coreClient.OperationSpec = {
3756
+ path:
3757
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}",
3758
+ httpMethod: "DELETE",
3759
+ responses: {
3760
+ 200: {},
3761
+ 201: {},
3762
+ 202: {},
3763
+ 204: {},
3764
+ default: {
3765
+ bodyMapper: Mappers.CloudError
3766
+ }
3767
+ },
3768
+ queryParameters: [Parameters.apiVersion],
3769
+ urlParameters: [
3770
+ Parameters.$host,
3771
+ Parameters.subscriptionId,
3772
+ Parameters.resourceGroupName,
3773
+ Parameters.privateCloudName,
3774
+ Parameters.vmGroupId
3775
+ ],
3776
+ headerParameters: [Parameters.accept],
3777
+ serializer
3778
+ };
3779
+ const listVirtualMachinesOperationSpec: coreClient.OperationSpec = {
3780
+ path:
3781
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines",
3782
+ httpMethod: "GET",
3783
+ responses: {
3784
+ 200: {
3785
+ bodyMapper: Mappers.WorkloadNetworkVirtualMachinesList
3786
+ },
3787
+ default: {
3788
+ bodyMapper: Mappers.CloudError
3789
+ }
3790
+ },
3791
+ queryParameters: [Parameters.apiVersion],
3792
+ urlParameters: [
3793
+ Parameters.$host,
3794
+ Parameters.subscriptionId,
3795
+ Parameters.resourceGroupName,
3796
+ Parameters.privateCloudName
3797
+ ],
3798
+ headerParameters: [Parameters.accept],
3799
+ serializer
3800
+ };
3801
+ const getVirtualMachineOperationSpec: coreClient.OperationSpec = {
3802
+ path:
3803
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines/{virtualMachineId}",
3804
+ httpMethod: "GET",
3805
+ responses: {
3806
+ 200: {
3807
+ bodyMapper: Mappers.WorkloadNetworkVirtualMachine
3808
+ },
3809
+ default: {
3810
+ bodyMapper: Mappers.CloudError
3811
+ }
3812
+ },
3813
+ queryParameters: [Parameters.apiVersion],
3814
+ urlParameters: [
3815
+ Parameters.$host,
3816
+ Parameters.subscriptionId,
3817
+ Parameters.resourceGroupName,
3818
+ Parameters.privateCloudName,
3819
+ Parameters.virtualMachineId
3820
+ ],
3821
+ headerParameters: [Parameters.accept],
3822
+ serializer
3823
+ };
3824
+ const listDnsServicesOperationSpec: coreClient.OperationSpec = {
3825
+ path:
3826
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices",
3827
+ httpMethod: "GET",
3828
+ responses: {
3829
+ 200: {
3830
+ bodyMapper: Mappers.WorkloadNetworkDnsServicesList
3831
+ },
3832
+ default: {
3833
+ bodyMapper: Mappers.CloudError
3834
+ }
3835
+ },
3836
+ queryParameters: [Parameters.apiVersion],
3837
+ urlParameters: [
3838
+ Parameters.$host,
3839
+ Parameters.subscriptionId,
3840
+ Parameters.resourceGroupName,
3841
+ Parameters.privateCloudName
3842
+ ],
3843
+ headerParameters: [Parameters.accept],
3844
+ serializer
3845
+ };
3846
+ const getDnsServiceOperationSpec: coreClient.OperationSpec = {
3847
+ path:
3848
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}",
3849
+ httpMethod: "GET",
3850
+ responses: {
3851
+ 200: {
3852
+ bodyMapper: Mappers.WorkloadNetworkDnsService
3853
+ },
3854
+ default: {
3855
+ bodyMapper: Mappers.CloudError
3856
+ }
3857
+ },
3858
+ queryParameters: [Parameters.apiVersion],
3859
+ urlParameters: [
3860
+ Parameters.$host,
3861
+ Parameters.subscriptionId,
3862
+ Parameters.resourceGroupName,
3863
+ Parameters.privateCloudName,
3864
+ Parameters.dnsServiceId
3865
+ ],
3866
+ headerParameters: [Parameters.accept],
3867
+ serializer
3868
+ };
3869
+ const createDnsServiceOperationSpec: coreClient.OperationSpec = {
3870
+ path:
3871
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}",
3872
+ httpMethod: "PUT",
3873
+ responses: {
3874
+ 200: {
3875
+ bodyMapper: Mappers.WorkloadNetworkDnsService
3876
+ },
3877
+ 201: {
3878
+ bodyMapper: Mappers.WorkloadNetworkDnsService
3879
+ },
3880
+ 202: {
3881
+ bodyMapper: Mappers.WorkloadNetworkDnsService
3882
+ },
3883
+ 204: {
3884
+ bodyMapper: Mappers.WorkloadNetworkDnsService
3885
+ },
3886
+ default: {
3887
+ bodyMapper: Mappers.CloudError
3888
+ }
3889
+ },
3890
+ requestBody: Parameters.workloadNetworkDnsService,
3891
+ queryParameters: [Parameters.apiVersion],
3892
+ urlParameters: [
3893
+ Parameters.$host,
3894
+ Parameters.subscriptionId,
3895
+ Parameters.resourceGroupName,
3896
+ Parameters.privateCloudName,
3897
+ Parameters.dnsServiceId
3898
+ ],
3899
+ headerParameters: [Parameters.accept, Parameters.contentType],
3900
+ mediaType: "json",
3901
+ serializer
3902
+ };
3903
+ const updateDnsServiceOperationSpec: coreClient.OperationSpec = {
3904
+ path:
3905
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}",
3906
+ httpMethod: "PATCH",
3907
+ responses: {
3908
+ 200: {
3909
+ bodyMapper: Mappers.WorkloadNetworkDnsService
3910
+ },
3911
+ 201: {
3912
+ bodyMapper: Mappers.WorkloadNetworkDnsService
3913
+ },
3914
+ 202: {
3915
+ bodyMapper: Mappers.WorkloadNetworkDnsService
3916
+ },
3917
+ 204: {
3918
+ bodyMapper: Mappers.WorkloadNetworkDnsService
3919
+ },
3920
+ default: {
3921
+ bodyMapper: Mappers.CloudError
3922
+ }
3923
+ },
3924
+ requestBody: Parameters.workloadNetworkDnsService,
3925
+ queryParameters: [Parameters.apiVersion],
3926
+ urlParameters: [
3927
+ Parameters.$host,
3928
+ Parameters.subscriptionId,
3929
+ Parameters.resourceGroupName,
3930
+ Parameters.privateCloudName,
3931
+ Parameters.dnsServiceId
3932
+ ],
3933
+ headerParameters: [Parameters.accept, Parameters.contentType],
3934
+ mediaType: "json",
3935
+ serializer
3936
+ };
3937
+ const deleteDnsServiceOperationSpec: coreClient.OperationSpec = {
3938
+ path:
3939
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}",
3940
+ httpMethod: "DELETE",
3941
+ responses: {
3942
+ 200: {},
3943
+ 201: {},
3944
+ 202: {},
3945
+ 204: {},
3946
+ default: {
3947
+ bodyMapper: Mappers.CloudError
3948
+ }
3949
+ },
3950
+ queryParameters: [Parameters.apiVersion],
3951
+ urlParameters: [
3952
+ Parameters.$host,
3953
+ Parameters.subscriptionId,
3954
+ Parameters.resourceGroupName,
3955
+ Parameters.privateCloudName,
3956
+ Parameters.dnsServiceId
3957
+ ],
3958
+ headerParameters: [Parameters.accept],
3959
+ serializer
3960
+ };
3961
+ const listDnsZonesOperationSpec: coreClient.OperationSpec = {
3962
+ path:
3963
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones",
3964
+ httpMethod: "GET",
3965
+ responses: {
3966
+ 200: {
3967
+ bodyMapper: Mappers.WorkloadNetworkDnsZonesList
3968
+ },
3969
+ default: {
3970
+ bodyMapper: Mappers.CloudError
3971
+ }
3972
+ },
3973
+ queryParameters: [Parameters.apiVersion],
3974
+ urlParameters: [
3975
+ Parameters.$host,
3976
+ Parameters.subscriptionId,
3977
+ Parameters.resourceGroupName,
3978
+ Parameters.privateCloudName
3979
+ ],
3980
+ headerParameters: [Parameters.accept],
3981
+ serializer
3982
+ };
3983
+ const getDnsZoneOperationSpec: coreClient.OperationSpec = {
3984
+ path:
3985
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}",
3986
+ httpMethod: "GET",
3987
+ responses: {
3988
+ 200: {
3989
+ bodyMapper: Mappers.WorkloadNetworkDnsZone
3990
+ },
3991
+ default: {
3992
+ bodyMapper: Mappers.CloudError
3993
+ }
3994
+ },
3995
+ queryParameters: [Parameters.apiVersion],
3996
+ urlParameters: [
3997
+ Parameters.$host,
3998
+ Parameters.subscriptionId,
3999
+ Parameters.resourceGroupName,
4000
+ Parameters.privateCloudName,
4001
+ Parameters.dnsZoneId
4002
+ ],
4003
+ headerParameters: [Parameters.accept],
4004
+ serializer
4005
+ };
4006
+ const createDnsZoneOperationSpec: coreClient.OperationSpec = {
4007
+ path:
4008
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}",
4009
+ httpMethod: "PUT",
4010
+ responses: {
4011
+ 200: {
4012
+ bodyMapper: Mappers.WorkloadNetworkDnsZone
4013
+ },
4014
+ 201: {
4015
+ bodyMapper: Mappers.WorkloadNetworkDnsZone
4016
+ },
4017
+ 202: {
4018
+ bodyMapper: Mappers.WorkloadNetworkDnsZone
4019
+ },
4020
+ 204: {
4021
+ bodyMapper: Mappers.WorkloadNetworkDnsZone
4022
+ },
4023
+ default: {
4024
+ bodyMapper: Mappers.CloudError
4025
+ }
4026
+ },
4027
+ requestBody: Parameters.workloadNetworkDnsZone,
4028
+ queryParameters: [Parameters.apiVersion],
4029
+ urlParameters: [
4030
+ Parameters.$host,
4031
+ Parameters.subscriptionId,
4032
+ Parameters.resourceGroupName,
4033
+ Parameters.privateCloudName,
4034
+ Parameters.dnsZoneId
4035
+ ],
4036
+ headerParameters: [Parameters.accept, Parameters.contentType],
4037
+ mediaType: "json",
4038
+ serializer
4039
+ };
4040
+ const updateDnsZoneOperationSpec: coreClient.OperationSpec = {
4041
+ path:
4042
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}",
4043
+ httpMethod: "PATCH",
4044
+ responses: {
4045
+ 200: {
4046
+ bodyMapper: Mappers.WorkloadNetworkDnsZone
4047
+ },
4048
+ 201: {
4049
+ bodyMapper: Mappers.WorkloadNetworkDnsZone
4050
+ },
4051
+ 202: {
4052
+ bodyMapper: Mappers.WorkloadNetworkDnsZone
4053
+ },
4054
+ 204: {
4055
+ bodyMapper: Mappers.WorkloadNetworkDnsZone
4056
+ },
4057
+ default: {
4058
+ bodyMapper: Mappers.CloudError
4059
+ }
4060
+ },
4061
+ requestBody: Parameters.workloadNetworkDnsZone,
4062
+ queryParameters: [Parameters.apiVersion],
4063
+ urlParameters: [
4064
+ Parameters.$host,
4065
+ Parameters.subscriptionId,
4066
+ Parameters.resourceGroupName,
4067
+ Parameters.privateCloudName,
4068
+ Parameters.dnsZoneId
4069
+ ],
4070
+ headerParameters: [Parameters.accept, Parameters.contentType],
4071
+ mediaType: "json",
4072
+ serializer
4073
+ };
4074
+ const deleteDnsZoneOperationSpec: coreClient.OperationSpec = {
4075
+ path:
4076
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}",
4077
+ httpMethod: "DELETE",
4078
+ responses: {
4079
+ 200: {},
4080
+ 201: {},
4081
+ 202: {},
4082
+ 204: {},
4083
+ default: {
4084
+ bodyMapper: Mappers.CloudError
4085
+ }
4086
+ },
4087
+ queryParameters: [Parameters.apiVersion],
4088
+ urlParameters: [
4089
+ Parameters.$host,
4090
+ Parameters.subscriptionId,
4091
+ Parameters.resourceGroupName,
4092
+ Parameters.privateCloudName,
4093
+ Parameters.dnsZoneId
4094
+ ],
4095
+ headerParameters: [Parameters.accept],
4096
+ serializer
4097
+ };
4098
+ const listPublicIPsOperationSpec: coreClient.OperationSpec = {
4099
+ path:
4100
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs",
4101
+ httpMethod: "GET",
4102
+ responses: {
4103
+ 200: {
4104
+ bodyMapper: Mappers.WorkloadNetworkPublicIPsList
4105
+ },
4106
+ default: {
4107
+ bodyMapper: Mappers.CloudError
4108
+ }
4109
+ },
4110
+ queryParameters: [Parameters.apiVersion],
4111
+ urlParameters: [
4112
+ Parameters.$host,
4113
+ Parameters.subscriptionId,
4114
+ Parameters.resourceGroupName,
4115
+ Parameters.privateCloudName
4116
+ ],
4117
+ headerParameters: [Parameters.accept],
4118
+ serializer
4119
+ };
4120
+ const getPublicIPOperationSpec: coreClient.OperationSpec = {
4121
+ path:
4122
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}",
4123
+ httpMethod: "GET",
4124
+ responses: {
4125
+ 200: {
4126
+ bodyMapper: Mappers.WorkloadNetworkPublicIP
4127
+ },
4128
+ default: {
4129
+ bodyMapper: Mappers.CloudError
4130
+ }
4131
+ },
4132
+ queryParameters: [Parameters.apiVersion],
4133
+ urlParameters: [
4134
+ Parameters.$host,
4135
+ Parameters.subscriptionId,
4136
+ Parameters.resourceGroupName,
4137
+ Parameters.privateCloudName,
4138
+ Parameters.publicIPId
4139
+ ],
4140
+ headerParameters: [Parameters.accept],
4141
+ serializer
4142
+ };
4143
+ const createPublicIPOperationSpec: coreClient.OperationSpec = {
4144
+ path:
4145
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}",
4146
+ httpMethod: "PUT",
4147
+ responses: {
4148
+ 200: {
4149
+ bodyMapper: Mappers.WorkloadNetworkPublicIP
4150
+ },
4151
+ 201: {
4152
+ bodyMapper: Mappers.WorkloadNetworkPublicIP
4153
+ },
4154
+ 202: {
4155
+ bodyMapper: Mappers.WorkloadNetworkPublicIP
4156
+ },
4157
+ 204: {
4158
+ bodyMapper: Mappers.WorkloadNetworkPublicIP
4159
+ },
4160
+ default: {
4161
+ bodyMapper: Mappers.CloudError
4162
+ }
4163
+ },
4164
+ requestBody: Parameters.workloadNetworkPublicIP,
4165
+ queryParameters: [Parameters.apiVersion],
4166
+ urlParameters: [
4167
+ Parameters.$host,
4168
+ Parameters.subscriptionId,
4169
+ Parameters.resourceGroupName,
4170
+ Parameters.privateCloudName,
4171
+ Parameters.publicIPId
4172
+ ],
4173
+ headerParameters: [Parameters.accept, Parameters.contentType],
4174
+ mediaType: "json",
4175
+ serializer
4176
+ };
4177
+ const deletePublicIPOperationSpec: coreClient.OperationSpec = {
4178
+ path:
4179
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}",
4180
+ httpMethod: "DELETE",
4181
+ responses: {
4182
+ 200: {},
4183
+ 201: {},
4184
+ 202: {},
4185
+ 204: {},
4186
+ default: {
4187
+ bodyMapper: Mappers.CloudError
4188
+ }
4189
+ },
4190
+ queryParameters: [Parameters.apiVersion],
4191
+ urlParameters: [
4192
+ Parameters.$host,
4193
+ Parameters.subscriptionId,
4194
+ Parameters.resourceGroupName,
4195
+ Parameters.privateCloudName,
4196
+ Parameters.publicIPId
4197
+ ],
4198
+ headerParameters: [Parameters.accept],
4199
+ serializer
4200
+ };
4201
+ const listSegmentsNextOperationSpec: coreClient.OperationSpec = {
4202
+ path: "{nextLink}",
4203
+ httpMethod: "GET",
4204
+ responses: {
4205
+ 200: {
4206
+ bodyMapper: Mappers.WorkloadNetworkSegmentsList
4207
+ },
4208
+ default: {
4209
+ bodyMapper: Mappers.CloudError
4210
+ }
4211
+ },
4212
+ queryParameters: [Parameters.apiVersion],
4213
+ urlParameters: [
4214
+ Parameters.$host,
4215
+ Parameters.nextLink,
4216
+ Parameters.subscriptionId,
4217
+ Parameters.resourceGroupName,
4218
+ Parameters.privateCloudName
4219
+ ],
4220
+ headerParameters: [Parameters.accept],
4221
+ serializer
4222
+ };
4223
+ const listDhcpNextOperationSpec: coreClient.OperationSpec = {
4224
+ path: "{nextLink}",
4225
+ httpMethod: "GET",
4226
+ responses: {
4227
+ 200: {
4228
+ bodyMapper: Mappers.WorkloadNetworkDhcpList
4229
+ },
4230
+ default: {
4231
+ bodyMapper: Mappers.CloudError
4232
+ }
4233
+ },
4234
+ queryParameters: [Parameters.apiVersion],
4235
+ urlParameters: [
4236
+ Parameters.$host,
4237
+ Parameters.nextLink,
4238
+ Parameters.subscriptionId,
4239
+ Parameters.resourceGroupName,
4240
+ Parameters.privateCloudName
4241
+ ],
4242
+ headerParameters: [Parameters.accept],
4243
+ serializer
4244
+ };
4245
+ const listGatewaysNextOperationSpec: coreClient.OperationSpec = {
4246
+ path: "{nextLink}",
4247
+ httpMethod: "GET",
4248
+ responses: {
4249
+ 200: {
4250
+ bodyMapper: Mappers.WorkloadNetworkGatewayList
4251
+ },
4252
+ default: {
4253
+ bodyMapper: Mappers.CloudError
4254
+ }
4255
+ },
4256
+ queryParameters: [Parameters.apiVersion],
4257
+ urlParameters: [
4258
+ Parameters.$host,
4259
+ Parameters.nextLink,
4260
+ Parameters.subscriptionId,
4261
+ Parameters.resourceGroupName,
4262
+ Parameters.privateCloudName
4263
+ ],
4264
+ headerParameters: [Parameters.accept],
4265
+ serializer
4266
+ };
4267
+ const listPortMirroringNextOperationSpec: coreClient.OperationSpec = {
4268
+ path: "{nextLink}",
4269
+ httpMethod: "GET",
4270
+ responses: {
4271
+ 200: {
4272
+ bodyMapper: Mappers.WorkloadNetworkPortMirroringList
4273
+ },
4274
+ default: {
4275
+ bodyMapper: Mappers.CloudError
4276
+ }
4277
+ },
4278
+ queryParameters: [Parameters.apiVersion],
4279
+ urlParameters: [
4280
+ Parameters.$host,
4281
+ Parameters.nextLink,
4282
+ Parameters.subscriptionId,
4283
+ Parameters.resourceGroupName,
4284
+ Parameters.privateCloudName
4285
+ ],
4286
+ headerParameters: [Parameters.accept],
4287
+ serializer
4288
+ };
4289
+ const listVMGroupsNextOperationSpec: coreClient.OperationSpec = {
4290
+ path: "{nextLink}",
4291
+ httpMethod: "GET",
4292
+ responses: {
4293
+ 200: {
4294
+ bodyMapper: Mappers.WorkloadNetworkVMGroupsList
4295
+ },
4296
+ default: {
4297
+ bodyMapper: Mappers.CloudError
4298
+ }
4299
+ },
4300
+ queryParameters: [Parameters.apiVersion],
4301
+ urlParameters: [
4302
+ Parameters.$host,
4303
+ Parameters.nextLink,
4304
+ Parameters.subscriptionId,
4305
+ Parameters.resourceGroupName,
4306
+ Parameters.privateCloudName
4307
+ ],
4308
+ headerParameters: [Parameters.accept],
4309
+ serializer
4310
+ };
4311
+ const listVirtualMachinesNextOperationSpec: coreClient.OperationSpec = {
4312
+ path: "{nextLink}",
4313
+ httpMethod: "GET",
4314
+ responses: {
4315
+ 200: {
4316
+ bodyMapper: Mappers.WorkloadNetworkVirtualMachinesList
4317
+ },
4318
+ default: {
4319
+ bodyMapper: Mappers.CloudError
4320
+ }
4321
+ },
4322
+ queryParameters: [Parameters.apiVersion],
4323
+ urlParameters: [
4324
+ Parameters.$host,
4325
+ Parameters.nextLink,
4326
+ Parameters.subscriptionId,
4327
+ Parameters.resourceGroupName,
4328
+ Parameters.privateCloudName
4329
+ ],
4330
+ headerParameters: [Parameters.accept],
4331
+ serializer
4332
+ };
4333
+ const listDnsServicesNextOperationSpec: coreClient.OperationSpec = {
4334
+ path: "{nextLink}",
4335
+ httpMethod: "GET",
4336
+ responses: {
4337
+ 200: {
4338
+ bodyMapper: Mappers.WorkloadNetworkDnsServicesList
4339
+ },
4340
+ default: {
4341
+ bodyMapper: Mappers.CloudError
4342
+ }
4343
+ },
4344
+ queryParameters: [Parameters.apiVersion],
4345
+ urlParameters: [
4346
+ Parameters.$host,
4347
+ Parameters.nextLink,
4348
+ Parameters.subscriptionId,
4349
+ Parameters.resourceGroupName,
4350
+ Parameters.privateCloudName
4351
+ ],
4352
+ headerParameters: [Parameters.accept],
4353
+ serializer
4354
+ };
4355
+ const listDnsZonesNextOperationSpec: coreClient.OperationSpec = {
4356
+ path: "{nextLink}",
4357
+ httpMethod: "GET",
4358
+ responses: {
4359
+ 200: {
4360
+ bodyMapper: Mappers.WorkloadNetworkDnsZonesList
4361
+ },
4362
+ default: {
4363
+ bodyMapper: Mappers.CloudError
4364
+ }
4365
+ },
4366
+ queryParameters: [Parameters.apiVersion],
4367
+ urlParameters: [
4368
+ Parameters.$host,
4369
+ Parameters.nextLink,
4370
+ Parameters.subscriptionId,
4371
+ Parameters.resourceGroupName,
4372
+ Parameters.privateCloudName
4373
+ ],
4374
+ headerParameters: [Parameters.accept],
4375
+ serializer
4376
+ };
4377
+ const listPublicIPsNextOperationSpec: coreClient.OperationSpec = {
4378
+ path: "{nextLink}",
4379
+ httpMethod: "GET",
4380
+ responses: {
4381
+ 200: {
4382
+ bodyMapper: Mappers.WorkloadNetworkPublicIPsList
4383
+ },
4384
+ default: {
4385
+ bodyMapper: Mappers.CloudError
4386
+ }
4387
+ },
4388
+ queryParameters: [Parameters.apiVersion],
4389
+ urlParameters: [
4390
+ Parameters.$host,
4391
+ Parameters.nextLink,
4392
+ Parameters.subscriptionId,
4393
+ Parameters.resourceGroupName,
4394
+ Parameters.privateCloudName
4395
+ ],
4396
+ headerParameters: [Parameters.accept],
4397
+ serializer
4398
+ };