@azure/arm-avs 7.0.0-alpha.20250721.2 → 7.0.0-alpha.20250729.1

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 (386) hide show
  1. package/dist/browser/api/addons/operations.js +38 -16
  2. package/dist/browser/api/addons/operations.js.map +1 -1
  3. package/dist/browser/api/authorizations/operations.js +38 -16
  4. package/dist/browser/api/authorizations/operations.js.map +1 -1
  5. package/dist/browser/api/azureVMwareSolutionAPIContext.js +16 -10
  6. package/dist/browser/api/azureVMwareSolutionAPIContext.js.map +1 -1
  7. package/dist/browser/api/cloudLinks/operations.js +38 -16
  8. package/dist/browser/api/cloudLinks/operations.js.map +1 -1
  9. package/dist/browser/api/clusters/operations.js +58 -24
  10. package/dist/browser/api/clusters/operations.js.map +1 -1
  11. package/dist/browser/api/datastores/operations.js +38 -16
  12. package/dist/browser/api/datastores/operations.js.map +1 -1
  13. package/dist/browser/api/globalReachConnections/operations.js +38 -16
  14. package/dist/browser/api/globalReachConnections/operations.js.map +1 -1
  15. package/dist/browser/api/hcxEnterpriseSites/operations.js +34 -12
  16. package/dist/browser/api/hcxEnterpriseSites/operations.js.map +1 -1
  17. package/dist/browser/api/hosts/operations.js +16 -6
  18. package/dist/browser/api/hosts/operations.js.map +1 -1
  19. package/dist/browser/api/iscsiPaths/operations.js +38 -16
  20. package/dist/browser/api/iscsiPaths/operations.js.map +1 -1
  21. package/dist/browser/api/locations/operations.js +18 -6
  22. package/dist/browser/api/locations/operations.js.map +1 -1
  23. package/dist/browser/api/operations/operations.js +8 -3
  24. package/dist/browser/api/operations/operations.js.map +1 -1
  25. package/dist/browser/api/placementPolicies/operations.js +50 -21
  26. package/dist/browser/api/placementPolicies/operations.js.map +1 -1
  27. package/dist/browser/api/privateClouds/operations.js +86 -37
  28. package/dist/browser/api/privateClouds/operations.js.map +1 -1
  29. package/dist/browser/api/provisionedNetworks/operations.js +16 -6
  30. package/dist/browser/api/provisionedNetworks/operations.js.map +1 -1
  31. package/dist/browser/api/pureStoragePolicies/operations.js +38 -16
  32. package/dist/browser/api/pureStoragePolicies/operations.js.map +1 -1
  33. package/dist/browser/api/scriptCmdlets/operations.js +16 -6
  34. package/dist/browser/api/scriptCmdlets/operations.js.map +1 -1
  35. package/dist/browser/api/scriptExecutions/operations.js +46 -20
  36. package/dist/browser/api/scriptExecutions/operations.js.map +1 -1
  37. package/dist/browser/api/scriptPackages/operations.js +16 -6
  38. package/dist/browser/api/scriptPackages/operations.js.map +1 -1
  39. package/dist/browser/api/skus/operations.js +8 -3
  40. package/dist/browser/api/skus/operations.js.map +1 -1
  41. package/dist/browser/api/virtualMachines/operations.js +28 -11
  42. package/dist/browser/api/virtualMachines/operations.js.map +1 -1
  43. package/dist/browser/api/workloadNetworks/operations.js +386 -160
  44. package/dist/browser/api/workloadNetworks/operations.js.map +1 -1
  45. package/dist/browser/azureVMwareSolutionAPI.js +50 -3
  46. package/dist/browser/azureVMwareSolutionAPI.js.map +1 -1
  47. package/dist/browser/classic/addons/index.js +3 -1
  48. package/dist/browser/classic/addons/index.js.map +1 -1
  49. package/dist/browser/classic/authorizations/index.js +3 -1
  50. package/dist/browser/classic/authorizations/index.js.map +1 -1
  51. package/dist/browser/classic/cloudLinks/index.js +3 -1
  52. package/dist/browser/classic/cloudLinks/index.js.map +1 -1
  53. package/dist/browser/classic/clusters/index.js +3 -1
  54. package/dist/browser/classic/clusters/index.js.map +1 -1
  55. package/dist/browser/classic/datastores/index.js +3 -1
  56. package/dist/browser/classic/datastores/index.js.map +1 -1
  57. package/dist/browser/classic/globalReachConnections/index.js +3 -1
  58. package/dist/browser/classic/globalReachConnections/index.js.map +1 -1
  59. package/dist/browser/classic/hcxEnterpriseSites/index.js +3 -1
  60. package/dist/browser/classic/hcxEnterpriseSites/index.js.map +1 -1
  61. package/dist/browser/classic/hosts/index.js +3 -1
  62. package/dist/browser/classic/hosts/index.js.map +1 -1
  63. package/dist/browser/classic/iscsiPaths/index.js +3 -1
  64. package/dist/browser/classic/iscsiPaths/index.js.map +1 -1
  65. package/dist/browser/classic/locations/index.js +3 -1
  66. package/dist/browser/classic/locations/index.js.map +1 -1
  67. package/dist/browser/classic/operations/index.js +3 -1
  68. package/dist/browser/classic/operations/index.js.map +1 -1
  69. package/dist/browser/classic/placementPolicies/index.js +3 -1
  70. package/dist/browser/classic/placementPolicies/index.js.map +1 -1
  71. package/dist/browser/classic/privateClouds/index.js +3 -1
  72. package/dist/browser/classic/privateClouds/index.js.map +1 -1
  73. package/dist/browser/classic/provisionedNetworks/index.js +3 -1
  74. package/dist/browser/classic/provisionedNetworks/index.js.map +1 -1
  75. package/dist/browser/classic/pureStoragePolicies/index.js +3 -1
  76. package/dist/browser/classic/pureStoragePolicies/index.js.map +1 -1
  77. package/dist/browser/classic/scriptCmdlets/index.js +3 -1
  78. package/dist/browser/classic/scriptCmdlets/index.js.map +1 -1
  79. package/dist/browser/classic/scriptExecutions/index.js +3 -1
  80. package/dist/browser/classic/scriptExecutions/index.js.map +1 -1
  81. package/dist/browser/classic/scriptPackages/index.js +3 -1
  82. package/dist/browser/classic/scriptPackages/index.js.map +1 -1
  83. package/dist/browser/classic/skus/index.js +3 -1
  84. package/dist/browser/classic/skus/index.js.map +1 -1
  85. package/dist/browser/classic/virtualMachines/index.js +3 -1
  86. package/dist/browser/classic/virtualMachines/index.js.map +1 -1
  87. package/dist/browser/classic/workloadNetworks/index.js +3 -1
  88. package/dist/browser/classic/workloadNetworks/index.js.map +1 -1
  89. package/dist/browser/restorePollerHelpers.js +11 -13
  90. package/dist/browser/restorePollerHelpers.js.map +1 -1
  91. package/dist/browser/static-helpers/pagingHelpers.js +31 -50
  92. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
  93. package/dist/browser/static-helpers/pollingHelpers.js +14 -11
  94. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
  95. package/dist/browser/static-helpers/urlTemplate.js +2 -2
  96. package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
  97. package/dist/commonjs/api/addons/operations.js +38 -16
  98. package/dist/commonjs/api/addons/operations.js.map +1 -1
  99. package/dist/commonjs/api/authorizations/operations.js +38 -16
  100. package/dist/commonjs/api/authorizations/operations.js.map +1 -1
  101. package/dist/commonjs/api/azureVMwareSolutionAPIContext.js +16 -10
  102. package/dist/commonjs/api/azureVMwareSolutionAPIContext.js.map +1 -1
  103. package/dist/commonjs/api/cloudLinks/operations.js +38 -16
  104. package/dist/commonjs/api/cloudLinks/operations.js.map +1 -1
  105. package/dist/commonjs/api/clusters/operations.js +58 -24
  106. package/dist/commonjs/api/clusters/operations.js.map +1 -1
  107. package/dist/commonjs/api/datastores/operations.js +38 -16
  108. package/dist/commonjs/api/datastores/operations.js.map +1 -1
  109. package/dist/commonjs/api/globalReachConnections/operations.js +38 -16
  110. package/dist/commonjs/api/globalReachConnections/operations.js.map +1 -1
  111. package/dist/commonjs/api/hcxEnterpriseSites/operations.js +34 -12
  112. package/dist/commonjs/api/hcxEnterpriseSites/operations.js.map +1 -1
  113. package/dist/commonjs/api/hosts/operations.js +16 -6
  114. package/dist/commonjs/api/hosts/operations.js.map +1 -1
  115. package/dist/commonjs/api/iscsiPaths/operations.js +38 -16
  116. package/dist/commonjs/api/iscsiPaths/operations.js.map +1 -1
  117. package/dist/commonjs/api/locations/operations.js +18 -6
  118. package/dist/commonjs/api/locations/operations.js.map +1 -1
  119. package/dist/commonjs/api/operations/operations.js +8 -3
  120. package/dist/commonjs/api/operations/operations.js.map +1 -1
  121. package/dist/commonjs/api/placementPolicies/operations.js +50 -21
  122. package/dist/commonjs/api/placementPolicies/operations.js.map +1 -1
  123. package/dist/commonjs/api/privateClouds/operations.js +86 -37
  124. package/dist/commonjs/api/privateClouds/operations.js.map +1 -1
  125. package/dist/commonjs/api/provisionedNetworks/operations.js +16 -6
  126. package/dist/commonjs/api/provisionedNetworks/operations.js.map +1 -1
  127. package/dist/commonjs/api/pureStoragePolicies/operations.js +38 -16
  128. package/dist/commonjs/api/pureStoragePolicies/operations.js.map +1 -1
  129. package/dist/commonjs/api/scriptCmdlets/operations.js +16 -6
  130. package/dist/commonjs/api/scriptCmdlets/operations.js.map +1 -1
  131. package/dist/commonjs/api/scriptExecutions/operations.js +46 -20
  132. package/dist/commonjs/api/scriptExecutions/operations.js.map +1 -1
  133. package/dist/commonjs/api/scriptPackages/operations.js +16 -6
  134. package/dist/commonjs/api/scriptPackages/operations.js.map +1 -1
  135. package/dist/commonjs/api/skus/operations.js +8 -3
  136. package/dist/commonjs/api/skus/operations.js.map +1 -1
  137. package/dist/commonjs/api/virtualMachines/operations.js +28 -11
  138. package/dist/commonjs/api/virtualMachines/operations.js.map +1 -1
  139. package/dist/commonjs/api/workloadNetworks/operations.js +386 -160
  140. package/dist/commonjs/api/workloadNetworks/operations.js.map +1 -1
  141. package/dist/commonjs/azureVMwareSolutionAPI.js +50 -3
  142. package/dist/commonjs/azureVMwareSolutionAPI.js.map +1 -1
  143. package/dist/commonjs/classic/addons/index.js +3 -1
  144. package/dist/commonjs/classic/addons/index.js.map +1 -1
  145. package/dist/commonjs/classic/authorizations/index.js +3 -1
  146. package/dist/commonjs/classic/authorizations/index.js.map +1 -1
  147. package/dist/commonjs/classic/cloudLinks/index.js +3 -1
  148. package/dist/commonjs/classic/cloudLinks/index.js.map +1 -1
  149. package/dist/commonjs/classic/clusters/index.js +3 -1
  150. package/dist/commonjs/classic/clusters/index.js.map +1 -1
  151. package/dist/commonjs/classic/datastores/index.js +3 -1
  152. package/dist/commonjs/classic/datastores/index.js.map +1 -1
  153. package/dist/commonjs/classic/globalReachConnections/index.js +3 -1
  154. package/dist/commonjs/classic/globalReachConnections/index.js.map +1 -1
  155. package/dist/commonjs/classic/hcxEnterpriseSites/index.js +3 -1
  156. package/dist/commonjs/classic/hcxEnterpriseSites/index.js.map +1 -1
  157. package/dist/commonjs/classic/hosts/index.js +3 -1
  158. package/dist/commonjs/classic/hosts/index.js.map +1 -1
  159. package/dist/commonjs/classic/iscsiPaths/index.js +3 -1
  160. package/dist/commonjs/classic/iscsiPaths/index.js.map +1 -1
  161. package/dist/commonjs/classic/locations/index.js +3 -1
  162. package/dist/commonjs/classic/locations/index.js.map +1 -1
  163. package/dist/commonjs/classic/operations/index.js +3 -1
  164. package/dist/commonjs/classic/operations/index.js.map +1 -1
  165. package/dist/commonjs/classic/placementPolicies/index.js +3 -1
  166. package/dist/commonjs/classic/placementPolicies/index.js.map +1 -1
  167. package/dist/commonjs/classic/privateClouds/index.js +3 -1
  168. package/dist/commonjs/classic/privateClouds/index.js.map +1 -1
  169. package/dist/commonjs/classic/provisionedNetworks/index.js +3 -1
  170. package/dist/commonjs/classic/provisionedNetworks/index.js.map +1 -1
  171. package/dist/commonjs/classic/pureStoragePolicies/index.js +3 -1
  172. package/dist/commonjs/classic/pureStoragePolicies/index.js.map +1 -1
  173. package/dist/commonjs/classic/scriptCmdlets/index.js +3 -1
  174. package/dist/commonjs/classic/scriptCmdlets/index.js.map +1 -1
  175. package/dist/commonjs/classic/scriptExecutions/index.js +3 -1
  176. package/dist/commonjs/classic/scriptExecutions/index.js.map +1 -1
  177. package/dist/commonjs/classic/scriptPackages/index.js +3 -1
  178. package/dist/commonjs/classic/scriptPackages/index.js.map +1 -1
  179. package/dist/commonjs/classic/skus/index.js +3 -1
  180. package/dist/commonjs/classic/skus/index.js.map +1 -1
  181. package/dist/commonjs/classic/virtualMachines/index.js +3 -1
  182. package/dist/commonjs/classic/virtualMachines/index.js.map +1 -1
  183. package/dist/commonjs/classic/workloadNetworks/index.js +3 -1
  184. package/dist/commonjs/classic/workloadNetworks/index.js.map +1 -1
  185. package/dist/commonjs/restorePollerHelpers.js +11 -13
  186. package/dist/commonjs/restorePollerHelpers.js.map +1 -1
  187. package/dist/commonjs/static-helpers/pagingHelpers.js +31 -50
  188. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -1
  189. package/dist/commonjs/static-helpers/pollingHelpers.js +14 -11
  190. package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -1
  191. package/dist/commonjs/static-helpers/urlTemplate.js +2 -2
  192. package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
  193. package/dist/commonjs/tsdoc-metadata.json +1 -1
  194. package/dist/esm/api/addons/operations.js +38 -16
  195. package/dist/esm/api/addons/operations.js.map +1 -1
  196. package/dist/esm/api/authorizations/operations.js +38 -16
  197. package/dist/esm/api/authorizations/operations.js.map +1 -1
  198. package/dist/esm/api/azureVMwareSolutionAPIContext.js +16 -10
  199. package/dist/esm/api/azureVMwareSolutionAPIContext.js.map +1 -1
  200. package/dist/esm/api/cloudLinks/operations.js +38 -16
  201. package/dist/esm/api/cloudLinks/operations.js.map +1 -1
  202. package/dist/esm/api/clusters/operations.js +58 -24
  203. package/dist/esm/api/clusters/operations.js.map +1 -1
  204. package/dist/esm/api/datastores/operations.js +38 -16
  205. package/dist/esm/api/datastores/operations.js.map +1 -1
  206. package/dist/esm/api/globalReachConnections/operations.js +38 -16
  207. package/dist/esm/api/globalReachConnections/operations.js.map +1 -1
  208. package/dist/esm/api/hcxEnterpriseSites/operations.js +34 -12
  209. package/dist/esm/api/hcxEnterpriseSites/operations.js.map +1 -1
  210. package/dist/esm/api/hosts/operations.js +16 -6
  211. package/dist/esm/api/hosts/operations.js.map +1 -1
  212. package/dist/esm/api/iscsiPaths/operations.js +38 -16
  213. package/dist/esm/api/iscsiPaths/operations.js.map +1 -1
  214. package/dist/esm/api/locations/operations.js +18 -6
  215. package/dist/esm/api/locations/operations.js.map +1 -1
  216. package/dist/esm/api/operations/operations.js +8 -3
  217. package/dist/esm/api/operations/operations.js.map +1 -1
  218. package/dist/esm/api/placementPolicies/operations.js +50 -21
  219. package/dist/esm/api/placementPolicies/operations.js.map +1 -1
  220. package/dist/esm/api/privateClouds/operations.js +86 -37
  221. package/dist/esm/api/privateClouds/operations.js.map +1 -1
  222. package/dist/esm/api/provisionedNetworks/operations.js +16 -6
  223. package/dist/esm/api/provisionedNetworks/operations.js.map +1 -1
  224. package/dist/esm/api/pureStoragePolicies/operations.js +38 -16
  225. package/dist/esm/api/pureStoragePolicies/operations.js.map +1 -1
  226. package/dist/esm/api/scriptCmdlets/operations.js +16 -6
  227. package/dist/esm/api/scriptCmdlets/operations.js.map +1 -1
  228. package/dist/esm/api/scriptExecutions/operations.js +46 -20
  229. package/dist/esm/api/scriptExecutions/operations.js.map +1 -1
  230. package/dist/esm/api/scriptPackages/operations.js +16 -6
  231. package/dist/esm/api/scriptPackages/operations.js.map +1 -1
  232. package/dist/esm/api/skus/operations.js +8 -3
  233. package/dist/esm/api/skus/operations.js.map +1 -1
  234. package/dist/esm/api/virtualMachines/operations.js +28 -11
  235. package/dist/esm/api/virtualMachines/operations.js.map +1 -1
  236. package/dist/esm/api/workloadNetworks/operations.js +386 -160
  237. package/dist/esm/api/workloadNetworks/operations.js.map +1 -1
  238. package/dist/esm/azureVMwareSolutionAPI.js +50 -3
  239. package/dist/esm/azureVMwareSolutionAPI.js.map +1 -1
  240. package/dist/esm/classic/addons/index.js +3 -1
  241. package/dist/esm/classic/addons/index.js.map +1 -1
  242. package/dist/esm/classic/authorizations/index.js +3 -1
  243. package/dist/esm/classic/authorizations/index.js.map +1 -1
  244. package/dist/esm/classic/cloudLinks/index.js +3 -1
  245. package/dist/esm/classic/cloudLinks/index.js.map +1 -1
  246. package/dist/esm/classic/clusters/index.js +3 -1
  247. package/dist/esm/classic/clusters/index.js.map +1 -1
  248. package/dist/esm/classic/datastores/index.js +3 -1
  249. package/dist/esm/classic/datastores/index.js.map +1 -1
  250. package/dist/esm/classic/globalReachConnections/index.js +3 -1
  251. package/dist/esm/classic/globalReachConnections/index.js.map +1 -1
  252. package/dist/esm/classic/hcxEnterpriseSites/index.js +3 -1
  253. package/dist/esm/classic/hcxEnterpriseSites/index.js.map +1 -1
  254. package/dist/esm/classic/hosts/index.js +3 -1
  255. package/dist/esm/classic/hosts/index.js.map +1 -1
  256. package/dist/esm/classic/iscsiPaths/index.js +3 -1
  257. package/dist/esm/classic/iscsiPaths/index.js.map +1 -1
  258. package/dist/esm/classic/locations/index.js +3 -1
  259. package/dist/esm/classic/locations/index.js.map +1 -1
  260. package/dist/esm/classic/operations/index.js +3 -1
  261. package/dist/esm/classic/operations/index.js.map +1 -1
  262. package/dist/esm/classic/placementPolicies/index.js +3 -1
  263. package/dist/esm/classic/placementPolicies/index.js.map +1 -1
  264. package/dist/esm/classic/privateClouds/index.js +3 -1
  265. package/dist/esm/classic/privateClouds/index.js.map +1 -1
  266. package/dist/esm/classic/provisionedNetworks/index.js +3 -1
  267. package/dist/esm/classic/provisionedNetworks/index.js.map +1 -1
  268. package/dist/esm/classic/pureStoragePolicies/index.js +3 -1
  269. package/dist/esm/classic/pureStoragePolicies/index.js.map +1 -1
  270. package/dist/esm/classic/scriptCmdlets/index.js +3 -1
  271. package/dist/esm/classic/scriptCmdlets/index.js.map +1 -1
  272. package/dist/esm/classic/scriptExecutions/index.js +3 -1
  273. package/dist/esm/classic/scriptExecutions/index.js.map +1 -1
  274. package/dist/esm/classic/scriptPackages/index.js +3 -1
  275. package/dist/esm/classic/scriptPackages/index.js.map +1 -1
  276. package/dist/esm/classic/skus/index.js +3 -1
  277. package/dist/esm/classic/skus/index.js.map +1 -1
  278. package/dist/esm/classic/virtualMachines/index.js +3 -1
  279. package/dist/esm/classic/virtualMachines/index.js.map +1 -1
  280. package/dist/esm/classic/workloadNetworks/index.js +3 -1
  281. package/dist/esm/classic/workloadNetworks/index.js.map +1 -1
  282. package/dist/esm/restorePollerHelpers.js +11 -13
  283. package/dist/esm/restorePollerHelpers.js.map +1 -1
  284. package/dist/esm/static-helpers/pagingHelpers.js +31 -50
  285. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
  286. package/dist/esm/static-helpers/pollingHelpers.js +14 -11
  287. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
  288. package/dist/esm/static-helpers/urlTemplate.js +2 -2
  289. package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
  290. package/dist/react-native/api/addons/operations.js +38 -16
  291. package/dist/react-native/api/addons/operations.js.map +1 -1
  292. package/dist/react-native/api/authorizations/operations.js +38 -16
  293. package/dist/react-native/api/authorizations/operations.js.map +1 -1
  294. package/dist/react-native/api/azureVMwareSolutionAPIContext.js +16 -10
  295. package/dist/react-native/api/azureVMwareSolutionAPIContext.js.map +1 -1
  296. package/dist/react-native/api/cloudLinks/operations.js +38 -16
  297. package/dist/react-native/api/cloudLinks/operations.js.map +1 -1
  298. package/dist/react-native/api/clusters/operations.js +58 -24
  299. package/dist/react-native/api/clusters/operations.js.map +1 -1
  300. package/dist/react-native/api/datastores/operations.js +38 -16
  301. package/dist/react-native/api/datastores/operations.js.map +1 -1
  302. package/dist/react-native/api/globalReachConnections/operations.js +38 -16
  303. package/dist/react-native/api/globalReachConnections/operations.js.map +1 -1
  304. package/dist/react-native/api/hcxEnterpriseSites/operations.js +34 -12
  305. package/dist/react-native/api/hcxEnterpriseSites/operations.js.map +1 -1
  306. package/dist/react-native/api/hosts/operations.js +16 -6
  307. package/dist/react-native/api/hosts/operations.js.map +1 -1
  308. package/dist/react-native/api/iscsiPaths/operations.js +38 -16
  309. package/dist/react-native/api/iscsiPaths/operations.js.map +1 -1
  310. package/dist/react-native/api/locations/operations.js +18 -6
  311. package/dist/react-native/api/locations/operations.js.map +1 -1
  312. package/dist/react-native/api/operations/operations.js +8 -3
  313. package/dist/react-native/api/operations/operations.js.map +1 -1
  314. package/dist/react-native/api/placementPolicies/operations.js +50 -21
  315. package/dist/react-native/api/placementPolicies/operations.js.map +1 -1
  316. package/dist/react-native/api/privateClouds/operations.js +86 -37
  317. package/dist/react-native/api/privateClouds/operations.js.map +1 -1
  318. package/dist/react-native/api/provisionedNetworks/operations.js +16 -6
  319. package/dist/react-native/api/provisionedNetworks/operations.js.map +1 -1
  320. package/dist/react-native/api/pureStoragePolicies/operations.js +38 -16
  321. package/dist/react-native/api/pureStoragePolicies/operations.js.map +1 -1
  322. package/dist/react-native/api/scriptCmdlets/operations.js +16 -6
  323. package/dist/react-native/api/scriptCmdlets/operations.js.map +1 -1
  324. package/dist/react-native/api/scriptExecutions/operations.js +46 -20
  325. package/dist/react-native/api/scriptExecutions/operations.js.map +1 -1
  326. package/dist/react-native/api/scriptPackages/operations.js +16 -6
  327. package/dist/react-native/api/scriptPackages/operations.js.map +1 -1
  328. package/dist/react-native/api/skus/operations.js +8 -3
  329. package/dist/react-native/api/skus/operations.js.map +1 -1
  330. package/dist/react-native/api/virtualMachines/operations.js +28 -11
  331. package/dist/react-native/api/virtualMachines/operations.js.map +1 -1
  332. package/dist/react-native/api/workloadNetworks/operations.js +386 -160
  333. package/dist/react-native/api/workloadNetworks/operations.js.map +1 -1
  334. package/dist/react-native/azureVMwareSolutionAPI.js +50 -3
  335. package/dist/react-native/azureVMwareSolutionAPI.js.map +1 -1
  336. package/dist/react-native/classic/addons/index.js +3 -1
  337. package/dist/react-native/classic/addons/index.js.map +1 -1
  338. package/dist/react-native/classic/authorizations/index.js +3 -1
  339. package/dist/react-native/classic/authorizations/index.js.map +1 -1
  340. package/dist/react-native/classic/cloudLinks/index.js +3 -1
  341. package/dist/react-native/classic/cloudLinks/index.js.map +1 -1
  342. package/dist/react-native/classic/clusters/index.js +3 -1
  343. package/dist/react-native/classic/clusters/index.js.map +1 -1
  344. package/dist/react-native/classic/datastores/index.js +3 -1
  345. package/dist/react-native/classic/datastores/index.js.map +1 -1
  346. package/dist/react-native/classic/globalReachConnections/index.js +3 -1
  347. package/dist/react-native/classic/globalReachConnections/index.js.map +1 -1
  348. package/dist/react-native/classic/hcxEnterpriseSites/index.js +3 -1
  349. package/dist/react-native/classic/hcxEnterpriseSites/index.js.map +1 -1
  350. package/dist/react-native/classic/hosts/index.js +3 -1
  351. package/dist/react-native/classic/hosts/index.js.map +1 -1
  352. package/dist/react-native/classic/iscsiPaths/index.js +3 -1
  353. package/dist/react-native/classic/iscsiPaths/index.js.map +1 -1
  354. package/dist/react-native/classic/locations/index.js +3 -1
  355. package/dist/react-native/classic/locations/index.js.map +1 -1
  356. package/dist/react-native/classic/operations/index.js +3 -1
  357. package/dist/react-native/classic/operations/index.js.map +1 -1
  358. package/dist/react-native/classic/placementPolicies/index.js +3 -1
  359. package/dist/react-native/classic/placementPolicies/index.js.map +1 -1
  360. package/dist/react-native/classic/privateClouds/index.js +3 -1
  361. package/dist/react-native/classic/privateClouds/index.js.map +1 -1
  362. package/dist/react-native/classic/provisionedNetworks/index.js +3 -1
  363. package/dist/react-native/classic/provisionedNetworks/index.js.map +1 -1
  364. package/dist/react-native/classic/pureStoragePolicies/index.js +3 -1
  365. package/dist/react-native/classic/pureStoragePolicies/index.js.map +1 -1
  366. package/dist/react-native/classic/scriptCmdlets/index.js +3 -1
  367. package/dist/react-native/classic/scriptCmdlets/index.js.map +1 -1
  368. package/dist/react-native/classic/scriptExecutions/index.js +3 -1
  369. package/dist/react-native/classic/scriptExecutions/index.js.map +1 -1
  370. package/dist/react-native/classic/scriptPackages/index.js +3 -1
  371. package/dist/react-native/classic/scriptPackages/index.js.map +1 -1
  372. package/dist/react-native/classic/skus/index.js +3 -1
  373. package/dist/react-native/classic/skus/index.js.map +1 -1
  374. package/dist/react-native/classic/virtualMachines/index.js +3 -1
  375. package/dist/react-native/classic/virtualMachines/index.js.map +1 -1
  376. package/dist/react-native/classic/workloadNetworks/index.js +3 -1
  377. package/dist/react-native/classic/workloadNetworks/index.js.map +1 -1
  378. package/dist/react-native/restorePollerHelpers.js +11 -13
  379. package/dist/react-native/restorePollerHelpers.js.map +1 -1
  380. package/dist/react-native/static-helpers/pagingHelpers.js +31 -50
  381. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
  382. package/dist/react-native/static-helpers/pollingHelpers.js +14 -11
  383. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -1
  384. package/dist/react-native/static-helpers/urlTemplate.js +2 -2
  385. package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
  386. package/package.json +2 -2
