@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,3049 @@
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
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ import { LroEngine } from "@azure/core-lro";
13
+ import { LroImpl } from "../lroImpl";
14
+ /// <reference lib="esnext.asynciterable" />
15
+ /** Class containing WorkloadNetworks operations. */
16
+ export class WorkloadNetworksImpl {
17
+ /**
18
+ * Initialize a new instance of the class WorkloadNetworks class.
19
+ * @param client Reference to the service client
20
+ */
21
+ constructor(client) {
22
+ this.client = client;
23
+ }
24
+ /**
25
+ * List of segments in a private cloud workload network.
26
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
27
+ * @param privateCloudName Name of the private cloud
28
+ * @param options The options parameters.
29
+ */
30
+ listSegments(resourceGroupName, privateCloudName, options) {
31
+ const iter = this.listSegmentsPagingAll(resourceGroupName, privateCloudName, options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: () => {
40
+ return this.listSegmentsPagingPage(resourceGroupName, privateCloudName, options);
41
+ }
42
+ };
43
+ }
44
+ listSegmentsPagingPage(resourceGroupName, privateCloudName, options) {
45
+ return __asyncGenerator(this, arguments, function* listSegmentsPagingPage_1() {
46
+ let result = yield __await(this._listSegments(resourceGroupName, privateCloudName, options));
47
+ yield yield __await(result.value || []);
48
+ let continuationToken = result.nextLink;
49
+ while (continuationToken) {
50
+ result = yield __await(this._listSegmentsNext(resourceGroupName, privateCloudName, continuationToken, options));
51
+ continuationToken = result.nextLink;
52
+ yield yield __await(result.value || []);
53
+ }
54
+ });
55
+ }
56
+ listSegmentsPagingAll(resourceGroupName, privateCloudName, options) {
57
+ return __asyncGenerator(this, arguments, function* listSegmentsPagingAll_1() {
58
+ var e_1, _a;
59
+ try {
60
+ for (var _b = __asyncValues(this.listSegmentsPagingPage(resourceGroupName, privateCloudName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
61
+ const page = _c.value;
62
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
63
+ }
64
+ }
65
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
66
+ finally {
67
+ try {
68
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
69
+ }
70
+ finally { if (e_1) throw e_1.error; }
71
+ }
72
+ });
73
+ }
74
+ /**
75
+ * List dhcp in a private cloud workload network.
76
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
77
+ * @param privateCloudName Name of the private cloud
78
+ * @param options The options parameters.
79
+ */
80
+ listDhcp(resourceGroupName, privateCloudName, options) {
81
+ const iter = this.listDhcpPagingAll(resourceGroupName, privateCloudName, options);
82
+ return {
83
+ next() {
84
+ return iter.next();
85
+ },
86
+ [Symbol.asyncIterator]() {
87
+ return this;
88
+ },
89
+ byPage: () => {
90
+ return this.listDhcpPagingPage(resourceGroupName, privateCloudName, options);
91
+ }
92
+ };
93
+ }
94
+ listDhcpPagingPage(resourceGroupName, privateCloudName, options) {
95
+ return __asyncGenerator(this, arguments, function* listDhcpPagingPage_1() {
96
+ let result = yield __await(this._listDhcp(resourceGroupName, privateCloudName, options));
97
+ yield yield __await(result.value || []);
98
+ let continuationToken = result.nextLink;
99
+ while (continuationToken) {
100
+ result = yield __await(this._listDhcpNext(resourceGroupName, privateCloudName, continuationToken, options));
101
+ continuationToken = result.nextLink;
102
+ yield yield __await(result.value || []);
103
+ }
104
+ });
105
+ }
106
+ listDhcpPagingAll(resourceGroupName, privateCloudName, options) {
107
+ return __asyncGenerator(this, arguments, function* listDhcpPagingAll_1() {
108
+ var e_2, _a;
109
+ try {
110
+ for (var _b = __asyncValues(this.listDhcpPagingPage(resourceGroupName, privateCloudName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
111
+ const page = _c.value;
112
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
113
+ }
114
+ }
115
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
116
+ finally {
117
+ try {
118
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
119
+ }
120
+ finally { if (e_2) throw e_2.error; }
121
+ }
122
+ });
123
+ }
124
+ /**
125
+ * List of gateways in a private cloud workload network.
126
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
127
+ * @param privateCloudName Name of the private cloud
128
+ * @param options The options parameters.
129
+ */
130
+ listGateways(resourceGroupName, privateCloudName, options) {
131
+ const iter = this.listGatewaysPagingAll(resourceGroupName, privateCloudName, options);
132
+ return {
133
+ next() {
134
+ return iter.next();
135
+ },
136
+ [Symbol.asyncIterator]() {
137
+ return this;
138
+ },
139
+ byPage: () => {
140
+ return this.listGatewaysPagingPage(resourceGroupName, privateCloudName, options);
141
+ }
142
+ };
143
+ }
144
+ listGatewaysPagingPage(resourceGroupName, privateCloudName, options) {
145
+ return __asyncGenerator(this, arguments, function* listGatewaysPagingPage_1() {
146
+ let result = yield __await(this._listGateways(resourceGroupName, privateCloudName, options));
147
+ yield yield __await(result.value || []);
148
+ let continuationToken = result.nextLink;
149
+ while (continuationToken) {
150
+ result = yield __await(this._listGatewaysNext(resourceGroupName, privateCloudName, continuationToken, options));
151
+ continuationToken = result.nextLink;
152
+ yield yield __await(result.value || []);
153
+ }
154
+ });
155
+ }
156
+ listGatewaysPagingAll(resourceGroupName, privateCloudName, options) {
157
+ return __asyncGenerator(this, arguments, function* listGatewaysPagingAll_1() {
158
+ var e_3, _a;
159
+ try {
160
+ for (var _b = __asyncValues(this.listGatewaysPagingPage(resourceGroupName, privateCloudName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
161
+ const page = _c.value;
162
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
163
+ }
164
+ }
165
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
166
+ finally {
167
+ try {
168
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
169
+ }
170
+ finally { if (e_3) throw e_3.error; }
171
+ }
172
+ });
173
+ }
174
+ /**
175
+ * List of port mirroring profiles in a private cloud workload network.
176
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
177
+ * @param privateCloudName Name of the private cloud
178
+ * @param options The options parameters.
179
+ */
180
+ listPortMirroring(resourceGroupName, privateCloudName, options) {
181
+ const iter = this.listPortMirroringPagingAll(resourceGroupName, privateCloudName, options);
182
+ return {
183
+ next() {
184
+ return iter.next();
185
+ },
186
+ [Symbol.asyncIterator]() {
187
+ return this;
188
+ },
189
+ byPage: () => {
190
+ return this.listPortMirroringPagingPage(resourceGroupName, privateCloudName, options);
191
+ }
192
+ };
193
+ }
194
+ listPortMirroringPagingPage(resourceGroupName, privateCloudName, options) {
195
+ return __asyncGenerator(this, arguments, function* listPortMirroringPagingPage_1() {
196
+ let result = yield __await(this._listPortMirroring(resourceGroupName, privateCloudName, options));
197
+ yield yield __await(result.value || []);
198
+ let continuationToken = result.nextLink;
199
+ while (continuationToken) {
200
+ result = yield __await(this._listPortMirroringNext(resourceGroupName, privateCloudName, continuationToken, options));
201
+ continuationToken = result.nextLink;
202
+ yield yield __await(result.value || []);
203
+ }
204
+ });
205
+ }
206
+ listPortMirroringPagingAll(resourceGroupName, privateCloudName, options) {
207
+ return __asyncGenerator(this, arguments, function* listPortMirroringPagingAll_1() {
208
+ var e_4, _a;
209
+ try {
210
+ for (var _b = __asyncValues(this.listPortMirroringPagingPage(resourceGroupName, privateCloudName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
211
+ const page = _c.value;
212
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
213
+ }
214
+ }
215
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
216
+ finally {
217
+ try {
218
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
219
+ }
220
+ finally { if (e_4) throw e_4.error; }
221
+ }
222
+ });
223
+ }
224
+ /**
225
+ * List of vm groups in a private cloud workload network.
226
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
227
+ * @param privateCloudName Name of the private cloud
228
+ * @param options The options parameters.
229
+ */
230
+ listVMGroups(resourceGroupName, privateCloudName, options) {
231
+ const iter = this.listVMGroupsPagingAll(resourceGroupName, privateCloudName, options);
232
+ return {
233
+ next() {
234
+ return iter.next();
235
+ },
236
+ [Symbol.asyncIterator]() {
237
+ return this;
238
+ },
239
+ byPage: () => {
240
+ return this.listVMGroupsPagingPage(resourceGroupName, privateCloudName, options);
241
+ }
242
+ };
243
+ }
244
+ listVMGroupsPagingPage(resourceGroupName, privateCloudName, options) {
245
+ return __asyncGenerator(this, arguments, function* listVMGroupsPagingPage_1() {
246
+ let result = yield __await(this._listVMGroups(resourceGroupName, privateCloudName, options));
247
+ yield yield __await(result.value || []);
248
+ let continuationToken = result.nextLink;
249
+ while (continuationToken) {
250
+ result = yield __await(this._listVMGroupsNext(resourceGroupName, privateCloudName, continuationToken, options));
251
+ continuationToken = result.nextLink;
252
+ yield yield __await(result.value || []);
253
+ }
254
+ });
255
+ }
256
+ listVMGroupsPagingAll(resourceGroupName, privateCloudName, options) {
257
+ return __asyncGenerator(this, arguments, function* listVMGroupsPagingAll_1() {
258
+ var e_5, _a;
259
+ try {
260
+ for (var _b = __asyncValues(this.listVMGroupsPagingPage(resourceGroupName, privateCloudName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
261
+ const page = _c.value;
262
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
263
+ }
264
+ }
265
+ catch (e_5_1) { e_5 = { error: e_5_1 }; }
266
+ finally {
267
+ try {
268
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
269
+ }
270
+ finally { if (e_5) throw e_5.error; }
271
+ }
272
+ });
273
+ }
274
+ /**
275
+ * List of virtual machines in a private cloud workload network.
276
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
277
+ * @param privateCloudName Name of the private cloud
278
+ * @param options The options parameters.
279
+ */
280
+ listVirtualMachines(resourceGroupName, privateCloudName, options) {
281
+ const iter = this.listVirtualMachinesPagingAll(resourceGroupName, privateCloudName, options);
282
+ return {
283
+ next() {
284
+ return iter.next();
285
+ },
286
+ [Symbol.asyncIterator]() {
287
+ return this;
288
+ },
289
+ byPage: () => {
290
+ return this.listVirtualMachinesPagingPage(resourceGroupName, privateCloudName, options);
291
+ }
292
+ };
293
+ }
294
+ listVirtualMachinesPagingPage(resourceGroupName, privateCloudName, options) {
295
+ return __asyncGenerator(this, arguments, function* listVirtualMachinesPagingPage_1() {
296
+ let result = yield __await(this._listVirtualMachines(resourceGroupName, privateCloudName, options));
297
+ yield yield __await(result.value || []);
298
+ let continuationToken = result.nextLink;
299
+ while (continuationToken) {
300
+ result = yield __await(this._listVirtualMachinesNext(resourceGroupName, privateCloudName, continuationToken, options));
301
+ continuationToken = result.nextLink;
302
+ yield yield __await(result.value || []);
303
+ }
304
+ });
305
+ }
306
+ listVirtualMachinesPagingAll(resourceGroupName, privateCloudName, options) {
307
+ return __asyncGenerator(this, arguments, function* listVirtualMachinesPagingAll_1() {
308
+ var e_6, _a;
309
+ try {
310
+ for (var _b = __asyncValues(this.listVirtualMachinesPagingPage(resourceGroupName, privateCloudName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
311
+ const page = _c.value;
312
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
313
+ }
314
+ }
315
+ catch (e_6_1) { e_6 = { error: e_6_1 }; }
316
+ finally {
317
+ try {
318
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
319
+ }
320
+ finally { if (e_6) throw e_6.error; }
321
+ }
322
+ });
323
+ }
324
+ /**
325
+ * List of DNS services in a private cloud workload network.
326
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
327
+ * @param privateCloudName Name of the private cloud
328
+ * @param options The options parameters.
329
+ */
330
+ listDnsServices(resourceGroupName, privateCloudName, options) {
331
+ const iter = this.listDnsServicesPagingAll(resourceGroupName, privateCloudName, options);
332
+ return {
333
+ next() {
334
+ return iter.next();
335
+ },
336
+ [Symbol.asyncIterator]() {
337
+ return this;
338
+ },
339
+ byPage: () => {
340
+ return this.listDnsServicesPagingPage(resourceGroupName, privateCloudName, options);
341
+ }
342
+ };
343
+ }
344
+ listDnsServicesPagingPage(resourceGroupName, privateCloudName, options) {
345
+ return __asyncGenerator(this, arguments, function* listDnsServicesPagingPage_1() {
346
+ let result = yield __await(this._listDnsServices(resourceGroupName, privateCloudName, options));
347
+ yield yield __await(result.value || []);
348
+ let continuationToken = result.nextLink;
349
+ while (continuationToken) {
350
+ result = yield __await(this._listDnsServicesNext(resourceGroupName, privateCloudName, continuationToken, options));
351
+ continuationToken = result.nextLink;
352
+ yield yield __await(result.value || []);
353
+ }
354
+ });
355
+ }
356
+ listDnsServicesPagingAll(resourceGroupName, privateCloudName, options) {
357
+ return __asyncGenerator(this, arguments, function* listDnsServicesPagingAll_1() {
358
+ var e_7, _a;
359
+ try {
360
+ for (var _b = __asyncValues(this.listDnsServicesPagingPage(resourceGroupName, privateCloudName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
361
+ const page = _c.value;
362
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
363
+ }
364
+ }
365
+ catch (e_7_1) { e_7 = { error: e_7_1 }; }
366
+ finally {
367
+ try {
368
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
369
+ }
370
+ finally { if (e_7) throw e_7.error; }
371
+ }
372
+ });
373
+ }
374
+ /**
375
+ * List of DNS zones in a private cloud workload network.
376
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
377
+ * @param privateCloudName Name of the private cloud
378
+ * @param options The options parameters.
379
+ */
380
+ listDnsZones(resourceGroupName, privateCloudName, options) {
381
+ const iter = this.listDnsZonesPagingAll(resourceGroupName, privateCloudName, options);
382
+ return {
383
+ next() {
384
+ return iter.next();
385
+ },
386
+ [Symbol.asyncIterator]() {
387
+ return this;
388
+ },
389
+ byPage: () => {
390
+ return this.listDnsZonesPagingPage(resourceGroupName, privateCloudName, options);
391
+ }
392
+ };
393
+ }
394
+ listDnsZonesPagingPage(resourceGroupName, privateCloudName, options) {
395
+ return __asyncGenerator(this, arguments, function* listDnsZonesPagingPage_1() {
396
+ let result = yield __await(this._listDnsZones(resourceGroupName, privateCloudName, options));
397
+ yield yield __await(result.value || []);
398
+ let continuationToken = result.nextLink;
399
+ while (continuationToken) {
400
+ result = yield __await(this._listDnsZonesNext(resourceGroupName, privateCloudName, continuationToken, options));
401
+ continuationToken = result.nextLink;
402
+ yield yield __await(result.value || []);
403
+ }
404
+ });
405
+ }
406
+ listDnsZonesPagingAll(resourceGroupName, privateCloudName, options) {
407
+ return __asyncGenerator(this, arguments, function* listDnsZonesPagingAll_1() {
408
+ var e_8, _a;
409
+ try {
410
+ for (var _b = __asyncValues(this.listDnsZonesPagingPage(resourceGroupName, privateCloudName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
411
+ const page = _c.value;
412
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
413
+ }
414
+ }
415
+ catch (e_8_1) { e_8 = { error: e_8_1 }; }
416
+ finally {
417
+ try {
418
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
419
+ }
420
+ finally { if (e_8) throw e_8.error; }
421
+ }
422
+ });
423
+ }
424
+ /**
425
+ * List of Public IP Blocks in a private cloud workload network.
426
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
427
+ * @param privateCloudName Name of the private cloud
428
+ * @param options The options parameters.
429
+ */
430
+ listPublicIPs(resourceGroupName, privateCloudName, options) {
431
+ const iter = this.listPublicIPsPagingAll(resourceGroupName, privateCloudName, options);
432
+ return {
433
+ next() {
434
+ return iter.next();
435
+ },
436
+ [Symbol.asyncIterator]() {
437
+ return this;
438
+ },
439
+ byPage: () => {
440
+ return this.listPublicIPsPagingPage(resourceGroupName, privateCloudName, options);
441
+ }
442
+ };
443
+ }
444
+ listPublicIPsPagingPage(resourceGroupName, privateCloudName, options) {
445
+ return __asyncGenerator(this, arguments, function* listPublicIPsPagingPage_1() {
446
+ let result = yield __await(this._listPublicIPs(resourceGroupName, privateCloudName, options));
447
+ yield yield __await(result.value || []);
448
+ let continuationToken = result.nextLink;
449
+ while (continuationToken) {
450
+ result = yield __await(this._listPublicIPsNext(resourceGroupName, privateCloudName, continuationToken, options));
451
+ continuationToken = result.nextLink;
452
+ yield yield __await(result.value || []);
453
+ }
454
+ });
455
+ }
456
+ listPublicIPsPagingAll(resourceGroupName, privateCloudName, options) {
457
+ return __asyncGenerator(this, arguments, function* listPublicIPsPagingAll_1() {
458
+ var e_9, _a;
459
+ try {
460
+ for (var _b = __asyncValues(this.listPublicIPsPagingPage(resourceGroupName, privateCloudName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
461
+ const page = _c.value;
462
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
463
+ }
464
+ }
465
+ catch (e_9_1) { e_9 = { error: e_9_1 }; }
466
+ finally {
467
+ try {
468
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
469
+ }
470
+ finally { if (e_9) throw e_9.error; }
471
+ }
472
+ });
473
+ }
474
+ /**
475
+ * List of segments in a private cloud workload network.
476
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
477
+ * @param privateCloudName Name of the private cloud
478
+ * @param options The options parameters.
479
+ */
480
+ _listSegments(resourceGroupName, privateCloudName, options) {
481
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, options }, listSegmentsOperationSpec);
482
+ }
483
+ /**
484
+ * Get a segment by id in a private cloud workload network.
485
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
486
+ * @param privateCloudName Name of the private cloud
487
+ * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name
488
+ * @param options The options parameters.
489
+ */
490
+ getSegment(resourceGroupName, privateCloudName, segmentId, options) {
491
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, segmentId, options }, getSegmentOperationSpec);
492
+ }
493
+ /**
494
+ * Create a segment by id in a private cloud workload network.
495
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
496
+ * @param privateCloudName Name of the private cloud
497
+ * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name
498
+ * @param workloadNetworkSegment NSX Segment
499
+ * @param options The options parameters.
500
+ */
501
+ beginCreateSegments(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, options) {
502
+ return __awaiter(this, void 0, void 0, function* () {
503
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
504
+ return this.client.sendOperationRequest(args, spec);
505
+ });
506
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
507
+ var _a;
508
+ let currentRawResponse = undefined;
509
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
510
+ const callback = (rawResponse, flatResponse) => {
511
+ currentRawResponse = rawResponse;
512
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
513
+ };
514
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
515
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
516
+ return {
517
+ flatResponse,
518
+ rawResponse: {
519
+ statusCode: currentRawResponse.status,
520
+ body: currentRawResponse.parsedBody,
521
+ headers: currentRawResponse.headers.toJSON()
522
+ }
523
+ };
524
+ });
525
+ const lro = new LroImpl(sendOperation, {
526
+ resourceGroupName,
527
+ privateCloudName,
528
+ segmentId,
529
+ workloadNetworkSegment,
530
+ options
531
+ }, createSegmentsOperationSpec);
532
+ return new LroEngine(lro, {
533
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
534
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
535
+ });
536
+ });
537
+ }
538
+ /**
539
+ * Create a segment by id in a private cloud workload network.
540
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
541
+ * @param privateCloudName Name of the private cloud
542
+ * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name
543
+ * @param workloadNetworkSegment NSX Segment
544
+ * @param options The options parameters.
545
+ */
546
+ beginCreateSegmentsAndWait(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, options) {
547
+ return __awaiter(this, void 0, void 0, function* () {
548
+ const poller = yield this.beginCreateSegments(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, options);
549
+ return poller.pollUntilDone();
550
+ });
551
+ }
552
+ /**
553
+ * Create or update a segment by id in a private cloud workload network.
554
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
555
+ * @param privateCloudName Name of the private cloud
556
+ * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name
557
+ * @param workloadNetworkSegment NSX Segment
558
+ * @param options The options parameters.
559
+ */
560
+ beginUpdateSegments(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, options) {
561
+ return __awaiter(this, void 0, void 0, function* () {
562
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
563
+ return this.client.sendOperationRequest(args, spec);
564
+ });
565
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
566
+ var _a;
567
+ let currentRawResponse = undefined;
568
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
569
+ const callback = (rawResponse, flatResponse) => {
570
+ currentRawResponse = rawResponse;
571
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
572
+ };
573
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
574
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
575
+ return {
576
+ flatResponse,
577
+ rawResponse: {
578
+ statusCode: currentRawResponse.status,
579
+ body: currentRawResponse.parsedBody,
580
+ headers: currentRawResponse.headers.toJSON()
581
+ }
582
+ };
583
+ });
584
+ const lro = new LroImpl(sendOperation, {
585
+ resourceGroupName,
586
+ privateCloudName,
587
+ segmentId,
588
+ workloadNetworkSegment,
589
+ options
590
+ }, updateSegmentsOperationSpec);
591
+ return new LroEngine(lro, {
592
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
593
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
594
+ });
595
+ });
596
+ }
597
+ /**
598
+ * Create or update a segment by id in a private cloud workload network.
599
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
600
+ * @param privateCloudName Name of the private cloud
601
+ * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name
602
+ * @param workloadNetworkSegment NSX Segment
603
+ * @param options The options parameters.
604
+ */
605
+ beginUpdateSegmentsAndWait(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, options) {
606
+ return __awaiter(this, void 0, void 0, function* () {
607
+ const poller = yield this.beginUpdateSegments(resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, options);
608
+ return poller.pollUntilDone();
609
+ });
610
+ }
611
+ /**
612
+ * Delete a segment by id in a private cloud workload network.
613
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
614
+ * @param privateCloudName Name of the private cloud
615
+ * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name
616
+ * @param options The options parameters.
617
+ */
618
+ beginDeleteSegment(resourceGroupName, privateCloudName, segmentId, options) {
619
+ return __awaiter(this, void 0, void 0, function* () {
620
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
621
+ return this.client.sendOperationRequest(args, spec);
622
+ });
623
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
624
+ var _a;
625
+ let currentRawResponse = undefined;
626
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
627
+ const callback = (rawResponse, flatResponse) => {
628
+ currentRawResponse = rawResponse;
629
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
630
+ };
631
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
632
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
633
+ return {
634
+ flatResponse,
635
+ rawResponse: {
636
+ statusCode: currentRawResponse.status,
637
+ body: currentRawResponse.parsedBody,
638
+ headers: currentRawResponse.headers.toJSON()
639
+ }
640
+ };
641
+ });
642
+ const lro = new LroImpl(sendOperation, { resourceGroupName, privateCloudName, segmentId, options }, deleteSegmentOperationSpec);
643
+ return new LroEngine(lro, {
644
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
645
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
646
+ });
647
+ });
648
+ }
649
+ /**
650
+ * Delete a segment by id in a private cloud workload network.
651
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
652
+ * @param privateCloudName Name of the private cloud
653
+ * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name
654
+ * @param options The options parameters.
655
+ */
656
+ beginDeleteSegmentAndWait(resourceGroupName, privateCloudName, segmentId, options) {
657
+ return __awaiter(this, void 0, void 0, function* () {
658
+ const poller = yield this.beginDeleteSegment(resourceGroupName, privateCloudName, segmentId, options);
659
+ return poller.pollUntilDone();
660
+ });
661
+ }
662
+ /**
663
+ * List dhcp in a private cloud workload network.
664
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
665
+ * @param privateCloudName Name of the private cloud
666
+ * @param options The options parameters.
667
+ */
668
+ _listDhcp(resourceGroupName, privateCloudName, options) {
669
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, options }, listDhcpOperationSpec);
670
+ }
671
+ /**
672
+ * Get dhcp by id in a private cloud workload network.
673
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
674
+ * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name
675
+ * @param privateCloudName Name of the private cloud
676
+ * @param options The options parameters.
677
+ */
678
+ getDhcp(resourceGroupName, dhcpId, privateCloudName, options) {
679
+ return this.client.sendOperationRequest({ resourceGroupName, dhcpId, privateCloudName, options }, getDhcpOperationSpec);
680
+ }
681
+ /**
682
+ * Create dhcp by id in a private cloud workload network.
683
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
684
+ * @param privateCloudName Name of the private cloud
685
+ * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name
686
+ * @param workloadNetworkDhcp NSX DHCP
687
+ * @param options The options parameters.
688
+ */
689
+ beginCreateDhcp(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, options) {
690
+ return __awaiter(this, void 0, void 0, function* () {
691
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
692
+ return this.client.sendOperationRequest(args, spec);
693
+ });
694
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
695
+ var _a;
696
+ let currentRawResponse = undefined;
697
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
698
+ const callback = (rawResponse, flatResponse) => {
699
+ currentRawResponse = rawResponse;
700
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
701
+ };
702
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
703
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
704
+ return {
705
+ flatResponse,
706
+ rawResponse: {
707
+ statusCode: currentRawResponse.status,
708
+ body: currentRawResponse.parsedBody,
709
+ headers: currentRawResponse.headers.toJSON()
710
+ }
711
+ };
712
+ });
713
+ const lro = new LroImpl(sendOperation, {
714
+ resourceGroupName,
715
+ privateCloudName,
716
+ dhcpId,
717
+ workloadNetworkDhcp,
718
+ options
719
+ }, createDhcpOperationSpec);
720
+ return new LroEngine(lro, {
721
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
722
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
723
+ });
724
+ });
725
+ }
726
+ /**
727
+ * Create dhcp by id in a private cloud workload network.
728
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
729
+ * @param privateCloudName Name of the private cloud
730
+ * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name
731
+ * @param workloadNetworkDhcp NSX DHCP
732
+ * @param options The options parameters.
733
+ */
734
+ beginCreateDhcpAndWait(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, options) {
735
+ return __awaiter(this, void 0, void 0, function* () {
736
+ const poller = yield this.beginCreateDhcp(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, options);
737
+ return poller.pollUntilDone();
738
+ });
739
+ }
740
+ /**
741
+ * Create or update dhcp by id in a private cloud workload network.
742
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
743
+ * @param privateCloudName Name of the private cloud
744
+ * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name
745
+ * @param workloadNetworkDhcp NSX DHCP
746
+ * @param options The options parameters.
747
+ */
748
+ beginUpdateDhcp(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, options) {
749
+ return __awaiter(this, void 0, void 0, function* () {
750
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
751
+ return this.client.sendOperationRequest(args, spec);
752
+ });
753
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
754
+ var _a;
755
+ let currentRawResponse = undefined;
756
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
757
+ const callback = (rawResponse, flatResponse) => {
758
+ currentRawResponse = rawResponse;
759
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
760
+ };
761
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
762
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
763
+ return {
764
+ flatResponse,
765
+ rawResponse: {
766
+ statusCode: currentRawResponse.status,
767
+ body: currentRawResponse.parsedBody,
768
+ headers: currentRawResponse.headers.toJSON()
769
+ }
770
+ };
771
+ });
772
+ const lro = new LroImpl(sendOperation, {
773
+ resourceGroupName,
774
+ privateCloudName,
775
+ dhcpId,
776
+ workloadNetworkDhcp,
777
+ options
778
+ }, updateDhcpOperationSpec);
779
+ return new LroEngine(lro, {
780
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
781
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
782
+ });
783
+ });
784
+ }
785
+ /**
786
+ * Create or update dhcp 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 dhcpId NSX DHCP identifier. Generally the same as the DHCP display name
790
+ * @param workloadNetworkDhcp NSX DHCP
791
+ * @param options The options parameters.
792
+ */
793
+ beginUpdateDhcpAndWait(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, options) {
794
+ return __awaiter(this, void 0, void 0, function* () {
795
+ const poller = yield this.beginUpdateDhcp(resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, options);
796
+ return poller.pollUntilDone();
797
+ });
798
+ }
799
+ /**
800
+ * Delete dhcp by id in a private cloud workload network.
801
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
802
+ * @param privateCloudName Name of the private cloud
803
+ * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name
804
+ * @param options The options parameters.
805
+ */
806
+ beginDeleteDhcp(resourceGroupName, privateCloudName, dhcpId, options) {
807
+ return __awaiter(this, void 0, void 0, function* () {
808
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
809
+ return this.client.sendOperationRequest(args, spec);
810
+ });
811
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
812
+ var _a;
813
+ let currentRawResponse = undefined;
814
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
815
+ const callback = (rawResponse, flatResponse) => {
816
+ currentRawResponse = rawResponse;
817
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
818
+ };
819
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
820
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
821
+ return {
822
+ flatResponse,
823
+ rawResponse: {
824
+ statusCode: currentRawResponse.status,
825
+ body: currentRawResponse.parsedBody,
826
+ headers: currentRawResponse.headers.toJSON()
827
+ }
828
+ };
829
+ });
830
+ const lro = new LroImpl(sendOperation, { resourceGroupName, privateCloudName, dhcpId, options }, deleteDhcpOperationSpec);
831
+ return new LroEngine(lro, {
832
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
833
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
834
+ });
835
+ });
836
+ }
837
+ /**
838
+ * Delete dhcp by id in a private cloud workload network.
839
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
840
+ * @param privateCloudName Name of the private cloud
841
+ * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name
842
+ * @param options The options parameters.
843
+ */
844
+ beginDeleteDhcpAndWait(resourceGroupName, privateCloudName, dhcpId, options) {
845
+ return __awaiter(this, void 0, void 0, function* () {
846
+ const poller = yield this.beginDeleteDhcp(resourceGroupName, privateCloudName, dhcpId, options);
847
+ return poller.pollUntilDone();
848
+ });
849
+ }
850
+ /**
851
+ * List of gateways in a private cloud workload network.
852
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
853
+ * @param privateCloudName Name of the private cloud
854
+ * @param options The options parameters.
855
+ */
856
+ _listGateways(resourceGroupName, privateCloudName, options) {
857
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, options }, listGatewaysOperationSpec);
858
+ }
859
+ /**
860
+ * Get a gateway by id in a private cloud workload network.
861
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
862
+ * @param privateCloudName Name of the private cloud
863
+ * @param gatewayId NSX Gateway identifier. Generally the same as the Gateway's display name
864
+ * @param options The options parameters.
865
+ */
866
+ getGateway(resourceGroupName, privateCloudName, gatewayId, options) {
867
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, gatewayId, options }, getGatewayOperationSpec);
868
+ }
869
+ /**
870
+ * List of port mirroring profiles in a private cloud workload network.
871
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
872
+ * @param privateCloudName Name of the private cloud
873
+ * @param options The options parameters.
874
+ */
875
+ _listPortMirroring(resourceGroupName, privateCloudName, options) {
876
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, options }, listPortMirroringOperationSpec);
877
+ }
878
+ /**
879
+ * Get a port mirroring profile by id in a private cloud workload network.
880
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
881
+ * @param privateCloudName Name of the private cloud
882
+ * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring
883
+ * display name
884
+ * @param options The options parameters.
885
+ */
886
+ getPortMirroring(resourceGroupName, privateCloudName, portMirroringId, options) {
887
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, portMirroringId, options }, getPortMirroringOperationSpec);
888
+ }
889
+ /**
890
+ * Create a port mirroring profile by id in a private cloud workload network.
891
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
892
+ * @param privateCloudName Name of the private cloud
893
+ * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring
894
+ * display name
895
+ * @param workloadNetworkPortMirroring NSX port mirroring
896
+ * @param options The options parameters.
897
+ */
898
+ beginCreatePortMirroring(resourceGroupName, privateCloudName, portMirroringId, workloadNetworkPortMirroring, options) {
899
+ return __awaiter(this, void 0, void 0, function* () {
900
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
901
+ return this.client.sendOperationRequest(args, spec);
902
+ });
903
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
904
+ var _a;
905
+ let currentRawResponse = undefined;
906
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
907
+ const callback = (rawResponse, flatResponse) => {
908
+ currentRawResponse = rawResponse;
909
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
910
+ };
911
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
912
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
913
+ return {
914
+ flatResponse,
915
+ rawResponse: {
916
+ statusCode: currentRawResponse.status,
917
+ body: currentRawResponse.parsedBody,
918
+ headers: currentRawResponse.headers.toJSON()
919
+ }
920
+ };
921
+ });
922
+ const lro = new LroImpl(sendOperation, {
923
+ resourceGroupName,
924
+ privateCloudName,
925
+ portMirroringId,
926
+ workloadNetworkPortMirroring,
927
+ options
928
+ }, createPortMirroringOperationSpec);
929
+ return new LroEngine(lro, {
930
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
931
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
932
+ });
933
+ });
934
+ }
935
+ /**
936
+ * Create a port mirroring profile by id in a private cloud workload network.
937
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
938
+ * @param privateCloudName Name of the private cloud
939
+ * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring
940
+ * display name
941
+ * @param workloadNetworkPortMirroring NSX port mirroring
942
+ * @param options The options parameters.
943
+ */
944
+ beginCreatePortMirroringAndWait(resourceGroupName, privateCloudName, portMirroringId, workloadNetworkPortMirroring, options) {
945
+ return __awaiter(this, void 0, void 0, function* () {
946
+ const poller = yield this.beginCreatePortMirroring(resourceGroupName, privateCloudName, portMirroringId, workloadNetworkPortMirroring, options);
947
+ return poller.pollUntilDone();
948
+ });
949
+ }
950
+ /**
951
+ * Create or update a port mirroring profile by id in a private cloud workload network.
952
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
953
+ * @param privateCloudName Name of the private cloud
954
+ * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring
955
+ * display name
956
+ * @param workloadNetworkPortMirroring NSX port mirroring
957
+ * @param options The options parameters.
958
+ */
959
+ beginUpdatePortMirroring(resourceGroupName, privateCloudName, portMirroringId, workloadNetworkPortMirroring, options) {
960
+ return __awaiter(this, void 0, void 0, function* () {
961
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
962
+ return this.client.sendOperationRequest(args, spec);
963
+ });
964
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
965
+ var _a;
966
+ let currentRawResponse = undefined;
967
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
968
+ const callback = (rawResponse, flatResponse) => {
969
+ currentRawResponse = rawResponse;
970
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
971
+ };
972
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
973
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
974
+ return {
975
+ flatResponse,
976
+ rawResponse: {
977
+ statusCode: currentRawResponse.status,
978
+ body: currentRawResponse.parsedBody,
979
+ headers: currentRawResponse.headers.toJSON()
980
+ }
981
+ };
982
+ });
983
+ const lro = new LroImpl(sendOperation, {
984
+ resourceGroupName,
985
+ privateCloudName,
986
+ portMirroringId,
987
+ workloadNetworkPortMirroring,
988
+ options
989
+ }, updatePortMirroringOperationSpec);
990
+ return new LroEngine(lro, {
991
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
992
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
993
+ });
994
+ });
995
+ }
996
+ /**
997
+ * Create or update a port mirroring profile by id in a private cloud workload network.
998
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
999
+ * @param privateCloudName Name of the private cloud
1000
+ * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring
1001
+ * display name
1002
+ * @param workloadNetworkPortMirroring NSX port mirroring
1003
+ * @param options The options parameters.
1004
+ */
1005
+ beginUpdatePortMirroringAndWait(resourceGroupName, privateCloudName, portMirroringId, workloadNetworkPortMirroring, options) {
1006
+ return __awaiter(this, void 0, void 0, function* () {
1007
+ const poller = yield this.beginUpdatePortMirroring(resourceGroupName, privateCloudName, portMirroringId, workloadNetworkPortMirroring, options);
1008
+ return poller.pollUntilDone();
1009
+ });
1010
+ }
1011
+ /**
1012
+ * Delete a port mirroring profile by id in a private cloud workload network.
1013
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1014
+ * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring
1015
+ * display name
1016
+ * @param privateCloudName Name of the private cloud
1017
+ * @param options The options parameters.
1018
+ */
1019
+ beginDeletePortMirroring(resourceGroupName, portMirroringId, privateCloudName, options) {
1020
+ return __awaiter(this, void 0, void 0, function* () {
1021
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1022
+ return this.client.sendOperationRequest(args, spec);
1023
+ });
1024
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1025
+ var _a;
1026
+ let currentRawResponse = undefined;
1027
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1028
+ const callback = (rawResponse, flatResponse) => {
1029
+ currentRawResponse = rawResponse;
1030
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1031
+ };
1032
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1033
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1034
+ return {
1035
+ flatResponse,
1036
+ rawResponse: {
1037
+ statusCode: currentRawResponse.status,
1038
+ body: currentRawResponse.parsedBody,
1039
+ headers: currentRawResponse.headers.toJSON()
1040
+ }
1041
+ };
1042
+ });
1043
+ const lro = new LroImpl(sendOperation, { resourceGroupName, portMirroringId, privateCloudName, options }, deletePortMirroringOperationSpec);
1044
+ return new LroEngine(lro, {
1045
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1046
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1047
+ });
1048
+ });
1049
+ }
1050
+ /**
1051
+ * Delete a port mirroring profile by id in a private cloud workload network.
1052
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1053
+ * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring
1054
+ * display name
1055
+ * @param privateCloudName Name of the private cloud
1056
+ * @param options The options parameters.
1057
+ */
1058
+ beginDeletePortMirroringAndWait(resourceGroupName, portMirroringId, privateCloudName, options) {
1059
+ return __awaiter(this, void 0, void 0, function* () {
1060
+ const poller = yield this.beginDeletePortMirroring(resourceGroupName, portMirroringId, privateCloudName, options);
1061
+ return poller.pollUntilDone();
1062
+ });
1063
+ }
1064
+ /**
1065
+ * List of vm groups in a private cloud workload network.
1066
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1067
+ * @param privateCloudName Name of the private cloud
1068
+ * @param options The options parameters.
1069
+ */
1070
+ _listVMGroups(resourceGroupName, privateCloudName, options) {
1071
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, options }, listVMGroupsOperationSpec);
1072
+ }
1073
+ /**
1074
+ * Get a vm group by id in a private cloud workload network.
1075
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1076
+ * @param privateCloudName Name of the private cloud
1077
+ * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name
1078
+ * @param options The options parameters.
1079
+ */
1080
+ getVMGroup(resourceGroupName, privateCloudName, vmGroupId, options) {
1081
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, vmGroupId, options }, getVMGroupOperationSpec);
1082
+ }
1083
+ /**
1084
+ * Create a vm group by id in a private cloud workload network.
1085
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1086
+ * @param privateCloudName Name of the private cloud
1087
+ * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name
1088
+ * @param workloadNetworkVMGroup NSX VM Group
1089
+ * @param options The options parameters.
1090
+ */
1091
+ beginCreateVMGroup(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, options) {
1092
+ return __awaiter(this, void 0, void 0, function* () {
1093
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1094
+ return this.client.sendOperationRequest(args, spec);
1095
+ });
1096
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1097
+ var _a;
1098
+ let currentRawResponse = undefined;
1099
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1100
+ const callback = (rawResponse, flatResponse) => {
1101
+ currentRawResponse = rawResponse;
1102
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1103
+ };
1104
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1105
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1106
+ return {
1107
+ flatResponse,
1108
+ rawResponse: {
1109
+ statusCode: currentRawResponse.status,
1110
+ body: currentRawResponse.parsedBody,
1111
+ headers: currentRawResponse.headers.toJSON()
1112
+ }
1113
+ };
1114
+ });
1115
+ const lro = new LroImpl(sendOperation, {
1116
+ resourceGroupName,
1117
+ privateCloudName,
1118
+ vmGroupId,
1119
+ workloadNetworkVMGroup,
1120
+ options
1121
+ }, createVMGroupOperationSpec);
1122
+ return new LroEngine(lro, {
1123
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1124
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1125
+ });
1126
+ });
1127
+ }
1128
+ /**
1129
+ * Create a vm group by id in a private cloud workload network.
1130
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1131
+ * @param privateCloudName Name of the private cloud
1132
+ * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name
1133
+ * @param workloadNetworkVMGroup NSX VM Group
1134
+ * @param options The options parameters.
1135
+ */
1136
+ beginCreateVMGroupAndWait(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, options) {
1137
+ return __awaiter(this, void 0, void 0, function* () {
1138
+ const poller = yield this.beginCreateVMGroup(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, options);
1139
+ return poller.pollUntilDone();
1140
+ });
1141
+ }
1142
+ /**
1143
+ * Create or update a vm group by id in a private cloud workload network.
1144
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1145
+ * @param privateCloudName Name of the private cloud
1146
+ * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name
1147
+ * @param workloadNetworkVMGroup NSX VM Group
1148
+ * @param options The options parameters.
1149
+ */
1150
+ beginUpdateVMGroup(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, options) {
1151
+ return __awaiter(this, void 0, void 0, function* () {
1152
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1153
+ return this.client.sendOperationRequest(args, spec);
1154
+ });
1155
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1156
+ var _a;
1157
+ let currentRawResponse = undefined;
1158
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1159
+ const callback = (rawResponse, flatResponse) => {
1160
+ currentRawResponse = rawResponse;
1161
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1162
+ };
1163
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1164
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1165
+ return {
1166
+ flatResponse,
1167
+ rawResponse: {
1168
+ statusCode: currentRawResponse.status,
1169
+ body: currentRawResponse.parsedBody,
1170
+ headers: currentRawResponse.headers.toJSON()
1171
+ }
1172
+ };
1173
+ });
1174
+ const lro = new LroImpl(sendOperation, {
1175
+ resourceGroupName,
1176
+ privateCloudName,
1177
+ vmGroupId,
1178
+ workloadNetworkVMGroup,
1179
+ options
1180
+ }, updateVMGroupOperationSpec);
1181
+ return new LroEngine(lro, {
1182
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1183
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1184
+ });
1185
+ });
1186
+ }
1187
+ /**
1188
+ * Create or update a vm group by id in a private cloud workload network.
1189
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1190
+ * @param privateCloudName Name of the private cloud
1191
+ * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name
1192
+ * @param workloadNetworkVMGroup NSX VM Group
1193
+ * @param options The options parameters.
1194
+ */
1195
+ beginUpdateVMGroupAndWait(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, options) {
1196
+ return __awaiter(this, void 0, void 0, function* () {
1197
+ const poller = yield this.beginUpdateVMGroup(resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, options);
1198
+ return poller.pollUntilDone();
1199
+ });
1200
+ }
1201
+ /**
1202
+ * Delete a vm group by id in a private cloud workload network.
1203
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1204
+ * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name
1205
+ * @param privateCloudName Name of the private cloud
1206
+ * @param options The options parameters.
1207
+ */
1208
+ beginDeleteVMGroup(resourceGroupName, vmGroupId, privateCloudName, options) {
1209
+ return __awaiter(this, void 0, void 0, function* () {
1210
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1211
+ return this.client.sendOperationRequest(args, spec);
1212
+ });
1213
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1214
+ var _a;
1215
+ let currentRawResponse = undefined;
1216
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1217
+ const callback = (rawResponse, flatResponse) => {
1218
+ currentRawResponse = rawResponse;
1219
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1220
+ };
1221
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1222
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1223
+ return {
1224
+ flatResponse,
1225
+ rawResponse: {
1226
+ statusCode: currentRawResponse.status,
1227
+ body: currentRawResponse.parsedBody,
1228
+ headers: currentRawResponse.headers.toJSON()
1229
+ }
1230
+ };
1231
+ });
1232
+ const lro = new LroImpl(sendOperation, { resourceGroupName, vmGroupId, privateCloudName, options }, deleteVMGroupOperationSpec);
1233
+ return new LroEngine(lro, {
1234
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1235
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1236
+ });
1237
+ });
1238
+ }
1239
+ /**
1240
+ * Delete a vm group by id in a private cloud workload network.
1241
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1242
+ * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name
1243
+ * @param privateCloudName Name of the private cloud
1244
+ * @param options The options parameters.
1245
+ */
1246
+ beginDeleteVMGroupAndWait(resourceGroupName, vmGroupId, privateCloudName, options) {
1247
+ return __awaiter(this, void 0, void 0, function* () {
1248
+ const poller = yield this.beginDeleteVMGroup(resourceGroupName, vmGroupId, privateCloudName, options);
1249
+ return poller.pollUntilDone();
1250
+ });
1251
+ }
1252
+ /**
1253
+ * List of virtual machines in a private cloud workload network.
1254
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1255
+ * @param privateCloudName Name of the private cloud
1256
+ * @param options The options parameters.
1257
+ */
1258
+ _listVirtualMachines(resourceGroupName, privateCloudName, options) {
1259
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, options }, listVirtualMachinesOperationSpec);
1260
+ }
1261
+ /**
1262
+ * Get a virtual machine by id in a private cloud workload network.
1263
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1264
+ * @param privateCloudName Name of the private cloud
1265
+ * @param virtualMachineId Virtual Machine identifier
1266
+ * @param options The options parameters.
1267
+ */
1268
+ getVirtualMachine(resourceGroupName, privateCloudName, virtualMachineId, options) {
1269
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, virtualMachineId, options }, getVirtualMachineOperationSpec);
1270
+ }
1271
+ /**
1272
+ * List of DNS services in a private cloud workload network.
1273
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1274
+ * @param privateCloudName Name of the private cloud
1275
+ * @param options The options parameters.
1276
+ */
1277
+ _listDnsServices(resourceGroupName, privateCloudName, options) {
1278
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, options }, listDnsServicesOperationSpec);
1279
+ }
1280
+ /**
1281
+ * Get a DNS service by id in a private cloud workload network.
1282
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1283
+ * @param privateCloudName Name of the private cloud
1284
+ * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display name
1285
+ * @param options The options parameters.
1286
+ */
1287
+ getDnsService(resourceGroupName, privateCloudName, dnsServiceId, options) {
1288
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, dnsServiceId, options }, getDnsServiceOperationSpec);
1289
+ }
1290
+ /**
1291
+ * Create a DNS service by id in a private cloud workload network.
1292
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1293
+ * @param privateCloudName Name of the private cloud
1294
+ * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display name
1295
+ * @param workloadNetworkDnsService NSX DNS Service
1296
+ * @param options The options parameters.
1297
+ */
1298
+ beginCreateDnsService(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, options) {
1299
+ return __awaiter(this, void 0, void 0, function* () {
1300
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1301
+ return this.client.sendOperationRequest(args, spec);
1302
+ });
1303
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1304
+ var _a;
1305
+ let currentRawResponse = undefined;
1306
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1307
+ const callback = (rawResponse, flatResponse) => {
1308
+ currentRawResponse = rawResponse;
1309
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1310
+ };
1311
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1312
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1313
+ return {
1314
+ flatResponse,
1315
+ rawResponse: {
1316
+ statusCode: currentRawResponse.status,
1317
+ body: currentRawResponse.parsedBody,
1318
+ headers: currentRawResponse.headers.toJSON()
1319
+ }
1320
+ };
1321
+ });
1322
+ const lro = new LroImpl(sendOperation, {
1323
+ resourceGroupName,
1324
+ privateCloudName,
1325
+ dnsServiceId,
1326
+ workloadNetworkDnsService,
1327
+ options
1328
+ }, createDnsServiceOperationSpec);
1329
+ return new LroEngine(lro, {
1330
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1331
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1332
+ });
1333
+ });
1334
+ }
1335
+ /**
1336
+ * Create a DNS service by id in a private cloud workload network.
1337
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1338
+ * @param privateCloudName Name of the private cloud
1339
+ * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display name
1340
+ * @param workloadNetworkDnsService NSX DNS Service
1341
+ * @param options The options parameters.
1342
+ */
1343
+ beginCreateDnsServiceAndWait(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, options) {
1344
+ return __awaiter(this, void 0, void 0, function* () {
1345
+ const poller = yield this.beginCreateDnsService(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, options);
1346
+ return poller.pollUntilDone();
1347
+ });
1348
+ }
1349
+ /**
1350
+ * Create or update a DNS service by id in a private cloud workload network.
1351
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1352
+ * @param privateCloudName Name of the private cloud
1353
+ * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display name
1354
+ * @param workloadNetworkDnsService NSX DNS Service
1355
+ * @param options The options parameters.
1356
+ */
1357
+ beginUpdateDnsService(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, options) {
1358
+ return __awaiter(this, void 0, void 0, function* () {
1359
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1360
+ return this.client.sendOperationRequest(args, spec);
1361
+ });
1362
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1363
+ var _a;
1364
+ let currentRawResponse = undefined;
1365
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1366
+ const callback = (rawResponse, flatResponse) => {
1367
+ currentRawResponse = rawResponse;
1368
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1369
+ };
1370
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1371
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1372
+ return {
1373
+ flatResponse,
1374
+ rawResponse: {
1375
+ statusCode: currentRawResponse.status,
1376
+ body: currentRawResponse.parsedBody,
1377
+ headers: currentRawResponse.headers.toJSON()
1378
+ }
1379
+ };
1380
+ });
1381
+ const lro = new LroImpl(sendOperation, {
1382
+ resourceGroupName,
1383
+ privateCloudName,
1384
+ dnsServiceId,
1385
+ workloadNetworkDnsService,
1386
+ options
1387
+ }, updateDnsServiceOperationSpec);
1388
+ return new LroEngine(lro, {
1389
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1390
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1391
+ });
1392
+ });
1393
+ }
1394
+ /**
1395
+ * Create or update a DNS service by id in a private cloud workload network.
1396
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1397
+ * @param privateCloudName Name of the private cloud
1398
+ * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display name
1399
+ * @param workloadNetworkDnsService NSX DNS Service
1400
+ * @param options The options parameters.
1401
+ */
1402
+ beginUpdateDnsServiceAndWait(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, options) {
1403
+ return __awaiter(this, void 0, void 0, function* () {
1404
+ const poller = yield this.beginUpdateDnsService(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, options);
1405
+ return poller.pollUntilDone();
1406
+ });
1407
+ }
1408
+ /**
1409
+ * Delete a DNS service by id in a private cloud workload network.
1410
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1411
+ * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display name
1412
+ * @param privateCloudName Name of the private cloud
1413
+ * @param options The options parameters.
1414
+ */
1415
+ beginDeleteDnsService(resourceGroupName, dnsServiceId, privateCloudName, options) {
1416
+ return __awaiter(this, void 0, void 0, function* () {
1417
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1418
+ return this.client.sendOperationRequest(args, spec);
1419
+ });
1420
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1421
+ var _a;
1422
+ let currentRawResponse = undefined;
1423
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1424
+ const callback = (rawResponse, flatResponse) => {
1425
+ currentRawResponse = rawResponse;
1426
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1427
+ };
1428
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1429
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1430
+ return {
1431
+ flatResponse,
1432
+ rawResponse: {
1433
+ statusCode: currentRawResponse.status,
1434
+ body: currentRawResponse.parsedBody,
1435
+ headers: currentRawResponse.headers.toJSON()
1436
+ }
1437
+ };
1438
+ });
1439
+ const lro = new LroImpl(sendOperation, { resourceGroupName, dnsServiceId, privateCloudName, options }, deleteDnsServiceOperationSpec);
1440
+ return new LroEngine(lro, {
1441
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1442
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1443
+ });
1444
+ });
1445
+ }
1446
+ /**
1447
+ * Delete a DNS service by id in a private cloud workload network.
1448
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1449
+ * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display name
1450
+ * @param privateCloudName Name of the private cloud
1451
+ * @param options The options parameters.
1452
+ */
1453
+ beginDeleteDnsServiceAndWait(resourceGroupName, dnsServiceId, privateCloudName, options) {
1454
+ return __awaiter(this, void 0, void 0, function* () {
1455
+ const poller = yield this.beginDeleteDnsService(resourceGroupName, dnsServiceId, privateCloudName, options);
1456
+ return poller.pollUntilDone();
1457
+ });
1458
+ }
1459
+ /**
1460
+ * List of DNS zones in a private cloud workload network.
1461
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1462
+ * @param privateCloudName Name of the private cloud
1463
+ * @param options The options parameters.
1464
+ */
1465
+ _listDnsZones(resourceGroupName, privateCloudName, options) {
1466
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, options }, listDnsZonesOperationSpec);
1467
+ }
1468
+ /**
1469
+ * Get a DNS zone by id in a private cloud workload network.
1470
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1471
+ * @param privateCloudName Name of the private cloud
1472
+ * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
1473
+ * @param options The options parameters.
1474
+ */
1475
+ getDnsZone(resourceGroupName, privateCloudName, dnsZoneId, options) {
1476
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, dnsZoneId, options }, getDnsZoneOperationSpec);
1477
+ }
1478
+ /**
1479
+ * Create a DNS zone by id in a private cloud workload network.
1480
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1481
+ * @param privateCloudName Name of the private cloud
1482
+ * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
1483
+ * @param workloadNetworkDnsZone NSX DNS Zone
1484
+ * @param options The options parameters.
1485
+ */
1486
+ beginCreateDnsZone(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, options) {
1487
+ return __awaiter(this, void 0, void 0, function* () {
1488
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1489
+ return this.client.sendOperationRequest(args, spec);
1490
+ });
1491
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1492
+ var _a;
1493
+ let currentRawResponse = undefined;
1494
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1495
+ const callback = (rawResponse, flatResponse) => {
1496
+ currentRawResponse = rawResponse;
1497
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1498
+ };
1499
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1500
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1501
+ return {
1502
+ flatResponse,
1503
+ rawResponse: {
1504
+ statusCode: currentRawResponse.status,
1505
+ body: currentRawResponse.parsedBody,
1506
+ headers: currentRawResponse.headers.toJSON()
1507
+ }
1508
+ };
1509
+ });
1510
+ const lro = new LroImpl(sendOperation, {
1511
+ resourceGroupName,
1512
+ privateCloudName,
1513
+ dnsZoneId,
1514
+ workloadNetworkDnsZone,
1515
+ options
1516
+ }, createDnsZoneOperationSpec);
1517
+ return new LroEngine(lro, {
1518
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1519
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1520
+ });
1521
+ });
1522
+ }
1523
+ /**
1524
+ * Create a DNS zone by id in a private cloud workload network.
1525
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1526
+ * @param privateCloudName Name of the private cloud
1527
+ * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
1528
+ * @param workloadNetworkDnsZone NSX DNS Zone
1529
+ * @param options The options parameters.
1530
+ */
1531
+ beginCreateDnsZoneAndWait(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, options) {
1532
+ return __awaiter(this, void 0, void 0, function* () {
1533
+ const poller = yield this.beginCreateDnsZone(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, options);
1534
+ return poller.pollUntilDone();
1535
+ });
1536
+ }
1537
+ /**
1538
+ * Create or update a DNS zone by id in a private cloud workload network.
1539
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1540
+ * @param privateCloudName Name of the private cloud
1541
+ * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
1542
+ * @param workloadNetworkDnsZone NSX DNS Zone
1543
+ * @param options The options parameters.
1544
+ */
1545
+ beginUpdateDnsZone(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, options) {
1546
+ return __awaiter(this, void 0, void 0, function* () {
1547
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1548
+ return this.client.sendOperationRequest(args, spec);
1549
+ });
1550
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1551
+ var _a;
1552
+ let currentRawResponse = undefined;
1553
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1554
+ const callback = (rawResponse, flatResponse) => {
1555
+ currentRawResponse = rawResponse;
1556
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1557
+ };
1558
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1559
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1560
+ return {
1561
+ flatResponse,
1562
+ rawResponse: {
1563
+ statusCode: currentRawResponse.status,
1564
+ body: currentRawResponse.parsedBody,
1565
+ headers: currentRawResponse.headers.toJSON()
1566
+ }
1567
+ };
1568
+ });
1569
+ const lro = new LroImpl(sendOperation, {
1570
+ resourceGroupName,
1571
+ privateCloudName,
1572
+ dnsZoneId,
1573
+ workloadNetworkDnsZone,
1574
+ options
1575
+ }, updateDnsZoneOperationSpec);
1576
+ return new LroEngine(lro, {
1577
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1578
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1579
+ });
1580
+ });
1581
+ }
1582
+ /**
1583
+ * Create or update a DNS zone by id in a private cloud workload network.
1584
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1585
+ * @param privateCloudName Name of the private cloud
1586
+ * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
1587
+ * @param workloadNetworkDnsZone NSX DNS Zone
1588
+ * @param options The options parameters.
1589
+ */
1590
+ beginUpdateDnsZoneAndWait(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, options) {
1591
+ return __awaiter(this, void 0, void 0, function* () {
1592
+ const poller = yield this.beginUpdateDnsZone(resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, options);
1593
+ return poller.pollUntilDone();
1594
+ });
1595
+ }
1596
+ /**
1597
+ * Delete a DNS zone by id in a private cloud workload network.
1598
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1599
+ * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
1600
+ * @param privateCloudName Name of the private cloud
1601
+ * @param options The options parameters.
1602
+ */
1603
+ beginDeleteDnsZone(resourceGroupName, dnsZoneId, privateCloudName, options) {
1604
+ return __awaiter(this, void 0, void 0, function* () {
1605
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1606
+ return this.client.sendOperationRequest(args, spec);
1607
+ });
1608
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1609
+ var _a;
1610
+ let currentRawResponse = undefined;
1611
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1612
+ const callback = (rawResponse, flatResponse) => {
1613
+ currentRawResponse = rawResponse;
1614
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1615
+ };
1616
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1617
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1618
+ return {
1619
+ flatResponse,
1620
+ rawResponse: {
1621
+ statusCode: currentRawResponse.status,
1622
+ body: currentRawResponse.parsedBody,
1623
+ headers: currentRawResponse.headers.toJSON()
1624
+ }
1625
+ };
1626
+ });
1627
+ const lro = new LroImpl(sendOperation, { resourceGroupName, dnsZoneId, privateCloudName, options }, deleteDnsZoneOperationSpec);
1628
+ return new LroEngine(lro, {
1629
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1630
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1631
+ });
1632
+ });
1633
+ }
1634
+ /**
1635
+ * Delete a DNS zone by id in a private cloud workload network.
1636
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1637
+ * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
1638
+ * @param privateCloudName Name of the private cloud
1639
+ * @param options The options parameters.
1640
+ */
1641
+ beginDeleteDnsZoneAndWait(resourceGroupName, dnsZoneId, privateCloudName, options) {
1642
+ return __awaiter(this, void 0, void 0, function* () {
1643
+ const poller = yield this.beginDeleteDnsZone(resourceGroupName, dnsZoneId, privateCloudName, options);
1644
+ return poller.pollUntilDone();
1645
+ });
1646
+ }
1647
+ /**
1648
+ * List of Public IP Blocks in a private cloud workload network.
1649
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1650
+ * @param privateCloudName Name of the private cloud
1651
+ * @param options The options parameters.
1652
+ */
1653
+ _listPublicIPs(resourceGroupName, privateCloudName, options) {
1654
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, options }, listPublicIPsOperationSpec);
1655
+ }
1656
+ /**
1657
+ * Get a Public IP Block by id in a private cloud workload network.
1658
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1659
+ * @param privateCloudName Name of the private cloud
1660
+ * @param publicIPId NSX Public IP Block identifier. Generally the same as the Public IP Block's
1661
+ * display name
1662
+ * @param options The options parameters.
1663
+ */
1664
+ getPublicIP(resourceGroupName, privateCloudName, publicIPId, options) {
1665
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, publicIPId, options }, getPublicIPOperationSpec);
1666
+ }
1667
+ /**
1668
+ * Create a Public IP Block 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 publicIPId NSX Public IP Block identifier. Generally the same as the Public IP Block's
1672
+ * display name
1673
+ * @param workloadNetworkPublicIP NSX Public IP Block
1674
+ * @param options The options parameters.
1675
+ */
1676
+ beginCreatePublicIP(resourceGroupName, privateCloudName, publicIPId, workloadNetworkPublicIP, options) {
1677
+ return __awaiter(this, void 0, void 0, function* () {
1678
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1679
+ return this.client.sendOperationRequest(args, spec);
1680
+ });
1681
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1682
+ var _a;
1683
+ let currentRawResponse = undefined;
1684
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1685
+ const callback = (rawResponse, flatResponse) => {
1686
+ currentRawResponse = rawResponse;
1687
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1688
+ };
1689
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1690
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1691
+ return {
1692
+ flatResponse,
1693
+ rawResponse: {
1694
+ statusCode: currentRawResponse.status,
1695
+ body: currentRawResponse.parsedBody,
1696
+ headers: currentRawResponse.headers.toJSON()
1697
+ }
1698
+ };
1699
+ });
1700
+ const lro = new LroImpl(sendOperation, {
1701
+ resourceGroupName,
1702
+ privateCloudName,
1703
+ publicIPId,
1704
+ workloadNetworkPublicIP,
1705
+ options
1706
+ }, createPublicIPOperationSpec);
1707
+ return new LroEngine(lro, {
1708
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1709
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1710
+ });
1711
+ });
1712
+ }
1713
+ /**
1714
+ * Create a Public IP Block by id in a private cloud workload network.
1715
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1716
+ * @param privateCloudName Name of the private cloud
1717
+ * @param publicIPId NSX Public IP Block identifier. Generally the same as the Public IP Block's
1718
+ * display name
1719
+ * @param workloadNetworkPublicIP NSX Public IP Block
1720
+ * @param options The options parameters.
1721
+ */
1722
+ beginCreatePublicIPAndWait(resourceGroupName, privateCloudName, publicIPId, workloadNetworkPublicIP, options) {
1723
+ return __awaiter(this, void 0, void 0, function* () {
1724
+ const poller = yield this.beginCreatePublicIP(resourceGroupName, privateCloudName, publicIPId, workloadNetworkPublicIP, options);
1725
+ return poller.pollUntilDone();
1726
+ });
1727
+ }
1728
+ /**
1729
+ * Delete a Public IP Block by id in a private cloud workload network.
1730
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1731
+ * @param publicIPId NSX Public IP Block identifier. Generally the same as the Public IP Block's
1732
+ * display name
1733
+ * @param privateCloudName Name of the private cloud
1734
+ * @param options The options parameters.
1735
+ */
1736
+ beginDeletePublicIP(resourceGroupName, publicIPId, privateCloudName, options) {
1737
+ return __awaiter(this, void 0, void 0, function* () {
1738
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1739
+ return this.client.sendOperationRequest(args, spec);
1740
+ });
1741
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1742
+ var _a;
1743
+ let currentRawResponse = undefined;
1744
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1745
+ const callback = (rawResponse, flatResponse) => {
1746
+ currentRawResponse = rawResponse;
1747
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1748
+ };
1749
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1750
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1751
+ return {
1752
+ flatResponse,
1753
+ rawResponse: {
1754
+ statusCode: currentRawResponse.status,
1755
+ body: currentRawResponse.parsedBody,
1756
+ headers: currentRawResponse.headers.toJSON()
1757
+ }
1758
+ };
1759
+ });
1760
+ const lro = new LroImpl(sendOperation, { resourceGroupName, publicIPId, privateCloudName, options }, deletePublicIPOperationSpec);
1761
+ return new LroEngine(lro, {
1762
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1763
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1764
+ });
1765
+ });
1766
+ }
1767
+ /**
1768
+ * Delete a Public IP Block by id in a private cloud workload network.
1769
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1770
+ * @param publicIPId NSX Public IP Block identifier. Generally the same as the Public IP Block's
1771
+ * display name
1772
+ * @param privateCloudName Name of the private cloud
1773
+ * @param options The options parameters.
1774
+ */
1775
+ beginDeletePublicIPAndWait(resourceGroupName, publicIPId, privateCloudName, options) {
1776
+ return __awaiter(this, void 0, void 0, function* () {
1777
+ const poller = yield this.beginDeletePublicIP(resourceGroupName, publicIPId, privateCloudName, options);
1778
+ return poller.pollUntilDone();
1779
+ });
1780
+ }
1781
+ /**
1782
+ * ListSegmentsNext
1783
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1784
+ * @param privateCloudName Name of the private cloud
1785
+ * @param nextLink The nextLink from the previous successful call to the ListSegments method.
1786
+ * @param options The options parameters.
1787
+ */
1788
+ _listSegmentsNext(resourceGroupName, privateCloudName, nextLink, options) {
1789
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, nextLink, options }, listSegmentsNextOperationSpec);
1790
+ }
1791
+ /**
1792
+ * ListDhcpNext
1793
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1794
+ * @param privateCloudName Name of the private cloud
1795
+ * @param nextLink The nextLink from the previous successful call to the ListDhcp method.
1796
+ * @param options The options parameters.
1797
+ */
1798
+ _listDhcpNext(resourceGroupName, privateCloudName, nextLink, options) {
1799
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, nextLink, options }, listDhcpNextOperationSpec);
1800
+ }
1801
+ /**
1802
+ * ListGatewaysNext
1803
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1804
+ * @param privateCloudName Name of the private cloud
1805
+ * @param nextLink The nextLink from the previous successful call to the ListGateways method.
1806
+ * @param options The options parameters.
1807
+ */
1808
+ _listGatewaysNext(resourceGroupName, privateCloudName, nextLink, options) {
1809
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, nextLink, options }, listGatewaysNextOperationSpec);
1810
+ }
1811
+ /**
1812
+ * ListPortMirroringNext
1813
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1814
+ * @param privateCloudName Name of the private cloud
1815
+ * @param nextLink The nextLink from the previous successful call to the ListPortMirroring method.
1816
+ * @param options The options parameters.
1817
+ */
1818
+ _listPortMirroringNext(resourceGroupName, privateCloudName, nextLink, options) {
1819
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, nextLink, options }, listPortMirroringNextOperationSpec);
1820
+ }
1821
+ /**
1822
+ * ListVMGroupsNext
1823
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1824
+ * @param privateCloudName Name of the private cloud
1825
+ * @param nextLink The nextLink from the previous successful call to the ListVMGroups method.
1826
+ * @param options The options parameters.
1827
+ */
1828
+ _listVMGroupsNext(resourceGroupName, privateCloudName, nextLink, options) {
1829
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, nextLink, options }, listVMGroupsNextOperationSpec);
1830
+ }
1831
+ /**
1832
+ * ListVirtualMachinesNext
1833
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1834
+ * @param privateCloudName Name of the private cloud
1835
+ * @param nextLink The nextLink from the previous successful call to the ListVirtualMachines method.
1836
+ * @param options The options parameters.
1837
+ */
1838
+ _listVirtualMachinesNext(resourceGroupName, privateCloudName, nextLink, options) {
1839
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, nextLink, options }, listVirtualMachinesNextOperationSpec);
1840
+ }
1841
+ /**
1842
+ * ListDnsServicesNext
1843
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1844
+ * @param privateCloudName Name of the private cloud
1845
+ * @param nextLink The nextLink from the previous successful call to the ListDnsServices method.
1846
+ * @param options The options parameters.
1847
+ */
1848
+ _listDnsServicesNext(resourceGroupName, privateCloudName, nextLink, options) {
1849
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, nextLink, options }, listDnsServicesNextOperationSpec);
1850
+ }
1851
+ /**
1852
+ * ListDnsZonesNext
1853
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1854
+ * @param privateCloudName Name of the private cloud
1855
+ * @param nextLink The nextLink from the previous successful call to the ListDnsZones method.
1856
+ * @param options The options parameters.
1857
+ */
1858
+ _listDnsZonesNext(resourceGroupName, privateCloudName, nextLink, options) {
1859
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, nextLink, options }, listDnsZonesNextOperationSpec);
1860
+ }
1861
+ /**
1862
+ * ListPublicIPsNext
1863
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1864
+ * @param privateCloudName Name of the private cloud
1865
+ * @param nextLink The nextLink from the previous successful call to the ListPublicIPs method.
1866
+ * @param options The options parameters.
1867
+ */
1868
+ _listPublicIPsNext(resourceGroupName, privateCloudName, nextLink, options) {
1869
+ return this.client.sendOperationRequest({ resourceGroupName, privateCloudName, nextLink, options }, listPublicIPsNextOperationSpec);
1870
+ }
1871
+ }
1872
+ // Operation Specifications
1873
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
1874
+ const listSegmentsOperationSpec = {
1875
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments",
1876
+ httpMethod: "GET",
1877
+ responses: {
1878
+ 200: {
1879
+ bodyMapper: Mappers.WorkloadNetworkSegmentsList
1880
+ },
1881
+ default: {
1882
+ bodyMapper: Mappers.CloudError
1883
+ }
1884
+ },
1885
+ queryParameters: [Parameters.apiVersion],
1886
+ urlParameters: [
1887
+ Parameters.$host,
1888
+ Parameters.subscriptionId,
1889
+ Parameters.resourceGroupName,
1890
+ Parameters.privateCloudName
1891
+ ],
1892
+ headerParameters: [Parameters.accept],
1893
+ serializer
1894
+ };
1895
+ const getSegmentOperationSpec = {
1896
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}",
1897
+ httpMethod: "GET",
1898
+ responses: {
1899
+ 200: {
1900
+ bodyMapper: Mappers.WorkloadNetworkSegment
1901
+ },
1902
+ default: {
1903
+ bodyMapper: Mappers.CloudError
1904
+ }
1905
+ },
1906
+ queryParameters: [Parameters.apiVersion],
1907
+ urlParameters: [
1908
+ Parameters.$host,
1909
+ Parameters.subscriptionId,
1910
+ Parameters.resourceGroupName,
1911
+ Parameters.privateCloudName,
1912
+ Parameters.segmentId
1913
+ ],
1914
+ headerParameters: [Parameters.accept],
1915
+ serializer
1916
+ };
1917
+ const createSegmentsOperationSpec = {
1918
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}",
1919
+ httpMethod: "PUT",
1920
+ responses: {
1921
+ 200: {
1922
+ bodyMapper: Mappers.WorkloadNetworkSegment
1923
+ },
1924
+ 201: {
1925
+ bodyMapper: Mappers.WorkloadNetworkSegment
1926
+ },
1927
+ 202: {
1928
+ bodyMapper: Mappers.WorkloadNetworkSegment
1929
+ },
1930
+ 204: {
1931
+ bodyMapper: Mappers.WorkloadNetworkSegment
1932
+ },
1933
+ default: {
1934
+ bodyMapper: Mappers.CloudError
1935
+ }
1936
+ },
1937
+ requestBody: Parameters.workloadNetworkSegment,
1938
+ queryParameters: [Parameters.apiVersion],
1939
+ urlParameters: [
1940
+ Parameters.$host,
1941
+ Parameters.subscriptionId,
1942
+ Parameters.resourceGroupName,
1943
+ Parameters.privateCloudName,
1944
+ Parameters.segmentId
1945
+ ],
1946
+ headerParameters: [Parameters.accept, Parameters.contentType],
1947
+ mediaType: "json",
1948
+ serializer
1949
+ };
1950
+ const updateSegmentsOperationSpec = {
1951
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}",
1952
+ httpMethod: "PATCH",
1953
+ responses: {
1954
+ 200: {
1955
+ bodyMapper: Mappers.WorkloadNetworkSegment
1956
+ },
1957
+ 201: {
1958
+ bodyMapper: Mappers.WorkloadNetworkSegment
1959
+ },
1960
+ 202: {
1961
+ bodyMapper: Mappers.WorkloadNetworkSegment
1962
+ },
1963
+ 204: {
1964
+ bodyMapper: Mappers.WorkloadNetworkSegment
1965
+ },
1966
+ default: {
1967
+ bodyMapper: Mappers.CloudError
1968
+ }
1969
+ },
1970
+ requestBody: Parameters.workloadNetworkSegment,
1971
+ queryParameters: [Parameters.apiVersion],
1972
+ urlParameters: [
1973
+ Parameters.$host,
1974
+ Parameters.subscriptionId,
1975
+ Parameters.resourceGroupName,
1976
+ Parameters.privateCloudName,
1977
+ Parameters.segmentId
1978
+ ],
1979
+ headerParameters: [Parameters.accept, Parameters.contentType],
1980
+ mediaType: "json",
1981
+ serializer
1982
+ };
1983
+ const deleteSegmentOperationSpec = {
1984
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}",
1985
+ httpMethod: "DELETE",
1986
+ responses: {
1987
+ 200: {},
1988
+ 201: {},
1989
+ 202: {},
1990
+ 204: {},
1991
+ default: {
1992
+ bodyMapper: Mappers.CloudError
1993
+ }
1994
+ },
1995
+ queryParameters: [Parameters.apiVersion],
1996
+ urlParameters: [
1997
+ Parameters.$host,
1998
+ Parameters.subscriptionId,
1999
+ Parameters.resourceGroupName,
2000
+ Parameters.privateCloudName,
2001
+ Parameters.segmentId
2002
+ ],
2003
+ headerParameters: [Parameters.accept],
2004
+ serializer
2005
+ };
2006
+ const listDhcpOperationSpec = {
2007
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations",
2008
+ httpMethod: "GET",
2009
+ responses: {
2010
+ 200: {
2011
+ bodyMapper: Mappers.WorkloadNetworkDhcpList
2012
+ },
2013
+ default: {
2014
+ bodyMapper: Mappers.CloudError
2015
+ }
2016
+ },
2017
+ queryParameters: [Parameters.apiVersion],
2018
+ urlParameters: [
2019
+ Parameters.$host,
2020
+ Parameters.subscriptionId,
2021
+ Parameters.resourceGroupName,
2022
+ Parameters.privateCloudName
2023
+ ],
2024
+ headerParameters: [Parameters.accept],
2025
+ serializer
2026
+ };
2027
+ const getDhcpOperationSpec = {
2028
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}",
2029
+ httpMethod: "GET",
2030
+ responses: {
2031
+ 200: {
2032
+ bodyMapper: Mappers.WorkloadNetworkDhcp
2033
+ },
2034
+ default: {
2035
+ bodyMapper: Mappers.CloudError
2036
+ }
2037
+ },
2038
+ queryParameters: [Parameters.apiVersion],
2039
+ urlParameters: [
2040
+ Parameters.$host,
2041
+ Parameters.subscriptionId,
2042
+ Parameters.resourceGroupName,
2043
+ Parameters.privateCloudName,
2044
+ Parameters.dhcpId
2045
+ ],
2046
+ headerParameters: [Parameters.accept],
2047
+ serializer
2048
+ };
2049
+ const createDhcpOperationSpec = {
2050
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}",
2051
+ httpMethod: "PUT",
2052
+ responses: {
2053
+ 200: {
2054
+ bodyMapper: Mappers.WorkloadNetworkDhcp
2055
+ },
2056
+ 201: {
2057
+ bodyMapper: Mappers.WorkloadNetworkDhcp
2058
+ },
2059
+ 202: {
2060
+ bodyMapper: Mappers.WorkloadNetworkDhcp
2061
+ },
2062
+ 204: {
2063
+ bodyMapper: Mappers.WorkloadNetworkDhcp
2064
+ },
2065
+ default: {
2066
+ bodyMapper: Mappers.CloudError
2067
+ }
2068
+ },
2069
+ requestBody: Parameters.workloadNetworkDhcp,
2070
+ queryParameters: [Parameters.apiVersion],
2071
+ urlParameters: [
2072
+ Parameters.$host,
2073
+ Parameters.subscriptionId,
2074
+ Parameters.resourceGroupName,
2075
+ Parameters.privateCloudName,
2076
+ Parameters.dhcpId
2077
+ ],
2078
+ headerParameters: [Parameters.accept, Parameters.contentType],
2079
+ mediaType: "json",
2080
+ serializer
2081
+ };
2082
+ const updateDhcpOperationSpec = {
2083
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}",
2084
+ httpMethod: "PATCH",
2085
+ responses: {
2086
+ 200: {
2087
+ bodyMapper: Mappers.WorkloadNetworkDhcp
2088
+ },
2089
+ 201: {
2090
+ bodyMapper: Mappers.WorkloadNetworkDhcp
2091
+ },
2092
+ 202: {
2093
+ bodyMapper: Mappers.WorkloadNetworkDhcp
2094
+ },
2095
+ 204: {
2096
+ bodyMapper: Mappers.WorkloadNetworkDhcp
2097
+ },
2098
+ default: {
2099
+ bodyMapper: Mappers.CloudError
2100
+ }
2101
+ },
2102
+ requestBody: Parameters.workloadNetworkDhcp,
2103
+ queryParameters: [Parameters.apiVersion],
2104
+ urlParameters: [
2105
+ Parameters.$host,
2106
+ Parameters.subscriptionId,
2107
+ Parameters.resourceGroupName,
2108
+ Parameters.privateCloudName,
2109
+ Parameters.dhcpId
2110
+ ],
2111
+ headerParameters: [Parameters.accept, Parameters.contentType],
2112
+ mediaType: "json",
2113
+ serializer
2114
+ };
2115
+ const deleteDhcpOperationSpec = {
2116
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}",
2117
+ httpMethod: "DELETE",
2118
+ responses: {
2119
+ 200: {},
2120
+ 201: {},
2121
+ 202: {},
2122
+ 204: {},
2123
+ default: {
2124
+ bodyMapper: Mappers.CloudError
2125
+ }
2126
+ },
2127
+ queryParameters: [Parameters.apiVersion],
2128
+ urlParameters: [
2129
+ Parameters.$host,
2130
+ Parameters.subscriptionId,
2131
+ Parameters.resourceGroupName,
2132
+ Parameters.privateCloudName,
2133
+ Parameters.dhcpId
2134
+ ],
2135
+ headerParameters: [Parameters.accept],
2136
+ serializer
2137
+ };
2138
+ const listGatewaysOperationSpec = {
2139
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways",
2140
+ httpMethod: "GET",
2141
+ responses: {
2142
+ 200: {
2143
+ bodyMapper: Mappers.WorkloadNetworkGatewayList
2144
+ },
2145
+ default: {
2146
+ bodyMapper: Mappers.CloudError
2147
+ }
2148
+ },
2149
+ queryParameters: [Parameters.apiVersion],
2150
+ urlParameters: [
2151
+ Parameters.$host,
2152
+ Parameters.subscriptionId,
2153
+ Parameters.resourceGroupName,
2154
+ Parameters.privateCloudName
2155
+ ],
2156
+ headerParameters: [Parameters.accept],
2157
+ serializer
2158
+ };
2159
+ const getGatewayOperationSpec = {
2160
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId}",
2161
+ httpMethod: "GET",
2162
+ responses: {
2163
+ 200: {
2164
+ bodyMapper: Mappers.WorkloadNetworkGateway
2165
+ },
2166
+ default: {
2167
+ bodyMapper: Mappers.CloudError
2168
+ }
2169
+ },
2170
+ queryParameters: [Parameters.apiVersion],
2171
+ urlParameters: [
2172
+ Parameters.$host,
2173
+ Parameters.subscriptionId,
2174
+ Parameters.resourceGroupName,
2175
+ Parameters.privateCloudName,
2176
+ Parameters.gatewayId
2177
+ ],
2178
+ headerParameters: [Parameters.accept],
2179
+ serializer
2180
+ };
2181
+ const listPortMirroringOperationSpec = {
2182
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles",
2183
+ httpMethod: "GET",
2184
+ responses: {
2185
+ 200: {
2186
+ bodyMapper: Mappers.WorkloadNetworkPortMirroringList
2187
+ },
2188
+ default: {
2189
+ bodyMapper: Mappers.CloudError
2190
+ }
2191
+ },
2192
+ queryParameters: [Parameters.apiVersion],
2193
+ urlParameters: [
2194
+ Parameters.$host,
2195
+ Parameters.subscriptionId,
2196
+ Parameters.resourceGroupName,
2197
+ Parameters.privateCloudName
2198
+ ],
2199
+ headerParameters: [Parameters.accept],
2200
+ serializer
2201
+ };
2202
+ const getPortMirroringOperationSpec = {
2203
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}",
2204
+ httpMethod: "GET",
2205
+ responses: {
2206
+ 200: {
2207
+ bodyMapper: Mappers.WorkloadNetworkPortMirroring
2208
+ },
2209
+ default: {
2210
+ bodyMapper: Mappers.CloudError
2211
+ }
2212
+ },
2213
+ queryParameters: [Parameters.apiVersion],
2214
+ urlParameters: [
2215
+ Parameters.$host,
2216
+ Parameters.subscriptionId,
2217
+ Parameters.resourceGroupName,
2218
+ Parameters.privateCloudName,
2219
+ Parameters.portMirroringId
2220
+ ],
2221
+ headerParameters: [Parameters.accept],
2222
+ serializer
2223
+ };
2224
+ const createPortMirroringOperationSpec = {
2225
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}",
2226
+ httpMethod: "PUT",
2227
+ responses: {
2228
+ 200: {
2229
+ bodyMapper: Mappers.WorkloadNetworkPortMirroring
2230
+ },
2231
+ 201: {
2232
+ bodyMapper: Mappers.WorkloadNetworkPortMirroring
2233
+ },
2234
+ 202: {
2235
+ bodyMapper: Mappers.WorkloadNetworkPortMirroring
2236
+ },
2237
+ 204: {
2238
+ bodyMapper: Mappers.WorkloadNetworkPortMirroring
2239
+ },
2240
+ default: {
2241
+ bodyMapper: Mappers.CloudError
2242
+ }
2243
+ },
2244
+ requestBody: Parameters.workloadNetworkPortMirroring,
2245
+ queryParameters: [Parameters.apiVersion],
2246
+ urlParameters: [
2247
+ Parameters.$host,
2248
+ Parameters.subscriptionId,
2249
+ Parameters.resourceGroupName,
2250
+ Parameters.privateCloudName,
2251
+ Parameters.portMirroringId
2252
+ ],
2253
+ headerParameters: [Parameters.accept, Parameters.contentType],
2254
+ mediaType: "json",
2255
+ serializer
2256
+ };
2257
+ const updatePortMirroringOperationSpec = {
2258
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}",
2259
+ httpMethod: "PATCH",
2260
+ responses: {
2261
+ 200: {
2262
+ bodyMapper: Mappers.WorkloadNetworkPortMirroring
2263
+ },
2264
+ 201: {
2265
+ bodyMapper: Mappers.WorkloadNetworkPortMirroring
2266
+ },
2267
+ 202: {
2268
+ bodyMapper: Mappers.WorkloadNetworkPortMirroring
2269
+ },
2270
+ 204: {
2271
+ bodyMapper: Mappers.WorkloadNetworkPortMirroring
2272
+ },
2273
+ default: {
2274
+ bodyMapper: Mappers.CloudError
2275
+ }
2276
+ },
2277
+ requestBody: Parameters.workloadNetworkPortMirroring,
2278
+ queryParameters: [Parameters.apiVersion],
2279
+ urlParameters: [
2280
+ Parameters.$host,
2281
+ Parameters.subscriptionId,
2282
+ Parameters.resourceGroupName,
2283
+ Parameters.privateCloudName,
2284
+ Parameters.portMirroringId
2285
+ ],
2286
+ headerParameters: [Parameters.accept, Parameters.contentType],
2287
+ mediaType: "json",
2288
+ serializer
2289
+ };
2290
+ const deletePortMirroringOperationSpec = {
2291
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}",
2292
+ httpMethod: "DELETE",
2293
+ responses: {
2294
+ 200: {},
2295
+ 201: {},
2296
+ 202: {},
2297
+ 204: {},
2298
+ default: {
2299
+ bodyMapper: Mappers.CloudError
2300
+ }
2301
+ },
2302
+ queryParameters: [Parameters.apiVersion],
2303
+ urlParameters: [
2304
+ Parameters.$host,
2305
+ Parameters.subscriptionId,
2306
+ Parameters.resourceGroupName,
2307
+ Parameters.privateCloudName,
2308
+ Parameters.portMirroringId
2309
+ ],
2310
+ headerParameters: [Parameters.accept],
2311
+ serializer
2312
+ };
2313
+ const listVMGroupsOperationSpec = {
2314
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups",
2315
+ httpMethod: "GET",
2316
+ responses: {
2317
+ 200: {
2318
+ bodyMapper: Mappers.WorkloadNetworkVMGroupsList
2319
+ },
2320
+ default: {
2321
+ bodyMapper: Mappers.CloudError
2322
+ }
2323
+ },
2324
+ queryParameters: [Parameters.apiVersion],
2325
+ urlParameters: [
2326
+ Parameters.$host,
2327
+ Parameters.subscriptionId,
2328
+ Parameters.resourceGroupName,
2329
+ Parameters.privateCloudName
2330
+ ],
2331
+ headerParameters: [Parameters.accept],
2332
+ serializer
2333
+ };
2334
+ const getVMGroupOperationSpec = {
2335
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}",
2336
+ httpMethod: "GET",
2337
+ responses: {
2338
+ 200: {
2339
+ bodyMapper: Mappers.WorkloadNetworkVMGroup
2340
+ },
2341
+ default: {
2342
+ bodyMapper: Mappers.CloudError
2343
+ }
2344
+ },
2345
+ queryParameters: [Parameters.apiVersion],
2346
+ urlParameters: [
2347
+ Parameters.$host,
2348
+ Parameters.subscriptionId,
2349
+ Parameters.resourceGroupName,
2350
+ Parameters.privateCloudName,
2351
+ Parameters.vmGroupId
2352
+ ],
2353
+ headerParameters: [Parameters.accept],
2354
+ serializer
2355
+ };
2356
+ const createVMGroupOperationSpec = {
2357
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}",
2358
+ httpMethod: "PUT",
2359
+ responses: {
2360
+ 200: {
2361
+ bodyMapper: Mappers.WorkloadNetworkVMGroup
2362
+ },
2363
+ 201: {
2364
+ bodyMapper: Mappers.WorkloadNetworkVMGroup
2365
+ },
2366
+ 202: {
2367
+ bodyMapper: Mappers.WorkloadNetworkVMGroup
2368
+ },
2369
+ 204: {
2370
+ bodyMapper: Mappers.WorkloadNetworkVMGroup
2371
+ },
2372
+ default: {
2373
+ bodyMapper: Mappers.CloudError
2374
+ }
2375
+ },
2376
+ requestBody: Parameters.workloadNetworkVMGroup,
2377
+ queryParameters: [Parameters.apiVersion],
2378
+ urlParameters: [
2379
+ Parameters.$host,
2380
+ Parameters.subscriptionId,
2381
+ Parameters.resourceGroupName,
2382
+ Parameters.privateCloudName,
2383
+ Parameters.vmGroupId
2384
+ ],
2385
+ headerParameters: [Parameters.accept, Parameters.contentType],
2386
+ mediaType: "json",
2387
+ serializer
2388
+ };
2389
+ const updateVMGroupOperationSpec = {
2390
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}",
2391
+ httpMethod: "PATCH",
2392
+ responses: {
2393
+ 200: {
2394
+ bodyMapper: Mappers.WorkloadNetworkVMGroup
2395
+ },
2396
+ 201: {
2397
+ bodyMapper: Mappers.WorkloadNetworkVMGroup
2398
+ },
2399
+ 202: {
2400
+ bodyMapper: Mappers.WorkloadNetworkVMGroup
2401
+ },
2402
+ 204: {
2403
+ bodyMapper: Mappers.WorkloadNetworkVMGroup
2404
+ },
2405
+ default: {
2406
+ bodyMapper: Mappers.CloudError
2407
+ }
2408
+ },
2409
+ requestBody: Parameters.workloadNetworkVMGroup,
2410
+ queryParameters: [Parameters.apiVersion],
2411
+ urlParameters: [
2412
+ Parameters.$host,
2413
+ Parameters.subscriptionId,
2414
+ Parameters.resourceGroupName,
2415
+ Parameters.privateCloudName,
2416
+ Parameters.vmGroupId
2417
+ ],
2418
+ headerParameters: [Parameters.accept, Parameters.contentType],
2419
+ mediaType: "json",
2420
+ serializer
2421
+ };
2422
+ const deleteVMGroupOperationSpec = {
2423
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}",
2424
+ httpMethod: "DELETE",
2425
+ responses: {
2426
+ 200: {},
2427
+ 201: {},
2428
+ 202: {},
2429
+ 204: {},
2430
+ default: {
2431
+ bodyMapper: Mappers.CloudError
2432
+ }
2433
+ },
2434
+ queryParameters: [Parameters.apiVersion],
2435
+ urlParameters: [
2436
+ Parameters.$host,
2437
+ Parameters.subscriptionId,
2438
+ Parameters.resourceGroupName,
2439
+ Parameters.privateCloudName,
2440
+ Parameters.vmGroupId
2441
+ ],
2442
+ headerParameters: [Parameters.accept],
2443
+ serializer
2444
+ };
2445
+ const listVirtualMachinesOperationSpec = {
2446
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines",
2447
+ httpMethod: "GET",
2448
+ responses: {
2449
+ 200: {
2450
+ bodyMapper: Mappers.WorkloadNetworkVirtualMachinesList
2451
+ },
2452
+ default: {
2453
+ bodyMapper: Mappers.CloudError
2454
+ }
2455
+ },
2456
+ queryParameters: [Parameters.apiVersion],
2457
+ urlParameters: [
2458
+ Parameters.$host,
2459
+ Parameters.subscriptionId,
2460
+ Parameters.resourceGroupName,
2461
+ Parameters.privateCloudName
2462
+ ],
2463
+ headerParameters: [Parameters.accept],
2464
+ serializer
2465
+ };
2466
+ const getVirtualMachineOperationSpec = {
2467
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines/{virtualMachineId}",
2468
+ httpMethod: "GET",
2469
+ responses: {
2470
+ 200: {
2471
+ bodyMapper: Mappers.WorkloadNetworkVirtualMachine
2472
+ },
2473
+ default: {
2474
+ bodyMapper: Mappers.CloudError
2475
+ }
2476
+ },
2477
+ queryParameters: [Parameters.apiVersion],
2478
+ urlParameters: [
2479
+ Parameters.$host,
2480
+ Parameters.subscriptionId,
2481
+ Parameters.resourceGroupName,
2482
+ Parameters.privateCloudName,
2483
+ Parameters.virtualMachineId
2484
+ ],
2485
+ headerParameters: [Parameters.accept],
2486
+ serializer
2487
+ };
2488
+ const listDnsServicesOperationSpec = {
2489
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices",
2490
+ httpMethod: "GET",
2491
+ responses: {
2492
+ 200: {
2493
+ bodyMapper: Mappers.WorkloadNetworkDnsServicesList
2494
+ },
2495
+ default: {
2496
+ bodyMapper: Mappers.CloudError
2497
+ }
2498
+ },
2499
+ queryParameters: [Parameters.apiVersion],
2500
+ urlParameters: [
2501
+ Parameters.$host,
2502
+ Parameters.subscriptionId,
2503
+ Parameters.resourceGroupName,
2504
+ Parameters.privateCloudName
2505
+ ],
2506
+ headerParameters: [Parameters.accept],
2507
+ serializer
2508
+ };
2509
+ const getDnsServiceOperationSpec = {
2510
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}",
2511
+ httpMethod: "GET",
2512
+ responses: {
2513
+ 200: {
2514
+ bodyMapper: Mappers.WorkloadNetworkDnsService
2515
+ },
2516
+ default: {
2517
+ bodyMapper: Mappers.CloudError
2518
+ }
2519
+ },
2520
+ queryParameters: [Parameters.apiVersion],
2521
+ urlParameters: [
2522
+ Parameters.$host,
2523
+ Parameters.subscriptionId,
2524
+ Parameters.resourceGroupName,
2525
+ Parameters.privateCloudName,
2526
+ Parameters.dnsServiceId
2527
+ ],
2528
+ headerParameters: [Parameters.accept],
2529
+ serializer
2530
+ };
2531
+ const createDnsServiceOperationSpec = {
2532
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}",
2533
+ httpMethod: "PUT",
2534
+ responses: {
2535
+ 200: {
2536
+ bodyMapper: Mappers.WorkloadNetworkDnsService
2537
+ },
2538
+ 201: {
2539
+ bodyMapper: Mappers.WorkloadNetworkDnsService
2540
+ },
2541
+ 202: {
2542
+ bodyMapper: Mappers.WorkloadNetworkDnsService
2543
+ },
2544
+ 204: {
2545
+ bodyMapper: Mappers.WorkloadNetworkDnsService
2546
+ },
2547
+ default: {
2548
+ bodyMapper: Mappers.CloudError
2549
+ }
2550
+ },
2551
+ requestBody: Parameters.workloadNetworkDnsService,
2552
+ queryParameters: [Parameters.apiVersion],
2553
+ urlParameters: [
2554
+ Parameters.$host,
2555
+ Parameters.subscriptionId,
2556
+ Parameters.resourceGroupName,
2557
+ Parameters.privateCloudName,
2558
+ Parameters.dnsServiceId
2559
+ ],
2560
+ headerParameters: [Parameters.accept, Parameters.contentType],
2561
+ mediaType: "json",
2562
+ serializer
2563
+ };
2564
+ const updateDnsServiceOperationSpec = {
2565
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}",
2566
+ httpMethod: "PATCH",
2567
+ responses: {
2568
+ 200: {
2569
+ bodyMapper: Mappers.WorkloadNetworkDnsService
2570
+ },
2571
+ 201: {
2572
+ bodyMapper: Mappers.WorkloadNetworkDnsService
2573
+ },
2574
+ 202: {
2575
+ bodyMapper: Mappers.WorkloadNetworkDnsService
2576
+ },
2577
+ 204: {
2578
+ bodyMapper: Mappers.WorkloadNetworkDnsService
2579
+ },
2580
+ default: {
2581
+ bodyMapper: Mappers.CloudError
2582
+ }
2583
+ },
2584
+ requestBody: Parameters.workloadNetworkDnsService,
2585
+ queryParameters: [Parameters.apiVersion],
2586
+ urlParameters: [
2587
+ Parameters.$host,
2588
+ Parameters.subscriptionId,
2589
+ Parameters.resourceGroupName,
2590
+ Parameters.privateCloudName,
2591
+ Parameters.dnsServiceId
2592
+ ],
2593
+ headerParameters: [Parameters.accept, Parameters.contentType],
2594
+ mediaType: "json",
2595
+ serializer
2596
+ };
2597
+ const deleteDnsServiceOperationSpec = {
2598
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}",
2599
+ httpMethod: "DELETE",
2600
+ responses: {
2601
+ 200: {},
2602
+ 201: {},
2603
+ 202: {},
2604
+ 204: {},
2605
+ default: {
2606
+ bodyMapper: Mappers.CloudError
2607
+ }
2608
+ },
2609
+ queryParameters: [Parameters.apiVersion],
2610
+ urlParameters: [
2611
+ Parameters.$host,
2612
+ Parameters.subscriptionId,
2613
+ Parameters.resourceGroupName,
2614
+ Parameters.privateCloudName,
2615
+ Parameters.dnsServiceId
2616
+ ],
2617
+ headerParameters: [Parameters.accept],
2618
+ serializer
2619
+ };
2620
+ const listDnsZonesOperationSpec = {
2621
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones",
2622
+ httpMethod: "GET",
2623
+ responses: {
2624
+ 200: {
2625
+ bodyMapper: Mappers.WorkloadNetworkDnsZonesList
2626
+ },
2627
+ default: {
2628
+ bodyMapper: Mappers.CloudError
2629
+ }
2630
+ },
2631
+ queryParameters: [Parameters.apiVersion],
2632
+ urlParameters: [
2633
+ Parameters.$host,
2634
+ Parameters.subscriptionId,
2635
+ Parameters.resourceGroupName,
2636
+ Parameters.privateCloudName
2637
+ ],
2638
+ headerParameters: [Parameters.accept],
2639
+ serializer
2640
+ };
2641
+ const getDnsZoneOperationSpec = {
2642
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}",
2643
+ httpMethod: "GET",
2644
+ responses: {
2645
+ 200: {
2646
+ bodyMapper: Mappers.WorkloadNetworkDnsZone
2647
+ },
2648
+ default: {
2649
+ bodyMapper: Mappers.CloudError
2650
+ }
2651
+ },
2652
+ queryParameters: [Parameters.apiVersion],
2653
+ urlParameters: [
2654
+ Parameters.$host,
2655
+ Parameters.subscriptionId,
2656
+ Parameters.resourceGroupName,
2657
+ Parameters.privateCloudName,
2658
+ Parameters.dnsZoneId
2659
+ ],
2660
+ headerParameters: [Parameters.accept],
2661
+ serializer
2662
+ };
2663
+ const createDnsZoneOperationSpec = {
2664
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}",
2665
+ httpMethod: "PUT",
2666
+ responses: {
2667
+ 200: {
2668
+ bodyMapper: Mappers.WorkloadNetworkDnsZone
2669
+ },
2670
+ 201: {
2671
+ bodyMapper: Mappers.WorkloadNetworkDnsZone
2672
+ },
2673
+ 202: {
2674
+ bodyMapper: Mappers.WorkloadNetworkDnsZone
2675
+ },
2676
+ 204: {
2677
+ bodyMapper: Mappers.WorkloadNetworkDnsZone
2678
+ },
2679
+ default: {
2680
+ bodyMapper: Mappers.CloudError
2681
+ }
2682
+ },
2683
+ requestBody: Parameters.workloadNetworkDnsZone,
2684
+ queryParameters: [Parameters.apiVersion],
2685
+ urlParameters: [
2686
+ Parameters.$host,
2687
+ Parameters.subscriptionId,
2688
+ Parameters.resourceGroupName,
2689
+ Parameters.privateCloudName,
2690
+ Parameters.dnsZoneId
2691
+ ],
2692
+ headerParameters: [Parameters.accept, Parameters.contentType],
2693
+ mediaType: "json",
2694
+ serializer
2695
+ };
2696
+ const updateDnsZoneOperationSpec = {
2697
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}",
2698
+ httpMethod: "PATCH",
2699
+ responses: {
2700
+ 200: {
2701
+ bodyMapper: Mappers.WorkloadNetworkDnsZone
2702
+ },
2703
+ 201: {
2704
+ bodyMapper: Mappers.WorkloadNetworkDnsZone
2705
+ },
2706
+ 202: {
2707
+ bodyMapper: Mappers.WorkloadNetworkDnsZone
2708
+ },
2709
+ 204: {
2710
+ bodyMapper: Mappers.WorkloadNetworkDnsZone
2711
+ },
2712
+ default: {
2713
+ bodyMapper: Mappers.CloudError
2714
+ }
2715
+ },
2716
+ requestBody: Parameters.workloadNetworkDnsZone,
2717
+ queryParameters: [Parameters.apiVersion],
2718
+ urlParameters: [
2719
+ Parameters.$host,
2720
+ Parameters.subscriptionId,
2721
+ Parameters.resourceGroupName,
2722
+ Parameters.privateCloudName,
2723
+ Parameters.dnsZoneId
2724
+ ],
2725
+ headerParameters: [Parameters.accept, Parameters.contentType],
2726
+ mediaType: "json",
2727
+ serializer
2728
+ };
2729
+ const deleteDnsZoneOperationSpec = {
2730
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}",
2731
+ httpMethod: "DELETE",
2732
+ responses: {
2733
+ 200: {},
2734
+ 201: {},
2735
+ 202: {},
2736
+ 204: {},
2737
+ default: {
2738
+ bodyMapper: Mappers.CloudError
2739
+ }
2740
+ },
2741
+ queryParameters: [Parameters.apiVersion],
2742
+ urlParameters: [
2743
+ Parameters.$host,
2744
+ Parameters.subscriptionId,
2745
+ Parameters.resourceGroupName,
2746
+ Parameters.privateCloudName,
2747
+ Parameters.dnsZoneId
2748
+ ],
2749
+ headerParameters: [Parameters.accept],
2750
+ serializer
2751
+ };
2752
+ const listPublicIPsOperationSpec = {
2753
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs",
2754
+ httpMethod: "GET",
2755
+ responses: {
2756
+ 200: {
2757
+ bodyMapper: Mappers.WorkloadNetworkPublicIPsList
2758
+ },
2759
+ default: {
2760
+ bodyMapper: Mappers.CloudError
2761
+ }
2762
+ },
2763
+ queryParameters: [Parameters.apiVersion],
2764
+ urlParameters: [
2765
+ Parameters.$host,
2766
+ Parameters.subscriptionId,
2767
+ Parameters.resourceGroupName,
2768
+ Parameters.privateCloudName
2769
+ ],
2770
+ headerParameters: [Parameters.accept],
2771
+ serializer
2772
+ };
2773
+ const getPublicIPOperationSpec = {
2774
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}",
2775
+ httpMethod: "GET",
2776
+ responses: {
2777
+ 200: {
2778
+ bodyMapper: Mappers.WorkloadNetworkPublicIP
2779
+ },
2780
+ default: {
2781
+ bodyMapper: Mappers.CloudError
2782
+ }
2783
+ },
2784
+ queryParameters: [Parameters.apiVersion],
2785
+ urlParameters: [
2786
+ Parameters.$host,
2787
+ Parameters.subscriptionId,
2788
+ Parameters.resourceGroupName,
2789
+ Parameters.privateCloudName,
2790
+ Parameters.publicIPId
2791
+ ],
2792
+ headerParameters: [Parameters.accept],
2793
+ serializer
2794
+ };
2795
+ const createPublicIPOperationSpec = {
2796
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}",
2797
+ httpMethod: "PUT",
2798
+ responses: {
2799
+ 200: {
2800
+ bodyMapper: Mappers.WorkloadNetworkPublicIP
2801
+ },
2802
+ 201: {
2803
+ bodyMapper: Mappers.WorkloadNetworkPublicIP
2804
+ },
2805
+ 202: {
2806
+ bodyMapper: Mappers.WorkloadNetworkPublicIP
2807
+ },
2808
+ 204: {
2809
+ bodyMapper: Mappers.WorkloadNetworkPublicIP
2810
+ },
2811
+ default: {
2812
+ bodyMapper: Mappers.CloudError
2813
+ }
2814
+ },
2815
+ requestBody: Parameters.workloadNetworkPublicIP,
2816
+ queryParameters: [Parameters.apiVersion],
2817
+ urlParameters: [
2818
+ Parameters.$host,
2819
+ Parameters.subscriptionId,
2820
+ Parameters.resourceGroupName,
2821
+ Parameters.privateCloudName,
2822
+ Parameters.publicIPId
2823
+ ],
2824
+ headerParameters: [Parameters.accept, Parameters.contentType],
2825
+ mediaType: "json",
2826
+ serializer
2827
+ };
2828
+ const deletePublicIPOperationSpec = {
2829
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}",
2830
+ httpMethod: "DELETE",
2831
+ responses: {
2832
+ 200: {},
2833
+ 201: {},
2834
+ 202: {},
2835
+ 204: {},
2836
+ default: {
2837
+ bodyMapper: Mappers.CloudError
2838
+ }
2839
+ },
2840
+ queryParameters: [Parameters.apiVersion],
2841
+ urlParameters: [
2842
+ Parameters.$host,
2843
+ Parameters.subscriptionId,
2844
+ Parameters.resourceGroupName,
2845
+ Parameters.privateCloudName,
2846
+ Parameters.publicIPId
2847
+ ],
2848
+ headerParameters: [Parameters.accept],
2849
+ serializer
2850
+ };
2851
+ const listSegmentsNextOperationSpec = {
2852
+ path: "{nextLink}",
2853
+ httpMethod: "GET",
2854
+ responses: {
2855
+ 200: {
2856
+ bodyMapper: Mappers.WorkloadNetworkSegmentsList
2857
+ },
2858
+ default: {
2859
+ bodyMapper: Mappers.CloudError
2860
+ }
2861
+ },
2862
+ queryParameters: [Parameters.apiVersion],
2863
+ urlParameters: [
2864
+ Parameters.$host,
2865
+ Parameters.nextLink,
2866
+ Parameters.subscriptionId,
2867
+ Parameters.resourceGroupName,
2868
+ Parameters.privateCloudName
2869
+ ],
2870
+ headerParameters: [Parameters.accept],
2871
+ serializer
2872
+ };
2873
+ const listDhcpNextOperationSpec = {
2874
+ path: "{nextLink}",
2875
+ httpMethod: "GET",
2876
+ responses: {
2877
+ 200: {
2878
+ bodyMapper: Mappers.WorkloadNetworkDhcpList
2879
+ },
2880
+ default: {
2881
+ bodyMapper: Mappers.CloudError
2882
+ }
2883
+ },
2884
+ queryParameters: [Parameters.apiVersion],
2885
+ urlParameters: [
2886
+ Parameters.$host,
2887
+ Parameters.nextLink,
2888
+ Parameters.subscriptionId,
2889
+ Parameters.resourceGroupName,
2890
+ Parameters.privateCloudName
2891
+ ],
2892
+ headerParameters: [Parameters.accept],
2893
+ serializer
2894
+ };
2895
+ const listGatewaysNextOperationSpec = {
2896
+ path: "{nextLink}",
2897
+ httpMethod: "GET",
2898
+ responses: {
2899
+ 200: {
2900
+ bodyMapper: Mappers.WorkloadNetworkGatewayList
2901
+ },
2902
+ default: {
2903
+ bodyMapper: Mappers.CloudError
2904
+ }
2905
+ },
2906
+ queryParameters: [Parameters.apiVersion],
2907
+ urlParameters: [
2908
+ Parameters.$host,
2909
+ Parameters.nextLink,
2910
+ Parameters.subscriptionId,
2911
+ Parameters.resourceGroupName,
2912
+ Parameters.privateCloudName
2913
+ ],
2914
+ headerParameters: [Parameters.accept],
2915
+ serializer
2916
+ };
2917
+ const listPortMirroringNextOperationSpec = {
2918
+ path: "{nextLink}",
2919
+ httpMethod: "GET",
2920
+ responses: {
2921
+ 200: {
2922
+ bodyMapper: Mappers.WorkloadNetworkPortMirroringList
2923
+ },
2924
+ default: {
2925
+ bodyMapper: Mappers.CloudError
2926
+ }
2927
+ },
2928
+ queryParameters: [Parameters.apiVersion],
2929
+ urlParameters: [
2930
+ Parameters.$host,
2931
+ Parameters.nextLink,
2932
+ Parameters.subscriptionId,
2933
+ Parameters.resourceGroupName,
2934
+ Parameters.privateCloudName
2935
+ ],
2936
+ headerParameters: [Parameters.accept],
2937
+ serializer
2938
+ };
2939
+ const listVMGroupsNextOperationSpec = {
2940
+ path: "{nextLink}",
2941
+ httpMethod: "GET",
2942
+ responses: {
2943
+ 200: {
2944
+ bodyMapper: Mappers.WorkloadNetworkVMGroupsList
2945
+ },
2946
+ default: {
2947
+ bodyMapper: Mappers.CloudError
2948
+ }
2949
+ },
2950
+ queryParameters: [Parameters.apiVersion],
2951
+ urlParameters: [
2952
+ Parameters.$host,
2953
+ Parameters.nextLink,
2954
+ Parameters.subscriptionId,
2955
+ Parameters.resourceGroupName,
2956
+ Parameters.privateCloudName
2957
+ ],
2958
+ headerParameters: [Parameters.accept],
2959
+ serializer
2960
+ };
2961
+ const listVirtualMachinesNextOperationSpec = {
2962
+ path: "{nextLink}",
2963
+ httpMethod: "GET",
2964
+ responses: {
2965
+ 200: {
2966
+ bodyMapper: Mappers.WorkloadNetworkVirtualMachinesList
2967
+ },
2968
+ default: {
2969
+ bodyMapper: Mappers.CloudError
2970
+ }
2971
+ },
2972
+ queryParameters: [Parameters.apiVersion],
2973
+ urlParameters: [
2974
+ Parameters.$host,
2975
+ Parameters.nextLink,
2976
+ Parameters.subscriptionId,
2977
+ Parameters.resourceGroupName,
2978
+ Parameters.privateCloudName
2979
+ ],
2980
+ headerParameters: [Parameters.accept],
2981
+ serializer
2982
+ };
2983
+ const listDnsServicesNextOperationSpec = {
2984
+ path: "{nextLink}",
2985
+ httpMethod: "GET",
2986
+ responses: {
2987
+ 200: {
2988
+ bodyMapper: Mappers.WorkloadNetworkDnsServicesList
2989
+ },
2990
+ default: {
2991
+ bodyMapper: Mappers.CloudError
2992
+ }
2993
+ },
2994
+ queryParameters: [Parameters.apiVersion],
2995
+ urlParameters: [
2996
+ Parameters.$host,
2997
+ Parameters.nextLink,
2998
+ Parameters.subscriptionId,
2999
+ Parameters.resourceGroupName,
3000
+ Parameters.privateCloudName
3001
+ ],
3002
+ headerParameters: [Parameters.accept],
3003
+ serializer
3004
+ };
3005
+ const listDnsZonesNextOperationSpec = {
3006
+ path: "{nextLink}",
3007
+ httpMethod: "GET",
3008
+ responses: {
3009
+ 200: {
3010
+ bodyMapper: Mappers.WorkloadNetworkDnsZonesList
3011
+ },
3012
+ default: {
3013
+ bodyMapper: Mappers.CloudError
3014
+ }
3015
+ },
3016
+ queryParameters: [Parameters.apiVersion],
3017
+ urlParameters: [
3018
+ Parameters.$host,
3019
+ Parameters.nextLink,
3020
+ Parameters.subscriptionId,
3021
+ Parameters.resourceGroupName,
3022
+ Parameters.privateCloudName
3023
+ ],
3024
+ headerParameters: [Parameters.accept],
3025
+ serializer
3026
+ };
3027
+ const listPublicIPsNextOperationSpec = {
3028
+ path: "{nextLink}",
3029
+ httpMethod: "GET",
3030
+ responses: {
3031
+ 200: {
3032
+ bodyMapper: Mappers.WorkloadNetworkPublicIPsList
3033
+ },
3034
+ default: {
3035
+ bodyMapper: Mappers.CloudError
3036
+ }
3037
+ },
3038
+ queryParameters: [Parameters.apiVersion],
3039
+ urlParameters: [
3040
+ Parameters.$host,
3041
+ Parameters.nextLink,
3042
+ Parameters.subscriptionId,
3043
+ Parameters.resourceGroupName,
3044
+ Parameters.privateCloudName
3045
+ ],
3046
+ headerParameters: [Parameters.accept],
3047
+ serializer
3048
+ };
3049
+ //# sourceMappingURL=workloadNetworks.js.map