@azure/arm-privatedns 3.3.1-alpha.20250217.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
package/dist/index.js DELETED
@@ -1,2499 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var tslib = require('tslib');
6
- var coreClient = require('@azure/core-client');
7
- var coreRestPipeline = require('@azure/core-rest-pipeline');
8
- var coreLro = require('@azure/core-lro');
9
-
10
- function _interopNamespaceDefault(e) {
11
- var n = Object.create(null);
12
- if (e) {
13
- Object.keys(e).forEach(function (k) {
14
- if (k !== 'default') {
15
- var d = Object.getOwnPropertyDescriptor(e, k);
16
- Object.defineProperty(n, k, d.get ? d : {
17
- enumerable: true,
18
- get: function () { return e[k]; }
19
- });
20
- }
21
- });
22
- }
23
- n.default = e;
24
- return Object.freeze(n);
25
- }
26
-
27
- var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
28
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
29
-
30
- /*
31
- * Copyright (c) Microsoft Corporation.
32
- * Licensed under the MIT License.
33
- *
34
- * Code generated by Microsoft (R) AutoRest Code Generator.
35
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
36
- */
37
- const pageMap = new WeakMap();
38
- /**
39
- * Given the last `.value` produced by the `byPage` iterator,
40
- * returns a continuation token that can be used to begin paging from
41
- * that point later.
42
- * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
43
- * @returns The continuation token that can be passed into byPage() during future calls.
44
- */
45
- function getContinuationToken(page) {
46
- var _a;
47
- if (typeof page !== "object" || page === null) {
48
- return undefined;
49
- }
50
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
51
- }
52
- function setContinuationToken(page, continuationToken) {
53
- var _a;
54
- if (typeof page !== "object" || page === null || !continuationToken) {
55
- return;
56
- }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
58
- pageInfo.continuationToken = continuationToken;
59
- pageMap.set(page, pageInfo);
60
- }
61
-
62
- /*
63
- * Copyright (c) Microsoft Corporation.
64
- * Licensed under the MIT License.
65
- *
66
- * Code generated by Microsoft (R) AutoRest Code Generator.
67
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
68
- */
69
- /** Known values of {@link ProvisioningState} that the service accepts. */
70
- exports.KnownProvisioningState = void 0;
71
- (function (KnownProvisioningState) {
72
- /** Creating */
73
- KnownProvisioningState["Creating"] = "Creating";
74
- /** Updating */
75
- KnownProvisioningState["Updating"] = "Updating";
76
- /** Deleting */
77
- KnownProvisioningState["Deleting"] = "Deleting";
78
- /** Succeeded */
79
- KnownProvisioningState["Succeeded"] = "Succeeded";
80
- /** Failed */
81
- KnownProvisioningState["Failed"] = "Failed";
82
- /** Canceled */
83
- KnownProvisioningState["Canceled"] = "Canceled";
84
- })(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
85
- /** Known values of {@link ResolutionPolicy} that the service accepts. */
86
- exports.KnownResolutionPolicy = void 0;
87
- (function (KnownResolutionPolicy) {
88
- /** Default */
89
- KnownResolutionPolicy["Default"] = "Default";
90
- /** NxDomainRedirect */
91
- KnownResolutionPolicy["NxDomainRedirect"] = "NxDomainRedirect";
92
- })(exports.KnownResolutionPolicy || (exports.KnownResolutionPolicy = {}));
93
- /** Known values of {@link VirtualNetworkLinkState} that the service accepts. */
94
- exports.KnownVirtualNetworkLinkState = void 0;
95
- (function (KnownVirtualNetworkLinkState) {
96
- /** InProgress */
97
- KnownVirtualNetworkLinkState["InProgress"] = "InProgress";
98
- /** Completed */
99
- KnownVirtualNetworkLinkState["Completed"] = "Completed";
100
- })(exports.KnownVirtualNetworkLinkState || (exports.KnownVirtualNetworkLinkState = {}));
101
-
102
- /*
103
- * Copyright (c) Microsoft Corporation.
104
- * Licensed under the MIT License.
105
- *
106
- * Code generated by Microsoft (R) AutoRest Code Generator.
107
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
108
- */
109
- const Resource = {
110
- type: {
111
- name: "Composite",
112
- className: "Resource",
113
- modelProperties: {
114
- id: {
115
- serializedName: "id",
116
- readOnly: true,
117
- type: {
118
- name: "String",
119
- },
120
- },
121
- name: {
122
- serializedName: "name",
123
- readOnly: true,
124
- type: {
125
- name: "String",
126
- },
127
- },
128
- type: {
129
- serializedName: "type",
130
- readOnly: true,
131
- type: {
132
- name: "String",
133
- },
134
- },
135
- },
136
- },
137
- };
138
- const CloudError = {
139
- type: {
140
- name: "Composite",
141
- className: "CloudError",
142
- modelProperties: {
143
- error: {
144
- serializedName: "error",
145
- type: {
146
- name: "Composite",
147
- className: "CloudErrorBody",
148
- },
149
- },
150
- },
151
- },
152
- };
153
- const CloudErrorBody = {
154
- type: {
155
- name: "Composite",
156
- className: "CloudErrorBody",
157
- modelProperties: {
158
- code: {
159
- serializedName: "code",
160
- type: {
161
- name: "String",
162
- },
163
- },
164
- message: {
165
- serializedName: "message",
166
- type: {
167
- name: "String",
168
- },
169
- },
170
- target: {
171
- serializedName: "target",
172
- type: {
173
- name: "String",
174
- },
175
- },
176
- details: {
177
- serializedName: "details",
178
- type: {
179
- name: "Sequence",
180
- element: {
181
- type: {
182
- name: "Composite",
183
- className: "CloudErrorBody",
184
- },
185
- },
186
- },
187
- },
188
- },
189
- },
190
- };
191
- const PrivateZoneListResult = {
192
- type: {
193
- name: "Composite",
194
- className: "PrivateZoneListResult",
195
- modelProperties: {
196
- value: {
197
- serializedName: "value",
198
- type: {
199
- name: "Sequence",
200
- element: {
201
- type: {
202
- name: "Composite",
203
- className: "PrivateZone",
204
- },
205
- },
206
- },
207
- },
208
- nextLink: {
209
- serializedName: "nextLink",
210
- readOnly: true,
211
- type: {
212
- name: "String",
213
- },
214
- },
215
- },
216
- },
217
- };
218
- const SubResource = {
219
- type: {
220
- name: "Composite",
221
- className: "SubResource",
222
- modelProperties: {
223
- id: {
224
- serializedName: "id",
225
- type: {
226
- name: "String",
227
- },
228
- },
229
- },
230
- },
231
- };
232
- const VirtualNetworkLinkListResult = {
233
- type: {
234
- name: "Composite",
235
- className: "VirtualNetworkLinkListResult",
236
- modelProperties: {
237
- value: {
238
- serializedName: "value",
239
- type: {
240
- name: "Sequence",
241
- element: {
242
- type: {
243
- name: "Composite",
244
- className: "VirtualNetworkLink",
245
- },
246
- },
247
- },
248
- },
249
- nextLink: {
250
- serializedName: "nextLink",
251
- readOnly: true,
252
- type: {
253
- name: "String",
254
- },
255
- },
256
- },
257
- },
258
- };
259
- const ARecord = {
260
- type: {
261
- name: "Composite",
262
- className: "ARecord",
263
- modelProperties: {
264
- ipv4Address: {
265
- serializedName: "ipv4Address",
266
- type: {
267
- name: "String",
268
- },
269
- },
270
- },
271
- },
272
- };
273
- const AaaaRecord = {
274
- type: {
275
- name: "Composite",
276
- className: "AaaaRecord",
277
- modelProperties: {
278
- ipv6Address: {
279
- serializedName: "ipv6Address",
280
- type: {
281
- name: "String",
282
- },
283
- },
284
- },
285
- },
286
- };
287
- const CnameRecord = {
288
- type: {
289
- name: "Composite",
290
- className: "CnameRecord",
291
- modelProperties: {
292
- cname: {
293
- serializedName: "cname",
294
- type: {
295
- name: "String",
296
- },
297
- },
298
- },
299
- },
300
- };
301
- const MxRecord = {
302
- type: {
303
- name: "Composite",
304
- className: "MxRecord",
305
- modelProperties: {
306
- preference: {
307
- serializedName: "preference",
308
- type: {
309
- name: "Number",
310
- },
311
- },
312
- exchange: {
313
- serializedName: "exchange",
314
- type: {
315
- name: "String",
316
- },
317
- },
318
- },
319
- },
320
- };
321
- const PtrRecord = {
322
- type: {
323
- name: "Composite",
324
- className: "PtrRecord",
325
- modelProperties: {
326
- ptrdname: {
327
- serializedName: "ptrdname",
328
- type: {
329
- name: "String",
330
- },
331
- },
332
- },
333
- },
334
- };
335
- const SoaRecord = {
336
- type: {
337
- name: "Composite",
338
- className: "SoaRecord",
339
- modelProperties: {
340
- host: {
341
- serializedName: "host",
342
- type: {
343
- name: "String",
344
- },
345
- },
346
- email: {
347
- serializedName: "email",
348
- type: {
349
- name: "String",
350
- },
351
- },
352
- serialNumber: {
353
- serializedName: "serialNumber",
354
- type: {
355
- name: "Number",
356
- },
357
- },
358
- refreshTime: {
359
- serializedName: "refreshTime",
360
- type: {
361
- name: "Number",
362
- },
363
- },
364
- retryTime: {
365
- serializedName: "retryTime",
366
- type: {
367
- name: "Number",
368
- },
369
- },
370
- expireTime: {
371
- serializedName: "expireTime",
372
- type: {
373
- name: "Number",
374
- },
375
- },
376
- minimumTtl: {
377
- serializedName: "minimumTtl",
378
- type: {
379
- name: "Number",
380
- },
381
- },
382
- },
383
- },
384
- };
385
- const SrvRecord = {
386
- type: {
387
- name: "Composite",
388
- className: "SrvRecord",
389
- modelProperties: {
390
- priority: {
391
- serializedName: "priority",
392
- type: {
393
- name: "Number",
394
- },
395
- },
396
- weight: {
397
- serializedName: "weight",
398
- type: {
399
- name: "Number",
400
- },
401
- },
402
- port: {
403
- serializedName: "port",
404
- type: {
405
- name: "Number",
406
- },
407
- },
408
- target: {
409
- serializedName: "target",
410
- type: {
411
- name: "String",
412
- },
413
- },
414
- },
415
- },
416
- };
417
- const TxtRecord = {
418
- type: {
419
- name: "Composite",
420
- className: "TxtRecord",
421
- modelProperties: {
422
- value: {
423
- serializedName: "value",
424
- type: {
425
- name: "Sequence",
426
- element: {
427
- type: {
428
- name: "String",
429
- },
430
- },
431
- },
432
- },
433
- },
434
- },
435
- };
436
- const RecordSetListResult = {
437
- type: {
438
- name: "Composite",
439
- className: "RecordSetListResult",
440
- modelProperties: {
441
- value: {
442
- serializedName: "value",
443
- type: {
444
- name: "Sequence",
445
- element: {
446
- type: {
447
- name: "Composite",
448
- className: "RecordSet",
449
- },
450
- },
451
- },
452
- },
453
- nextLink: {
454
- serializedName: "nextLink",
455
- readOnly: true,
456
- type: {
457
- name: "String",
458
- },
459
- },
460
- },
461
- },
462
- };
463
- const TrackedResource = {
464
- type: {
465
- name: "Composite",
466
- className: "TrackedResource",
467
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
468
- serializedName: "tags",
469
- type: {
470
- name: "Dictionary",
471
- value: { type: { name: "String" } },
472
- },
473
- }, location: {
474
- serializedName: "location",
475
- type: {
476
- name: "String",
477
- },
478
- } }),
479
- },
480
- };
481
- const ProxyResource = {
482
- type: {
483
- name: "Composite",
484
- className: "ProxyResource",
485
- modelProperties: Object.assign({}, Resource.type.modelProperties),
486
- },
487
- };
488
- const PrivateZone = {
489
- type: {
490
- name: "Composite",
491
- className: "PrivateZone",
492
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { etag: {
493
- serializedName: "etag",
494
- type: {
495
- name: "String",
496
- },
497
- }, maxNumberOfRecordSets: {
498
- serializedName: "properties.maxNumberOfRecordSets",
499
- readOnly: true,
500
- type: {
501
- name: "Number",
502
- },
503
- }, numberOfRecordSets: {
504
- serializedName: "properties.numberOfRecordSets",
505
- readOnly: true,
506
- type: {
507
- name: "Number",
508
- },
509
- }, maxNumberOfVirtualNetworkLinks: {
510
- serializedName: "properties.maxNumberOfVirtualNetworkLinks",
511
- readOnly: true,
512
- type: {
513
- name: "Number",
514
- },
515
- }, numberOfVirtualNetworkLinks: {
516
- serializedName: "properties.numberOfVirtualNetworkLinks",
517
- readOnly: true,
518
- type: {
519
- name: "Number",
520
- },
521
- }, maxNumberOfVirtualNetworkLinksWithRegistration: {
522
- serializedName: "properties.maxNumberOfVirtualNetworkLinksWithRegistration",
523
- readOnly: true,
524
- type: {
525
- name: "Number",
526
- },
527
- }, numberOfVirtualNetworkLinksWithRegistration: {
528
- serializedName: "properties.numberOfVirtualNetworkLinksWithRegistration",
529
- readOnly: true,
530
- type: {
531
- name: "Number",
532
- },
533
- }, provisioningState: {
534
- serializedName: "properties.provisioningState",
535
- readOnly: true,
536
- type: {
537
- name: "String",
538
- },
539
- }, internalId: {
540
- serializedName: "properties.internalId",
541
- readOnly: true,
542
- type: {
543
- name: "String",
544
- },
545
- } }),
546
- },
547
- };
548
- const VirtualNetworkLink = {
549
- type: {
550
- name: "Composite",
551
- className: "VirtualNetworkLink",
552
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { etag: {
553
- serializedName: "etag",
554
- type: {
555
- name: "String",
556
- },
557
- }, virtualNetwork: {
558
- serializedName: "properties.virtualNetwork",
559
- type: {
560
- name: "Composite",
561
- className: "SubResource",
562
- },
563
- }, registrationEnabled: {
564
- serializedName: "properties.registrationEnabled",
565
- type: {
566
- name: "Boolean",
567
- },
568
- }, resolutionPolicy: {
569
- serializedName: "properties.resolutionPolicy",
570
- type: {
571
- name: "String",
572
- },
573
- }, virtualNetworkLinkState: {
574
- serializedName: "properties.virtualNetworkLinkState",
575
- readOnly: true,
576
- type: {
577
- name: "String",
578
- },
579
- }, provisioningState: {
580
- serializedName: "properties.provisioningState",
581
- readOnly: true,
582
- type: {
583
- name: "String",
584
- },
585
- } }),
586
- },
587
- };
588
- const RecordSet = {
589
- type: {
590
- name: "Composite",
591
- className: "RecordSet",
592
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { etag: {
593
- serializedName: "etag",
594
- type: {
595
- name: "String",
596
- },
597
- }, metadata: {
598
- serializedName: "properties.metadata",
599
- type: {
600
- name: "Dictionary",
601
- value: { type: { name: "String" } },
602
- },
603
- }, ttl: {
604
- serializedName: "properties.ttl",
605
- type: {
606
- name: "Number",
607
- },
608
- }, fqdn: {
609
- serializedName: "properties.fqdn",
610
- readOnly: true,
611
- type: {
612
- name: "String",
613
- },
614
- }, isAutoRegistered: {
615
- serializedName: "properties.isAutoRegistered",
616
- readOnly: true,
617
- type: {
618
- name: "Boolean",
619
- },
620
- }, aRecords: {
621
- serializedName: "properties.aRecords",
622
- type: {
623
- name: "Sequence",
624
- element: {
625
- type: {
626
- name: "Composite",
627
- className: "ARecord",
628
- },
629
- },
630
- },
631
- }, aaaaRecords: {
632
- serializedName: "properties.aaaaRecords",
633
- type: {
634
- name: "Sequence",
635
- element: {
636
- type: {
637
- name: "Composite",
638
- className: "AaaaRecord",
639
- },
640
- },
641
- },
642
- }, cnameRecord: {
643
- serializedName: "properties.cnameRecord",
644
- type: {
645
- name: "Composite",
646
- className: "CnameRecord",
647
- },
648
- }, mxRecords: {
649
- serializedName: "properties.mxRecords",
650
- type: {
651
- name: "Sequence",
652
- element: {
653
- type: {
654
- name: "Composite",
655
- className: "MxRecord",
656
- },
657
- },
658
- },
659
- }, ptrRecords: {
660
- serializedName: "properties.ptrRecords",
661
- type: {
662
- name: "Sequence",
663
- element: {
664
- type: {
665
- name: "Composite",
666
- className: "PtrRecord",
667
- },
668
- },
669
- },
670
- }, soaRecord: {
671
- serializedName: "properties.soaRecord",
672
- type: {
673
- name: "Composite",
674
- className: "SoaRecord",
675
- },
676
- }, srvRecords: {
677
- serializedName: "properties.srvRecords",
678
- type: {
679
- name: "Sequence",
680
- element: {
681
- type: {
682
- name: "Composite",
683
- className: "SrvRecord",
684
- },
685
- },
686
- },
687
- }, txtRecords: {
688
- serializedName: "properties.txtRecords",
689
- type: {
690
- name: "Sequence",
691
- element: {
692
- type: {
693
- name: "Composite",
694
- className: "TxtRecord",
695
- },
696
- },
697
- },
698
- } }),
699
- },
700
- };
701
-
702
- var Mappers = /*#__PURE__*/Object.freeze({
703
- __proto__: null,
704
- ARecord: ARecord,
705
- AaaaRecord: AaaaRecord,
706
- CloudError: CloudError,
707
- CloudErrorBody: CloudErrorBody,
708
- CnameRecord: CnameRecord,
709
- MxRecord: MxRecord,
710
- PrivateZone: PrivateZone,
711
- PrivateZoneListResult: PrivateZoneListResult,
712
- ProxyResource: ProxyResource,
713
- PtrRecord: PtrRecord,
714
- RecordSet: RecordSet,
715
- RecordSetListResult: RecordSetListResult,
716
- Resource: Resource,
717
- SoaRecord: SoaRecord,
718
- SrvRecord: SrvRecord,
719
- SubResource: SubResource,
720
- TrackedResource: TrackedResource,
721
- TxtRecord: TxtRecord,
722
- VirtualNetworkLink: VirtualNetworkLink,
723
- VirtualNetworkLinkListResult: VirtualNetworkLinkListResult
724
- });
725
-
726
- /*
727
- * Copyright (c) Microsoft Corporation.
728
- * Licensed under the MIT License.
729
- *
730
- * Code generated by Microsoft (R) AutoRest Code Generator.
731
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
732
- */
733
- const contentType = {
734
- parameterPath: ["options", "contentType"],
735
- mapper: {
736
- defaultValue: "application/json",
737
- isConstant: true,
738
- serializedName: "Content-Type",
739
- type: {
740
- name: "String",
741
- },
742
- },
743
- };
744
- const parameters = {
745
- parameterPath: "parameters",
746
- mapper: PrivateZone,
747
- };
748
- const accept = {
749
- parameterPath: "accept",
750
- mapper: {
751
- defaultValue: "application/json",
752
- isConstant: true,
753
- serializedName: "Accept",
754
- type: {
755
- name: "String",
756
- },
757
- },
758
- };
759
- const $host = {
760
- parameterPath: "$host",
761
- mapper: {
762
- serializedName: "$host",
763
- required: true,
764
- type: {
765
- name: "String",
766
- },
767
- },
768
- skipEncoding: true,
769
- };
770
- const resourceGroupName = {
771
- parameterPath: "resourceGroupName",
772
- mapper: {
773
- serializedName: "resourceGroupName",
774
- required: true,
775
- type: {
776
- name: "String",
777
- },
778
- },
779
- };
780
- const privateZoneName = {
781
- parameterPath: "privateZoneName",
782
- mapper: {
783
- serializedName: "privateZoneName",
784
- required: true,
785
- type: {
786
- name: "String",
787
- },
788
- },
789
- };
790
- const ifMatch = {
791
- parameterPath: ["options", "ifMatch"],
792
- mapper: {
793
- serializedName: "If-Match",
794
- type: {
795
- name: "String",
796
- },
797
- },
798
- };
799
- const ifNoneMatch = {
800
- parameterPath: ["options", "ifNoneMatch"],
801
- mapper: {
802
- serializedName: "If-None-Match",
803
- type: {
804
- name: "String",
805
- },
806
- },
807
- };
808
- const apiVersion = {
809
- parameterPath: "apiVersion",
810
- mapper: {
811
- defaultValue: "2024-06-01",
812
- isConstant: true,
813
- serializedName: "api-version",
814
- type: {
815
- name: "String",
816
- },
817
- },
818
- };
819
- const subscriptionId = {
820
- parameterPath: "subscriptionId",
821
- mapper: {
822
- serializedName: "subscriptionId",
823
- required: true,
824
- type: {
825
- name: "String",
826
- },
827
- },
828
- };
829
- const top = {
830
- parameterPath: ["options", "top"],
831
- mapper: {
832
- serializedName: "$top",
833
- type: {
834
- name: "Number",
835
- },
836
- },
837
- };
838
- const nextLink = {
839
- parameterPath: "nextLink",
840
- mapper: {
841
- serializedName: "nextLink",
842
- required: true,
843
- type: {
844
- name: "String",
845
- },
846
- },
847
- skipEncoding: true,
848
- };
849
- const parameters1 = {
850
- parameterPath: "parameters",
851
- mapper: VirtualNetworkLink,
852
- };
853
- const virtualNetworkLinkName = {
854
- parameterPath: "virtualNetworkLinkName",
855
- mapper: {
856
- serializedName: "virtualNetworkLinkName",
857
- required: true,
858
- type: {
859
- name: "String",
860
- },
861
- },
862
- };
863
- const parameters2 = {
864
- parameterPath: "parameters",
865
- mapper: RecordSet,
866
- };
867
- const recordType = {
868
- parameterPath: "recordType",
869
- mapper: {
870
- serializedName: "recordType",
871
- required: true,
872
- type: {
873
- name: "Enum",
874
- allowedValues: ["A", "AAAA", "CNAME", "MX", "PTR", "SOA", "SRV", "TXT"],
875
- },
876
- },
877
- };
878
- const relativeRecordSetName = {
879
- parameterPath: "relativeRecordSetName",
880
- mapper: {
881
- serializedName: "relativeRecordSetName",
882
- required: true,
883
- type: {
884
- name: "String",
885
- },
886
- },
887
- skipEncoding: true,
888
- };
889
- const recordsetnamesuffix = {
890
- parameterPath: ["options", "recordsetnamesuffix"],
891
- mapper: {
892
- serializedName: "$recordsetnamesuffix",
893
- type: {
894
- name: "String",
895
- },
896
- },
897
- };
898
-
899
- function createLroSpec(inputs) {
900
- const { args, spec, sendOperationFn } = inputs;
901
- return {
902
- requestMethod: spec.httpMethod,
903
- requestPath: spec.path,
904
- sendInitialRequest: () => sendOperationFn(args, spec),
905
- sendPollRequest: (path, options) => {
906
- const { requestBody } = spec, restSpec = tslib.__rest(spec, ["requestBody"]);
907
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
908
- },
909
- };
910
- }
911
-
912
- /*
913
- * Copyright (c) Microsoft Corporation.
914
- * Licensed under the MIT License.
915
- *
916
- * Code generated by Microsoft (R) AutoRest Code Generator.
917
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
918
- */
919
- /// <reference lib="esnext.asynciterable" />
920
- /** Class containing PrivateZones operations. */
921
- class PrivateZonesImpl {
922
- /**
923
- * Initialize a new instance of the class PrivateZones class.
924
- * @param client Reference to the service client
925
- */
926
- constructor(client) {
927
- this.client = client;
928
- }
929
- /**
930
- * Lists the Private DNS zones in all resource groups in a subscription.
931
- * @param options The options parameters.
932
- */
933
- list(options) {
934
- const iter = this.listPagingAll(options);
935
- return {
936
- next() {
937
- return iter.next();
938
- },
939
- [Symbol.asyncIterator]() {
940
- return this;
941
- },
942
- byPage: (settings) => {
943
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
944
- throw new Error("maxPageSize is not supported by this operation.");
945
- }
946
- return this.listPagingPage(options, settings);
947
- },
948
- };
949
- }
950
- listPagingPage(options, settings) {
951
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
952
- let result;
953
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
954
- if (!continuationToken) {
955
- result = yield tslib.__await(this._list(options));
956
- let page = result.value || [];
957
- continuationToken = result.nextLink;
958
- setContinuationToken(page, continuationToken);
959
- yield yield tslib.__await(page);
960
- }
961
- while (continuationToken) {
962
- result = yield tslib.__await(this._listNext(continuationToken, options));
963
- continuationToken = result.nextLink;
964
- let page = result.value || [];
965
- setContinuationToken(page, continuationToken);
966
- yield yield tslib.__await(page);
967
- }
968
- });
969
- }
970
- listPagingAll(options) {
971
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
972
- var _a, e_1, _b, _c;
973
- try {
974
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
975
- _c = _f.value;
976
- _d = false;
977
- const page = _c;
978
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
979
- }
980
- }
981
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
982
- finally {
983
- try {
984
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
985
- }
986
- finally { if (e_1) throw e_1.error; }
987
- }
988
- });
989
- }
990
- /**
991
- * Lists the Private DNS zones within a resource group.
992
- * @param resourceGroupName The name of the resource group.
993
- * @param options The options parameters.
994
- */
995
- listByResourceGroup(resourceGroupName, options) {
996
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
997
- return {
998
- next() {
999
- return iter.next();
1000
- },
1001
- [Symbol.asyncIterator]() {
1002
- return this;
1003
- },
1004
- byPage: (settings) => {
1005
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1006
- throw new Error("maxPageSize is not supported by this operation.");
1007
- }
1008
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
1009
- },
1010
- };
1011
- }
1012
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
1013
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1014
- let result;
1015
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1016
- if (!continuationToken) {
1017
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1018
- let page = result.value || [];
1019
- continuationToken = result.nextLink;
1020
- setContinuationToken(page, continuationToken);
1021
- yield yield tslib.__await(page);
1022
- }
1023
- while (continuationToken) {
1024
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1025
- continuationToken = result.nextLink;
1026
- let page = result.value || [];
1027
- setContinuationToken(page, continuationToken);
1028
- yield yield tslib.__await(page);
1029
- }
1030
- });
1031
- }
1032
- listByResourceGroupPagingAll(resourceGroupName, options) {
1033
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1034
- var _a, e_2, _b, _c;
1035
- try {
1036
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1037
- _c = _f.value;
1038
- _d = false;
1039
- const page = _c;
1040
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1041
- }
1042
- }
1043
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1044
- finally {
1045
- try {
1046
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1047
- }
1048
- finally { if (e_2) throw e_2.error; }
1049
- }
1050
- });
1051
- }
1052
- /**
1053
- * Creates or updates a Private DNS zone. Does not modify Links to virtual networks or DNS records
1054
- * within the zone.
1055
- * @param resourceGroupName The name of the resource group.
1056
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
1057
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
1058
- * @param options The options parameters.
1059
- */
1060
- beginCreateOrUpdate(resourceGroupName, privateZoneName, parameters, options) {
1061
- return tslib.__awaiter(this, void 0, void 0, function* () {
1062
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1063
- return this.client.sendOperationRequest(args, spec);
1064
- });
1065
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1066
- var _a;
1067
- let currentRawResponse = undefined;
1068
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1069
- const callback = (rawResponse, flatResponse) => {
1070
- currentRawResponse = rawResponse;
1071
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1072
- };
1073
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1074
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1075
- return {
1076
- flatResponse,
1077
- rawResponse: {
1078
- statusCode: currentRawResponse.status,
1079
- body: currentRawResponse.parsedBody,
1080
- headers: currentRawResponse.headers.toJSON(),
1081
- },
1082
- };
1083
- });
1084
- const lro = createLroSpec({
1085
- sendOperationFn,
1086
- args: { resourceGroupName, privateZoneName, parameters, options },
1087
- spec: createOrUpdateOperationSpec$2,
1088
- });
1089
- const poller = yield coreLro.createHttpPoller(lro, {
1090
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1091
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1092
- });
1093
- yield poller.poll();
1094
- return poller;
1095
- });
1096
- }
1097
- /**
1098
- * Creates or updates a Private DNS zone. Does not modify Links to virtual networks or DNS records
1099
- * within the zone.
1100
- * @param resourceGroupName The name of the resource group.
1101
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
1102
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
1103
- * @param options The options parameters.
1104
- */
1105
- beginCreateOrUpdateAndWait(resourceGroupName, privateZoneName, parameters, options) {
1106
- return tslib.__awaiter(this, void 0, void 0, function* () {
1107
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, privateZoneName, parameters, options);
1108
- return poller.pollUntilDone();
1109
- });
1110
- }
1111
- /**
1112
- * Updates a Private DNS zone. Does not modify virtual network links or DNS records within the zone.
1113
- * @param resourceGroupName The name of the resource group.
1114
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
1115
- * @param parameters Parameters supplied to the Update operation.
1116
- * @param options The options parameters.
1117
- */
1118
- beginUpdate(resourceGroupName, privateZoneName, parameters, options) {
1119
- return tslib.__awaiter(this, void 0, void 0, function* () {
1120
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1121
- return this.client.sendOperationRequest(args, spec);
1122
- });
1123
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1124
- var _a;
1125
- let currentRawResponse = undefined;
1126
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1127
- const callback = (rawResponse, flatResponse) => {
1128
- currentRawResponse = rawResponse;
1129
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1130
- };
1131
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1132
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1133
- return {
1134
- flatResponse,
1135
- rawResponse: {
1136
- statusCode: currentRawResponse.status,
1137
- body: currentRawResponse.parsedBody,
1138
- headers: currentRawResponse.headers.toJSON(),
1139
- },
1140
- };
1141
- });
1142
- const lro = createLroSpec({
1143
- sendOperationFn,
1144
- args: { resourceGroupName, privateZoneName, parameters, options },
1145
- spec: updateOperationSpec$2,
1146
- });
1147
- const poller = yield coreLro.createHttpPoller(lro, {
1148
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1149
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1150
- });
1151
- yield poller.poll();
1152
- return poller;
1153
- });
1154
- }
1155
- /**
1156
- * Updates a Private DNS zone. Does not modify virtual network links or DNS records within the zone.
1157
- * @param resourceGroupName The name of the resource group.
1158
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
1159
- * @param parameters Parameters supplied to the Update operation.
1160
- * @param options The options parameters.
1161
- */
1162
- beginUpdateAndWait(resourceGroupName, privateZoneName, parameters, options) {
1163
- return tslib.__awaiter(this, void 0, void 0, function* () {
1164
- const poller = yield this.beginUpdate(resourceGroupName, privateZoneName, parameters, options);
1165
- return poller.pollUntilDone();
1166
- });
1167
- }
1168
- /**
1169
- * Deletes a Private DNS zone. WARNING: All DNS records in the zone will also be deleted. This
1170
- * operation cannot be undone. Private DNS zone cannot be deleted unless all virtual network links to
1171
- * it are removed.
1172
- * @param resourceGroupName The name of the resource group.
1173
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
1174
- * @param options The options parameters.
1175
- */
1176
- beginDelete(resourceGroupName, privateZoneName, options) {
1177
- return tslib.__awaiter(this, void 0, void 0, function* () {
1178
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1179
- return this.client.sendOperationRequest(args, spec);
1180
- });
1181
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1182
- var _a;
1183
- let currentRawResponse = undefined;
1184
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1185
- const callback = (rawResponse, flatResponse) => {
1186
- currentRawResponse = rawResponse;
1187
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1188
- };
1189
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1190
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1191
- return {
1192
- flatResponse,
1193
- rawResponse: {
1194
- statusCode: currentRawResponse.status,
1195
- body: currentRawResponse.parsedBody,
1196
- headers: currentRawResponse.headers.toJSON(),
1197
- },
1198
- };
1199
- });
1200
- const lro = createLroSpec({
1201
- sendOperationFn,
1202
- args: { resourceGroupName, privateZoneName, options },
1203
- spec: deleteOperationSpec$2,
1204
- });
1205
- const poller = yield coreLro.createHttpPoller(lro, {
1206
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1207
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1208
- });
1209
- yield poller.poll();
1210
- return poller;
1211
- });
1212
- }
1213
- /**
1214
- * Deletes a Private DNS zone. WARNING: All DNS records in the zone will also be deleted. This
1215
- * operation cannot be undone. Private DNS zone cannot be deleted unless all virtual network links to
1216
- * it are removed.
1217
- * @param resourceGroupName The name of the resource group.
1218
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
1219
- * @param options The options parameters.
1220
- */
1221
- beginDeleteAndWait(resourceGroupName, privateZoneName, options) {
1222
- return tslib.__awaiter(this, void 0, void 0, function* () {
1223
- const poller = yield this.beginDelete(resourceGroupName, privateZoneName, options);
1224
- return poller.pollUntilDone();
1225
- });
1226
- }
1227
- /**
1228
- * Gets a Private DNS zone. Retrieves the zone properties, but not the virtual networks links or the
1229
- * record sets within the zone.
1230
- * @param resourceGroupName The name of the resource group.
1231
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
1232
- * @param options The options parameters.
1233
- */
1234
- get(resourceGroupName, privateZoneName, options) {
1235
- return this.client.sendOperationRequest({ resourceGroupName, privateZoneName, options }, getOperationSpec$2);
1236
- }
1237
- /**
1238
- * Lists the Private DNS zones in all resource groups in a subscription.
1239
- * @param options The options parameters.
1240
- */
1241
- _list(options) {
1242
- return this.client.sendOperationRequest({ options }, listOperationSpec$2);
1243
- }
1244
- /**
1245
- * Lists the Private DNS zones within a resource group.
1246
- * @param resourceGroupName The name of the resource group.
1247
- * @param options The options parameters.
1248
- */
1249
- _listByResourceGroup(resourceGroupName, options) {
1250
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1251
- }
1252
- /**
1253
- * ListNext
1254
- * @param nextLink The nextLink from the previous successful call to the List method.
1255
- * @param options The options parameters.
1256
- */
1257
- _listNext(nextLink, options) {
1258
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
1259
- }
1260
- /**
1261
- * ListByResourceGroupNext
1262
- * @param resourceGroupName The name of the resource group.
1263
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1264
- * @param options The options parameters.
1265
- */
1266
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1267
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
1268
- }
1269
- }
1270
- // Operation Specifications
1271
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1272
- const createOrUpdateOperationSpec$2 = {
1273
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
1274
- httpMethod: "PUT",
1275
- responses: {
1276
- 200: {
1277
- bodyMapper: PrivateZone,
1278
- },
1279
- 201: {
1280
- bodyMapper: PrivateZone,
1281
- },
1282
- 202: {
1283
- bodyMapper: PrivateZone,
1284
- },
1285
- 204: {
1286
- bodyMapper: PrivateZone,
1287
- },
1288
- default: {
1289
- bodyMapper: CloudError,
1290
- },
1291
- },
1292
- requestBody: parameters,
1293
- queryParameters: [apiVersion],
1294
- urlParameters: [
1295
- $host,
1296
- resourceGroupName,
1297
- privateZoneName,
1298
- subscriptionId,
1299
- ],
1300
- headerParameters: [
1301
- contentType,
1302
- accept,
1303
- ifMatch,
1304
- ifNoneMatch,
1305
- ],
1306
- mediaType: "json",
1307
- serializer: serializer$2,
1308
- };
1309
- const updateOperationSpec$2 = {
1310
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
1311
- httpMethod: "PATCH",
1312
- responses: {
1313
- 200: {
1314
- bodyMapper: PrivateZone,
1315
- },
1316
- 201: {
1317
- bodyMapper: PrivateZone,
1318
- },
1319
- 202: {
1320
- bodyMapper: PrivateZone,
1321
- },
1322
- 204: {
1323
- bodyMapper: PrivateZone,
1324
- },
1325
- default: {
1326
- bodyMapper: CloudError,
1327
- },
1328
- },
1329
- requestBody: parameters,
1330
- queryParameters: [apiVersion],
1331
- urlParameters: [
1332
- $host,
1333
- resourceGroupName,
1334
- privateZoneName,
1335
- subscriptionId,
1336
- ],
1337
- headerParameters: [
1338
- contentType,
1339
- accept,
1340
- ifMatch,
1341
- ],
1342
- mediaType: "json",
1343
- serializer: serializer$2,
1344
- };
1345
- const deleteOperationSpec$2 = {
1346
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
1347
- httpMethod: "DELETE",
1348
- responses: {
1349
- 200: {},
1350
- 201: {},
1351
- 202: {},
1352
- 204: {},
1353
- default: {
1354
- bodyMapper: CloudError,
1355
- },
1356
- },
1357
- queryParameters: [apiVersion],
1358
- urlParameters: [
1359
- $host,
1360
- resourceGroupName,
1361
- privateZoneName,
1362
- subscriptionId,
1363
- ],
1364
- headerParameters: [accept, ifMatch],
1365
- serializer: serializer$2,
1366
- };
1367
- const getOperationSpec$2 = {
1368
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}",
1369
- httpMethod: "GET",
1370
- responses: {
1371
- 200: {
1372
- bodyMapper: PrivateZone,
1373
- },
1374
- default: {
1375
- bodyMapper: CloudError,
1376
- },
1377
- },
1378
- queryParameters: [apiVersion],
1379
- urlParameters: [
1380
- $host,
1381
- resourceGroupName,
1382
- privateZoneName,
1383
- subscriptionId,
1384
- ],
1385
- headerParameters: [accept],
1386
- serializer: serializer$2,
1387
- };
1388
- const listOperationSpec$2 = {
1389
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/privateDnsZones",
1390
- httpMethod: "GET",
1391
- responses: {
1392
- 200: {
1393
- bodyMapper: PrivateZoneListResult,
1394
- },
1395
- default: {
1396
- bodyMapper: CloudError,
1397
- },
1398
- },
1399
- queryParameters: [apiVersion, top],
1400
- urlParameters: [$host, subscriptionId],
1401
- headerParameters: [accept],
1402
- serializer: serializer$2,
1403
- };
1404
- const listByResourceGroupOperationSpec = {
1405
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones",
1406
- httpMethod: "GET",
1407
- responses: {
1408
- 200: {
1409
- bodyMapper: PrivateZoneListResult,
1410
- },
1411
- default: {
1412
- bodyMapper: CloudError,
1413
- },
1414
- },
1415
- queryParameters: [apiVersion, top],
1416
- urlParameters: [
1417
- $host,
1418
- resourceGroupName,
1419
- subscriptionId,
1420
- ],
1421
- headerParameters: [accept],
1422
- serializer: serializer$2,
1423
- };
1424
- const listNextOperationSpec$2 = {
1425
- path: "{nextLink}",
1426
- httpMethod: "GET",
1427
- responses: {
1428
- 200: {
1429
- bodyMapper: PrivateZoneListResult,
1430
- },
1431
- default: {
1432
- bodyMapper: CloudError,
1433
- },
1434
- },
1435
- urlParameters: [
1436
- $host,
1437
- subscriptionId,
1438
- nextLink,
1439
- ],
1440
- headerParameters: [accept],
1441
- serializer: serializer$2,
1442
- };
1443
- const listByResourceGroupNextOperationSpec = {
1444
- path: "{nextLink}",
1445
- httpMethod: "GET",
1446
- responses: {
1447
- 200: {
1448
- bodyMapper: PrivateZoneListResult,
1449
- },
1450
- default: {
1451
- bodyMapper: CloudError,
1452
- },
1453
- },
1454
- urlParameters: [
1455
- $host,
1456
- resourceGroupName,
1457
- subscriptionId,
1458
- nextLink,
1459
- ],
1460
- headerParameters: [accept],
1461
- serializer: serializer$2,
1462
- };
1463
-
1464
- /*
1465
- * Copyright (c) Microsoft Corporation.
1466
- * Licensed under the MIT License.
1467
- *
1468
- * Code generated by Microsoft (R) AutoRest Code Generator.
1469
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1470
- */
1471
- /// <reference lib="esnext.asynciterable" />
1472
- /** Class containing VirtualNetworkLinks operations. */
1473
- class VirtualNetworkLinksImpl {
1474
- /**
1475
- * Initialize a new instance of the class VirtualNetworkLinks class.
1476
- * @param client Reference to the service client
1477
- */
1478
- constructor(client) {
1479
- this.client = client;
1480
- }
1481
- /**
1482
- * Lists the virtual network links to the specified Private DNS zone.
1483
- * @param resourceGroupName The name of the resource group.
1484
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
1485
- * @param options The options parameters.
1486
- */
1487
- list(resourceGroupName, privateZoneName, options) {
1488
- const iter = this.listPagingAll(resourceGroupName, privateZoneName, options);
1489
- return {
1490
- next() {
1491
- return iter.next();
1492
- },
1493
- [Symbol.asyncIterator]() {
1494
- return this;
1495
- },
1496
- byPage: (settings) => {
1497
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1498
- throw new Error("maxPageSize is not supported by this operation.");
1499
- }
1500
- return this.listPagingPage(resourceGroupName, privateZoneName, options, settings);
1501
- },
1502
- };
1503
- }
1504
- listPagingPage(resourceGroupName, privateZoneName, options, settings) {
1505
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1506
- let result;
1507
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1508
- if (!continuationToken) {
1509
- result = yield tslib.__await(this._list(resourceGroupName, privateZoneName, options));
1510
- let page = result.value || [];
1511
- continuationToken = result.nextLink;
1512
- setContinuationToken(page, continuationToken);
1513
- yield yield tslib.__await(page);
1514
- }
1515
- while (continuationToken) {
1516
- result = yield tslib.__await(this._listNext(resourceGroupName, privateZoneName, continuationToken, options));
1517
- continuationToken = result.nextLink;
1518
- let page = result.value || [];
1519
- setContinuationToken(page, continuationToken);
1520
- yield yield tslib.__await(page);
1521
- }
1522
- });
1523
- }
1524
- listPagingAll(resourceGroupName, privateZoneName, options) {
1525
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1526
- var _a, e_1, _b, _c;
1527
- try {
1528
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, privateZoneName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1529
- _c = _f.value;
1530
- _d = false;
1531
- const page = _c;
1532
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1533
- }
1534
- }
1535
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1536
- finally {
1537
- try {
1538
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1539
- }
1540
- finally { if (e_1) throw e_1.error; }
1541
- }
1542
- });
1543
- }
1544
- /**
1545
- * Creates or updates a virtual network link to the specified Private DNS zone.
1546
- * @param resourceGroupName The name of the resource group.
1547
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
1548
- * @param virtualNetworkLinkName The name of the virtual network link.
1549
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
1550
- * @param options The options parameters.
1551
- */
1552
- beginCreateOrUpdate(resourceGroupName, privateZoneName, virtualNetworkLinkName, parameters, options) {
1553
- return tslib.__awaiter(this, void 0, void 0, function* () {
1554
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1555
- return this.client.sendOperationRequest(args, spec);
1556
- });
1557
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1558
- var _a;
1559
- let currentRawResponse = undefined;
1560
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1561
- const callback = (rawResponse, flatResponse) => {
1562
- currentRawResponse = rawResponse;
1563
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1564
- };
1565
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1566
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1567
- return {
1568
- flatResponse,
1569
- rawResponse: {
1570
- statusCode: currentRawResponse.status,
1571
- body: currentRawResponse.parsedBody,
1572
- headers: currentRawResponse.headers.toJSON(),
1573
- },
1574
- };
1575
- });
1576
- const lro = createLroSpec({
1577
- sendOperationFn,
1578
- args: {
1579
- resourceGroupName,
1580
- privateZoneName,
1581
- virtualNetworkLinkName,
1582
- parameters,
1583
- options,
1584
- },
1585
- spec: createOrUpdateOperationSpec$1,
1586
- });
1587
- const poller = yield coreLro.createHttpPoller(lro, {
1588
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1589
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1590
- });
1591
- yield poller.poll();
1592
- return poller;
1593
- });
1594
- }
1595
- /**
1596
- * Creates or updates a virtual network link to the specified Private DNS zone.
1597
- * @param resourceGroupName The name of the resource group.
1598
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
1599
- * @param virtualNetworkLinkName The name of the virtual network link.
1600
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
1601
- * @param options The options parameters.
1602
- */
1603
- beginCreateOrUpdateAndWait(resourceGroupName, privateZoneName, virtualNetworkLinkName, parameters, options) {
1604
- return tslib.__awaiter(this, void 0, void 0, function* () {
1605
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, privateZoneName, virtualNetworkLinkName, parameters, options);
1606
- return poller.pollUntilDone();
1607
- });
1608
- }
1609
- /**
1610
- * Updates a virtual network link to the specified Private DNS zone.
1611
- * @param resourceGroupName The name of the resource group.
1612
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
1613
- * @param virtualNetworkLinkName The name of the virtual network link.
1614
- * @param parameters Parameters supplied to the Update operation.
1615
- * @param options The options parameters.
1616
- */
1617
- beginUpdate(resourceGroupName, privateZoneName, virtualNetworkLinkName, parameters, options) {
1618
- return tslib.__awaiter(this, void 0, void 0, function* () {
1619
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1620
- return this.client.sendOperationRequest(args, spec);
1621
- });
1622
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1623
- var _a;
1624
- let currentRawResponse = undefined;
1625
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1626
- const callback = (rawResponse, flatResponse) => {
1627
- currentRawResponse = rawResponse;
1628
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1629
- };
1630
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1631
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1632
- return {
1633
- flatResponse,
1634
- rawResponse: {
1635
- statusCode: currentRawResponse.status,
1636
- body: currentRawResponse.parsedBody,
1637
- headers: currentRawResponse.headers.toJSON(),
1638
- },
1639
- };
1640
- });
1641
- const lro = createLroSpec({
1642
- sendOperationFn,
1643
- args: {
1644
- resourceGroupName,
1645
- privateZoneName,
1646
- virtualNetworkLinkName,
1647
- parameters,
1648
- options,
1649
- },
1650
- spec: updateOperationSpec$1,
1651
- });
1652
- const poller = yield coreLro.createHttpPoller(lro, {
1653
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1654
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1655
- });
1656
- yield poller.poll();
1657
- return poller;
1658
- });
1659
- }
1660
- /**
1661
- * Updates a virtual network link to the specified Private DNS zone.
1662
- * @param resourceGroupName The name of the resource group.
1663
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
1664
- * @param virtualNetworkLinkName The name of the virtual network link.
1665
- * @param parameters Parameters supplied to the Update operation.
1666
- * @param options The options parameters.
1667
- */
1668
- beginUpdateAndWait(resourceGroupName, privateZoneName, virtualNetworkLinkName, parameters, options) {
1669
- return tslib.__awaiter(this, void 0, void 0, function* () {
1670
- const poller = yield this.beginUpdate(resourceGroupName, privateZoneName, virtualNetworkLinkName, parameters, options);
1671
- return poller.pollUntilDone();
1672
- });
1673
- }
1674
- /**
1675
- * Deletes a virtual network link to the specified Private DNS zone. WARNING: In case of a registration
1676
- * virtual network, all auto-registered DNS records in the zone for the virtual network will also be
1677
- * deleted. This operation cannot be undone.
1678
- * @param resourceGroupName The name of the resource group.
1679
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
1680
- * @param virtualNetworkLinkName The name of the virtual network link.
1681
- * @param options The options parameters.
1682
- */
1683
- beginDelete(resourceGroupName, privateZoneName, virtualNetworkLinkName, options) {
1684
- return tslib.__awaiter(this, void 0, void 0, function* () {
1685
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1686
- return this.client.sendOperationRequest(args, spec);
1687
- });
1688
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1689
- var _a;
1690
- let currentRawResponse = undefined;
1691
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1692
- const callback = (rawResponse, flatResponse) => {
1693
- currentRawResponse = rawResponse;
1694
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1695
- };
1696
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1697
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1698
- return {
1699
- flatResponse,
1700
- rawResponse: {
1701
- statusCode: currentRawResponse.status,
1702
- body: currentRawResponse.parsedBody,
1703
- headers: currentRawResponse.headers.toJSON(),
1704
- },
1705
- };
1706
- });
1707
- const lro = createLroSpec({
1708
- sendOperationFn,
1709
- args: {
1710
- resourceGroupName,
1711
- privateZoneName,
1712
- virtualNetworkLinkName,
1713
- options,
1714
- },
1715
- spec: deleteOperationSpec$1,
1716
- });
1717
- const poller = yield coreLro.createHttpPoller(lro, {
1718
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1719
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1720
- });
1721
- yield poller.poll();
1722
- return poller;
1723
- });
1724
- }
1725
- /**
1726
- * Deletes a virtual network link to the specified Private DNS zone. WARNING: In case of a registration
1727
- * virtual network, all auto-registered DNS records in the zone for the virtual network will also be
1728
- * deleted. This operation cannot be undone.
1729
- * @param resourceGroupName The name of the resource group.
1730
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
1731
- * @param virtualNetworkLinkName The name of the virtual network link.
1732
- * @param options The options parameters.
1733
- */
1734
- beginDeleteAndWait(resourceGroupName, privateZoneName, virtualNetworkLinkName, options) {
1735
- return tslib.__awaiter(this, void 0, void 0, function* () {
1736
- const poller = yield this.beginDelete(resourceGroupName, privateZoneName, virtualNetworkLinkName, options);
1737
- return poller.pollUntilDone();
1738
- });
1739
- }
1740
- /**
1741
- * Gets a virtual network link to the specified Private DNS zone.
1742
- * @param resourceGroupName The name of the resource group.
1743
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
1744
- * @param virtualNetworkLinkName The name of the virtual network link.
1745
- * @param options The options parameters.
1746
- */
1747
- get(resourceGroupName, privateZoneName, virtualNetworkLinkName, options) {
1748
- return this.client.sendOperationRequest({ resourceGroupName, privateZoneName, virtualNetworkLinkName, options }, getOperationSpec$1);
1749
- }
1750
- /**
1751
- * Lists the virtual network links to the specified Private DNS zone.
1752
- * @param resourceGroupName The name of the resource group.
1753
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
1754
- * @param options The options parameters.
1755
- */
1756
- _list(resourceGroupName, privateZoneName, options) {
1757
- return this.client.sendOperationRequest({ resourceGroupName, privateZoneName, options }, listOperationSpec$1);
1758
- }
1759
- /**
1760
- * ListNext
1761
- * @param resourceGroupName The name of the resource group.
1762
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
1763
- * @param nextLink The nextLink from the previous successful call to the List method.
1764
- * @param options The options parameters.
1765
- */
1766
- _listNext(resourceGroupName, privateZoneName, nextLink, options) {
1767
- return this.client.sendOperationRequest({ resourceGroupName, privateZoneName, nextLink, options }, listNextOperationSpec$1);
1768
- }
1769
- }
1770
- // Operation Specifications
1771
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1772
- const createOrUpdateOperationSpec$1 = {
1773
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks/{virtualNetworkLinkName}",
1774
- httpMethod: "PUT",
1775
- responses: {
1776
- 200: {
1777
- bodyMapper: VirtualNetworkLink,
1778
- },
1779
- 201: {
1780
- bodyMapper: VirtualNetworkLink,
1781
- },
1782
- 202: {
1783
- bodyMapper: VirtualNetworkLink,
1784
- },
1785
- 204: {
1786
- bodyMapper: VirtualNetworkLink,
1787
- },
1788
- default: {
1789
- bodyMapper: CloudError,
1790
- },
1791
- },
1792
- requestBody: parameters1,
1793
- queryParameters: [apiVersion],
1794
- urlParameters: [
1795
- $host,
1796
- resourceGroupName,
1797
- privateZoneName,
1798
- subscriptionId,
1799
- virtualNetworkLinkName,
1800
- ],
1801
- headerParameters: [
1802
- contentType,
1803
- accept,
1804
- ifMatch,
1805
- ifNoneMatch,
1806
- ],
1807
- mediaType: "json",
1808
- serializer: serializer$1,
1809
- };
1810
- const updateOperationSpec$1 = {
1811
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks/{virtualNetworkLinkName}",
1812
- httpMethod: "PATCH",
1813
- responses: {
1814
- 200: {
1815
- bodyMapper: VirtualNetworkLink,
1816
- },
1817
- 201: {
1818
- bodyMapper: VirtualNetworkLink,
1819
- },
1820
- 202: {
1821
- bodyMapper: VirtualNetworkLink,
1822
- },
1823
- 204: {
1824
- bodyMapper: VirtualNetworkLink,
1825
- },
1826
- default: {
1827
- bodyMapper: CloudError,
1828
- },
1829
- },
1830
- requestBody: parameters1,
1831
- queryParameters: [apiVersion],
1832
- urlParameters: [
1833
- $host,
1834
- resourceGroupName,
1835
- privateZoneName,
1836
- subscriptionId,
1837
- virtualNetworkLinkName,
1838
- ],
1839
- headerParameters: [
1840
- contentType,
1841
- accept,
1842
- ifMatch,
1843
- ],
1844
- mediaType: "json",
1845
- serializer: serializer$1,
1846
- };
1847
- const deleteOperationSpec$1 = {
1848
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks/{virtualNetworkLinkName}",
1849
- httpMethod: "DELETE",
1850
- responses: {
1851
- 200: {},
1852
- 201: {},
1853
- 202: {},
1854
- 204: {},
1855
- default: {
1856
- bodyMapper: CloudError,
1857
- },
1858
- },
1859
- queryParameters: [apiVersion],
1860
- urlParameters: [
1861
- $host,
1862
- resourceGroupName,
1863
- privateZoneName,
1864
- subscriptionId,
1865
- virtualNetworkLinkName,
1866
- ],
1867
- headerParameters: [accept, ifMatch],
1868
- serializer: serializer$1,
1869
- };
1870
- const getOperationSpec$1 = {
1871
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks/{virtualNetworkLinkName}",
1872
- httpMethod: "GET",
1873
- responses: {
1874
- 200: {
1875
- bodyMapper: VirtualNetworkLink,
1876
- },
1877
- default: {
1878
- bodyMapper: CloudError,
1879
- },
1880
- },
1881
- queryParameters: [apiVersion],
1882
- urlParameters: [
1883
- $host,
1884
- resourceGroupName,
1885
- privateZoneName,
1886
- subscriptionId,
1887
- virtualNetworkLinkName,
1888
- ],
1889
- headerParameters: [accept],
1890
- serializer: serializer$1,
1891
- };
1892
- const listOperationSpec$1 = {
1893
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks",
1894
- httpMethod: "GET",
1895
- responses: {
1896
- 200: {
1897
- bodyMapper: VirtualNetworkLinkListResult,
1898
- },
1899
- default: {
1900
- bodyMapper: CloudError,
1901
- },
1902
- },
1903
- queryParameters: [apiVersion, top],
1904
- urlParameters: [
1905
- $host,
1906
- resourceGroupName,
1907
- privateZoneName,
1908
- subscriptionId,
1909
- ],
1910
- headerParameters: [accept],
1911
- serializer: serializer$1,
1912
- };
1913
- const listNextOperationSpec$1 = {
1914
- path: "{nextLink}",
1915
- httpMethod: "GET",
1916
- responses: {
1917
- 200: {
1918
- bodyMapper: VirtualNetworkLinkListResult,
1919
- },
1920
- default: {
1921
- bodyMapper: CloudError,
1922
- },
1923
- },
1924
- urlParameters: [
1925
- $host,
1926
- resourceGroupName,
1927
- privateZoneName,
1928
- subscriptionId,
1929
- nextLink,
1930
- ],
1931
- headerParameters: [accept],
1932
- serializer: serializer$1,
1933
- };
1934
-
1935
- /*
1936
- * Copyright (c) Microsoft Corporation.
1937
- * Licensed under the MIT License.
1938
- *
1939
- * Code generated by Microsoft (R) AutoRest Code Generator.
1940
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1941
- */
1942
- /// <reference lib="esnext.asynciterable" />
1943
- /** Class containing RecordSets operations. */
1944
- class RecordSetsImpl {
1945
- /**
1946
- * Initialize a new instance of the class RecordSets class.
1947
- * @param client Reference to the service client
1948
- */
1949
- constructor(client) {
1950
- this.client = client;
1951
- }
1952
- /**
1953
- * Lists the record sets of a specified type in a Private DNS zone.
1954
- * @param resourceGroupName The name of the resource group.
1955
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
1956
- * @param recordType The type of record sets to enumerate.
1957
- * @param options The options parameters.
1958
- */
1959
- listByType(resourceGroupName, privateZoneName, recordType, options) {
1960
- const iter = this.listByTypePagingAll(resourceGroupName, privateZoneName, recordType, options);
1961
- return {
1962
- next() {
1963
- return iter.next();
1964
- },
1965
- [Symbol.asyncIterator]() {
1966
- return this;
1967
- },
1968
- byPage: (settings) => {
1969
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1970
- throw new Error("maxPageSize is not supported by this operation.");
1971
- }
1972
- return this.listByTypePagingPage(resourceGroupName, privateZoneName, recordType, options, settings);
1973
- },
1974
- };
1975
- }
1976
- listByTypePagingPage(resourceGroupName, privateZoneName, recordType, options, settings) {
1977
- return tslib.__asyncGenerator(this, arguments, function* listByTypePagingPage_1() {
1978
- let result;
1979
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1980
- if (!continuationToken) {
1981
- result = yield tslib.__await(this._listByType(resourceGroupName, privateZoneName, recordType, options));
1982
- let page = result.value || [];
1983
- continuationToken = result.nextLink;
1984
- setContinuationToken(page, continuationToken);
1985
- yield yield tslib.__await(page);
1986
- }
1987
- while (continuationToken) {
1988
- result = yield tslib.__await(this._listByTypeNext(resourceGroupName, privateZoneName, recordType, continuationToken, options));
1989
- continuationToken = result.nextLink;
1990
- let page = result.value || [];
1991
- setContinuationToken(page, continuationToken);
1992
- yield yield tslib.__await(page);
1993
- }
1994
- });
1995
- }
1996
- listByTypePagingAll(resourceGroupName, privateZoneName, recordType, options) {
1997
- return tslib.__asyncGenerator(this, arguments, function* listByTypePagingAll_1() {
1998
- var _a, e_1, _b, _c;
1999
- try {
2000
- for (var _d = true, _e = tslib.__asyncValues(this.listByTypePagingPage(resourceGroupName, privateZoneName, recordType, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2001
- _c = _f.value;
2002
- _d = false;
2003
- const page = _c;
2004
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2005
- }
2006
- }
2007
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2008
- finally {
2009
- try {
2010
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2011
- }
2012
- finally { if (e_1) throw e_1.error; }
2013
- }
2014
- });
2015
- }
2016
- /**
2017
- * Lists all record sets in a Private DNS zone.
2018
- * @param resourceGroupName The name of the resource group.
2019
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
2020
- * @param options The options parameters.
2021
- */
2022
- list(resourceGroupName, privateZoneName, options) {
2023
- const iter = this.listPagingAll(resourceGroupName, privateZoneName, options);
2024
- return {
2025
- next() {
2026
- return iter.next();
2027
- },
2028
- [Symbol.asyncIterator]() {
2029
- return this;
2030
- },
2031
- byPage: (settings) => {
2032
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2033
- throw new Error("maxPageSize is not supported by this operation.");
2034
- }
2035
- return this.listPagingPage(resourceGroupName, privateZoneName, options, settings);
2036
- },
2037
- };
2038
- }
2039
- listPagingPage(resourceGroupName, privateZoneName, options, settings) {
2040
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2041
- let result;
2042
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2043
- if (!continuationToken) {
2044
- result = yield tslib.__await(this._list(resourceGroupName, privateZoneName, options));
2045
- let page = result.value || [];
2046
- continuationToken = result.nextLink;
2047
- setContinuationToken(page, continuationToken);
2048
- yield yield tslib.__await(page);
2049
- }
2050
- while (continuationToken) {
2051
- result = yield tslib.__await(this._listNext(resourceGroupName, privateZoneName, continuationToken, options));
2052
- continuationToken = result.nextLink;
2053
- let page = result.value || [];
2054
- setContinuationToken(page, continuationToken);
2055
- yield yield tslib.__await(page);
2056
- }
2057
- });
2058
- }
2059
- listPagingAll(resourceGroupName, privateZoneName, options) {
2060
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2061
- var _a, e_2, _b, _c;
2062
- try {
2063
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, privateZoneName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2064
- _c = _f.value;
2065
- _d = false;
2066
- const page = _c;
2067
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2068
- }
2069
- }
2070
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
2071
- finally {
2072
- try {
2073
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2074
- }
2075
- finally { if (e_2) throw e_2.error; }
2076
- }
2077
- });
2078
- }
2079
- /**
2080
- * Creates or updates a record set within a Private DNS zone.
2081
- * @param resourceGroupName The name of the resource group.
2082
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
2083
- * @param recordType The type of DNS record in this record set. Record sets of type SOA can be updated
2084
- * but not created (they are created when the Private DNS zone is created).
2085
- * @param relativeRecordSetName The name of the record set, relative to the name of the zone.
2086
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
2087
- * @param options The options parameters.
2088
- */
2089
- createOrUpdate(resourceGroupName, privateZoneName, recordType, relativeRecordSetName, parameters, options) {
2090
- return this.client.sendOperationRequest({
2091
- resourceGroupName,
2092
- privateZoneName,
2093
- recordType,
2094
- relativeRecordSetName,
2095
- parameters,
2096
- options,
2097
- }, createOrUpdateOperationSpec);
2098
- }
2099
- /**
2100
- * Updates a record set within a Private DNS zone.
2101
- * @param resourceGroupName The name of the resource group.
2102
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
2103
- * @param recordType The type of DNS record in this record set.
2104
- * @param relativeRecordSetName The name of the record set, relative to the name of the zone.
2105
- * @param parameters Parameters supplied to the Update operation.
2106
- * @param options The options parameters.
2107
- */
2108
- update(resourceGroupName, privateZoneName, recordType, relativeRecordSetName, parameters, options) {
2109
- return this.client.sendOperationRequest({
2110
- resourceGroupName,
2111
- privateZoneName,
2112
- recordType,
2113
- relativeRecordSetName,
2114
- parameters,
2115
- options,
2116
- }, updateOperationSpec);
2117
- }
2118
- /**
2119
- * Deletes a record set from a Private DNS zone. This operation cannot be undone.
2120
- * @param resourceGroupName The name of the resource group.
2121
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
2122
- * @param recordType The type of DNS record in this record set. Record sets of type SOA cannot be
2123
- * deleted (they are deleted when the Private DNS zone is deleted).
2124
- * @param relativeRecordSetName The name of the record set, relative to the name of the zone.
2125
- * @param options The options parameters.
2126
- */
2127
- delete(resourceGroupName, privateZoneName, recordType, relativeRecordSetName, options) {
2128
- return this.client.sendOperationRequest({
2129
- resourceGroupName,
2130
- privateZoneName,
2131
- recordType,
2132
- relativeRecordSetName,
2133
- options,
2134
- }, deleteOperationSpec);
2135
- }
2136
- /**
2137
- * Gets a record set.
2138
- * @param resourceGroupName The name of the resource group.
2139
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
2140
- * @param recordType The type of DNS record in this record set.
2141
- * @param relativeRecordSetName The name of the record set, relative to the name of the zone.
2142
- * @param options The options parameters.
2143
- */
2144
- get(resourceGroupName, privateZoneName, recordType, relativeRecordSetName, options) {
2145
- return this.client.sendOperationRequest({
2146
- resourceGroupName,
2147
- privateZoneName,
2148
- recordType,
2149
- relativeRecordSetName,
2150
- options,
2151
- }, getOperationSpec);
2152
- }
2153
- /**
2154
- * Lists the record sets of a specified type in a Private DNS zone.
2155
- * @param resourceGroupName The name of the resource group.
2156
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
2157
- * @param recordType The type of record sets to enumerate.
2158
- * @param options The options parameters.
2159
- */
2160
- _listByType(resourceGroupName, privateZoneName, recordType, options) {
2161
- return this.client.sendOperationRequest({ resourceGroupName, privateZoneName, recordType, options }, listByTypeOperationSpec);
2162
- }
2163
- /**
2164
- * Lists all record sets in a Private DNS zone.
2165
- * @param resourceGroupName The name of the resource group.
2166
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
2167
- * @param options The options parameters.
2168
- */
2169
- _list(resourceGroupName, privateZoneName, options) {
2170
- return this.client.sendOperationRequest({ resourceGroupName, privateZoneName, options }, listOperationSpec);
2171
- }
2172
- /**
2173
- * ListByTypeNext
2174
- * @param resourceGroupName The name of the resource group.
2175
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
2176
- * @param recordType The type of record sets to enumerate.
2177
- * @param nextLink The nextLink from the previous successful call to the ListByType method.
2178
- * @param options The options parameters.
2179
- */
2180
- _listByTypeNext(resourceGroupName, privateZoneName, recordType, nextLink, options) {
2181
- return this.client.sendOperationRequest({ resourceGroupName, privateZoneName, recordType, nextLink, options }, listByTypeNextOperationSpec);
2182
- }
2183
- /**
2184
- * ListNext
2185
- * @param resourceGroupName The name of the resource group.
2186
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
2187
- * @param nextLink The nextLink from the previous successful call to the List method.
2188
- * @param options The options parameters.
2189
- */
2190
- _listNext(resourceGroupName, privateZoneName, nextLink, options) {
2191
- return this.client.sendOperationRequest({ resourceGroupName, privateZoneName, nextLink, options }, listNextOperationSpec);
2192
- }
2193
- }
2194
- // Operation Specifications
2195
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2196
- const createOrUpdateOperationSpec = {
2197
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/{recordType}/{relativeRecordSetName}",
2198
- httpMethod: "PUT",
2199
- responses: {
2200
- 200: {
2201
- bodyMapper: RecordSet,
2202
- },
2203
- 201: {
2204
- bodyMapper: RecordSet,
2205
- },
2206
- default: {
2207
- bodyMapper: CloudError,
2208
- },
2209
- },
2210
- requestBody: parameters2,
2211
- queryParameters: [apiVersion],
2212
- urlParameters: [
2213
- $host,
2214
- resourceGroupName,
2215
- privateZoneName,
2216
- subscriptionId,
2217
- recordType,
2218
- relativeRecordSetName,
2219
- ],
2220
- headerParameters: [
2221
- contentType,
2222
- accept,
2223
- ifMatch,
2224
- ifNoneMatch,
2225
- ],
2226
- mediaType: "json",
2227
- serializer,
2228
- };
2229
- const updateOperationSpec = {
2230
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/{recordType}/{relativeRecordSetName}",
2231
- httpMethod: "PATCH",
2232
- responses: {
2233
- 200: {
2234
- bodyMapper: RecordSet,
2235
- },
2236
- default: {
2237
- bodyMapper: CloudError,
2238
- },
2239
- },
2240
- requestBody: parameters2,
2241
- queryParameters: [apiVersion],
2242
- urlParameters: [
2243
- $host,
2244
- resourceGroupName,
2245
- privateZoneName,
2246
- subscriptionId,
2247
- recordType,
2248
- relativeRecordSetName,
2249
- ],
2250
- headerParameters: [
2251
- contentType,
2252
- accept,
2253
- ifMatch,
2254
- ],
2255
- mediaType: "json",
2256
- serializer,
2257
- };
2258
- const deleteOperationSpec = {
2259
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/{recordType}/{relativeRecordSetName}",
2260
- httpMethod: "DELETE",
2261
- responses: {
2262
- 200: {},
2263
- 204: {},
2264
- default: {
2265
- bodyMapper: CloudError,
2266
- },
2267
- },
2268
- queryParameters: [apiVersion],
2269
- urlParameters: [
2270
- $host,
2271
- resourceGroupName,
2272
- privateZoneName,
2273
- subscriptionId,
2274
- recordType,
2275
- relativeRecordSetName,
2276
- ],
2277
- headerParameters: [accept, ifMatch],
2278
- serializer,
2279
- };
2280
- const getOperationSpec = {
2281
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/{recordType}/{relativeRecordSetName}",
2282
- httpMethod: "GET",
2283
- responses: {
2284
- 200: {
2285
- bodyMapper: RecordSet,
2286
- },
2287
- default: {
2288
- bodyMapper: CloudError,
2289
- },
2290
- },
2291
- queryParameters: [apiVersion],
2292
- urlParameters: [
2293
- $host,
2294
- resourceGroupName,
2295
- privateZoneName,
2296
- subscriptionId,
2297
- recordType,
2298
- relativeRecordSetName,
2299
- ],
2300
- headerParameters: [accept],
2301
- serializer,
2302
- };
2303
- const listByTypeOperationSpec = {
2304
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/{recordType}",
2305
- httpMethod: "GET",
2306
- responses: {
2307
- 200: {
2308
- bodyMapper: RecordSetListResult,
2309
- },
2310
- default: {
2311
- bodyMapper: CloudError,
2312
- },
2313
- },
2314
- queryParameters: [
2315
- apiVersion,
2316
- top,
2317
- recordsetnamesuffix,
2318
- ],
2319
- urlParameters: [
2320
- $host,
2321
- resourceGroupName,
2322
- privateZoneName,
2323
- subscriptionId,
2324
- recordType,
2325
- ],
2326
- headerParameters: [accept],
2327
- serializer,
2328
- };
2329
- const listOperationSpec = {
2330
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/ALL",
2331
- httpMethod: "GET",
2332
- responses: {
2333
- 200: {
2334
- bodyMapper: RecordSetListResult,
2335
- },
2336
- default: {
2337
- bodyMapper: CloudError,
2338
- },
2339
- },
2340
- queryParameters: [
2341
- apiVersion,
2342
- top,
2343
- recordsetnamesuffix,
2344
- ],
2345
- urlParameters: [
2346
- $host,
2347
- resourceGroupName,
2348
- privateZoneName,
2349
- subscriptionId,
2350
- ],
2351
- headerParameters: [accept],
2352
- serializer,
2353
- };
2354
- const listByTypeNextOperationSpec = {
2355
- path: "{nextLink}",
2356
- httpMethod: "GET",
2357
- responses: {
2358
- 200: {
2359
- bodyMapper: RecordSetListResult,
2360
- },
2361
- default: {
2362
- bodyMapper: CloudError,
2363
- },
2364
- },
2365
- urlParameters: [
2366
- $host,
2367
- resourceGroupName,
2368
- privateZoneName,
2369
- subscriptionId,
2370
- nextLink,
2371
- recordType,
2372
- ],
2373
- headerParameters: [accept],
2374
- serializer,
2375
- };
2376
- const listNextOperationSpec = {
2377
- path: "{nextLink}",
2378
- httpMethod: "GET",
2379
- responses: {
2380
- 200: {
2381
- bodyMapper: RecordSetListResult,
2382
- },
2383
- default: {
2384
- bodyMapper: CloudError,
2385
- },
2386
- },
2387
- urlParameters: [
2388
- $host,
2389
- resourceGroupName,
2390
- privateZoneName,
2391
- subscriptionId,
2392
- nextLink,
2393
- ],
2394
- headerParameters: [accept],
2395
- serializer,
2396
- };
2397
-
2398
- /*
2399
- * Copyright (c) Microsoft Corporation.
2400
- * Licensed under the MIT License.
2401
- *
2402
- * Code generated by Microsoft (R) AutoRest Code Generator.
2403
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2404
- */
2405
- class PrivateDnsManagementClient extends coreClient__namespace.ServiceClient {
2406
- /**
2407
- * Initializes a new instance of the PrivateDnsManagementClient class.
2408
- * @param credentials Subscription credentials which uniquely identify client subscription.
2409
- * @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure
2410
- * subscription. The subscription ID forms part of the URI for every service call.
2411
- * @param options The parameter options
2412
- */
2413
- constructor(credentials, subscriptionId, options) {
2414
- var _a, _b, _c;
2415
- if (credentials === undefined) {
2416
- throw new Error("'credentials' cannot be null");
2417
- }
2418
- if (subscriptionId === undefined) {
2419
- throw new Error("'subscriptionId' cannot be null");
2420
- }
2421
- // Initializing default values for options
2422
- if (!options) {
2423
- options = {};
2424
- }
2425
- const defaults = {
2426
- requestContentType: "application/json; charset=utf-8",
2427
- credential: credentials,
2428
- };
2429
- const packageDetails = `azsdk-js-arm-privatedns/3.3.1`;
2430
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
2431
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
2432
- : `${packageDetails}`;
2433
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
2434
- userAgentPrefix,
2435
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
2436
- super(optionsWithDefaults);
2437
- let bearerTokenAuthenticationPolicyFound = false;
2438
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
2439
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
2440
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
2441
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
2442
- }
2443
- if (!options ||
2444
- !options.pipeline ||
2445
- options.pipeline.getOrderedPolicies().length == 0 ||
2446
- !bearerTokenAuthenticationPolicyFound) {
2447
- this.pipeline.removePolicy({
2448
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName,
2449
- });
2450
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
2451
- credential: credentials,
2452
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
2453
- challengeCallbacks: {
2454
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
2455
- },
2456
- }));
2457
- }
2458
- // Parameter assignments
2459
- this.subscriptionId = subscriptionId;
2460
- // Assigning values to Constant parameters
2461
- this.$host = options.$host || "https://management.azure.com";
2462
- this.apiVersion = options.apiVersion || "2024-06-01";
2463
- this.privateZones = new PrivateZonesImpl(this);
2464
- this.virtualNetworkLinks = new VirtualNetworkLinksImpl(this);
2465
- this.recordSets = new RecordSetsImpl(this);
2466
- this.addCustomApiVersionPolicy(options.apiVersion);
2467
- }
2468
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
2469
- addCustomApiVersionPolicy(apiVersion) {
2470
- if (!apiVersion) {
2471
- return;
2472
- }
2473
- const apiVersionPolicy = {
2474
- name: "CustomApiVersionPolicy",
2475
- sendRequest(request, next) {
2476
- return tslib.__awaiter(this, void 0, void 0, function* () {
2477
- const param = request.url.split("?");
2478
- if (param.length > 1) {
2479
- const newParams = param[1].split("&").map((item) => {
2480
- if (item.indexOf("api-version") > -1) {
2481
- return "api-version=" + apiVersion;
2482
- }
2483
- else {
2484
- return item;
2485
- }
2486
- });
2487
- request.url = param[0] + "?" + newParams.join("&");
2488
- }
2489
- return next(request);
2490
- });
2491
- },
2492
- };
2493
- this.pipeline.addPolicy(apiVersionPolicy);
2494
- }
2495
- }
2496
-
2497
- exports.PrivateDnsManagementClient = PrivateDnsManagementClient;
2498
- exports.getContinuationToken = getContinuationToken;
2499
- //# sourceMappingURL=index.js.map