@@ -128,7 +128,6 @@ const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
128
128
  const urlTemplate_js_1 = require("../../static-helpers/urlTemplate.js");
129
129
  const core_client_1 = require("@azure-rest/core-client");
130
130
  function _deleteVMGroupSend(context, resourceGroupName, vmGroupId, privateCloudName, options = { requestOptions: {} }) {
131
- var _a, _b;
132
131
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}{?api%2Dversion}", {
133
132
  subscriptionId: context.subscriptionId,
134
133
  resourceGroupName: resourceGroupName,
@@ -136,9 +135,15 @@ function _deleteVMGroupSend(context, resourceGroupName, vmGroupId, privateCloudN
136
135
  privateCloudName: privateCloudName,
137
136
  "api%2Dversion": context.apiVersion,
138
137
  }, {
139
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
138
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
139
+ });
140
+ return context.path(path).delete({
141
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
142
+ headers: {
143
+ accept: "application/json",
144
+ ...options.requestOptions?.headers,
145
+ },
140
146
  });
141
- return context.path(path).delete(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
142
147
  }
143
148
  async function _deleteVMGroupDeserialize(result) {
144
149
  const expectedStatuses = ["200", "202", "204"];
@@ -152,14 +157,13 @@ async function _deleteVMGroupDeserialize(result) {
152
157
  /** Delete a WorkloadNetworkVMGroup */
153
158
  function deleteVMGroup(context, resourceGroupName, vmGroupId, privateCloudName, options = { requestOptions: {} }) {
154
159
  return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _deleteVMGroupDeserialize, ["200", "202", "204"], {
155
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
156
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
160
+ updateIntervalInMs: options?.updateIntervalInMs,
161
+ abortSignal: options?.abortSignal,
157
162
  getInitialResponse: () => _deleteVMGroupSend(context, resourceGroupName, vmGroupId, privateCloudName, options),
158
163
  resourceLocationConfig: "location",
159
164
  });
160
165
  }
161
166
  function _updateVMGroupSend(context, resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, options = { requestOptions: {} }) {
162
- var _a, _b;
163
167
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}{?api%2Dversion}", {
164
168
  subscriptionId: context.subscriptionId,
165
169
  resourceGroupName: resourceGroupName,
@@ -167,9 +171,17 @@ function _updateVMGroupSend(context, resourceGroupName, privateCloudName, vmGrou
167
171
  vmGroupId: vmGroupId,
168
172
  "api%2Dversion": context.apiVersion,
169
173
  }, {
170
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
174
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
175
+ });
176
+ return context.path(path).patch({
177
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
178
+ contentType: "application/json",
179
+ headers: {
180
+ accept: "application/json",
181
+ ...options.requestOptions?.headers,
182
+ },
183
+ body: (0, models_js_1.workloadNetworkVMGroupSerializer)(workloadNetworkVMGroup),
171
184
  });
