@azure/arm-avs 4.0.0 → 5.0.1-alpha.20240624.3

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