@azure/arm-privatedns 3.3.1-alpha.20250218.1 → 3.3.1-alpha.20250219.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 (363) hide show
  1. package/README.md +21 -12
  2. package/dist/browser/index.d.ts +5 -0
  3. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  4. package/{dist-esm/src → dist/browser}/index.js +4 -4
  5. package/dist/browser/index.js.map +1 -0
  6. package/dist/browser/lroImpl.js.map +1 -0
  7. package/dist/browser/models/index.js.map +1 -0
  8. package/dist/browser/models/mappers.js.map +1 -0
  9. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  10. package/dist/browser/models/parameters.js.map +1 -0
  11. package/dist/browser/operations/index.d.ts +4 -0
  12. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  13. package/{dist-esm/src → dist/browser}/operations/index.js +3 -3
  14. package/dist/browser/operations/index.js.map +1 -0
  15. package/{dist-esm/src → dist/browser}/operations/privateZones.d.ts +3 -3
  16. package/dist/browser/operations/privateZones.d.ts.map +1 -0
  17. package/{dist-esm/src → dist/browser}/operations/privateZones.js +113 -125
  18. package/dist/browser/operations/privateZones.js.map +1 -0
  19. package/{dist-esm/src → dist/browser}/operations/recordSets.d.ts +3 -3
  20. package/dist/browser/operations/recordSets.d.ts.map +1 -0
  21. package/{dist-esm/src → dist/browser}/operations/recordSets.js +3 -3
  22. package/dist/browser/operations/recordSets.js.map +1 -0
  23. package/{dist-esm/src → dist/browser}/operations/virtualNetworkLinks.d.ts +3 -3
  24. package/dist/browser/operations/virtualNetworkLinks.d.ts.map +1 -0
  25. package/{dist-esm/src → dist/browser}/operations/virtualNetworkLinks.js +127 -139
  26. package/dist/browser/operations/virtualNetworkLinks.js.map +1 -0
  27. package/dist/browser/operationsInterfaces/index.d.ts +4 -0
  28. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  29. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +3 -3
  30. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  31. package/{dist-esm/src → dist/browser}/operationsInterfaces/privateZones.d.ts +1 -1
  32. package/dist/browser/operationsInterfaces/privateZones.d.ts.map +1 -0
  33. package/dist/browser/operationsInterfaces/privateZones.js.map +1 -0
  34. package/{dist-esm/src → dist/browser}/operationsInterfaces/recordSets.d.ts +1 -1
  35. package/dist/browser/operationsInterfaces/recordSets.d.ts.map +1 -0
  36. package/dist/browser/operationsInterfaces/recordSets.js.map +1 -0
  37. package/{dist-esm/src → dist/browser}/operationsInterfaces/virtualNetworkLinks.d.ts +1 -1
  38. package/dist/browser/operationsInterfaces/virtualNetworkLinks.d.ts.map +1 -0
  39. package/dist/browser/operationsInterfaces/virtualNetworkLinks.js.map +1 -0
  40. package/dist/browser/package.json +3 -0
  41. package/dist/browser/pagingHelper.js.map +1 -0
  42. package/{dist-esm/src → dist/browser}/privateDnsManagementClient.d.ts +2 -2
  43. package/dist/browser/privateDnsManagementClient.d.ts.map +1 -0
  44. package/{dist-esm/src → dist/browser}/privateDnsManagementClient.js +15 -18
  45. package/dist/browser/privateDnsManagementClient.js.map +1 -0
  46. package/dist/commonjs/index.d.ts +5 -0
  47. package/dist/commonjs/index.d.ts.map +1 -0
  48. package/dist/commonjs/index.js +19 -0
  49. package/dist/commonjs/index.js.map +1 -0
  50. package/dist/commonjs/lroImpl.d.ts +11 -0
  51. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  52. package/dist/commonjs/lroImpl.js +17 -0
  53. package/dist/commonjs/lroImpl.js.map +1 -0
  54. package/dist/commonjs/models/index.d.ts +483 -0
  55. package/dist/commonjs/models/index.d.ts.map +1 -0
  56. package/dist/commonjs/models/index.js +43 -0
  57. package/dist/commonjs/models/index.js.map +1 -0
  58. package/dist/commonjs/models/mappers.d.ts +22 -0
  59. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  60. package/dist/commonjs/models/mappers.js +603 -0
  61. package/dist/commonjs/models/mappers.js.map +1 -0
  62. package/dist/commonjs/models/parameters.d.ts +20 -0
  63. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  64. package/dist/commonjs/models/parameters.js +177 -0
  65. package/dist/commonjs/models/parameters.js.map +1 -0
  66. package/dist/commonjs/operations/index.d.ts +4 -0
  67. package/dist/commonjs/operations/index.d.ts.map +1 -0
  68. package/dist/commonjs/operations/index.js +14 -0
  69. package/dist/commonjs/operations/index.js.map +1 -0
  70. package/dist/commonjs/operations/privateZones.d.ts +114 -0
  71. package/dist/commonjs/operations/privateZones.d.ts.map +1 -0
  72. package/dist/commonjs/operations/privateZones.js +551 -0
  73. package/dist/commonjs/operations/privateZones.js.map +1 -0
  74. package/dist/commonjs/operations/recordSets.d.ts +105 -0
  75. package/dist/commonjs/operations/recordSets.d.ts.map +1 -0
  76. package/dist/commonjs/operations/recordSets.js +472 -0
  77. package/dist/commonjs/operations/recordSets.js.map +1 -0
  78. package/dist/commonjs/operations/virtualNetworkLinks.d.ts +103 -0
  79. package/dist/commonjs/operations/virtualNetworkLinks.d.ts.map +1 -0
  80. package/dist/commonjs/operations/virtualNetworkLinks.js +470 -0
  81. package/dist/commonjs/operations/virtualNetworkLinks.js.map +1 -0
  82. package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
  83. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  84. package/dist/commonjs/operationsInterfaces/index.js +14 -0
  85. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  86. package/dist/commonjs/operationsInterfaces/privateZones.d.ts +78 -0
  87. package/dist/commonjs/operationsInterfaces/privateZones.d.ts.map +1 -0
  88. package/dist/commonjs/operationsInterfaces/privateZones.js +10 -0
  89. package/dist/commonjs/operationsInterfaces/privateZones.js.map +1 -0
  90. package/dist/commonjs/operationsInterfaces/recordSets.d.ts +61 -0
  91. package/dist/commonjs/operationsInterfaces/recordSets.d.ts.map +1 -0
  92. package/dist/commonjs/operationsInterfaces/recordSets.js +10 -0
  93. package/dist/commonjs/operationsInterfaces/recordSets.js.map +1 -0
  94. package/dist/commonjs/operationsInterfaces/virtualNetworkLinks.d.ts +78 -0
  95. package/dist/commonjs/operationsInterfaces/virtualNetworkLinks.d.ts.map +1 -0
  96. package/dist/commonjs/operationsInterfaces/virtualNetworkLinks.js +10 -0
  97. package/dist/commonjs/operationsInterfaces/virtualNetworkLinks.js.map +1 -0
  98. package/dist/commonjs/package.json +3 -0
  99. package/dist/commonjs/pagingHelper.d.ts +13 -0
  100. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  101. package/dist/commonjs/pagingHelper.js +36 -0
  102. package/dist/commonjs/pagingHelper.js.map +1 -0
  103. package/dist/commonjs/privateDnsManagementClient.d.ts +23 -0
  104. package/dist/commonjs/privateDnsManagementClient.d.ts.map +1 -0
  105. package/dist/commonjs/privateDnsManagementClient.js +105 -0
  106. package/dist/commonjs/privateDnsManagementClient.js.map +1 -0
  107. package/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
  108. package/dist/esm/index.d.ts +5 -0
  109. package/dist/esm/index.d.ts.map +1 -0
  110. package/{src/index.ts → dist/esm/index.js} +5 -5
  111. package/dist/esm/index.js.map +1 -0
  112. package/dist/esm/lroImpl.d.ts +11 -0
  113. package/dist/esm/lroImpl.d.ts.map +1 -0
  114. package/dist/esm/lroImpl.js +14 -0
  115. package/dist/esm/lroImpl.js.map +1 -0
  116. package/dist/esm/models/index.d.ts +483 -0
  117. package/dist/esm/models/index.d.ts.map +1 -0
  118. package/dist/esm/models/index.js +40 -0
  119. package/dist/esm/models/index.js.map +1 -0
  120. package/dist/esm/models/mappers.d.ts +22 -0
  121. package/dist/esm/models/mappers.d.ts.map +1 -0
  122. package/dist/esm/models/mappers.js +600 -0
  123. package/dist/esm/models/mappers.js.map +1 -0
  124. package/dist/esm/models/parameters.d.ts +20 -0
  125. package/dist/esm/models/parameters.d.ts.map +1 -0
  126. package/dist/esm/models/parameters.js +174 -0
  127. package/dist/esm/models/parameters.js.map +1 -0
  128. package/dist/esm/operations/index.d.ts +4 -0
  129. package/dist/esm/operations/index.d.ts.map +1 -0
  130. package/dist/esm/operations/index.js +11 -0
  131. package/dist/esm/operations/index.js.map +1 -0
  132. package/dist/esm/operations/privateZones.d.ts +114 -0
  133. package/dist/esm/operations/privateZones.d.ts.map +1 -0
  134. package/dist/esm/operations/privateZones.js +547 -0
  135. package/dist/esm/operations/privateZones.js.map +1 -0
  136. package/dist/esm/operations/recordSets.d.ts +105 -0
  137. package/dist/esm/operations/recordSets.d.ts.map +1 -0
  138. package/dist/esm/operations/recordSets.js +468 -0
  139. package/dist/esm/operations/recordSets.js.map +1 -0
  140. package/dist/esm/operations/virtualNetworkLinks.d.ts +103 -0
  141. package/dist/esm/operations/virtualNetworkLinks.d.ts.map +1 -0
  142. package/dist/esm/operations/virtualNetworkLinks.js +466 -0
  143. package/dist/esm/operations/virtualNetworkLinks.js.map +1 -0
  144. package/dist/esm/operationsInterfaces/index.d.ts +4 -0
  145. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  146. package/dist/esm/operationsInterfaces/index.js +11 -0
  147. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  148. package/dist/esm/operationsInterfaces/privateZones.d.ts +78 -0
  149. package/dist/esm/operationsInterfaces/privateZones.d.ts.map +1 -0
  150. package/{src/operations/index.ts → dist/esm/operationsInterfaces/privateZones.js} +2 -4
  151. package/dist/esm/operationsInterfaces/privateZones.js.map +1 -0
  152. package/dist/esm/operationsInterfaces/recordSets.d.ts +61 -0
  153. package/dist/esm/operationsInterfaces/recordSets.d.ts.map +1 -0
  154. package/dist/esm/operationsInterfaces/recordSets.js +9 -0
  155. package/dist/esm/operationsInterfaces/recordSets.js.map +1 -0
  156. package/dist/esm/operationsInterfaces/virtualNetworkLinks.d.ts +78 -0
  157. package/dist/esm/operationsInterfaces/virtualNetworkLinks.d.ts.map +1 -0
  158. package/dist/esm/operationsInterfaces/virtualNetworkLinks.js +9 -0
  159. package/dist/esm/operationsInterfaces/virtualNetworkLinks.js.map +1 -0
  160. package/dist/esm/package.json +3 -0
  161. package/dist/esm/pagingHelper.d.ts +13 -0
  162. package/dist/esm/pagingHelper.d.ts.map +1 -0
  163. package/dist/esm/pagingHelper.js +32 -0
  164. package/dist/esm/pagingHelper.js.map +1 -0
  165. package/dist/esm/privateDnsManagementClient.d.ts +23 -0
  166. package/dist/esm/privateDnsManagementClient.d.ts.map +1 -0
  167. package/dist/esm/privateDnsManagementClient.js +100 -0
  168. package/dist/esm/privateDnsManagementClient.js.map +1 -0
  169. package/dist/react-native/index.d.ts +5 -0
  170. package/dist/react-native/index.d.ts.map +1 -0
  171. package/dist/react-native/index.js +13 -0
  172. package/dist/react-native/index.js.map +1 -0
  173. package/dist/react-native/lroImpl.d.ts +11 -0
  174. package/dist/react-native/lroImpl.d.ts.map +1 -0
  175. package/dist/react-native/lroImpl.js +14 -0
  176. package/dist/react-native/lroImpl.js.map +1 -0
  177. package/dist/react-native/models/index.d.ts +483 -0
  178. package/dist/react-native/models/index.d.ts.map +1 -0
  179. package/dist/react-native/models/index.js +40 -0
  180. package/dist/react-native/models/index.js.map +1 -0
  181. package/dist/react-native/models/mappers.d.ts +22 -0
  182. package/dist/react-native/models/mappers.d.ts.map +1 -0
  183. package/dist/react-native/models/mappers.js +600 -0
  184. package/dist/react-native/models/mappers.js.map +1 -0
  185. package/dist/react-native/models/parameters.d.ts +20 -0
  186. package/dist/react-native/models/parameters.d.ts.map +1 -0
  187. package/dist/react-native/models/parameters.js +174 -0
  188. package/dist/react-native/models/parameters.js.map +1 -0
  189. package/dist/react-native/operations/index.d.ts +4 -0
  190. package/dist/react-native/operations/index.d.ts.map +1 -0
  191. package/dist/react-native/operations/index.js +11 -0
  192. package/dist/react-native/operations/index.js.map +1 -0
  193. package/dist/react-native/operations/privateZones.d.ts +114 -0
  194. package/dist/react-native/operations/privateZones.d.ts.map +1 -0
  195. package/dist/react-native/operations/privateZones.js +547 -0
  196. package/dist/react-native/operations/privateZones.js.map +1 -0
  197. package/dist/react-native/operations/recordSets.d.ts +105 -0
  198. package/dist/react-native/operations/recordSets.d.ts.map +1 -0
  199. package/dist/react-native/operations/recordSets.js +468 -0
  200. package/dist/react-native/operations/recordSets.js.map +1 -0
  201. package/dist/react-native/operations/virtualNetworkLinks.d.ts +103 -0
  202. package/dist/react-native/operations/virtualNetworkLinks.d.ts.map +1 -0
  203. package/dist/react-native/operations/virtualNetworkLinks.js +466 -0
  204. package/dist/react-native/operations/virtualNetworkLinks.js.map +1 -0
  205. package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
  206. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  207. package/dist/react-native/operationsInterfaces/index.js +11 -0
  208. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  209. package/dist/react-native/operationsInterfaces/privateZones.d.ts +78 -0
  210. package/dist/react-native/operationsInterfaces/privateZones.d.ts.map +1 -0
  211. package/dist/react-native/operationsInterfaces/privateZones.js +9 -0
  212. package/dist/react-native/operationsInterfaces/privateZones.js.map +1 -0
  213. package/dist/react-native/operationsInterfaces/recordSets.d.ts +61 -0
  214. package/dist/react-native/operationsInterfaces/recordSets.d.ts.map +1 -0
  215. package/dist/react-native/operationsInterfaces/recordSets.js +9 -0
  216. package/dist/react-native/operationsInterfaces/recordSets.js.map +1 -0
  217. package/dist/react-native/operationsInterfaces/virtualNetworkLinks.d.ts +78 -0
  218. package/dist/react-native/operationsInterfaces/virtualNetworkLinks.d.ts.map +1 -0
  219. package/dist/react-native/operationsInterfaces/virtualNetworkLinks.js +9 -0
  220. package/dist/react-native/operationsInterfaces/virtualNetworkLinks.js.map +1 -0
  221. package/dist/react-native/package.json +3 -0
  222. package/dist/react-native/pagingHelper.d.ts +13 -0
  223. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  224. package/dist/react-native/pagingHelper.js +32 -0
  225. package/dist/react-native/pagingHelper.js.map +1 -0
  226. package/dist/react-native/privateDnsManagementClient.d.ts +23 -0
  227. package/dist/react-native/privateDnsManagementClient.d.ts.map +1 -0
  228. package/dist/react-native/privateDnsManagementClient.js +100 -0
  229. package/dist/react-native/privateDnsManagementClient.js.map +1 -0
  230. package/package.json +66 -36
  231. package/dist/index.js +0 -2499
  232. package/dist/index.js.map +0 -1
  233. package/dist/index.min.js +0 -1
  234. package/dist/index.min.js.map +0 -1
  235. package/dist-esm/samples-dev/privateZonesCreateOrUpdateSample.d.ts +0 -2
  236. package/dist-esm/samples-dev/privateZonesCreateOrUpdateSample.d.ts.map +0 -1
  237. package/dist-esm/samples-dev/privateZonesCreateOrUpdateSample.js +0 -33
  238. package/dist-esm/samples-dev/privateZonesCreateOrUpdateSample.js.map +0 -1
  239. package/dist-esm/samples-dev/privateZonesDeleteSample.d.ts +0 -2
  240. package/dist-esm/samples-dev/privateZonesDeleteSample.d.ts.map +0 -1
  241. package/dist-esm/samples-dev/privateZonesDeleteSample.js +0 -36
  242. package/dist-esm/samples-dev/privateZonesDeleteSample.js.map +0 -1
  243. package/dist-esm/samples-dev/privateZonesGetSample.d.ts +0 -2
  244. package/dist-esm/samples-dev/privateZonesGetSample.d.ts.map +0 -1
  245. package/dist-esm/samples-dev/privateZonesGetSample.js +0 -36
  246. package/dist-esm/samples-dev/privateZonesGetSample.js.map +0 -1
  247. package/dist-esm/samples-dev/privateZonesListByResourceGroupSample.d.ts +0 -2
  248. package/dist-esm/samples-dev/privateZonesListByResourceGroupSample.d.ts.map +0 -1
  249. package/dist-esm/samples-dev/privateZonesListByResourceGroupSample.js +0 -51
  250. package/dist-esm/samples-dev/privateZonesListByResourceGroupSample.js.map +0 -1
  251. package/dist-esm/samples-dev/privateZonesListSample.d.ts +0 -2
  252. package/dist-esm/samples-dev/privateZonesListSample.d.ts.map +0 -1
  253. package/dist-esm/samples-dev/privateZonesListSample.js +0 -50
  254. package/dist-esm/samples-dev/privateZonesListSample.js.map +0 -1
  255. package/dist-esm/samples-dev/privateZonesUpdateSample.d.ts +0 -2
  256. package/dist-esm/samples-dev/privateZonesUpdateSample.d.ts.map +0 -1
  257. package/dist-esm/samples-dev/privateZonesUpdateSample.js +0 -30
  258. package/dist-esm/samples-dev/privateZonesUpdateSample.js.map +0 -1
  259. package/dist-esm/samples-dev/recordSetsCreateOrUpdateSample.d.ts +0 -2
  260. package/dist-esm/samples-dev/recordSetsCreateOrUpdateSample.d.ts.map +0 -1
  261. package/dist-esm/samples-dev/recordSetsCreateOrUpdateSample.js +0 -219
  262. package/dist-esm/samples-dev/recordSetsCreateOrUpdateSample.js.map +0 -1
  263. package/dist-esm/samples-dev/recordSetsDeleteSample.d.ts +0 -2
  264. package/dist-esm/samples-dev/recordSetsDeleteSample.d.ts.map +0 -1
  265. package/dist-esm/samples-dev/recordSetsDeleteSample.js +0 -158
  266. package/dist-esm/samples-dev/recordSetsDeleteSample.js.map +0 -1
  267. package/dist-esm/samples-dev/recordSetsGetSample.d.ts +0 -2
  268. package/dist-esm/samples-dev/recordSetsGetSample.d.ts.map +0 -1
  269. package/dist-esm/samples-dev/recordSetsGetSample.js +0 -178
  270. package/dist-esm/samples-dev/recordSetsGetSample.js.map +0 -1
  271. package/dist-esm/samples-dev/recordSetsListByTypeSample.d.ts +0 -2
  272. package/dist-esm/samples-dev/recordSetsListByTypeSample.d.ts.map +0 -1
  273. package/dist-esm/samples-dev/recordSetsListByTypeSample.js +0 -298
  274. package/dist-esm/samples-dev/recordSetsListByTypeSample.js.map +0 -1
  275. package/dist-esm/samples-dev/recordSetsListSample.d.ts +0 -2
  276. package/dist-esm/samples-dev/recordSetsListSample.d.ts.map +0 -1
  277. package/dist-esm/samples-dev/recordSetsListSample.js +0 -52
  278. package/dist-esm/samples-dev/recordSetsListSample.js.map +0 -1
  279. package/dist-esm/samples-dev/recordSetsUpdateSample.d.ts +0 -2
  280. package/dist-esm/samples-dev/recordSetsUpdateSample.d.ts.map +0 -1
  281. package/dist-esm/samples-dev/recordSetsUpdateSample.js +0 -179
  282. package/dist-esm/samples-dev/recordSetsUpdateSample.js.map +0 -1
  283. package/dist-esm/samples-dev/virtualNetworkLinksCreateOrUpdateSample.d.ts +0 -2
  284. package/dist-esm/samples-dev/virtualNetworkLinksCreateOrUpdateSample.d.ts.map +0 -1
  285. package/dist-esm/samples-dev/virtualNetworkLinksCreateOrUpdateSample.js +0 -38
  286. package/dist-esm/samples-dev/virtualNetworkLinksCreateOrUpdateSample.js.map +0 -1
  287. package/dist-esm/samples-dev/virtualNetworkLinksDeleteSample.d.ts +0 -2
  288. package/dist-esm/samples-dev/virtualNetworkLinksDeleteSample.d.ts.map +0 -1
  289. package/dist-esm/samples-dev/virtualNetworkLinksDeleteSample.js +0 -37
  290. package/dist-esm/samples-dev/virtualNetworkLinksDeleteSample.js.map +0 -1
  291. package/dist-esm/samples-dev/virtualNetworkLinksGetSample.d.ts +0 -2
  292. package/dist-esm/samples-dev/virtualNetworkLinksGetSample.d.ts.map +0 -1
  293. package/dist-esm/samples-dev/virtualNetworkLinksGetSample.js +0 -37
  294. package/dist-esm/samples-dev/virtualNetworkLinksGetSample.js.map +0 -1
  295. package/dist-esm/samples-dev/virtualNetworkLinksListSample.d.ts +0 -2
  296. package/dist-esm/samples-dev/virtualNetworkLinksListSample.d.ts.map +0 -1
  297. package/dist-esm/samples-dev/virtualNetworkLinksListSample.js +0 -52
  298. package/dist-esm/samples-dev/virtualNetworkLinksListSample.js.map +0 -1
  299. package/dist-esm/samples-dev/virtualNetworkLinksUpdateSample.d.ts +0 -2
  300. package/dist-esm/samples-dev/virtualNetworkLinksUpdateSample.d.ts.map +0 -1
  301. package/dist-esm/samples-dev/virtualNetworkLinksUpdateSample.js +0 -35
  302. package/dist-esm/samples-dev/virtualNetworkLinksUpdateSample.js.map +0 -1
  303. package/dist-esm/src/index.d.ts +0 -5
  304. package/dist-esm/src/index.js.map +0 -1
  305. package/dist-esm/src/lroImpl.js.map +0 -1
  306. package/dist-esm/src/models/index.js.map +0 -1
  307. package/dist-esm/src/models/mappers.js.map +0 -1
  308. package/dist-esm/src/models/parameters.js.map +0 -1
  309. package/dist-esm/src/operations/index.d.ts +0 -4
  310. package/dist-esm/src/operations/index.js.map +0 -1
  311. package/dist-esm/src/operations/privateZones.d.ts.map +0 -1
  312. package/dist-esm/src/operations/privateZones.js.map +0 -1
  313. package/dist-esm/src/operations/recordSets.d.ts.map +0 -1
  314. package/dist-esm/src/operations/recordSets.js.map +0 -1
  315. package/dist-esm/src/operations/virtualNetworkLinks.d.ts.map +0 -1
  316. package/dist-esm/src/operations/virtualNetworkLinks.js.map +0 -1
  317. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -4
  318. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  319. package/dist-esm/src/operationsInterfaces/privateZones.d.ts.map +0 -1
  320. package/dist-esm/src/operationsInterfaces/privateZones.js.map +0 -1
  321. package/dist-esm/src/operationsInterfaces/recordSets.d.ts.map +0 -1
  322. package/dist-esm/src/operationsInterfaces/recordSets.js.map +0 -1
  323. package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.d.ts.map +0 -1
  324. package/dist-esm/src/operationsInterfaces/virtualNetworkLinks.js.map +0 -1
  325. package/dist-esm/src/pagingHelper.js.map +0 -1
  326. package/dist-esm/src/privateDnsManagementClient.d.ts.map +0 -1
  327. package/dist-esm/src/privateDnsManagementClient.js.map +0 -1
  328. package/dist-esm/test/privatedns_operations_test.spec.d.ts +0 -4
  329. package/dist-esm/test/privatedns_operations_test.spec.d.ts.map +0 -1
  330. package/dist-esm/test/privatedns_operations_test.spec.js +0 -112
  331. package/dist-esm/test/privatedns_operations_test.spec.js.map +0 -1
  332. package/src/lroImpl.ts +0 -38
  333. package/src/models/index.ts +0 -576
  334. package/src/models/mappers.ts +0 -663
  335. package/src/models/parameters.ts +0 -201
  336. package/src/operations/privateZones.ts +0 -720
  337. package/src/operations/recordSets.ts +0 -617
  338. package/src/operations/virtualNetworkLinks.ts +0 -654
  339. package/src/operationsInterfaces/index.ts +0 -11
  340. package/src/operationsInterfaces/privateZones.ts +0 -145
  341. package/src/operationsInterfaces/recordSets.ts +0 -117
  342. package/src/operationsInterfaces/virtualNetworkLinks.ts +0 -150
  343. package/src/pagingHelper.ts +0 -39
  344. package/src/privateDnsManagementClient.ts +0 -154
  345. package/tsconfig.json +0 -33
  346. package/types/arm-privatedns.d.ts +0 -794
  347. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  348. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
  349. /package/{dist-esm/src → dist/browser}/lroImpl.js +0 -0
  350. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  351. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  352. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  353. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  354. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  355. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  356. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  357. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  358. /package/{dist-esm/src → dist/browser}/operationsInterfaces/privateZones.js +0 -0
  359. /package/{dist-esm/src → dist/browser}/operationsInterfaces/recordSets.js +0 -0
  360. /package/{dist-esm/src → dist/browser}/operationsInterfaces/virtualNetworkLinks.js +0 -0
  361. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  362. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  363. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