172
- return context.path(path).patch(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.workloadNetworkVMGroupSerializer)(workloadNetworkVMGroup) }));
173
185
  }
174
186
  async function _updateVMGroupDeserialize(result) {
175
187
  const expectedStatuses = ["200", "202"];
@@ -183,14 +195,13 @@ async function _updateVMGroupDeserialize(result) {
183
195
  /** Update a WorkloadNetworkVMGroup */
184
196
  function updateVMGroup(context, resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, options = { requestOptions: {} }) {
185
197
  return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _updateVMGroupDeserialize, ["200", "202"], {
186
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
187
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
198
+ updateIntervalInMs: options?.updateIntervalInMs,
199
+ abortSignal: options?.abortSignal,
188
200
  getInitialResponse: () => _updateVMGroupSend(context, resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, options),
189
201
  resourceLocationConfig: "location",
190
202
  });
191
203
  }
192
204
  function _createVMGroupSend(context, resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, options = { requestOptions: {} }) {
193
- var _a, _b;
194
205
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}{?api%2Dversion}", {
195
206
  subscriptionId: context.subscriptionId,
196
207
  resourceGroupName: resourceGroupName,
@@ -198,9 +209,17 @@ function _createVMGroupSend(context, resourceGroupName, privateCloudName, vmGrou
198
209
  vmGroupId: vmGroupId,
199
210
  "api%2Dversion": context.apiVersion,
200
211
  }, {
201
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
212
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
213
+ });
214
+ return context.path(path).put({
215
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
216
+ contentType: "application/json",
217
+ headers: {
218
+ accept: "application/json",
219
+ ...options.requestOptions?.headers,
220
+ },
221
+ body: (0, models_js_1.workloadNetworkVMGroupSerializer)(workloadNetworkVMGroup),
202
222
  });
