@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
@@ -1,145 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import { SimplePollerLike, OperationState } from "@azure/core-lro";
11
- import {
12
- PrivateZone,
13
- PrivateZonesListOptionalParams,
14
- PrivateZonesListByResourceGroupOptionalParams,
15
- PrivateZonesCreateOrUpdateOptionalParams,
16
- PrivateZonesCreateOrUpdateResponse,
17
- PrivateZonesUpdateOptionalParams,
18
- PrivateZonesUpdateResponse,
19
- PrivateZonesDeleteOptionalParams,
20
- PrivateZonesGetOptionalParams,
21
- PrivateZonesGetResponse,
22
- } from "../models";
23
-
24
- /// <reference lib="esnext.asynciterable" />
25
- /** Interface representing a PrivateZones. */
26
- export interface PrivateZones {
27
- /**
28
- * Lists the Private DNS zones in all resource groups in a subscription.
29
- * @param options The options parameters.
30
- */
31
- list(
32
- options?: PrivateZonesListOptionalParams,
33
- ): PagedAsyncIterableIterator<PrivateZone>;
34
- /**
35
- * Lists the Private DNS zones within a resource group.
36
- * @param resourceGroupName The name of the resource group.
37
- * @param options The options parameters.
38
- */
39
- listByResourceGroup(
40
- resourceGroupName: string,
41
- options?: PrivateZonesListByResourceGroupOptionalParams,
42
- ): PagedAsyncIterableIterator<PrivateZone>;
43
- /**
44
- * Creates or updates a Private DNS zone. Does not modify Links to virtual networks or DNS records
45
- * within the zone.
46
- * @param resourceGroupName The name of the resource group.
47
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
48
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
49
- * @param options The options parameters.
50
- */
51
- beginCreateOrUpdate(
52
- resourceGroupName: string,
53
- privateZoneName: string,
54
- parameters: PrivateZone,
55
- options?: PrivateZonesCreateOrUpdateOptionalParams,
56
- ): Promise<
57
- SimplePollerLike<
58
- OperationState<PrivateZonesCreateOrUpdateResponse>,
59
- PrivateZonesCreateOrUpdateResponse
60
- >
61
- >;
62
- /**
63
- * Creates or updates a Private DNS zone. Does not modify Links to virtual networks or DNS records
64
- * within the zone.
65
- * @param resourceGroupName The name of the resource group.
66
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
67
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
68
- * @param options The options parameters.
69
- */
70
- beginCreateOrUpdateAndWait(
71
- resourceGroupName: string,
72
- privateZoneName: string,
73
- parameters: PrivateZone,
74
- options?: PrivateZonesCreateOrUpdateOptionalParams,
75
- ): Promise<PrivateZonesCreateOrUpdateResponse>;
76
- /**
77
- * Updates a Private DNS zone. Does not modify virtual network links or DNS records within the zone.
78
- * @param resourceGroupName The name of the resource group.
79
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
80
- * @param parameters Parameters supplied to the Update operation.
81
- * @param options The options parameters.
82
- */
83
- beginUpdate(
84
- resourceGroupName: string,
85
- privateZoneName: string,
86
- parameters: PrivateZone,
87
- options?: PrivateZonesUpdateOptionalParams,
88
- ): Promise<
89
- SimplePollerLike<
90
- OperationState<PrivateZonesUpdateResponse>,
91
- PrivateZonesUpdateResponse
92
- >
93
- >;
94
- /**
95
- * Updates a Private DNS zone. Does not modify virtual network links or DNS records within the zone.
96
- * @param resourceGroupName The name of the resource group.
97
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
98
- * @param parameters Parameters supplied to the Update operation.
99
- * @param options The options parameters.
100
- */
101
- beginUpdateAndWait(
102
- resourceGroupName: string,
103
- privateZoneName: string,
104
- parameters: PrivateZone,
105
- options?: PrivateZonesUpdateOptionalParams,
106
- ): Promise<PrivateZonesUpdateResponse>;
107
- /**
108
- * Deletes a Private DNS zone. WARNING: All DNS records in the zone will also be deleted. This
109
- * operation cannot be undone. Private DNS zone cannot be deleted unless all virtual network links to
110
- * it are removed.
111
- * @param resourceGroupName The name of the resource group.
112
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
113
- * @param options The options parameters.
114
- */
115
- beginDelete(
116
- resourceGroupName: string,
117
- privateZoneName: string,
118
- options?: PrivateZonesDeleteOptionalParams,
119
- ): Promise<SimplePollerLike<OperationState<void>, void>>;
120
- /**
121
- * Deletes a Private DNS zone. WARNING: All DNS records in the zone will also be deleted. This
122
- * operation cannot be undone. Private DNS zone cannot be deleted unless all virtual network links to
123
- * it are removed.
124
- * @param resourceGroupName The name of the resource group.
125
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
126
- * @param options The options parameters.
127
- */
128
- beginDeleteAndWait(
129
- resourceGroupName: string,
130
- privateZoneName: string,
131
- options?: PrivateZonesDeleteOptionalParams,
132
- ): Promise<void>;
133
- /**
134
- * Gets a Private DNS zone. Retrieves the zone properties, but not the virtual networks links or the
135
- * record sets within the zone.
136
- * @param resourceGroupName The name of the resource group.
137
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
138
- * @param options The options parameters.
139
- */
140
- get(
141
- resourceGroupName: string,
142
- privateZoneName: string,
143
- options?: PrivateZonesGetOptionalParams,
144
- ): Promise<PrivateZonesGetResponse>;
145
- }
@@ -1,117 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import {
11
- RecordSet,
12
- RecordType,
13
- RecordSetsListByTypeOptionalParams,
14
- RecordSetsListOptionalParams,
15
- RecordSetsCreateOrUpdateOptionalParams,
16
- RecordSetsCreateOrUpdateResponse,
17
- RecordSetsUpdateOptionalParams,
18
- RecordSetsUpdateResponse,
19
- RecordSetsDeleteOptionalParams,
20
- RecordSetsGetOptionalParams,
21
- RecordSetsGetResponse,
22
- } from "../models";
23
-
24
- /// <reference lib="esnext.asynciterable" />
25
- /** Interface representing a RecordSets. */
26
- export interface RecordSets {
27
- /**
28
- * Lists the record sets of a specified type in a Private DNS zone.
29
- * @param resourceGroupName The name of the resource group.
30
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
31
- * @param recordType The type of record sets to enumerate.
32
- * @param options The options parameters.
33
- */
34
- listByType(
35
- resourceGroupName: string,
36
- privateZoneName: string,
37
- recordType: RecordType,
38
- options?: RecordSetsListByTypeOptionalParams,
39
- ): PagedAsyncIterableIterator<RecordSet>;
40
- /**
41
- * Lists all record sets in a Private DNS zone.
42
- * @param resourceGroupName The name of the resource group.
43
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
44
- * @param options The options parameters.
45
- */
46
- list(
47
- resourceGroupName: string,
48
- privateZoneName: string,
49
- options?: RecordSetsListOptionalParams,
50
- ): PagedAsyncIterableIterator<RecordSet>;
51
- /**
52
- * Creates or updates a record set within a Private DNS zone.
53
- * @param resourceGroupName The name of the resource group.
54
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
55
- * @param recordType The type of DNS record in this record set. Record sets of type SOA can be updated
56
- * but not created (they are created when the Private DNS zone is created).
57
- * @param relativeRecordSetName The name of the record set, relative to the name of the zone.
58
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
59
- * @param options The options parameters.
60
- */
61
- createOrUpdate(
62
- resourceGroupName: string,
63
- privateZoneName: string,
64
- recordType: RecordType,
65
- relativeRecordSetName: string,
66
- parameters: RecordSet,
67
- options?: RecordSetsCreateOrUpdateOptionalParams,
68
- ): Promise<RecordSetsCreateOrUpdateResponse>;
69
- /**
70
- * Updates a record set within a Private DNS zone.
71
- * @param resourceGroupName The name of the resource group.
72
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
73
- * @param recordType The type of DNS record in this record set.
74
- * @param relativeRecordSetName The name of the record set, relative to the name of the zone.
75
- * @param parameters Parameters supplied to the Update operation.
76
- * @param options The options parameters.
77
- */
78
- update(
79
- resourceGroupName: string,
80
- privateZoneName: string,
81
- recordType: RecordType,
82
- relativeRecordSetName: string,
83
- parameters: RecordSet,
84
- options?: RecordSetsUpdateOptionalParams,
85
- ): Promise<RecordSetsUpdateResponse>;
86
- /**
87
- * Deletes a record set from a Private DNS zone. This operation cannot be undone.
88
- * @param resourceGroupName The name of the resource group.
89
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
90
- * @param recordType The type of DNS record in this record set. Record sets of type SOA cannot be
91
- * deleted (they are deleted when the Private DNS zone is deleted).
92
- * @param relativeRecordSetName The name of the record set, relative to the name of the zone.
93
- * @param options The options parameters.
94
- */
95
- delete(
96
- resourceGroupName: string,
97
- privateZoneName: string,
98
- recordType: RecordType,
99
- relativeRecordSetName: string,
100
- options?: RecordSetsDeleteOptionalParams,
101
- ): Promise<void>;
102
- /**
103
- * Gets a record set.
104
- * @param resourceGroupName The name of the resource group.
105
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
106
- * @param recordType The type of DNS record in this record set.
107
- * @param relativeRecordSetName The name of the record set, relative to the name of the zone.
108
- * @param options The options parameters.
109
- */
110
- get(
111
- resourceGroupName: string,
112
- privateZoneName: string,
113
- recordType: RecordType,
114
- relativeRecordSetName: string,
115
- options?: RecordSetsGetOptionalParams,
116
- ): Promise<RecordSetsGetResponse>;
117
- }
@@ -1,150 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import { SimplePollerLike, OperationState } from "@azure/core-lro";
11
- import {
12
- VirtualNetworkLink,
13
- VirtualNetworkLinksListOptionalParams,
14
- VirtualNetworkLinksCreateOrUpdateOptionalParams,
15
- VirtualNetworkLinksCreateOrUpdateResponse,
16
- VirtualNetworkLinksUpdateOptionalParams,
17
- VirtualNetworkLinksUpdateResponse,
18
- VirtualNetworkLinksDeleteOptionalParams,
19
- VirtualNetworkLinksGetOptionalParams,
20
- VirtualNetworkLinksGetResponse,
21
- } from "../models";
22
-
23
- /// <reference lib="esnext.asynciterable" />
24
- /** Interface representing a VirtualNetworkLinks. */
25
- export interface VirtualNetworkLinks {
26
- /**
27
- * Lists the virtual network links to the specified Private DNS zone.
28
- * @param resourceGroupName The name of the resource group.
29
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
30
- * @param options The options parameters.
31
- */
32
- list(
33
- resourceGroupName: string,
34
- privateZoneName: string,
35
- options?: VirtualNetworkLinksListOptionalParams,
36
- ): PagedAsyncIterableIterator<VirtualNetworkLink>;
37
- /**
38
- * Creates or updates a virtual network link to the specified Private DNS zone.
39
- * @param resourceGroupName The name of the resource group.
40
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
41
- * @param virtualNetworkLinkName The name of the virtual network link.
42
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
43
- * @param options The options parameters.
44
- */
45
- beginCreateOrUpdate(
46
- resourceGroupName: string,
47
- privateZoneName: string,
48
- virtualNetworkLinkName: string,
49
- parameters: VirtualNetworkLink,
50
- options?: VirtualNetworkLinksCreateOrUpdateOptionalParams,
51
- ): Promise<
52
- SimplePollerLike<
53
- OperationState<VirtualNetworkLinksCreateOrUpdateResponse>,
54
- VirtualNetworkLinksCreateOrUpdateResponse
55
- >
56
- >;
57
- /**
58
- * Creates or updates a virtual network link to the specified Private DNS zone.
59
- * @param resourceGroupName The name of the resource group.
60
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
61
- * @param virtualNetworkLinkName The name of the virtual network link.
62
- * @param parameters Parameters supplied to the CreateOrUpdate operation.
63
- * @param options The options parameters.
64
- */
65
- beginCreateOrUpdateAndWait(
66
- resourceGroupName: string,
67
- privateZoneName: string,
68
- virtualNetworkLinkName: string,
69
- parameters: VirtualNetworkLink,
70
- options?: VirtualNetworkLinksCreateOrUpdateOptionalParams,
71
- ): Promise<VirtualNetworkLinksCreateOrUpdateResponse>;
72
- /**
73
- * Updates a virtual network link to the specified Private DNS zone.
74
- * @param resourceGroupName The name of the resource group.
75
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
76
- * @param virtualNetworkLinkName The name of the virtual network link.
77
- * @param parameters Parameters supplied to the Update operation.
78
- * @param options The options parameters.
79
- */
80
- beginUpdate(
81
- resourceGroupName: string,
82
- privateZoneName: string,
83
- virtualNetworkLinkName: string,
84
- parameters: VirtualNetworkLink,
85
- options?: VirtualNetworkLinksUpdateOptionalParams,
86
- ): Promise<
87
- SimplePollerLike<
88
- OperationState<VirtualNetworkLinksUpdateResponse>,
89
- VirtualNetworkLinksUpdateResponse
90
- >
91
- >;
92
- /**
93
- * Updates a virtual network link to the specified Private DNS zone.
94
- * @param resourceGroupName The name of the resource group.
95
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
96
- * @param virtualNetworkLinkName The name of the virtual network link.
97
- * @param parameters Parameters supplied to the Update operation.
98
- * @param options The options parameters.
99
- */
100
- beginUpdateAndWait(
101
- resourceGroupName: string,
102
- privateZoneName: string,
103
- virtualNetworkLinkName: string,
104
- parameters: VirtualNetworkLink,
105
- options?: VirtualNetworkLinksUpdateOptionalParams,
106
- ): Promise<VirtualNetworkLinksUpdateResponse>;
107
- /**
108
- * Deletes a virtual network link to the specified Private DNS zone. WARNING: In case of a registration
109
- * virtual network, all auto-registered DNS records in the zone for the virtual network will also be
110
- * deleted. This operation cannot be undone.
111
- * @param resourceGroupName The name of the resource group.
112
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
113
- * @param virtualNetworkLinkName The name of the virtual network link.
114
- * @param options The options parameters.
115
- */
116
- beginDelete(
117
- resourceGroupName: string,
118
- privateZoneName: string,
119
- virtualNetworkLinkName: string,
120
- options?: VirtualNetworkLinksDeleteOptionalParams,
121
- ): Promise<SimplePollerLike<OperationState<void>, void>>;
122
- /**
123
- * Deletes a virtual network link to the specified Private DNS zone. WARNING: In case of a registration
124
- * virtual network, all auto-registered DNS records in the zone for the virtual network will also be
125
- * deleted. This operation cannot be undone.
126
- * @param resourceGroupName The name of the resource group.
127
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
128
- * @param virtualNetworkLinkName The name of the virtual network link.
129
- * @param options The options parameters.
130
- */
131
- beginDeleteAndWait(
132
- resourceGroupName: string,
133
- privateZoneName: string,
134
- virtualNetworkLinkName: string,
135
- options?: VirtualNetworkLinksDeleteOptionalParams,
136
- ): Promise<void>;
137
- /**
138
- * Gets a virtual network link to the specified Private DNS zone.
139
- * @param resourceGroupName The name of the resource group.
140
- * @param privateZoneName The name of the Private DNS zone (without a terminating dot).
141
- * @param virtualNetworkLinkName The name of the virtual network link.
142
- * @param options The options parameters.
143
- */
144
- get(
145
- resourceGroupName: string,
146
- privateZoneName: string,
147
- virtualNetworkLinkName: string,
148
- options?: VirtualNetworkLinksGetOptionalParams,
149
- ): Promise<VirtualNetworkLinksGetResponse>;
150
- }
@@ -1,39 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- export interface PageInfo {
10
- continuationToken?: string;
11
- }
12
-
13
- const pageMap = new WeakMap<object, PageInfo>();
14
-
15
- /**
16
- * Given the last `.value` produced by the `byPage` iterator,
17
- * returns a continuation token that can be used to begin paging from
18
- * that point later.
19
- * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
20
- * @returns The continuation token that can be passed into byPage() during future calls.
21
- */
22
- export function getContinuationToken(page: unknown): string | undefined {
23
- if (typeof page !== "object" || page === null) {
24
- return undefined;
25
- }
26
- return pageMap.get(page)?.continuationToken;
27
- }
28
-
29
- export function setContinuationToken(
30
- page: unknown,
31
- continuationToken: string | undefined,
32
- ): void {
33
- if (typeof page !== "object" || page === null || !continuationToken) {
34
- return;
35
- }
36
- const pageInfo = pageMap.get(page) ?? {};
37
- pageInfo.continuationToken = continuationToken;
38
- pageMap.set(page, pageInfo);
39
- }
@@ -1,154 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- import * as coreClient from "@azure/core-client";
10
- import * as coreRestPipeline from "@azure/core-rest-pipeline";
11
- import {
12
- PipelineRequest,
13
- PipelineResponse,
14
- SendRequest,
15
- } from "@azure/core-rest-pipeline";
16
- import * as coreAuth from "@azure/core-auth";
17
- import {
18
- PrivateZonesImpl,
19
- VirtualNetworkLinksImpl,
20
- RecordSetsImpl,
21
- } from "./operations";
22
- import {
23
- PrivateZones,
24
- VirtualNetworkLinks,
25
- RecordSets,
26
- } from "./operationsInterfaces";
27
- import { PrivateDnsManagementClientOptionalParams } from "./models";
28
-
29
- export class PrivateDnsManagementClient extends coreClient.ServiceClient {
30
- $host: string;
31
- apiVersion: string;
32
- subscriptionId: string;
33
-
34
- /**
35
- * Initializes a new instance of the PrivateDnsManagementClient class.
36
- * @param credentials Subscription credentials which uniquely identify client subscription.
37
- * @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure
38
- * subscription. The subscription ID forms part of the URI for every service call.
39
- * @param options The parameter options
40
- */
41
- constructor(
42
- credentials: coreAuth.TokenCredential,
43
- subscriptionId: string,
44
- options?: PrivateDnsManagementClientOptionalParams,
45
- ) {
46
- if (credentials === undefined) {
47
- throw new Error("'credentials' cannot be null");
48
- }
49
- if (subscriptionId === undefined) {
50
- throw new Error("'subscriptionId' cannot be null");
51
- }
52
-
53
- // Initializing default values for options
54
- if (!options) {
55
- options = {};
56
- }
57
- const defaults: PrivateDnsManagementClientOptionalParams = {
58
- requestContentType: "application/json; charset=utf-8",
59
- credential: credentials,
60
- };
61
-
62
- const packageDetails = `azsdk-js-arm-privatedns/3.3.1`;
63
- const userAgentPrefix =
64
- options.userAgentOptions && options.userAgentOptions.userAgentPrefix
65
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
66
- : `${packageDetails}`;
67
-
68
- const optionsWithDefaults = {
69
- ...defaults,
70
- ...options,
71
- userAgentOptions: {
72
- userAgentPrefix,
73
- },
74
- endpoint:
75
- options.endpoint ?? options.baseUri ?? "https://management.azure.com",
76
- };
77
- super(optionsWithDefaults);
78
-
79
- let bearerTokenAuthenticationPolicyFound: boolean = false;
80
- if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
81
- const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
82
- options.pipeline.getOrderedPolicies();
83
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
84
- (pipelinePolicy) =>
85
- pipelinePolicy.name ===
86
- coreRestPipeline.bearerTokenAuthenticationPolicyName,
87
- );
88
- }
89
- if (
90
- !options ||
91
- !options.pipeline ||
92
- options.pipeline.getOrderedPolicies().length == 0 ||
93
- !bearerTokenAuthenticationPolicyFound
94
- ) {
95
- this.pipeline.removePolicy({
96
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
97
- });
98
- this.pipeline.addPolicy(
99
- coreRestPipeline.bearerTokenAuthenticationPolicy({
100
- credential: credentials,
101
- scopes:
102
- optionsWithDefaults.credentialScopes ??
103
- `${optionsWithDefaults.endpoint}/.default`,
104
- challengeCallbacks: {
105
- authorizeRequestOnChallenge:
106
- coreClient.authorizeRequestOnClaimChallenge,
107
- },
108
- }),
109
- );
110
- }
111
- // Parameter assignments
112
- this.subscriptionId = subscriptionId;
113
-
114
- // Assigning values to Constant parameters
115
- this.$host = options.$host || "https://management.azure.com";
116
- this.apiVersion = options.apiVersion || "2024-06-01";
117
- this.privateZones = new PrivateZonesImpl(this);
118
- this.virtualNetworkLinks = new VirtualNetworkLinksImpl(this);
119
- this.recordSets = new RecordSetsImpl(this);
120
- this.addCustomApiVersionPolicy(options.apiVersion);
121
- }
122
-
123
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
124
- private addCustomApiVersionPolicy(apiVersion?: string) {
125
- if (!apiVersion) {
126
- return;
127
- }
128
- const apiVersionPolicy = {
129
- name: "CustomApiVersionPolicy",
130
- async sendRequest(
131
- request: PipelineRequest,
132
- next: SendRequest,
133
- ): Promise<PipelineResponse> {
134
- const param = request.url.split("?");
135
- if (param.length > 1) {
136
- const newParams = param[1].split("&").map((item) => {
137
- if (item.indexOf("api-version") > -1) {
138
- return "api-version=" + apiVersion;
139
- } else {
140
- return item;
141
- }
142
- });
143
- request.url = param[0] + "?" + newParams.join("&");
144
- }
145
- return next(request);
146
- },
147
- };
148
- this.pipeline.addPolicy(apiVersionPolicy);
149
- }
150
-
151
- privateZones: PrivateZones;
152
- virtualNetworkLinks: VirtualNetworkLinks;
153
- recordSets: RecordSets;
154
- }
package/tsconfig.json DELETED
@@ -1,33 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "module": "es6",
4
- "moduleResolution": "node",
5
- "strict": true,
6
- "target": "es6",
7
- "sourceMap": true,
8
- "declarationMap": true,
9
- "esModuleInterop": true,
10
- "allowSyntheticDefaultImports": true,
11
- "forceConsistentCasingInFileNames": true,
12
- "lib": [
13
- "es6",
14
- "dom"
15
- ],
16
- "declaration": true,
17
- "outDir": "./dist-esm",
18
- "importHelpers": true,
19
- "paths": {
20
- "@azure/arm-privatedns": [
21
- "./src/index"
22
- ]
23
- }
24
- },
25
- "include": [
26
- "./src/**/*.ts",
27
- "./test/**/*.ts",
28
- "samples-dev/**/*.ts"
29
- ],
30
- "exclude": [
31
- "node_modules"
32
- ]
33
- }