@@ -0,0 +1,103 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { VirtualNetworkLinks } from "../operationsInterfaces/index.js";
3
+ import { PrivateDnsManagementClient } from "../privateDnsManagementClient.js";
4
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
5
+ import { VirtualNetworkLink, VirtualNetworkLinksListOptionalParams, VirtualNetworkLinksCreateOrUpdateOptionalParams, VirtualNetworkLinksCreateOrUpdateResponse, VirtualNetworkLinksUpdateOptionalParams, VirtualNetworkLinksUpdateResponse, VirtualNetworkLinksDeleteOptionalParams, VirtualNetworkLinksGetOptionalParams, VirtualNetworkLinksGetResponse } from "../models/index.js";
6
+ /** Class containing VirtualNetworkLinks operations. */
7
+ export declare class VirtualNetworkLinksImpl implements VirtualNetworkLinks {
8
+ private readonly client;
9
+ /**
10
+ * Initialize a new instance of the class VirtualNetworkLinks class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client: PrivateDnsManagementClient);
14
+ /**
15
+ * Lists the virtual network links to the specified Private DNS zone.
16
+ * @param resourceGroupName The name of the resource group.
17
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
18
+ * @param options The options parameters.
19
+ */
20
+ list(resourceGroupName: string, privateZoneName: string, options?: VirtualNetworkLinksListOptionalParams): PagedAsyncIterableIterator<VirtualNetworkLink>;
21
+ private listPagingPage;
22
+ private listPagingAll;
23
+ /**
24
+ * Creates or updates a virtual network link to the specified Private DNS zone.
25
+ * @param resourceGroupName The name of the resource group.
26
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
27
+ * @param virtualNetworkLinkName The name of the virtual network link.
28
+ * @param parameters Parameters supplied to the CreateOrUpdate operation.
29
+ * @param options The options parameters.
30
+ */
31
+ beginCreateOrUpdate(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, parameters: VirtualNetworkLink, options?: VirtualNetworkLinksCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<VirtualNetworkLinksCreateOrUpdateResponse>, VirtualNetworkLinksCreateOrUpdateResponse>>;
32
+ /**
33
+ * Creates or updates a virtual network link to the specified Private DNS zone.
34
+ * @param resourceGroupName The name of the resource group.
35
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
36
+ * @param virtualNetworkLinkName The name of the virtual network link.
37
+ * @param parameters Parameters supplied to the CreateOrUpdate operation.
38
+ * @param options The options parameters.
39
+ */
40
+ beginCreateOrUpdateAndWait(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, parameters: VirtualNetworkLink, options?: VirtualNetworkLinksCreateOrUpdateOptionalParams): Promise<VirtualNetworkLinksCreateOrUpdateResponse>;
41
+ /**
42
+ * Updates a virtual network link to the specified Private DNS zone.
43
+ * @param resourceGroupName The name of the resource group.
44
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
45
+ * @param virtualNetworkLinkName The name of the virtual network link.
46
+ * @param parameters Parameters supplied to the Update operation.
47
+ * @param options The options parameters.
48
+ */
49
+ beginUpdate(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, parameters: VirtualNetworkLink, options?: VirtualNetworkLinksUpdateOptionalParams): Promise<SimplePollerLike<OperationState<VirtualNetworkLinksUpdateResponse>, VirtualNetworkLinksUpdateResponse>>;
50
+ /**
51
+ * Updates a virtual network link to the specified Private DNS zone.
52
+ * @param resourceGroupName The name of the resource group.
53
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
54
+ * @param virtualNetworkLinkName The name of the virtual network link.
55
+ * @param parameters Parameters supplied to the Update operation.
56
+ * @param options The options parameters.
57
+ */
58
+ beginUpdateAndWait(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, parameters: VirtualNetworkLink, options?: VirtualNetworkLinksUpdateOptionalParams): Promise<VirtualNetworkLinksUpdateResponse>;
59
+ /**
60
+ * Deletes a virtual network link to the specified Private DNS zone. WARNING: In case of a registration
61
+ * virtual network, all auto-registered DNS records in the zone for the virtual network will also be
62
+ * deleted. This operation cannot be undone.
63
+ * @param resourceGroupName The name of the resource group.
64
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
65
+ * @param virtualNetworkLinkName The name of the virtual network link.
66
+ * @param options The options parameters.
67
+ */
68
+ beginDelete(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, options?: VirtualNetworkLinksDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
69
+ /**
70
+ * Deletes a virtual network link to the specified Private DNS zone. WARNING: In case of a registration
71
+ * virtual network, all auto-registered DNS records in the zone for the virtual network will also be
72
+ * deleted. This operation cannot be undone.
73
+ * @param resourceGroupName The name of the resource group.
74
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
75
+ * @param virtualNetworkLinkName The name of the virtual network link.
76
+ * @param options The options parameters.
77
+ */
78
+ beginDeleteAndWait(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, options?: VirtualNetworkLinksDeleteOptionalParams): Promise<void>;
79
+ /**
80
+ * Gets a virtual network link to the specified Private DNS zone.
81
+ * @param resourceGroupName The name of the resource group.
82
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
83
+ * @param virtualNetworkLinkName The name of the virtual network link.
84
+ * @param options The options parameters.
85
+ */
86
+ get(resourceGroupName: string, privateZoneName: string, virtualNetworkLinkName: string, options?: VirtualNetworkLinksGetOptionalParams): Promise<VirtualNetworkLinksGetResponse>;
87
+ /**
88
+ * Lists the virtual network links to the specified Private DNS zone.
89
+ * @param resourceGroupName The name of the resource group.
90
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
91
+ * @param options The options parameters.
92
+ */
93
+ private _list;
94
+ /**
95
+ * ListNext
96
+ * @param resourceGroupName The name of the resource group.
97
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
98
+ * @param nextLink The nextLink from the previous successful call to the List method.
99
+ * @param options The options parameters.
100
+ */
101
+ private _listNext;
102
+ }
103
+ //# sourceMappingURL=virtualNetworkLinks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"virtualNetworkLinks.d.ts","sourceRoot":"","sources":["../../../src/operations/virtualNetworkLinks.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAIvE,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAA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CAAC,EACjD,iCAAiC,CAClC,CACF;IA6DD;;;;;;;OAOG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,sBAAsB,EAAE,MAAM,EAC9B,UAAU,EAAE,kBAAkB,EAC9B,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,iCAAiC,CAAC;IAW7C;;;;;;;;OAQG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,sBAAsB,EAAE,MAAM,EAC9B,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IAyDxD;;;;;;;;OAQG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,sBAAsB,EAAE,MAAM,EAC9B,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,IAAI,CAAC;IAUhB;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,sBAAsB,EAAE,MAAM,EAC9B,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,8BAA8B,CAAC;IAO1C;;;;;OAKG;IACH,OAAO,CAAC,KAAK;IAWb;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;CAWlB"}
@@ -0,0 +1,470 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.VirtualNetworkLinksImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const pagingHelper_js_1 = require("../pagingHelper.js");
13
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
+ const core_lro_1 = require("@azure/core-lro");
17
+ const lroImpl_js_1 = require("../lroImpl.js");
18
+ /// <reference lib="esnext.asynciterable" />
19
+ /** Class containing VirtualNetworkLinks operations. */
20
+ class VirtualNetworkLinksImpl {
21
+ /**
22
+ * Initialize a new instance of the class VirtualNetworkLinks class.
23
+ * @param client Reference to the service client
24
+ */
25
+ constructor(client) {
26
+ this.client = client;
27
+ }
28
+ /**
29
+ * Lists the virtual network links to the specified Private DNS zone.
30
+ * @param resourceGroupName The name of the resource group.
31
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
32
+ * @param options The options parameters.
33
+ */
34
+ list(resourceGroupName, privateZoneName, options) {
35
+ const iter = this.listPagingAll(resourceGroupName, privateZoneName, options);
36
+ return {
37
+ next() {
38
+ return iter.next();
39
+ },
40
+ [Symbol.asyncIterator]() {
41
+ return this;
42
+ },
43
+ byPage: (settings) => {
44
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
45
+ throw new Error("maxPageSize is not supported by this operation.");
46
+ }
47
+ return this.listPagingPage(resourceGroupName, privateZoneName, options, settings);
48
+ },
49
+ };
50
+ }
51
+ listPagingPage(resourceGroupName, privateZoneName, options, settings) {
52
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
53
+ let result;
54
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
55
+ if (!continuationToken) {
56
+ result = yield tslib_1.__await(this._list(resourceGroupName, privateZoneName, options));
57
+ let page = result.value || [];
58
+ continuationToken = result.nextLink;
59
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
60
+ yield yield tslib_1.__await(page);
61
+ }
62
+ while (continuationToken) {
63
+ result = yield tslib_1.__await(this._listNext(resourceGroupName, privateZoneName, continuationToken, options));
64
+ continuationToken = result.nextLink;
65
+ let page = result.value || [];
66
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
67
+ yield yield tslib_1.__await(page);
68
+ }
69
+ });
70
+ }
71
+ listPagingAll(resourceGroupName, privateZoneName, options) {
72
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
73
+ var _a, e_1, _b, _c;
74
+ try {
75
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, privateZoneName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
76
+ _c = _f.value;
77
+ _d = false;
78
+ const page = _c;
79
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
80
+ }
81
+ }
82
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
83
+ finally {
84
+ try {
85
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
86
+ }
87
+ finally { if (e_1) throw e_1.error; }
88
+ }
89
+ });
90
+ }
91
+ /**
92
+ * Creates or updates a virtual network link to the specified Private DNS zone.
93
+ * @param resourceGroupName The name of the resource group.
94
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
95
+ * @param virtualNetworkLinkName The name of the virtual network link.
96
+ * @param parameters Parameters supplied to the CreateOrUpdate operation.
97
+ * @param options The options parameters.
98
+ */
99
+ async beginCreateOrUpdate(resourceGroupName, privateZoneName, virtualNetworkLinkName, parameters, options) {
100
+ const directSendOperation = async (args, spec) => {
101
+ return this.client.sendOperationRequest(args, spec);
102
+ };
103
+ const sendOperationFn = async (args, spec) => {
104
+ var _a;
105
+ let currentRawResponse = undefined;
106
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
107
+ const callback = (rawResponse, flatResponse) => {
108
+ currentRawResponse = rawResponse;
109
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
110
+ };
111
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
112
+ const flatResponse = await directSendOperation(updatedArgs, spec);
113
+ return {
114
+ flatResponse,
115
+ rawResponse: {
116
+ statusCode: currentRawResponse.status,
117
+ body: currentRawResponse.parsedBody,
118
+ headers: currentRawResponse.headers.toJSON(),
119
+ },
120
+ };
121
+ };
122
+ const lro = (0, lroImpl_js_1.createLroSpec)({
123
+ sendOperationFn,
124
+ args: {
125
+ resourceGroupName,
126
+ privateZoneName,
127
+ virtualNetworkLinkName,
128
+ parameters,
129
+ options,
130
+ },
131
+ spec: createOrUpdateOperationSpec,
132
+ });
133
+ const poller = await (0, core_lro_1.createHttpPoller)(lro, {
134
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
135
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
136
+ });
137
+ await poller.poll();
138
+ return poller;
139
+ }
140
+ /**
141
+ * Creates or updates a virtual network link to the specified Private DNS zone.
142
+ * @param resourceGroupName The name of the resource group.
143
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
144
+ * @param virtualNetworkLinkName The name of the virtual network link.
145
+ * @param parameters Parameters supplied to the CreateOrUpdate operation.
146
+ * @param options The options parameters.
147
+ */
148
+ async beginCreateOrUpdateAndWait(resourceGroupName, privateZoneName, virtualNetworkLinkName, parameters, options) {
149
+ const poller = await this.beginCreateOrUpdate(resourceGroupName, privateZoneName, virtualNetworkLinkName, parameters, options);
150
+ return poller.pollUntilDone();
151
+ }
152
+ /**
153
+ * Updates a virtual network link to the specified Private DNS zone.
154
+ * @param resourceGroupName The name of the resource group.
155
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
156
+ * @param virtualNetworkLinkName The name of the virtual network link.
157
+ * @param parameters Parameters supplied to the Update operation.
158
+ * @param options The options parameters.
159
+ */
160
+ async beginUpdate(resourceGroupName, privateZoneName, virtualNetworkLinkName, parameters, options) {
161
+ const directSendOperation = async (args, spec) => {
162
+ return this.client.sendOperationRequest(args, spec);
163
+ };
164
+ const sendOperationFn = async (args, spec) => {
165
+ var _a;
166
+ let currentRawResponse = undefined;
167
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
168
+ const callback = (rawResponse, flatResponse) => {
169
+ currentRawResponse = rawResponse;
170
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
171
+ };
172
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
173
+ const flatResponse = await directSendOperation(updatedArgs, spec);
174
+ return {
175
+ flatResponse,
176
+ rawResponse: {
177
+ statusCode: currentRawResponse.status,
178
+ body: currentRawResponse.parsedBody,
179
+ headers: currentRawResponse.headers.toJSON(),
180
+ },
181
+ };
182
+ };
183
+ const lro = (0, lroImpl_js_1.createLroSpec)({
184
+ sendOperationFn,
185
+ args: {
186
+ resourceGroupName,
187
+ privateZoneName,
188
+ virtualNetworkLinkName,
189
+ parameters,
190
+ options,
191
+ },
192
+ spec: updateOperationSpec,
193
+ });
194
+ const poller = await (0, core_lro_1.createHttpPoller)(lro, {
195
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
196
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
197
+ });
198
+ await poller.poll();
199
+ return poller;
200
+ }
201
+ /**
202
+ * Updates a virtual network link to the specified Private DNS zone.
203
+ * @param resourceGroupName The name of the resource group.
204
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
205
+ * @param virtualNetworkLinkName The name of the virtual network link.
206
+ * @param parameters Parameters supplied to the Update operation.
207
+ * @param options The options parameters.
208
+ */
209
+ async beginUpdateAndWait(resourceGroupName, privateZoneName, virtualNetworkLinkName, parameters, options) {
210
+ const poller = await this.beginUpdate(resourceGroupName, privateZoneName, virtualNetworkLinkName, parameters, options);
211
+ return poller.pollUntilDone();
212
+ }
213
+ /**
214
+ * Deletes a virtual network link to the specified Private DNS zone. WARNING: In case of a registration
215
+ * virtual network, all auto-registered DNS records in the zone for the virtual network will also be
216
+ * deleted. This operation cannot be undone.
217
+ * @param resourceGroupName The name of the resource group.
218
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
219
+ * @param virtualNetworkLinkName The name of the virtual network link.
220
+ * @param options The options parameters.
221
+ */
222
+ async beginDelete(resourceGroupName, privateZoneName, virtualNetworkLinkName, options) {
223
+ const directSendOperation = async (args, spec) => {
224
+ return this.client.sendOperationRequest(args, spec);
225
+ };
226
+ const sendOperationFn = async (args, spec) => {
227
+ var _a;
228
+ let currentRawResponse = undefined;
229
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
230
+ const callback = (rawResponse, flatResponse) => {
231
+ currentRawResponse = rawResponse;
232
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
233
+ };
234
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
235
+ const flatResponse = await directSendOperation(updatedArgs, spec);
236
+ return {
237
+ flatResponse,
238
+ rawResponse: {
239
+ statusCode: currentRawResponse.status,
240
+ body: currentRawResponse.parsedBody,
241
+ headers: currentRawResponse.headers.toJSON(),
242
+ },
243
+ };
244
+ };
245
+ const lro = (0, lroImpl_js_1.createLroSpec)({
246
+ sendOperationFn,
247
+ args: {
248
+ resourceGroupName,
249
+ privateZoneName,
250
+ virtualNetworkLinkName,
251
+ options,
252
+ },
253
+ spec: deleteOperationSpec,
254
+ });
255
+ const poller = await (0, core_lro_1.createHttpPoller)(lro, {
256
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
257
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
258
+ });
259
+ await poller.poll();
260
+ return poller;
261
+ }
262
+ /**
263
+ * Deletes a virtual network link to the specified Private DNS zone. WARNING: In case of a registration
264
+ * virtual network, all auto-registered DNS records in the zone for the virtual network will also be
265
+ * deleted. This operation cannot be undone.
266
+ * @param resourceGroupName The name of the resource group.
267
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
268
+ * @param virtualNetworkLinkName The name of the virtual network link.
269
+ * @param options The options parameters.
270
+ */
271
+ async beginDeleteAndWait(resourceGroupName, privateZoneName, virtualNetworkLinkName, options) {
272
+ const poller = await this.beginDelete(resourceGroupName, privateZoneName, virtualNetworkLinkName, options);
273
+ return poller.pollUntilDone();
274
+ }
275
+ /**
276
+ * Gets a virtual network link to the specified Private DNS zone.
277
+ * @param resourceGroupName The name of the resource group.
278
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
279
+ * @param virtualNetworkLinkName The name of the virtual network link.
280
+ * @param options The options parameters.
281
+ */
282
+ get(resourceGroupName, privateZoneName, virtualNetworkLinkName, options) {
283
+ return this.client.sendOperationRequest({ resourceGroupName, privateZoneName, virtualNetworkLinkName, options }, getOperationSpec);
284
+ }
285
+ /**
286
+ * Lists the virtual network links to the specified Private DNS zone.
287
+ * @param resourceGroupName The name of the resource group.
288
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
289
+ * @param options The options parameters.
290
+ */
291
+ _list(resourceGroupName, privateZoneName, options) {
292
+ return this.client.sendOperationRequest({ resourceGroupName, privateZoneName, options }, listOperationSpec);
293
+ }
294
+ /**
295
+ * ListNext
296
+ * @param resourceGroupName The name of the resource group.
297
+ * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
298
+ * @param nextLink The nextLink from the previous successful call to the List method.
299
+ * @param options The options parameters.
300
+ */
301
+ _listNext(resourceGroupName, privateZoneName, nextLink, options) {
302
+ return this.client.sendOperationRequest({ resourceGroupName, privateZoneName, nextLink, options }, listNextOperationSpec);
303
+ }
304
+ }
305
+ exports.VirtualNetworkLinksImpl = VirtualNetworkLinksImpl;
306
+ // Operation Specifications
307
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
308
+ const createOrUpdateOperationSpec = {
309
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks/{virtualNetworkLinkName}",
310
+ httpMethod: "PUT",
311
+ responses: {
312
+ 200: {
313
+ bodyMapper: Mappers.VirtualNetworkLink,
314
+ },
315
+ 201: {
316
+ bodyMapper: Mappers.VirtualNetworkLink,
317
+ },
318
+ 202: {
319
+ bodyMapper: Mappers.VirtualNetworkLink,
320
+ },
321
+ 204: {
322
+ bodyMapper: Mappers.VirtualNetworkLink,
323
+ },
324
+ default: {
325
+ bodyMapper: Mappers.CloudError,
326
+ },
327
+ },
328
+ requestBody: Parameters.parameters1,
329
+ queryParameters: [Parameters.apiVersion],
330
+ urlParameters: [
331
+ Parameters.$host,
332
+ Parameters.resourceGroupName,
333
+ Parameters.privateZoneName,
334
+ Parameters.subscriptionId,
335
+ Parameters.virtualNetworkLinkName,
336
+ ],
337
+ headerParameters: [
338
+ Parameters.contentType,
339
+ Parameters.accept,
340
+ Parameters.ifMatch,
341
+ Parameters.ifNoneMatch,
342
+ ],
343
+ mediaType: "json",
344
+ serializer,
345
+ };
346
+ const updateOperationSpec = {
347
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks/{virtualNetworkLinkName}",
348
+ httpMethod: "PATCH",
349
+ responses: {
350
+ 200: {
351
+ bodyMapper: Mappers.VirtualNetworkLink,
352
+ },
353
+ 201: {
354
+ bodyMapper: Mappers.VirtualNetworkLink,
355
+ },
356
+ 202: {
357
+ bodyMapper: Mappers.VirtualNetworkLink,
358
+ },
359
+ 204: {
360
+ bodyMapper: Mappers.VirtualNetworkLink,
361
+ },
362
+ default: {
363
+ bodyMapper: Mappers.CloudError,
364
+ },
365
+ },
366
+ requestBody: Parameters.parameters1,
367
+ queryParameters: [Parameters.apiVersion],
368
+ urlParameters: [
369
+ Parameters.$host,
370
+ Parameters.resourceGroupName,
371
+ Parameters.privateZoneName,
372
+ Parameters.subscriptionId,
373
+ Parameters.virtualNetworkLinkName,
374
+ ],
375
+ headerParameters: [
376
+ Parameters.contentType,
377
+ Parameters.accept,
378
+ Parameters.ifMatch,
379
+ ],
380
+ mediaType: "json",
381
+ serializer,
382
+ };
383
+ const deleteOperationSpec = {
384
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks/{virtualNetworkLinkName}",
385
+ httpMethod: "DELETE",
386
+ responses: {
387
+ 200: {},
388
+ 201: {},
389
+ 202: {},
390
+ 204: {},
391
+ default: {
392
+ bodyMapper: Mappers.CloudError,
393
+ },
394
+ },
395
+ queryParameters: [Parameters.apiVersion],
396
+ urlParameters: [
397
+ Parameters.$host,
398
+ Parameters.resourceGroupName,
399
+ Parameters.privateZoneName,
400
+ Parameters.subscriptionId,
401
+ Parameters.virtualNetworkLinkName,
402
+ ],
403
+ headerParameters: [Parameters.accept, Parameters.ifMatch],
404
+ serializer,
405
+ };
406
+ const getOperationSpec = {
407
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks/{virtualNetworkLinkName}",
408
+ httpMethod: "GET",
409
+ responses: {
410
+ 200: {
411
+ bodyMapper: Mappers.VirtualNetworkLink,
412
+ },
413
+ default: {
414
+ bodyMapper: Mappers.CloudError,
415
+ },
416
+ },
417
+ queryParameters: [Parameters.apiVersion],
418
+ urlParameters: [
419
+ Parameters.$host,
420
+ Parameters.resourceGroupName,
421
+ Parameters.privateZoneName,
422
+ Parameters.subscriptionId,
423
+ Parameters.virtualNetworkLinkName,
424
+ ],
425
+ headerParameters: [Parameters.accept],
426
+ serializer,
427
+ };
428
+ const listOperationSpec = {
429
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks",
430
+ httpMethod: "GET",
431
+ responses: {
432
+ 200: {
433
+ bodyMapper: Mappers.VirtualNetworkLinkListResult,
434
+ },
435
+ default: {
436
+ bodyMapper: Mappers.CloudError,
437
+ },
438
+ },
439
+ queryParameters: [Parameters.apiVersion, Parameters.top],
440
+ urlParameters: [
441
+ Parameters.$host,
442
+ Parameters.resourceGroupName,
443
+ Parameters.privateZoneName,
444
+ Parameters.subscriptionId,
445
+ ],
446
+ headerParameters: [Parameters.accept],
447
+ serializer,
448
+ };
449
+ const listNextOperationSpec = {
450
+ path: "{nextLink}",
451
+ httpMethod: "GET",
452
+ responses: {
453
+ 200: {
454
+ bodyMapper: Mappers.VirtualNetworkLinkListResult,
455
+ },
456
+ default: {
457
+ bodyMapper: Mappers.CloudError,
458
+ },
459
+ },
460
+ urlParameters: [
461
+ Parameters.$host,
462
+ Parameters.resourceGroupName,
463
+ Parameters.privateZoneName,
464
+ Parameters.subscriptionId,
465
+ Parameters.nextLink,
466
+ ],
467
+ headerParameters: [Parameters.accept],
468
+ serializer,
469
+ };
470
+ //# sourceMappingURL=virtualNetworkLinks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"virtualNetworkLinks.js","sourceRoot":"","sources":["../../../src/operations/virtualNetworkLinks.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAgB9C,4CAA4C;AAC5C,uDAAuD;AACvD,MAAa,uBAAuB;IAGlC;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,eAAuB,EACvB,OAA+C;QAE/C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,eAAe,EACf,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAA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,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,eAAe;QAC1B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { VirtualNetworkLinks } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { PrivateDnsManagementClient } from \"../privateDnsManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n VirtualNetworkLink,\n VirtualNetworkLinksListNextOptionalParams,\n VirtualNetworkLinksListOptionalParams,\n VirtualNetworkLinksListResponse,\n VirtualNetworkLinksCreateOrUpdateOptionalParams,\n VirtualNetworkLinksCreateOrUpdateResponse,\n VirtualNetworkLinksUpdateOptionalParams,\n VirtualNetworkLinksUpdateResponse,\n VirtualNetworkLinksDeleteOptionalParams,\n VirtualNetworkLinksGetOptionalParams,\n VirtualNetworkLinksGetResponse,\n VirtualNetworkLinksListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing VirtualNetworkLinks operations. */\nexport class VirtualNetworkLinksImpl implements VirtualNetworkLinks {\n private readonly client: PrivateDnsManagementClient;\n\n /**\n * Initialize a new instance of the class VirtualNetworkLinks class.\n * @param client Reference to the service client\n */\n constructor(client: PrivateDnsManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the virtual network links to the specified Private DNS zone.\n * @param resourceGroupName The name of the resource group.\n * @param privateZoneName The name of the Private DNS zone (without a terminating dot).\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n privateZoneName: string,\n options?: VirtualNetworkLinksListOptionalParams,\n ): PagedAsyncIterableIterator<VirtualNetworkLink> {\n const iter = this.listPagingAll(\n resourceGroupName,\n privateZoneName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n privateZoneName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n privateZoneName: string,\n options?: VirtualNetworkLinksListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<VirtualNetworkLink[]> {\n let result: VirtualNetworkLinksListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, privateZoneName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n privateZoneName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n privateZoneName: string,\n options?: VirtualNetworkLinksListOptionalParams,\n ): AsyncIterableIterator<VirtualNetworkLink> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n privateZoneName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates or updates a virtual network link to the specified Private DNS zone.\n * @param resourceGroupName The name of the resource group.\n * @param privateZoneName The name of the Private DNS zone (without a terminating dot).\n * @param virtualNetworkLinkName The name of the virtual network link.\n * @param parameters Parameters supplied to the CreateOrUpdate operation.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n privateZoneName: string,\n virtualNetworkLinkName: string,\n parameters: VirtualNetworkLink,\n options?: VirtualNetworkLinksCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<VirtualNetworkLinksCreateOrUpdateResponse>,\n VirtualNetworkLinksCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<VirtualNetworkLinksCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n privateZoneName,\n virtualNetworkLinkName,\n parameters,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n VirtualNetworkLinksCreateOrUpdateResponse,\n OperationState<VirtualNetworkLinksCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates or updates a virtual network link to the specified Private DNS zone.\n * @param resourceGroupName The name of the resource group.\n * @param privateZoneName The name of the Private DNS zone (without a terminating dot).\n * @param virtualNetworkLinkName The name of the virtual network link.\n * @param parameters Parameters supplied to the CreateOrUpdate operation.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n privateZoneName: string,\n virtualNetworkLinkName: string,\n parameters: VirtualNetworkLink,\n options?: VirtualNetworkLinksCreateOrUpdateOptionalParams,\n ): Promise<VirtualNetworkLinksCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n privateZoneName,\n virtualNetworkLinkName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates a virtual network link to the specified Private DNS zone.\n * @param resourceGroupName The name of the resource group.\n * @param privateZoneName The name of the Private DNS zone (without a terminating dot).\n * @param virtualNetworkLinkName The name of the virtual network link.\n * @param parameters Parameters supplied to the Update operation.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n privateZoneName: string,\n virtualNetworkLinkName: string,\n parameters: VirtualNetworkLink,\n options?: VirtualNetworkLinksUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<VirtualNetworkLinksUpdateResponse>,\n VirtualNetworkLinksUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<VirtualNetworkLinksUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n privateZoneName,\n virtualNetworkLinkName,\n parameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n VirtualNetworkLinksUpdateResponse,\n OperationState<VirtualNetworkLinksUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates a virtual network link to the specified Private DNS zone.\n * @param resourceGroupName The name of the resource group.\n * @param privateZoneName The name of the Private DNS zone (without a terminating dot).\n * @param virtualNetworkLinkName The name of the virtual network link.\n * @param parameters Parameters supplied to the Update operation.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n privateZoneName: string,\n virtualNetworkLinkName: string,\n parameters: VirtualNetworkLink,\n options?: VirtualNetworkLinksUpdateOptionalParams,\n ): Promise<VirtualNetworkLinksUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n privateZoneName,\n virtualNetworkLinkName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a virtual network link to the specified Private DNS zone. WARNING: In case of a registration\n * virtual network, all auto-registered DNS records in the zone for the virtual network will also be\n * deleted. This operation cannot be undone.\n * @param resourceGroupName The name of the resource group.\n * @param privateZoneName The name of the Private DNS zone (without a terminating dot).\n * @param virtualNetworkLinkName The name of the virtual network link.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n privateZoneName: string,\n virtualNetworkLinkName: string,\n options?: VirtualNetworkLinksDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n privateZoneName,\n virtualNetworkLinkName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a virtual network link to the specified Private DNS zone. WARNING: In case of a registration\n * virtual network, all auto-registered DNS records in the zone for the virtual network will also be\n * deleted. This operation cannot be undone.\n * @param resourceGroupName The name of the resource group.\n * @param privateZoneName The name of the Private DNS zone (without a terminating dot).\n * @param virtualNetworkLinkName The name of the virtual network link.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n privateZoneName: string,\n virtualNetworkLinkName: string,\n options?: VirtualNetworkLinksDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n privateZoneName,\n virtualNetworkLinkName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets a virtual network link to the specified Private DNS zone.\n * @param resourceGroupName The name of the resource group.\n * @param privateZoneName The name of the Private DNS zone (without a terminating dot).\n * @param virtualNetworkLinkName The name of the virtual network link.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n privateZoneName: string,\n virtualNetworkLinkName: string,\n options?: VirtualNetworkLinksGetOptionalParams,\n ): Promise<VirtualNetworkLinksGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, privateZoneName, virtualNetworkLinkName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Lists the virtual network links to the specified Private DNS zone.\n * @param resourceGroupName The name of the resource group.\n * @param privateZoneName The name of the Private DNS zone (without a terminating dot).\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n privateZoneName: string,\n options?: VirtualNetworkLinksListOptionalParams,\n ): Promise<VirtualNetworkLinksListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, privateZoneName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group.\n * @param privateZoneName The name of the Private DNS zone (without a terminating dot).\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n privateZoneName: string,\n nextLink: string,\n options?: VirtualNetworkLinksListNextOptionalParams,\n ): Promise<VirtualNetworkLinksListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, privateZoneName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks/{virtualNetworkLinkName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.VirtualNetworkLink,\n },\n 201: {\n bodyMapper: Mappers.VirtualNetworkLink,\n },\n 202: {\n bodyMapper: Mappers.VirtualNetworkLink,\n },\n 204: {\n bodyMapper: Mappers.VirtualNetworkLink,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.privateZoneName,\n Parameters.subscriptionId,\n Parameters.virtualNetworkLinkName,\n ],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks/{virtualNetworkLinkName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.VirtualNetworkLink,\n },\n 201: {\n bodyMapper: Mappers.VirtualNetworkLink,\n },\n 202: {\n bodyMapper: Mappers.VirtualNetworkLink,\n },\n 204: {\n bodyMapper: Mappers.VirtualNetworkLink,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.privateZoneName,\n Parameters.subscriptionId,\n Parameters.virtualNetworkLinkName,\n ],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks/{virtualNetworkLinkName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.privateZoneName,\n Parameters.subscriptionId,\n Parameters.virtualNetworkLinkName,\n ],\n headerParameters: [Parameters.accept, Parameters.ifMatch],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks/{virtualNetworkLinkName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.VirtualNetworkLink,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.privateZoneName,\n Parameters.subscriptionId,\n Parameters.virtualNetworkLinkName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.VirtualNetworkLinkListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.privateZoneName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.VirtualNetworkLinkListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.privateZoneName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -0,0 +1,4 @@
1
+ export * from "./privateZones.js";
2
+ export * from "./virtualNetworkLinks.js";
3
+ export * from "./recordSets.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC"}