203
- return context.path(path).put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.workloadNetworkVMGroupSerializer)(workloadNetworkVMGroup) }));
204
223
  }
205
224
  async function _createVMGroupDeserialize(result) {
206
225
  const expectedStatuses = ["200", "201"];
@@ -214,14 +233,13 @@ async function _createVMGroupDeserialize(result) {
214
233
  /** Create a WorkloadNetworkVMGroup */
215
234
  function createVMGroup(context, resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, options = { requestOptions: {} }) {
216
235
  return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _createVMGroupDeserialize, ["200", "201"], {
217
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
218
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
236
+ updateIntervalInMs: options?.updateIntervalInMs,
237
+ abortSignal: options?.abortSignal,
219
238
  getInitialResponse: () => _createVMGroupSend(context, resourceGroupName, privateCloudName, vmGroupId, workloadNetworkVMGroup, options),
220
239
  resourceLocationConfig: "azure-async-operation",
221
240
  });
222
241
  }
223
242
  function _getVMGroupSend(context, resourceGroupName, privateCloudName, vmGroupId, options = { requestOptions: {} }) {
224
- var _a, _b;
225
243
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}{?api%2Dversion}", {
226
244
  subscriptionId: context.subscriptionId,
227
245
  resourceGroupName: resourceGroupName,
@@ -229,9 +247,15 @@ function _getVMGroupSend(context, resourceGroupName, privateCloudName, vmGroupId
229
247
  vmGroupId: vmGroupId,
230
248
  "api%2Dversion": context.apiVersion,
231
249
  }, {
232
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
250
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
251
+ });
252
+ return context.path(path).get({
253
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
254
+ headers: {
255
+ accept: "application/json",
256
+ ...options.requestOptions?.headers,
257
+ },
233
258
  });
234
- return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
235
259
  }
236
260
  async function _getVMGroupDeserialize(result) {
237
261
  const expectedStatuses = ["200"];
@@ -248,16 +272,21 @@ async function getVMGroup(context, resourceGroupName, privateCloudName, vmGroupI
248
272
  return _getVMGroupDeserialize(result);
249
273
  }
250
274
  function _listVMGroupsSend(context, resourceGroupName, privateCloudName, options = { requestOptions: {} }) {
251
- var _a, _b;
252
275
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups{?api%2Dversion}", {
253
276
  subscriptionId: context.subscriptionId,
254
277
  resourceGroupName: resourceGroupName,
255
278
  privateCloudName: privateCloudName,
256
279
  "api%2Dversion": context.apiVersion,
257
280
  }, {
258
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
281
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
282
+ });
283
+ return context.path(path).get({
284
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
285
+ headers: {
286
+ accept: "application/json",
287
+ ...options.requestOptions?.headers,
288
+ },
259
289
  });
260
- return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
261
290
  }
262
291
  async function _listVMGroupsDeserialize(result) {
263
292
  const expectedStatuses = ["200"];
@@ -275,7 +304,6 @@ function listVMGroups(context, resourceGroupName, privateCloudName, options = {
275
304
  function _getVirtualMachineSend(context, resourceGroupName, privateCloudName, virtualMachineId, options = {
276
305
  requestOptions: {},
277
306
  }) {
278
- var _a, _b;
279
307
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines/{virtualMachineId}{?api%2Dversion}", {
280
308
  subscriptionId: context.subscriptionId,
281
309
  resourceGroupName: resourceGroupName,
@@ -283,9 +311,15 @@ function _getVirtualMachineSend(context, resourceGroupName, privateCloudName, vi
283
311
  virtualMachineId: virtualMachineId,
284
312
  "api%2Dversion": context.apiVersion,
285
313
  }, {
286
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
314
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
315
+ });
316
+ return context.path(path).get({
317
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
318
+ headers: {
319
+ accept: "application/json",
320
+ ...options.requestOptions?.headers,
321
+ },
287
322
  });
288
- return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
289
323
  }
290
324
  async function _getVirtualMachineDeserialize(result) {
291
325
  const expectedStatuses = ["200"];
@@ -306,16 +340,21 @@ async function getVirtualMachine(context, resourceGroupName, privateCloudName, v
306
340
  function _listVirtualMachinesSend(context, resourceGroupName, privateCloudName, options = {
307
341
  requestOptions: {},
308
342
  }) {
309
- var _a, _b;
310
343
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines{?api%2Dversion}", {
311
344
  subscriptionId: context.subscriptionId,
312
345
  resourceGroupName: resourceGroupName,
313
346
  privateCloudName: privateCloudName,
314
347
  "api%2Dversion": context.apiVersion,
315
348
  }, {
316
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
349
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
350
+ });
351
+ return context.path(path).get({
352
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
353
+ headers: {
354
+ accept: "application/json",
355
+ ...options.requestOptions?.headers,
356
+ },
317
357
  });
318
- return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
319
358
  }
320
359
  async function _listVirtualMachinesDeserialize(result) {
321
360
  const expectedStatuses = ["200"];
@@ -333,7 +372,6 @@ function listVirtualMachines(context, resourceGroupName, privateCloudName, optio
333
372
  return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listVirtualMachinesSend(context, resourceGroupName, privateCloudName, options), _listVirtualMachinesDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
334
373
  }
335
374
  function _deleteSegmentSend(context, resourceGroupName, privateCloudName, segmentId, options = { requestOptions: {} }) {
336
- var _a, _b;
337
375
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}{?api%2Dversion}", {
338
376
  subscriptionId: context.subscriptionId,
339
377
  resourceGroupName: resourceGroupName,
@@ -341,9 +379,15 @@ function _deleteSegmentSend(context, resourceGroupName, privateCloudName, segmen
341
379
  segmentId: segmentId,
342
380
  "api%2Dversion": context.apiVersion,
343
381
  }, {
344
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
382
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
383
+ });
384
+ return context.path(path).delete({
385
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
386
+ headers: {
387
+ accept: "application/json",
388
+ ...options.requestOptions?.headers,
389
+ },
345
390
  });
346
- return context.path(path).delete(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
347
391
  }
348
392
  async function _deleteSegmentDeserialize(result) {
349
393
  const expectedStatuses = ["200", "202", "204"];
@@ -357,8 +401,8 @@ async function _deleteSegmentDeserialize(result) {
357
401
  /** Delete a WorkloadNetworkSegment */
358
402
  function deleteSegment(context, resourceGroupName, privateCloudName, segmentId, options = { requestOptions: {} }) {
359
403
  return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _deleteSegmentDeserialize, ["200", "202", "204"], {
360
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
361
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
404
+ updateIntervalInMs: options?.updateIntervalInMs,
405
+ abortSignal: options?.abortSignal,
362
406
  getInitialResponse: () => _deleteSegmentSend(context, resourceGroupName, privateCloudName, segmentId, options),
363
407
  resourceLocationConfig: "location",
364
408
  });
@@ -366,7 +410,6 @@ function deleteSegment(context, resourceGroupName, privateCloudName, segmentId,
366
410
  function _updateSegmentsSend(context, resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, options = {
367
411
  requestOptions: {},
368
412
  }) {
369
- var _a, _b;
370
413
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}{?api%2Dversion}", {
371
414
  subscriptionId: context.subscriptionId,
372
415
  resourceGroupName: resourceGroupName,
@@ -374,9 +417,17 @@ function _updateSegmentsSend(context, resourceGroupName, privateCloudName, segme
374
417
  segmentId: segmentId,
375
418
  "api%2Dversion": context.apiVersion,
376
419
  }, {
377
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
420
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
421
+ });
422
+ return context.path(path).patch({
423
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
424
+ contentType: "application/json",
425
+ headers: {
426
+ accept: "application/json",
427
+ ...options.requestOptions?.headers,
428
+ },
429
+ body: (0, models_js_1.workloadNetworkSegmentSerializer)(workloadNetworkSegment),
378
430
  });
379
- return context.path(path).patch(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.workloadNetworkSegmentSerializer)(workloadNetworkSegment) }));
380
431
  }
381
432
  async function _updateSegmentsDeserialize(result) {
382
433
  const expectedStatuses = ["200", "202"];
@@ -392,8 +443,8 @@ function updateSegments(context, resourceGroupName, privateCloudName, segmentId,
392
443
  requestOptions: {},
393
444
  }) {
394
445
  return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _updateSegmentsDeserialize, ["200", "202"], {
395
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
396
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
446
+ updateIntervalInMs: options?.updateIntervalInMs,
447
+ abortSignal: options?.abortSignal,
397
448
  getInitialResponse: () => _updateSegmentsSend(context, resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, options),
398
449
  resourceLocationConfig: "location",
399
450
  });
@@ -401,7 +452,6 @@ function updateSegments(context, resourceGroupName, privateCloudName, segmentId,
401
452
  function _createSegmentsSend(context, resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, options = {
402
453
  requestOptions: {},
403
454
  }) {
404
- var _a, _b;
405
455
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}{?api%2Dversion}", {
406
456
  subscriptionId: context.subscriptionId,
407
457
  resourceGroupName: resourceGroupName,
@@ -409,9 +459,17 @@ function _createSegmentsSend(context, resourceGroupName, privateCloudName, segme
409
459
  segmentId: segmentId,
410
460
  "api%2Dversion": context.apiVersion,
411
461
  }, {
412
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
462
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
463
+ });
464
+ return context.path(path).put({
465
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
466
+ contentType: "application/json",
467
+ headers: {
468
+ accept: "application/json",
469
+ ...options.requestOptions?.headers,
470
+ },
471
+ body: (0, models_js_1.workloadNetworkSegmentSerializer)(workloadNetworkSegment),
413
472
  });
414
- return context.path(path).put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.workloadNetworkSegmentSerializer)(workloadNetworkSegment) }));
415
473
  }
416
474
  async function _createSegmentsDeserialize(result) {
417
475
  const expectedStatuses = ["200", "201"];
@@ -427,14 +485,13 @@ function createSegments(context, resourceGroupName, privateCloudName, segmentId,
427
485
  requestOptions: {},
428
486
  }) {
429
487
  return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _createSegmentsDeserialize, ["200", "201"], {
430
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
431
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
488
+ updateIntervalInMs: options?.updateIntervalInMs,
489
+ abortSignal: options?.abortSignal,
432
490
  getInitialResponse: () => _createSegmentsSend(context, resourceGroupName, privateCloudName, segmentId, workloadNetworkSegment, options),
433
491
  resourceLocationConfig: "azure-async-operation",
434
492
  });
435
493
  }
436
494
  function _getSegmentSend(context, resourceGroupName, privateCloudName, segmentId, options = { requestOptions: {} }) {
437
- var _a, _b;
438
495
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}{?api%2Dversion}", {
439
496
  subscriptionId: context.subscriptionId,
440
497
  resourceGroupName: resourceGroupName,
@@ -442,9 +499,15 @@ function _getSegmentSend(context, resourceGroupName, privateCloudName, segmentId
442
499
  segmentId: segmentId,
443
500
  "api%2Dversion": context.apiVersion,
444
501
  }, {
445
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
502
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
503
+ });
504
+ return context.path(path).get({
505
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
506
+ headers: {
507
+ accept: "application/json",
508
+ ...options.requestOptions?.headers,
509
+ },
446
510
  });
447
- return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
448
511
  }
449
512
  async function _getSegmentDeserialize(result) {
450
513
  const expectedStatuses = ["200"];
@@ -461,16 +524,21 @@ async function getSegment(context, resourceGroupName, privateCloudName, segmentI
461
524
  return _getSegmentDeserialize(result);
462
525
  }
463
526
  function _listSegmentsSend(context, resourceGroupName, privateCloudName, options = { requestOptions: {} }) {
464
- var _a, _b;
465
527
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments{?api%2Dversion}", {
466
528
  subscriptionId: context.subscriptionId,
467
529
  resourceGroupName: resourceGroupName,
468
530
  privateCloudName: privateCloudName,
469
531
  "api%2Dversion": context.apiVersion,
470
532
  }, {
471
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
533
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
534
+ });
535
+ return context.path(path).get({
536
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
537
+ headers: {
538
+ accept: "application/json",
539
+ ...options.requestOptions?.headers,
540
+ },
472
541
  });
473
- return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
474
542
  }
475
543
  async function _listSegmentsDeserialize(result) {
476
544
  const expectedStatuses = ["200"];
@@ -488,7 +556,6 @@ function listSegments(context, resourceGroupName, privateCloudName, options = {
488
556
  function _deletePublicIPSend(context, resourceGroupName, publicIPId, privateCloudName, options = {
489
557
  requestOptions: {},
490
558
  }) {
491
- var _a, _b;
492
559
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}{?api%2Dversion}", {
493
560
  subscriptionId: context.subscriptionId,
494
561
  resourceGroupName: resourceGroupName,
@@ -496,9 +563,15 @@ function _deletePublicIPSend(context, resourceGroupName, publicIPId, privateClou
496
563
  privateCloudName: privateCloudName,
497
564
  "api%2Dversion": context.apiVersion,
498
565
  }, {
499
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
566
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
567
+ });
568
+ return context.path(path).delete({
569
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
570
+ headers: {
571
+ accept: "application/json",
572
+ ...options.requestOptions?.headers,
573
+ },
500
574
  });
501
- return context.path(path).delete(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
502
575
  }
503
576
  async function _deletePublicIPDeserialize(result) {
504
577
  const expectedStatuses = ["200", "202", "204"];
@@ -514,8 +587,8 @@ function deletePublicIP(context, resourceGroupName, publicIPId, privateCloudName
514
587
  requestOptions: {},
515
588
  }) {
516
589
  return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _deletePublicIPDeserialize, ["200", "202", "204"], {
517
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
518
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
590
+ updateIntervalInMs: options?.updateIntervalInMs,
591
+ abortSignal: options?.abortSignal,
519
592
  getInitialResponse: () => _deletePublicIPSend(context, resourceGroupName, publicIPId, privateCloudName, options),
520
593
  resourceLocationConfig: "location",
521
594
  });
@@ -523,7 +596,6 @@ function deletePublicIP(context, resourceGroupName, publicIPId, privateCloudName
523
596
  function _createPublicIPSend(context, resourceGroupName, privateCloudName, publicIPId, workloadNetworkPublicIP, options = {
524
597
  requestOptions: {},
525
598
  }) {
526
- var _a, _b;
527
599
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}{?api%2Dversion}", {
528
600
  subscriptionId: context.subscriptionId,
529
601
  resourceGroupName: resourceGroupName,
@@ -531,9 +603,17 @@ function _createPublicIPSend(context, resourceGroupName, privateCloudName, publi
531
603
  publicIPId: publicIPId,
532
604
  "api%2Dversion": context.apiVersion,
533
605
  }, {
534
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
606
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
607
+ });
608
+ return context.path(path).put({
609
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
610
+ contentType: "application/json",
611
+ headers: {
612
+ accept: "application/json",
613
+ ...options.requestOptions?.headers,
614
+ },
615
+ body: (0, models_js_1.workloadNetworkPublicIPSerializer)(workloadNetworkPublicIP),
535
616
  });
536
- return context.path(path).put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.workloadNetworkPublicIPSerializer)(workloadNetworkPublicIP) }));
537
617
  }
538
618
  async function _createPublicIPDeserialize(result) {
539
619
  const expectedStatuses = ["200", "201"];
@@ -549,14 +629,13 @@ function createPublicIP(context, resourceGroupName, privateCloudName, publicIPId
549
629
  requestOptions: {},
550
630
  }) {
551
631
  return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _createPublicIPDeserialize, ["200", "201"], {
552
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
553
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
632
+ updateIntervalInMs: options?.updateIntervalInMs,
633
+ abortSignal: options?.abortSignal,
554
634
  getInitialResponse: () => _createPublicIPSend(context, resourceGroupName, privateCloudName, publicIPId, workloadNetworkPublicIP, options),
555
635
  resourceLocationConfig: "azure-async-operation",
556
636
  });
557
637
  }
558
638
  function _getPublicIPSend(context, resourceGroupName, privateCloudName, publicIPId, options = { requestOptions: {} }) {
559
- var _a, _b;
560
639
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}{?api%2Dversion}", {
561
640
  subscriptionId: context.subscriptionId,
562
641
  resourceGroupName: resourceGroupName,
@@ -564,9 +643,15 @@ function _getPublicIPSend(context, resourceGroupName, privateCloudName, publicIP
564
643
  publicIPId: publicIPId,
565
644
  "api%2Dversion": context.apiVersion,
566
645
  }, {
567
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
646
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
647
+ });
648
+ return context.path(path).get({
649
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
650
+ headers: {
651
+ accept: "application/json",
652
+ ...options.requestOptions?.headers,
653
+ },
568
654
  });
569
- return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
570
655
  }
571
656
  async function _getPublicIPDeserialize(result) {
572
657
  const expectedStatuses = ["200"];
@@ -583,16 +668,21 @@ async function getPublicIP(context, resourceGroupName, privateCloudName, publicI
583
668
  return _getPublicIPDeserialize(result);
584
669
  }
585
670
  function _listPublicIPsSend(context, resourceGroupName, privateCloudName, options = { requestOptions: {} }) {
586
- var _a, _b;
587
671
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs{?api%2Dversion}", {
588
672
  subscriptionId: context.subscriptionId,
589
673
  resourceGroupName: resourceGroupName,
590
674
  privateCloudName: privateCloudName,
591
675
  "api%2Dversion": context.apiVersion,
592
676
  }, {
593
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
677
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
678
+ });
679
+ return context.path(path).get({
680
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
681
+ headers: {
682
+ accept: "application/json",
683
+ ...options.requestOptions?.headers,
684
+ },
594
685
  });
595
- return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
596
686
  }
597
687
  async function _listPublicIPsDeserialize(result) {
598
688
  const expectedStatuses = ["200"];
@@ -610,7 +700,6 @@ function listPublicIPs(context, resourceGroupName, privateCloudName, options = {
610
700
  function _deletePortMirroringSend(context, resourceGroupName, portMirroringId, privateCloudName, options = {
611
701
  requestOptions: {},
612
702
  }) {
613
- var _a, _b;
614
703
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}{?api%2Dversion}", {
615
704
  subscriptionId: context.subscriptionId,
616
705
  resourceGroupName: resourceGroupName,
@@ -618,9 +707,15 @@ function _deletePortMirroringSend(context, resourceGroupName, portMirroringId, p
618
707
  privateCloudName: privateCloudName,
619
708
  "api%2Dversion": context.apiVersion,
620
709
  }, {
621
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
710
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
711
+ });
712
+ return context.path(path).delete({
713
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
714
+ headers: {
715
+ accept: "application/json",
716
+ ...options.requestOptions?.headers,
717
+ },
622
718
  });
623
- return context.path(path).delete(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
624
719
  }
625
720
  async function _deletePortMirroringDeserialize(result) {
626
721
  const expectedStatuses = ["200", "202", "204"];
@@ -636,8 +731,8 @@ function deletePortMirroring(context, resourceGroupName, portMirroringId, privat
636
731
  requestOptions: {},
637
732
  }) {
638
733
  return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _deletePortMirroringDeserialize, ["200", "202", "204"], {
639
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
640
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
734
+ updateIntervalInMs: options?.updateIntervalInMs,
735
+ abortSignal: options?.abortSignal,
641
736
  getInitialResponse: () => _deletePortMirroringSend(context, resourceGroupName, portMirroringId, privateCloudName, options),
642
737
  resourceLocationConfig: "location",
643
738
  });
@@ -645,7 +740,6 @@ function deletePortMirroring(context, resourceGroupName, portMirroringId, privat
645
740
  function _updatePortMirroringSend(context, resourceGroupName, privateCloudName, portMirroringId, workloadNetworkPortMirroring, options = {
646
741
  requestOptions: {},
647
742
  }) {
648
- var _a, _b;
649
743
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}{?api%2Dversion}", {
650
744
  subscriptionId: context.subscriptionId,
651
745
  resourceGroupName: resourceGroupName,
@@ -653,9 +747,17 @@ function _updatePortMirroringSend(context, resourceGroupName, privateCloudName,
653
747
  portMirroringId: portMirroringId,
654
748
  "api%2Dversion": context.apiVersion,
655
749
  }, {
656
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
750
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
751
+ });
752
+ return context.path(path).patch({
753
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
754
+ contentType: "application/json",
755
+ headers: {
756
+ accept: "application/json",
757
+ ...options.requestOptions?.headers,
758
+ },
759
+ body: (0, models_js_1.workloadNetworkPortMirroringSerializer)(workloadNetworkPortMirroring),
657
760
  });
658
- return context.path(path).patch(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.workloadNetworkPortMirroringSerializer)(workloadNetworkPortMirroring) }));
659
761
  }
660
762
  async function _updatePortMirroringDeserialize(result) {
661
763
  const expectedStatuses = ["200", "202"];
@@ -671,8 +773,8 @@ function updatePortMirroring(context, resourceGroupName, privateCloudName, portM
671
773
  requestOptions: {},
672
774
  }) {
673
775
  return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _updatePortMirroringDeserialize, ["200", "202"], {
674
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
675
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
776
+ updateIntervalInMs: options?.updateIntervalInMs,
777
+ abortSignal: options?.abortSignal,
676
778
  getInitialResponse: () => _updatePortMirroringSend(context, resourceGroupName, privateCloudName, portMirroringId, workloadNetworkPortMirroring, options),
677
779
  resourceLocationConfig: "location",
678
780
  });
@@ -680,7 +782,6 @@ function updatePortMirroring(context, resourceGroupName, privateCloudName, portM
680
782
  function _createPortMirroringSend(context, resourceGroupName, privateCloudName, portMirroringId, workloadNetworkPortMirroring, options = {
681
783
  requestOptions: {},
682
784
  }) {
683
- var _a, _b;
684
785
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}{?api%2Dversion}", {
685
786
  subscriptionId: context.subscriptionId,
686
787
  resourceGroupName: resourceGroupName,
@@ -688,9 +789,17 @@ function _createPortMirroringSend(context, resourceGroupName, privateCloudName,
688
789
  portMirroringId: portMirroringId,
689
790
  "api%2Dversion": context.apiVersion,
690
791
  }, {
691
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
792
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
793
+ });
794
+ return context.path(path).put({
795
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
796
+ contentType: "application/json",
797
+ headers: {
798
+ accept: "application/json",
799
+ ...options.requestOptions?.headers,
800
+ },
801
+ body: (0, models_js_1.workloadNetworkPortMirroringSerializer)(workloadNetworkPortMirroring),
692
802
  });
693
- return context.path(path).put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.workloadNetworkPortMirroringSerializer)(workloadNetworkPortMirroring) }));
694
803
  }
695
804
  async function _createPortMirroringDeserialize(result) {
696
805
  const expectedStatuses = ["200", "201"];
@@ -706,8 +815,8 @@ function createPortMirroring(context, resourceGroupName, privateCloudName, portM
706
815
  requestOptions: {},
707
816
  }) {
708
817
  return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _createPortMirroringDeserialize, ["200", "201"], {
709
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
710
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
818
+ updateIntervalInMs: options?.updateIntervalInMs,
819
+ abortSignal: options?.abortSignal,
711
820
  getInitialResponse: () => _createPortMirroringSend(context, resourceGroupName, privateCloudName, portMirroringId, workloadNetworkPortMirroring, options),
712
821
  resourceLocationConfig: "azure-async-operation",
713
822
  });
@@ -715,7 +824,6 @@ function createPortMirroring(context, resourceGroupName, privateCloudName, portM
715
824
  function _getPortMirroringSend(context, resourceGroupName, privateCloudName, portMirroringId, options = {
716
825
  requestOptions: {},
717
826
  }) {
718
- var _a, _b;
719
827
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}{?api%2Dversion}", {
720
828
  subscriptionId: context.subscriptionId,
721
829
  resourceGroupName: resourceGroupName,
@@ -723,9 +831,15 @@ function _getPortMirroringSend(context, resourceGroupName, privateCloudName, por
723
831
  portMirroringId: portMirroringId,
724
832
  "api%2Dversion": context.apiVersion,
725
833
  }, {
726
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
834
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
835
+ });
836
+ return context.path(path).get({
837
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
838
+ headers: {
839
+ accept: "application/json",
840
+ ...options.requestOptions?.headers,
841
+ },
727
842
  });
728
- return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
729
843
  }
730
844
  async function _getPortMirroringDeserialize(result) {
731
845
  const expectedStatuses = ["200"];
@@ -746,16 +860,21 @@ async function getPortMirroring(context, resourceGroupName, privateCloudName, po
746
860
  function _listPortMirroringSend(context, resourceGroupName, privateCloudName, options = {
747
861
  requestOptions: {},
748
862
  }) {
749
- var _a, _b;
750
863
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles{?api%2Dversion}", {
751
864
  subscriptionId: context.subscriptionId,
752
865
  resourceGroupName: resourceGroupName,
753
866
  privateCloudName: privateCloudName,
754
867
  "api%2Dversion": context.apiVersion,
755
868
  }, {
756
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
869
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
870
+ });
871
+ return context.path(path).get({
872
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
873
+ headers: {
874
+ accept: "application/json",
875
+ ...options.requestOptions?.headers,
876
+ },
757
877
  });
758
- return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
759
878
  }
760
879
  async function _listPortMirroringDeserialize(result) {
761
880
  const expectedStatuses = ["200"];
@@ -773,7 +892,6 @@ function listPortMirroring(context, resourceGroupName, privateCloudName, options
773
892
  return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listPortMirroringSend(context, resourceGroupName, privateCloudName, options), _listPortMirroringDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
774
893
  }
775
894
  function _getGatewaySend(context, resourceGroupName, privateCloudName, gatewayId, options = { requestOptions: {} }) {
776
- var _a, _b;
777
895
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId}{?api%2Dversion}", {
778
896
  subscriptionId: context.subscriptionId,
779
897
  resourceGroupName: resourceGroupName,
@@ -781,9 +899,15 @@ function _getGatewaySend(context, resourceGroupName, privateCloudName, gatewayId
781
899
  gatewayId: gatewayId,
782
900
  "api%2Dversion": context.apiVersion,
783
901
  }, {
784
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
902
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
903
+ });
904
+ return context.path(path).get({
905
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
906
+ headers: {
907
+ accept: "application/json",
908
+ ...options.requestOptions?.headers,
909
+ },
785
910
  });
786
- return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
787
911
  }
788
912
  async function _getGatewayDeserialize(result) {
789
913
  const expectedStatuses = ["200"];
@@ -800,16 +924,21 @@ async function getGateway(context, resourceGroupName, privateCloudName, gatewayI
800
924
  return _getGatewayDeserialize(result);
801
925
  }
802
926
  function _listGatewaysSend(context, resourceGroupName, privateCloudName, options = { requestOptions: {} }) {
803
- var _a, _b;
804
927
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways{?api%2Dversion}", {
805
928
  subscriptionId: context.subscriptionId,
806
929
  resourceGroupName: resourceGroupName,
807
930
  privateCloudName: privateCloudName,
808
931
  "api%2Dversion": context.apiVersion,
809
932
  }, {
810
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
933
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
934
+ });
935
+ return context.path(path).get({
936
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
937
+ headers: {
938
+ accept: "application/json",
939
+ ...options.requestOptions?.headers,
940
+ },
811
941
  });
812
- return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
813
942
  }
814
943
  async function _listGatewaysDeserialize(result) {
815
944
  const expectedStatuses = ["200"];
@@ -825,7 +954,6 @@ function listGateways(context, resourceGroupName, privateCloudName, options = {
825
954
  return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listGatewaysSend(context, resourceGroupName, privateCloudName, options), _listGatewaysDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
826
955
  }
827
956
  function _deleteDnsZoneSend(context, resourceGroupName, dnsZoneId, privateCloudName, options = { requestOptions: {} }) {
828
- var _a, _b;
829
957
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}{?api%2Dversion}", {
830
958
  subscriptionId: context.subscriptionId,
831
959
  resourceGroupName: resourceGroupName,
@@ -833,9 +961,15 @@ function _deleteDnsZoneSend(context, resourceGroupName, dnsZoneId, privateCloudN
833
961
  privateCloudName: privateCloudName,
834
962
  "api%2Dversion": context.apiVersion,
835
963
  }, {
836
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
964
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
965
+ });
966
+ return context.path(path).delete({
967
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
968
+ headers: {
969
+ accept: "application/json",
970
+ ...options.requestOptions?.headers,
971
+ },
837
972
  });
838
- return context.path(path).delete(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
839
973
  }
840
974
  async function _deleteDnsZoneDeserialize(result) {
841
975
  const expectedStatuses = ["200", "202", "204"];
@@ -849,14 +983,13 @@ async function _deleteDnsZoneDeserialize(result) {
849
983
  /** Delete a WorkloadNetworkDnsZone */
850
984
  function deleteDnsZone(context, resourceGroupName, dnsZoneId, privateCloudName, options = { requestOptions: {} }) {
851
985
  return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _deleteDnsZoneDeserialize, ["200", "202", "204"], {
852
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
853
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
986
+ updateIntervalInMs: options?.updateIntervalInMs,
987
+ abortSignal: options?.abortSignal,
854
988
  getInitialResponse: () => _deleteDnsZoneSend(context, resourceGroupName, dnsZoneId, privateCloudName, options),
855
989
  resourceLocationConfig: "location",
856
990
  });
857
991
  }
858
992
  function _updateDnsZoneSend(context, resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, options = { requestOptions: {} }) {
859
- var _a, _b;
860
993
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}{?api%2Dversion}", {
861
994
  subscriptionId: context.subscriptionId,
862
995
  resourceGroupName: resourceGroupName,
@@ -864,9 +997,17 @@ function _updateDnsZoneSend(context, resourceGroupName, privateCloudName, dnsZon
864
997
  dnsZoneId: dnsZoneId,
865
998
  "api%2Dversion": context.apiVersion,
866
999
  }, {
867
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
1000
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
1001
+ });
1002
+ return context.path(path).patch({
1003
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
1004
+ contentType: "application/json",
1005
+ headers: {
1006
+ accept: "application/json",
1007
+ ...options.requestOptions?.headers,
1008
+ },
1009
+ body: (0, models_js_1.workloadNetworkDnsZoneSerializer)(workloadNetworkDnsZone),
868
1010
  });
869
- return context.path(path).patch(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.workloadNetworkDnsZoneSerializer)(workloadNetworkDnsZone) }));
870
1011
  }
871
1012
  async function _updateDnsZoneDeserialize(result) {
872
1013
  const expectedStatuses = ["200", "202"];
@@ -880,14 +1021,13 @@ async function _updateDnsZoneDeserialize(result) {
880
1021
  /** Update a WorkloadNetworkDnsZone */
881
1022
  function updateDnsZone(context, resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, options = { requestOptions: {} }) {
882
1023
  return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _updateDnsZoneDeserialize, ["200", "202"], {
883
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
884
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
1024
+ updateIntervalInMs: options?.updateIntervalInMs,
1025
+ abortSignal: options?.abortSignal,
885
1026
  getInitialResponse: () => _updateDnsZoneSend(context, resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, options),
886
1027
  resourceLocationConfig: "location",
887
1028
  });
888
1029
  }
889
1030
  function _createDnsZoneSend(context, resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, options = { requestOptions: {} }) {
890
- var _a, _b;
891
1031
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}{?api%2Dversion}", {
892
1032
  subscriptionId: context.subscriptionId,
893
1033
  resourceGroupName: resourceGroupName,
@@ -895,9 +1035,17 @@ function _createDnsZoneSend(context, resourceGroupName, privateCloudName, dnsZon
895
1035
  dnsZoneId: dnsZoneId,
896
1036
  "api%2Dversion": context.apiVersion,
897
1037
  }, {
898
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
1038
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
1039
+ });
1040
+ return context.path(path).put({
1041
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
1042
+ contentType: "application/json",
1043
+ headers: {
1044
+ accept: "application/json",
1045
+ ...options.requestOptions?.headers,
1046
+ },
1047
+ body: (0, models_js_1.workloadNetworkDnsZoneSerializer)(workloadNetworkDnsZone),
899
1048
  });
900
- return context.path(path).put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.workloadNetworkDnsZoneSerializer)(workloadNetworkDnsZone) }));
901
1049
  }
902
1050
  async function _createDnsZoneDeserialize(result) {
903
1051
  const expectedStatuses = ["200", "201"];
@@ -911,14 +1059,13 @@ async function _createDnsZoneDeserialize(result) {
911
1059
  /** Create a WorkloadNetworkDnsZone */
912
1060
  function createDnsZone(context, resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, options = { requestOptions: {} }) {
913
1061
  return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _createDnsZoneDeserialize, ["200", "201"], {
914
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
915
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
1062
+ updateIntervalInMs: options?.updateIntervalInMs,
1063
+ abortSignal: options?.abortSignal,
916
1064
  getInitialResponse: () => _createDnsZoneSend(context, resourceGroupName, privateCloudName, dnsZoneId, workloadNetworkDnsZone, options),
917
1065
  resourceLocationConfig: "azure-async-operation",
918
1066
  });
919
1067
  }
920
1068
  function _getDnsZoneSend(context, resourceGroupName, privateCloudName, dnsZoneId, options = { requestOptions: {} }) {
921
- var _a, _b;
922
1069
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}{?api%2Dversion}", {
923
1070
  subscriptionId: context.subscriptionId,
924
1071
  resourceGroupName: resourceGroupName,
@@ -926,9 +1073,15 @@ function _getDnsZoneSend(context, resourceGroupName, privateCloudName, dnsZoneId
926
1073
  dnsZoneId: dnsZoneId,
927
1074
  "api%2Dversion": context.apiVersion,
928
1075
  }, {
929
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
1076
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
1077
+ });
1078
+ return context.path(path).get({
1079
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
1080
+ headers: {
1081
+ accept: "application/json",
1082
+ ...options.requestOptions?.headers,
1083
+ },
930
1084
  });
931
- return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
932
1085
  }
933
1086
  async function _getDnsZoneDeserialize(result) {
934
1087
  const expectedStatuses = ["200"];
@@ -945,16 +1098,21 @@ async function getDnsZone(context, resourceGroupName, privateCloudName, dnsZoneI
945
1098
  return _getDnsZoneDeserialize(result);
946
1099
  }
947
1100
  function _listDnsZonesSend(context, resourceGroupName, privateCloudName, options = { requestOptions: {} }) {
948
- var _a, _b;
949
1101
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones{?api%2Dversion}", {
950
1102
  subscriptionId: context.subscriptionId,
951
1103
  resourceGroupName: resourceGroupName,
952
1104
  privateCloudName: privateCloudName,
953
1105
  "api%2Dversion": context.apiVersion,
954
1106
  }, {
955
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
1107
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
1108
+ });
1109
+ return context.path(path).get({
1110
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
1111
+ headers: {
1112
+ accept: "application/json",
1113
+ ...options.requestOptions?.headers,
1114
+ },
956
1115
  });
957
- return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
958
1116
  }
959
1117
  async function _listDnsZonesDeserialize(result) {
960
1118
  const expectedStatuses = ["200"];
@@ -972,7 +1130,6 @@ function listDnsZones(context, resourceGroupName, privateCloudName, options = {
972
1130
  function _deleteDnsServiceSend(context, resourceGroupName, dnsServiceId, privateCloudName, options = {
973
1131
  requestOptions: {},
974
1132
  }) {
975
- var _a, _b;
976
1133
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}{?api%2Dversion}", {
977
1134
  subscriptionId: context.subscriptionId,
978
1135
  resourceGroupName: resourceGroupName,
@@ -980,9 +1137,15 @@ function _deleteDnsServiceSend(context, resourceGroupName, dnsServiceId, private
980
1137
  privateCloudName: privateCloudName,
981
1138
  "api%2Dversion": context.apiVersion,
982
1139
  }, {
983
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
1140
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
1141
+ });
1142
+ return context.path(path).delete({
1143
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
1144
+ headers: {
1145
+ accept: "application/json",
1146
+ ...options.requestOptions?.headers,
1147
+ },
984
1148
  });
985
- return context.path(path).delete(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
986
1149
  }
987
1150
  async function _deleteDnsServiceDeserialize(result) {
988
1151
  const expectedStatuses = ["200", "202", "204"];
@@ -998,8 +1161,8 @@ function deleteDnsService(context, resourceGroupName, dnsServiceId, privateCloud
998
1161
  requestOptions: {},
999
1162
  }) {
1000
1163
  return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _deleteDnsServiceDeserialize, ["200", "202", "204"], {
1001
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1002
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
1164
+ updateIntervalInMs: options?.updateIntervalInMs,
1165
+ abortSignal: options?.abortSignal,
1003
1166
  getInitialResponse: () => _deleteDnsServiceSend(context, resourceGroupName, dnsServiceId, privateCloudName, options),
1004
1167
  resourceLocationConfig: "location",
1005
1168
  });
@@ -1007,7 +1170,6 @@ function deleteDnsService(context, resourceGroupName, dnsServiceId, privateCloud
1007
1170
  function _updateDnsServiceSend(context, resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, options = {
1008
1171
  requestOptions: {},
1009
1172
  }) {
1010
- var _a, _b;
1011
1173
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}{?api%2Dversion}", {
1012
1174
  subscriptionId: context.subscriptionId,
1013
1175
  resourceGroupName: resourceGroupName,
@@ -1015,9 +1177,17 @@ function _updateDnsServiceSend(context, resourceGroupName, privateCloudName, dns
1015
1177
  dnsServiceId: dnsServiceId,
1016
1178
  "api%2Dversion": context.apiVersion,
1017
1179
  }, {
1018
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
1180
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
1181
+ });
1182
+ return context.path(path).patch({
1183
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
1184
+ contentType: "application/json",
1185
+ headers: {
1186
+ accept: "application/json",
1187
+ ...options.requestOptions?.headers,
1188
+ },
1189
+ body: (0, models_js_1.workloadNetworkDnsServiceSerializer)(workloadNetworkDnsService),
1019
1190
  });
1020
- return context.path(path).patch(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.workloadNetworkDnsServiceSerializer)(workloadNetworkDnsService) }));
1021
1191
  }
1022
1192
  async function _updateDnsServiceDeserialize(result) {
1023
1193
  const expectedStatuses = ["200", "202"];
@@ -1033,8 +1203,8 @@ function updateDnsService(context, resourceGroupName, privateCloudName, dnsServi
1033
1203
  requestOptions: {},
1034
1204
  }) {
1035
1205
  return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _updateDnsServiceDeserialize, ["200", "202"], {
1036
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1037
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
1206
+ updateIntervalInMs: options?.updateIntervalInMs,
1207
+ abortSignal: options?.abortSignal,
1038
1208
  getInitialResponse: () => _updateDnsServiceSend(context, resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, options),
1039
1209
  resourceLocationConfig: "location",
1040
1210
  });
@@ -1042,7 +1212,6 @@ function updateDnsService(context, resourceGroupName, privateCloudName, dnsServi
1042
1212
  function _createDnsServiceSend(context, resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, options = {
1043
1213
  requestOptions: {},
1044
1214
  }) {
1045
- var _a, _b;
1046
1215
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}{?api%2Dversion}", {
1047
1216
  subscriptionId: context.subscriptionId,
1048
1217
  resourceGroupName: resourceGroupName,
@@ -1050,9 +1219,17 @@ function _createDnsServiceSend(context, resourceGroupName, privateCloudName, dns
1050
1219
  dnsServiceId: dnsServiceId,
1051
1220
  "api%2Dversion": context.apiVersion,
1052
1221
  }, {
1053
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
1222
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
1223
+ });
1224
+ return context.path(path).put({
1225
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
1226
+ contentType: "application/json",
1227
+ headers: {
1228
+ accept: "application/json",
1229
+ ...options.requestOptions?.headers,
1230
+ },
1231
+ body: (0, models_js_1.workloadNetworkDnsServiceSerializer)(workloadNetworkDnsService),
1054
1232
  });
1055
- return context.path(path).put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.workloadNetworkDnsServiceSerializer)(workloadNetworkDnsService) }));
1056
1233
  }
1057
1234
  async function _createDnsServiceDeserialize(result) {
1058
1235
  const expectedStatuses = ["200", "201"];
@@ -1068,14 +1245,13 @@ function createDnsService(context, resourceGroupName, privateCloudName, dnsServi
1068
1245
  requestOptions: {},
1069
1246
  }) {
1070
1247
  return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _createDnsServiceDeserialize, ["200", "201"], {
1071
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1072
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
1248
+ updateIntervalInMs: options?.updateIntervalInMs,
1249
+ abortSignal: options?.abortSignal,
1073
1250
  getInitialResponse: () => _createDnsServiceSend(context, resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsService, options),
1074
1251
  resourceLocationConfig: "azure-async-operation",
1075
1252
  });
1076
1253
  }
1077
1254
  function _getDnsServiceSend(context, resourceGroupName, privateCloudName, dnsServiceId, options = { requestOptions: {} }) {
1078
- var _a, _b;
1079
1255
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}{?api%2Dversion}", {
1080
1256
  subscriptionId: context.subscriptionId,
1081
1257
  resourceGroupName: resourceGroupName,
@@ -1083,9 +1259,15 @@ function _getDnsServiceSend(context, resourceGroupName, privateCloudName, dnsSer
1083
1259
  dnsServiceId: dnsServiceId,
1084
1260
  "api%2Dversion": context.apiVersion,
1085
1261
  }, {
1086
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
1262
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
1263
+ });
1264
+ return context.path(path).get({
1265
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
1266
+ headers: {
1267
+ accept: "application/json",
1268
+ ...options.requestOptions?.headers,
1269
+ },
1087
1270
  });
1088
- return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
1089
1271
  }
1090
1272
  async function _getDnsServiceDeserialize(result) {
1091
1273
  const expectedStatuses = ["200"];
@@ -1104,16 +1286,21 @@ async function getDnsService(context, resourceGroupName, privateCloudName, dnsSe
1104
1286
  function _listDnsServicesSend(context, resourceGroupName, privateCloudName, options = {
1105
1287
  requestOptions: {},
1106
1288
  }) {
1107
- var _a, _b;
1108
1289
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices{?api%2Dversion}", {
1109
1290
  subscriptionId: context.subscriptionId,
1110
1291
  resourceGroupName: resourceGroupName,
1111
1292
  privateCloudName: privateCloudName,
1112
1293
  "api%2Dversion": context.apiVersion,
1113
1294
  }, {
1114
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
1295
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
1296
+ });
1297
+ return context.path(path).get({
1298
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
1299
+ headers: {
1300
+ accept: "application/json",
1301
+ ...options.requestOptions?.headers,
1302
+ },
1115
1303
  });
1116
- return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
1117
1304
  }
1118
1305
  async function _listDnsServicesDeserialize(result) {
1119
1306
  const expectedStatuses = ["200"];
@@ -1131,7 +1318,6 @@ function listDnsServices(context, resourceGroupName, privateCloudName, options =
1131
1318
  return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listDnsServicesSend(context, resourceGroupName, privateCloudName, options), _listDnsServicesDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
1132
1319
  }
1133
1320
  function _deleteDhcpSend(context, resourceGroupName, privateCloudName, dhcpId, options = { requestOptions: {} }) {
1134
- var _a, _b;
1135
1321
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}{?api%2Dversion}", {
1136
1322
  subscriptionId: context.subscriptionId,
1137
1323
  resourceGroupName: resourceGroupName,
@@ -1139,9 +1325,15 @@ function _deleteDhcpSend(context, resourceGroupName, privateCloudName, dhcpId, o
1139
1325
  dhcpId: dhcpId,
1140
1326
  "api%2Dversion": context.apiVersion,
1141
1327
  }, {
1142
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
1328
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
1329
+ });
1330
+ return context.path(path).delete({
1331
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
1332
+ headers: {
1333
+ accept: "application/json",
1334
+ ...options.requestOptions?.headers,
1335
+ },
1143
1336
  });
1144
- return context.path(path).delete(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
1145
1337
  }
1146
1338
  async function _deleteDhcpDeserialize(result) {
1147
1339
  const expectedStatuses = ["200", "202", "204"];
@@ -1155,14 +1347,13 @@ async function _deleteDhcpDeserialize(result) {
1155
1347
  /** Delete a WorkloadNetworkDhcp */
1156
1348
  function deleteDhcp(context, resourceGroupName, privateCloudName, dhcpId, options = { requestOptions: {} }) {
1157
1349
  return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _deleteDhcpDeserialize, ["200", "202", "204"], {
1158
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1159
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
1350
+ updateIntervalInMs: options?.updateIntervalInMs,
1351
+ abortSignal: options?.abortSignal,
1160
1352
  getInitialResponse: () => _deleteDhcpSend(context, resourceGroupName, privateCloudName, dhcpId, options),
1161
1353
  resourceLocationConfig: "location",
1162
1354
  });
1163
1355
  }
1164
1356
  function _updateDhcpSend(context, resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, options = { requestOptions: {} }) {
1165
- var _a, _b;
1166
1357
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}{?api%2Dversion}", {
1167
1358
  subscriptionId: context.subscriptionId,
1168
1359
  resourceGroupName: resourceGroupName,
@@ -1170,9 +1361,17 @@ function _updateDhcpSend(context, resourceGroupName, privateCloudName, dhcpId, w
1170
1361
  dhcpId: dhcpId,
1171
1362
  "api%2Dversion": context.apiVersion,
1172
1363
  }, {
1173
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
1364
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
1365
+ });
1366
+ return context.path(path).patch({
1367
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
1368
+ contentType: "application/json",
1369
+ headers: {
1370
+ accept: "application/json",
1371
+ ...options.requestOptions?.headers,
1372
+ },
1373
+ body: (0, models_js_1.workloadNetworkDhcpSerializer)(workloadNetworkDhcp),
1174
1374
  });
1175
- return context.path(path).patch(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.workloadNetworkDhcpSerializer)(workloadNetworkDhcp) }));
1176
1375
  }
1177
1376
  async function _updateDhcpDeserialize(result) {
1178
1377
  const expectedStatuses = ["200", "202"];
@@ -1186,14 +1385,13 @@ async function _updateDhcpDeserialize(result) {
1186
1385
  /** Update a WorkloadNetworkDhcp */
1187
1386
  function updateDhcp(context, resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, options = { requestOptions: {} }) {
1188
1387
  return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _updateDhcpDeserialize, ["200", "202"], {
1189
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1190
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
1388
+ updateIntervalInMs: options?.updateIntervalInMs,
1389
+ abortSignal: options?.abortSignal,
1191
1390
  getInitialResponse: () => _updateDhcpSend(context, resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, options),
1192
1391
  resourceLocationConfig: "location",
1193
1392
  });
1194
1393
  }
1195
1394
  function _createDhcpSend(context, resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, options = { requestOptions: {} }) {
1196
- var _a, _b;
1197
1395
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}{?api%2Dversion}", {
1198
1396
  subscriptionId: context.subscriptionId,
1199
1397
  resourceGroupName: resourceGroupName,
@@ -1201,9 +1399,17 @@ function _createDhcpSend(context, resourceGroupName, privateCloudName, dhcpId, w
1201
1399
  dhcpId: dhcpId,
1202
1400
  "api%2Dversion": context.apiVersion,
1203
1401
  }, {
1204
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
1402
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
1403
+ });
1404
+ return context.path(path).put({
1405
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
1406
+ contentType: "application/json",
1407
+ headers: {
1408
+ accept: "application/json",
1409
+ ...options.requestOptions?.headers,
1410
+ },
1411
+ body: (0, models_js_1.workloadNetworkDhcpSerializer)(workloadNetworkDhcp),
1205
1412
  });
1206
- return context.path(path).put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.workloadNetworkDhcpSerializer)(workloadNetworkDhcp) }));
1207
1413
  }
1208
1414
  async function _createDhcpDeserialize(result) {
1209
1415
  const expectedStatuses = ["200", "201"];
@@ -1217,14 +1423,13 @@ async function _createDhcpDeserialize(result) {
1217
1423
  /** Create a WorkloadNetworkDhcp */
1218
1424
  function createDhcp(context, resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, options = { requestOptions: {} }) {
1219
1425
  return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _createDhcpDeserialize, ["200", "201"], {
1220
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1221
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
1426
+ updateIntervalInMs: options?.updateIntervalInMs,
1427
+ abortSignal: options?.abortSignal,
1222
1428
  getInitialResponse: () => _createDhcpSend(context, resourceGroupName, privateCloudName, dhcpId, workloadNetworkDhcp, options),
1223
1429
  resourceLocationConfig: "azure-async-operation",
1224
1430
  });
1225
1431
  }
1226
1432
  function _getDhcpSend(context, resourceGroupName, dhcpId, privateCloudName, options = { requestOptions: {} }) {
1227
- var _a, _b;
1228
1433
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}{?api%2Dversion}", {
1229
1434
  subscriptionId: context.subscriptionId,
1230
1435
  resourceGroupName: resourceGroupName,
@@ -1232,9 +1437,15 @@ function _getDhcpSend(context, resourceGroupName, dhcpId, privateCloudName, opti
1232
1437
  privateCloudName: privateCloudName,
1233
1438
  "api%2Dversion": context.apiVersion,
1234
1439
  }, {
1235
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
1440
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
1441
+ });
1442
+ return context.path(path).get({
1443
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
1444
+ headers: {
1445
+ accept: "application/json",
1446
+ ...options.requestOptions?.headers,
1447
+ },
1236
1448
  });
1237
- return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
1238
1449
  }
1239
1450
  async function _getDhcpDeserialize(result) {
1240
1451
  const expectedStatuses = ["200"];
@@ -1251,16 +1462,21 @@ async function getDhcp(context, resourceGroupName, dhcpId, privateCloudName, opt
1251
1462
  return _getDhcpDeserialize(result);
1252
1463
  }
1253
1464
  function _listDhcpSend(context, resourceGroupName, privateCloudName, options = { requestOptions: {} }) {
1254
- var _a, _b;
1255
1465
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations{?api%2Dversion}", {
1256
1466
  subscriptionId: context.subscriptionId,
1257
1467
  resourceGroupName: resourceGroupName,
1258
1468
  privateCloudName: privateCloudName,
1259
1469
  "api%2Dversion": context.apiVersion,
1260
1470
  }, {
1261
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
1471
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
1472
+ });
1473
+ return context.path(path).get({
1474
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
1475
+ headers: {
1476
+ accept: "application/json",
1477
+ ...options.requestOptions?.headers,
1478
+ },
1262
1479
  });
1263
- return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
1264
1480
  }
1265
1481
  async function _listDhcpDeserialize(result) {
1266
1482
  const expectedStatuses = ["200"];
@@ -1276,16 +1492,21 @@ function listDhcp(context, resourceGroupName, privateCloudName, options = { requ
1276
1492
  return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listDhcpSend(context, resourceGroupName, privateCloudName, options), _listDhcpDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
1277
1493
  }
1278
1494
  function _getSend(context, resourceGroupName, privateCloudName, options = { requestOptions: {} }) {
1279
- var _a, _b;
1280
1495
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default{?api%2Dversion}", {
1281
1496
  subscriptionId: context.subscriptionId,
1282
1497
  resourceGroupName: resourceGroupName,
1283
1498
  privateCloudName: privateCloudName,
1284
1499
  "api%2Dversion": context.apiVersion,
1285
1500
  }, {
1286
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
1501
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
1502
+ });
1503
+ return context.path(path).get({
1504
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
1505
+ headers: {
1506
+ accept: "application/json",
1507
+ ...options.requestOptions?.headers,
1508
+ },
1287
1509
  });
1288
- return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
1289
1510
  }
1290
1511
  async function _getDeserialize(result) {
1291
1512
  const expectedStatuses = ["200"];
@@ -1302,16 +1523,21 @@ async function get(context, resourceGroupName, privateCloudName, options = { req
1302
1523
  return _getDeserialize(result);
1303
1524
  }
1304
1525
  function _listSend(context, resourceGroupName, privateCloudName, options = { requestOptions: {} }) {
1305
- var _a, _b;
1306
1526
  const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks{?api%2Dversion}", {
1307
1527
  subscriptionId: context.subscriptionId,
1308
1528
  resourceGroupName: resourceGroupName,
1309
1529
  privateCloudName: privateCloudName,
1310
1530
  "api%2Dversion": context.apiVersion,
1311
1531
  }, {
1312
- allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
1532
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
1533
+ });
1534
+ return context.path(path).get({
1535
+ ...(0, core_client_1.operationOptionsToRequestParameters)(options),
1536
+ headers: {
1537
+ accept: "application/json",
1538
+ ...options.requestOptions?.headers,
1539
+ },
1313
1540
  });
1314
- return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
1315
1541
  }
1316
1542
  async function _listDeserialize(result) {
1317
1543
  const expectedStatuses = ["200"];