@azure/arm-dns 5.2.0-beta.1 → 5.2.0-beta.2

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 (409) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/LICENSE +4 -4
  3. package/README.md +26 -17
  4. package/{dist-esm/src → dist/browser}/dnsManagementClient.d.ts +2 -2
  5. package/dist/browser/dnsManagementClient.d.ts.map +1 -0
  6. package/{dist-esm/src → dist/browser}/dnsManagementClient.js +33 -24
  7. package/dist/browser/dnsManagementClient.js.map +1 -0
  8. package/dist/browser/index.d.ts +5 -0
  9. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  10. package/{dist-esm/src → dist/browser}/index.js +4 -4
  11. package/dist/browser/index.js.map +1 -0
  12. package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +1 -1
  13. package/dist/browser/lroImpl.js +18 -0
  14. package/dist/browser/lroImpl.js.map +1 -0
  15. package/dist/browser/models/index.js.map +1 -0
  16. package/{dist-esm/src → dist/browser}/models/mappers.js +23 -11
  17. package/dist/browser/models/mappers.js.map +1 -0
  18. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  19. package/dist/browser/models/parameters.js.map +1 -0
  20. package/{dist-esm/src → dist/browser}/operations/dnsResourceReferenceOperations.d.ts +3 -3
  21. package/dist/browser/operations/dnsResourceReferenceOperations.d.ts.map +1 -0
  22. package/{dist-esm/src → dist/browser}/operations/dnsResourceReferenceOperations.js +3 -2
  23. package/dist/browser/operations/dnsResourceReferenceOperations.js.map +1 -0
  24. package/{dist-esm/src → dist/browser}/operations/dnssecConfigs.d.ts +3 -3
  25. package/dist/browser/operations/dnssecConfigs.d.ts.map +1 -0
  26. package/{dist-esm/src → dist/browser}/operations/dnssecConfigs.js +109 -124
  27. package/dist/browser/operations/dnssecConfigs.js.map +1 -0
  28. package/dist/browser/operations/index.d.ts +5 -0
  29. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  30. package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +4 -4
  31. package/dist/browser/operations/index.js.map +1 -0
  32. package/{dist-esm/src → dist/browser}/operations/recordSets.d.ts +3 -3
  33. package/dist/browser/operations/recordSets.d.ts.map +1 -0
  34. package/{dist-esm/src → dist/browser}/operations/recordSets.js +70 -121
  35. package/dist/browser/operations/recordSets.js.map +1 -0
  36. package/{dist-esm/src → dist/browser}/operations/zones.d.ts +3 -3
  37. package/dist/browser/operations/zones.d.ts.map +1 -0
  38. package/{dist-esm/src → dist/browser}/operations/zones.js +90 -123
  39. package/dist/browser/operations/zones.js.map +1 -0
  40. package/{dist-esm/src → dist/browser}/operationsInterfaces/dnsResourceReferenceOperations.d.ts +1 -1
  41. package/dist/browser/operationsInterfaces/dnsResourceReferenceOperations.d.ts.map +1 -0
  42. package/dist/browser/operationsInterfaces/dnsResourceReferenceOperations.js.map +1 -0
  43. package/{dist-esm/src → dist/browser}/operationsInterfaces/dnssecConfigs.d.ts +1 -1
  44. package/dist/browser/operationsInterfaces/dnssecConfigs.d.ts.map +1 -0
  45. package/dist/browser/operationsInterfaces/dnssecConfigs.js.map +1 -0
  46. package/dist/browser/operationsInterfaces/index.d.ts +5 -0
  47. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  48. package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +4 -4
  49. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  50. package/{dist-esm/src → dist/browser}/operationsInterfaces/recordSets.d.ts +1 -1
  51. package/dist/browser/operationsInterfaces/recordSets.d.ts.map +1 -0
  52. package/dist/browser/operationsInterfaces/recordSets.js.map +1 -0
  53. package/{dist-esm/src → dist/browser}/operationsInterfaces/zones.d.ts +1 -1
  54. package/dist/browser/operationsInterfaces/zones.d.ts.map +1 -0
  55. package/dist/browser/operationsInterfaces/zones.js.map +1 -0
  56. package/dist/browser/package.json +3 -0
  57. package/{dist-esm/src → dist/browser}/pagingHelper.js +2 -4
  58. package/dist/browser/pagingHelper.js.map +1 -0
  59. package/dist/commonjs/dnsManagementClient.d.ts +23 -0
  60. package/dist/commonjs/dnsManagementClient.d.ts.map +1 -0
  61. package/dist/commonjs/dnsManagementClient.js +118 -0
  62. package/dist/commonjs/dnsManagementClient.js.map +1 -0
  63. package/dist/commonjs/index.d.ts +5 -0
  64. package/dist/commonjs/index.d.ts.map +1 -0
  65. package/dist/commonjs/index.js +19 -0
  66. package/dist/commonjs/index.js.map +1 -0
  67. package/dist/commonjs/lroImpl.d.ts +11 -0
  68. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  69. package/dist/commonjs/lroImpl.js +21 -0
  70. package/dist/commonjs/lroImpl.js.map +1 -0
  71. package/{types/arm-dns.d.ts → dist/commonjs/models/index.d.ts} +639 -932
  72. package/dist/commonjs/models/index.d.ts.map +1 -0
  73. package/dist/commonjs/models/index.js +23 -0
  74. package/dist/commonjs/models/index.js.map +1 -0
  75. package/dist/commonjs/models/mappers.d.ts +36 -0
  76. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  77. package/dist/commonjs/models/mappers.js +1180 -0
  78. package/dist/commonjs/models/mappers.js.map +1 -0
  79. package/dist/commonjs/models/parameters.d.ts +21 -0
  80. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  81. package/dist/commonjs/models/parameters.js +201 -0
  82. package/dist/commonjs/models/parameters.js.map +1 -0
  83. package/dist/commonjs/operations/dnsResourceReferenceOperations.d.ts +19 -0
  84. package/dist/commonjs/operations/dnsResourceReferenceOperations.d.ts.map +1 -0
  85. package/dist/commonjs/operations/dnsResourceReferenceOperations.js +55 -0
  86. package/dist/commonjs/operations/dnsResourceReferenceOperations.js.map +1 -0
  87. package/dist/commonjs/operations/dnssecConfigs.d.ts +74 -0
  88. package/dist/commonjs/operations/dnssecConfigs.d.ts.map +1 -0
  89. package/dist/commonjs/operations/dnssecConfigs.js +338 -0
  90. package/dist/commonjs/operations/dnssecConfigs.js.map +1 -0
  91. package/dist/commonjs/operations/index.d.ts +5 -0
  92. package/dist/commonjs/operations/index.d.ts.map +1 -0
  93. package/dist/commonjs/operations/index.js +15 -0
  94. package/dist/commonjs/operations/index.js.map +1 -0
  95. package/dist/commonjs/operations/recordSets.d.ts +129 -0
  96. package/dist/commonjs/operations/recordSets.d.ts.map +1 -0
  97. package/dist/commonjs/operations/recordSets.js +550 -0
  98. package/dist/commonjs/operations/recordSets.js.map +1 -0
  99. package/dist/commonjs/operations/zones.d.ts +93 -0
  100. package/dist/commonjs/operations/zones.d.ts.map +1 -0
  101. package/dist/commonjs/operations/zones.js +417 -0
  102. package/dist/commonjs/operations/zones.js.map +1 -0
  103. package/dist/commonjs/operationsInterfaces/dnsResourceReferenceOperations.d.ts +11 -0
  104. package/dist/commonjs/operationsInterfaces/dnsResourceReferenceOperations.d.ts.map +1 -0
  105. package/dist/commonjs/operationsInterfaces/dnsResourceReferenceOperations.js +10 -0
  106. package/dist/commonjs/operationsInterfaces/dnsResourceReferenceOperations.js.map +1 -0
  107. package/dist/commonjs/operationsInterfaces/dnssecConfigs.d.ts +49 -0
  108. package/dist/commonjs/operationsInterfaces/dnssecConfigs.d.ts.map +1 -0
  109. package/dist/commonjs/operationsInterfaces/dnssecConfigs.js +10 -0
  110. package/dist/commonjs/operationsInterfaces/dnssecConfigs.js.map +1 -0
  111. package/dist/commonjs/operationsInterfaces/index.d.ts +5 -0
  112. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  113. package/dist/commonjs/operationsInterfaces/index.js +15 -0
  114. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  115. package/dist/commonjs/operationsInterfaces/recordSets.d.ts +68 -0
  116. package/dist/commonjs/operationsInterfaces/recordSets.d.ts.map +1 -0
  117. package/dist/commonjs/operationsInterfaces/recordSets.js +10 -0
  118. package/dist/commonjs/operationsInterfaces/recordSets.js.map +1 -0
  119. package/dist/commonjs/operationsInterfaces/zones.d.ts +57 -0
  120. package/dist/commonjs/operationsInterfaces/zones.d.ts.map +1 -0
  121. package/dist/commonjs/operationsInterfaces/zones.js +10 -0
  122. package/dist/commonjs/operationsInterfaces/zones.js.map +1 -0
  123. package/dist/commonjs/package.json +3 -0
  124. package/dist/commonjs/pagingHelper.d.ts +13 -0
  125. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  126. package/dist/commonjs/pagingHelper.js +34 -0
  127. package/dist/commonjs/pagingHelper.js.map +1 -0
  128. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  129. package/dist/esm/dnsManagementClient.d.ts +23 -0
  130. package/dist/esm/dnsManagementClient.d.ts.map +1 -0
  131. package/dist/esm/dnsManagementClient.js +113 -0
  132. package/dist/esm/dnsManagementClient.js.map +1 -0
  133. package/dist/esm/index.d.ts +5 -0
  134. package/dist/esm/index.d.ts.map +1 -0
  135. package/{src/index.ts → dist/esm/index.js} +5 -5
  136. package/dist/esm/index.js.map +1 -0
  137. package/dist/esm/lroImpl.d.ts +11 -0
  138. package/dist/esm/lroImpl.d.ts.map +1 -0
  139. package/dist/esm/lroImpl.js +18 -0
  140. package/dist/esm/lroImpl.js.map +1 -0
  141. package/dist/esm/models/index.d.ts +639 -0
  142. package/dist/esm/models/index.d.ts.map +1 -0
  143. package/dist/esm/models/index.js +20 -0
  144. package/dist/esm/models/index.js.map +1 -0
  145. package/dist/esm/models/mappers.d.ts +36 -0
  146. package/dist/esm/models/mappers.d.ts.map +1 -0
  147. package/dist/esm/models/mappers.js +1177 -0
  148. package/dist/esm/models/mappers.js.map +1 -0
  149. package/dist/esm/models/parameters.d.ts +21 -0
  150. package/dist/esm/models/parameters.d.ts.map +1 -0
  151. package/dist/esm/models/parameters.js +198 -0
  152. package/dist/esm/models/parameters.js.map +1 -0
  153. package/dist/esm/operations/dnsResourceReferenceOperations.d.ts +19 -0
  154. package/dist/esm/operations/dnsResourceReferenceOperations.d.ts.map +1 -0
  155. package/dist/esm/operations/dnsResourceReferenceOperations.js +50 -0
  156. package/dist/esm/operations/dnsResourceReferenceOperations.js.map +1 -0
  157. package/dist/esm/operations/dnssecConfigs.d.ts +74 -0
  158. package/dist/esm/operations/dnssecConfigs.d.ts.map +1 -0
  159. package/dist/esm/operations/dnssecConfigs.js +333 -0
  160. package/dist/esm/operations/dnssecConfigs.js.map +1 -0
  161. package/dist/esm/operations/index.d.ts +5 -0
  162. package/dist/esm/operations/index.d.ts.map +1 -0
  163. package/dist/esm/operations/index.js +12 -0
  164. package/dist/esm/operations/index.js.map +1 -0
  165. package/dist/esm/operations/recordSets.d.ts +129 -0
  166. package/dist/esm/operations/recordSets.d.ts.map +1 -0
  167. package/dist/esm/operations/recordSets.js +545 -0
  168. package/dist/esm/operations/recordSets.js.map +1 -0
  169. package/dist/esm/operations/zones.d.ts +93 -0
  170. package/dist/esm/operations/zones.d.ts.map +1 -0
  171. package/dist/esm/operations/zones.js +412 -0
  172. package/dist/esm/operations/zones.js.map +1 -0
  173. package/dist/esm/operationsInterfaces/dnsResourceReferenceOperations.d.ts +11 -0
  174. package/dist/esm/operationsInterfaces/dnsResourceReferenceOperations.d.ts.map +1 -0
  175. package/dist/esm/operationsInterfaces/dnsResourceReferenceOperations.js +9 -0
  176. package/dist/esm/operationsInterfaces/dnsResourceReferenceOperations.js.map +1 -0
  177. package/dist/esm/operationsInterfaces/dnssecConfigs.d.ts +49 -0
  178. package/dist/esm/operationsInterfaces/dnssecConfigs.d.ts.map +1 -0
  179. package/dist/esm/operationsInterfaces/dnssecConfigs.js +9 -0
  180. package/dist/esm/operationsInterfaces/dnssecConfigs.js.map +1 -0
  181. package/dist/esm/operationsInterfaces/index.d.ts +5 -0
  182. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  183. package/dist/esm/operationsInterfaces/index.js +12 -0
  184. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  185. package/dist/esm/operationsInterfaces/recordSets.d.ts +68 -0
  186. package/dist/esm/operationsInterfaces/recordSets.d.ts.map +1 -0
  187. package/dist/esm/operationsInterfaces/recordSets.js +9 -0
  188. package/dist/esm/operationsInterfaces/recordSets.js.map +1 -0
  189. package/dist/esm/operationsInterfaces/zones.d.ts +57 -0
  190. package/dist/esm/operationsInterfaces/zones.d.ts.map +1 -0
  191. package/dist/esm/operationsInterfaces/zones.js +9 -0
  192. package/dist/esm/operationsInterfaces/zones.js.map +1 -0
  193. package/dist/esm/package.json +3 -0
  194. package/dist/esm/pagingHelper.d.ts +13 -0
  195. package/dist/esm/pagingHelper.d.ts.map +1 -0
  196. package/dist/esm/pagingHelper.js +30 -0
  197. package/dist/esm/pagingHelper.js.map +1 -0
  198. package/dist/react-native/dnsManagementClient.d.ts +23 -0
  199. package/dist/react-native/dnsManagementClient.d.ts.map +1 -0
  200. package/dist/react-native/dnsManagementClient.js +113 -0
  201. package/dist/react-native/dnsManagementClient.js.map +1 -0
  202. package/dist/react-native/index.d.ts +5 -0
  203. package/dist/react-native/index.d.ts.map +1 -0
  204. package/dist/react-native/index.js +13 -0
  205. package/dist/react-native/index.js.map +1 -0
  206. package/dist/react-native/lroImpl.d.ts +11 -0
  207. package/dist/react-native/lroImpl.d.ts.map +1 -0
  208. package/dist/react-native/lroImpl.js +18 -0
  209. package/dist/react-native/lroImpl.js.map +1 -0
  210. package/dist/react-native/models/index.d.ts +639 -0
  211. package/dist/react-native/models/index.d.ts.map +1 -0
  212. package/dist/react-native/models/index.js +20 -0
  213. package/dist/react-native/models/index.js.map +1 -0
  214. package/dist/react-native/models/mappers.d.ts +36 -0
  215. package/dist/react-native/models/mappers.d.ts.map +1 -0
  216. package/dist/react-native/models/mappers.js +1177 -0
  217. package/dist/react-native/models/mappers.js.map +1 -0
  218. package/dist/react-native/models/parameters.d.ts +21 -0
  219. package/dist/react-native/models/parameters.d.ts.map +1 -0
  220. package/dist/react-native/models/parameters.js +198 -0
  221. package/dist/react-native/models/parameters.js.map +1 -0
  222. package/dist/react-native/operations/dnsResourceReferenceOperations.d.ts +19 -0
  223. package/dist/react-native/operations/dnsResourceReferenceOperations.d.ts.map +1 -0
  224. package/dist/react-native/operations/dnsResourceReferenceOperations.js +50 -0
  225. package/dist/react-native/operations/dnsResourceReferenceOperations.js.map +1 -0
  226. package/dist/react-native/operations/dnssecConfigs.d.ts +74 -0
  227. package/dist/react-native/operations/dnssecConfigs.d.ts.map +1 -0
  228. package/dist/react-native/operations/dnssecConfigs.js +333 -0
  229. package/dist/react-native/operations/dnssecConfigs.js.map +1 -0
  230. package/dist/react-native/operations/index.d.ts +5 -0
  231. package/dist/react-native/operations/index.d.ts.map +1 -0
  232. package/dist/react-native/operations/index.js +12 -0
  233. package/dist/react-native/operations/index.js.map +1 -0
  234. package/dist/react-native/operations/recordSets.d.ts +129 -0
  235. package/dist/react-native/operations/recordSets.d.ts.map +1 -0
  236. package/dist/react-native/operations/recordSets.js +545 -0
  237. package/dist/react-native/operations/recordSets.js.map +1 -0
  238. package/dist/react-native/operations/zones.d.ts +93 -0
  239. package/dist/react-native/operations/zones.d.ts.map +1 -0
  240. package/dist/react-native/operations/zones.js +412 -0
  241. package/dist/react-native/operations/zones.js.map +1 -0
  242. package/dist/react-native/operationsInterfaces/dnsResourceReferenceOperations.d.ts +11 -0
  243. package/dist/react-native/operationsInterfaces/dnsResourceReferenceOperations.d.ts.map +1 -0
  244. package/dist/react-native/operationsInterfaces/dnsResourceReferenceOperations.js +9 -0
  245. package/dist/react-native/operationsInterfaces/dnsResourceReferenceOperations.js.map +1 -0
  246. package/dist/react-native/operationsInterfaces/dnssecConfigs.d.ts +49 -0
  247. package/dist/react-native/operationsInterfaces/dnssecConfigs.d.ts.map +1 -0
  248. package/dist/react-native/operationsInterfaces/dnssecConfigs.js +9 -0
  249. package/dist/react-native/operationsInterfaces/dnssecConfigs.js.map +1 -0
  250. package/dist/react-native/operationsInterfaces/index.d.ts +5 -0
  251. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  252. package/dist/react-native/operationsInterfaces/index.js +12 -0
  253. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  254. package/dist/react-native/operationsInterfaces/recordSets.d.ts +68 -0
  255. package/dist/react-native/operationsInterfaces/recordSets.d.ts.map +1 -0
  256. package/dist/react-native/operationsInterfaces/recordSets.js +9 -0
  257. package/dist/react-native/operationsInterfaces/recordSets.js.map +1 -0
  258. package/dist/react-native/operationsInterfaces/zones.d.ts +57 -0
  259. package/dist/react-native/operationsInterfaces/zones.d.ts.map +1 -0
  260. package/dist/react-native/operationsInterfaces/zones.js +9 -0
  261. package/dist/react-native/operationsInterfaces/zones.js.map +1 -0
  262. package/dist/react-native/package.json +3 -0
  263. package/dist/react-native/pagingHelper.d.ts +13 -0
  264. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  265. package/dist/react-native/pagingHelper.js +30 -0
  266. package/dist/react-native/pagingHelper.js.map +1 -0
  267. package/package.json +87 -70
  268. package/dist/index.js +0 -3020
  269. package/dist/index.js.map +0 -1
  270. package/dist/index.min.js +0 -1
  271. package/dist/index.min.js.map +0 -1
  272. package/dist-esm/samples-dev/dnsResourceReferenceGetByTargetResourcesSample.d.ts +0 -2
  273. package/dist-esm/samples-dev/dnsResourceReferenceGetByTargetResourcesSample.d.ts.map +0 -1
  274. package/dist-esm/samples-dev/dnsResourceReferenceGetByTargetResourcesSample.js +0 -43
  275. package/dist-esm/samples-dev/dnsResourceReferenceGetByTargetResourcesSample.js.map +0 -1
  276. package/dist-esm/samples-dev/dnssecConfigsCreateOrUpdateSample.d.ts +0 -2
  277. package/dist-esm/samples-dev/dnssecConfigsCreateOrUpdateSample.d.ts.map +0 -1
  278. package/dist-esm/samples-dev/dnssecConfigsCreateOrUpdateSample.js +0 -38
  279. package/dist-esm/samples-dev/dnssecConfigsCreateOrUpdateSample.js.map +0 -1
  280. package/dist-esm/samples-dev/dnssecConfigsDeleteSample.d.ts +0 -2
  281. package/dist-esm/samples-dev/dnssecConfigsDeleteSample.d.ts.map +0 -1
  282. package/dist-esm/samples-dev/dnssecConfigsDeleteSample.js +0 -38
  283. package/dist-esm/samples-dev/dnssecConfigsDeleteSample.js.map +0 -1
  284. package/dist-esm/samples-dev/dnssecConfigsGetSample.d.ts +0 -2
  285. package/dist-esm/samples-dev/dnssecConfigsGetSample.d.ts.map +0 -1
  286. package/dist-esm/samples-dev/dnssecConfigsGetSample.js +0 -38
  287. package/dist-esm/samples-dev/dnssecConfigsGetSample.js.map +0 -1
  288. package/dist-esm/samples-dev/dnssecConfigsListByDnsZoneSample.d.ts +0 -2
  289. package/dist-esm/samples-dev/dnssecConfigsListByDnsZoneSample.d.ts.map +0 -1
  290. package/dist-esm/samples-dev/dnssecConfigsListByDnsZoneSample.js +0 -54
  291. package/dist-esm/samples-dev/dnssecConfigsListByDnsZoneSample.js.map +0 -1
  292. package/dist-esm/samples-dev/recordSetsCreateOrUpdateSample.d.ts +0 -2
  293. package/dist-esm/samples-dev/recordSetsCreateOrUpdateSample.d.ts.map +0 -1
  294. package/dist-esm/samples-dev/recordSetsCreateOrUpdateSample.js +0 -432
  295. package/dist-esm/samples-dev/recordSetsCreateOrUpdateSample.js.map +0 -1
  296. package/dist-esm/samples-dev/recordSetsDeleteSample.d.ts +0 -2
  297. package/dist-esm/samples-dev/recordSetsDeleteSample.d.ts.map +0 -1
  298. package/dist-esm/samples-dev/recordSetsDeleteSample.js +0 -260
  299. package/dist-esm/samples-dev/recordSetsDeleteSample.js.map +0 -1
  300. package/dist-esm/samples-dev/recordSetsGetSample.d.ts +0 -2
  301. package/dist-esm/samples-dev/recordSetsGetSample.d.ts.map +0 -1
  302. package/dist-esm/samples-dev/recordSetsGetSample.js +0 -280
  303. package/dist-esm/samples-dev/recordSetsGetSample.js.map +0 -1
  304. package/dist-esm/samples-dev/recordSetsListAllByDnsZoneSample.d.ts +0 -2
  305. package/dist-esm/samples-dev/recordSetsListAllByDnsZoneSample.d.ts.map +0 -1
  306. package/dist-esm/samples-dev/recordSetsListAllByDnsZoneSample.js +0 -54
  307. package/dist-esm/samples-dev/recordSetsListAllByDnsZoneSample.js.map +0 -1
  308. package/dist-esm/samples-dev/recordSetsListByDnsZoneSample.d.ts +0 -2
  309. package/dist-esm/samples-dev/recordSetsListByDnsZoneSample.d.ts.map +0 -1
  310. package/dist-esm/samples-dev/recordSetsListByDnsZoneSample.js +0 -54
  311. package/dist-esm/samples-dev/recordSetsListByDnsZoneSample.js.map +0 -1
  312. package/dist-esm/samples-dev/recordSetsListByTypeSample.d.ts +0 -2
  313. package/dist-esm/samples-dev/recordSetsListByTypeSample.d.ts.map +0 -1
  314. package/dist-esm/samples-dev/recordSetsListByTypeSample.js +0 -475
  315. package/dist-esm/samples-dev/recordSetsListByTypeSample.js.map +0 -1
  316. package/dist-esm/samples-dev/recordSetsUpdateSample.d.ts +0 -2
  317. package/dist-esm/samples-dev/recordSetsUpdateSample.d.ts.map +0 -1
  318. package/dist-esm/samples-dev/recordSetsUpdateSample.js +0 -293
  319. package/dist-esm/samples-dev/recordSetsUpdateSample.js.map +0 -1
  320. package/dist-esm/samples-dev/zonesCreateOrUpdateSample.d.ts +0 -2
  321. package/dist-esm/samples-dev/zonesCreateOrUpdateSample.d.ts.map +0 -1
  322. package/dist-esm/samples-dev/zonesCreateOrUpdateSample.js +0 -39
  323. package/dist-esm/samples-dev/zonesCreateOrUpdateSample.js.map +0 -1
  324. package/dist-esm/samples-dev/zonesDeleteSample.d.ts +0 -2
  325. package/dist-esm/samples-dev/zonesDeleteSample.d.ts.map +0 -1
  326. package/dist-esm/samples-dev/zonesDeleteSample.js +0 -38
  327. package/dist-esm/samples-dev/zonesDeleteSample.js.map +0 -1
  328. package/dist-esm/samples-dev/zonesGetSample.d.ts +0 -2
  329. package/dist-esm/samples-dev/zonesGetSample.d.ts.map +0 -1
  330. package/dist-esm/samples-dev/zonesGetSample.js +0 -38
  331. package/dist-esm/samples-dev/zonesGetSample.js.map +0 -1
  332. package/dist-esm/samples-dev/zonesListByResourceGroupSample.d.ts +0 -2
  333. package/dist-esm/samples-dev/zonesListByResourceGroupSample.d.ts.map +0 -1
  334. package/dist-esm/samples-dev/zonesListByResourceGroupSample.js +0 -53
  335. package/dist-esm/samples-dev/zonesListByResourceGroupSample.js.map +0 -1
  336. package/dist-esm/samples-dev/zonesListSample.d.ts +0 -2
  337. package/dist-esm/samples-dev/zonesListSample.d.ts.map +0 -1
  338. package/dist-esm/samples-dev/zonesListSample.js +0 -52
  339. package/dist-esm/samples-dev/zonesListSample.js.map +0 -1
  340. package/dist-esm/samples-dev/zonesUpdateSample.d.ts +0 -2
  341. package/dist-esm/samples-dev/zonesUpdateSample.d.ts.map +0 -1
  342. package/dist-esm/samples-dev/zonesUpdateSample.js +0 -39
  343. package/dist-esm/samples-dev/zonesUpdateSample.js.map +0 -1
  344. package/dist-esm/src/dnsManagementClient.d.ts.map +0 -1
  345. package/dist-esm/src/dnsManagementClient.js.map +0 -1
  346. package/dist-esm/src/index.d.ts +0 -5
  347. package/dist-esm/src/index.js.map +0 -1
  348. package/dist-esm/src/lroImpl.js +0 -21
  349. package/dist-esm/src/lroImpl.js.map +0 -1
  350. package/dist-esm/src/models/index.js.map +0 -1
  351. package/dist-esm/src/models/mappers.js.map +0 -1
  352. package/dist-esm/src/models/parameters.js.map +0 -1
  353. package/dist-esm/src/operations/dnsResourceReferenceOperations.d.ts.map +0 -1
  354. package/dist-esm/src/operations/dnsResourceReferenceOperations.js.map +0 -1
  355. package/dist-esm/src/operations/dnssecConfigs.d.ts.map +0 -1
  356. package/dist-esm/src/operations/dnssecConfigs.js.map +0 -1
  357. package/dist-esm/src/operations/index.d.ts +0 -5
  358. package/dist-esm/src/operations/index.js.map +0 -1
  359. package/dist-esm/src/operations/recordSets.d.ts.map +0 -1
  360. package/dist-esm/src/operations/recordSets.js.map +0 -1
  361. package/dist-esm/src/operations/zones.d.ts.map +0 -1
  362. package/dist-esm/src/operations/zones.js.map +0 -1
  363. package/dist-esm/src/operationsInterfaces/dnsResourceReferenceOperations.d.ts.map +0 -1
  364. package/dist-esm/src/operationsInterfaces/dnsResourceReferenceOperations.js.map +0 -1
  365. package/dist-esm/src/operationsInterfaces/dnssecConfigs.d.ts.map +0 -1
  366. package/dist-esm/src/operationsInterfaces/dnssecConfigs.js.map +0 -1
  367. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -5
  368. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  369. package/dist-esm/src/operationsInterfaces/recordSets.d.ts.map +0 -1
  370. package/dist-esm/src/operationsInterfaces/recordSets.js.map +0 -1
  371. package/dist-esm/src/operationsInterfaces/zones.d.ts.map +0 -1
  372. package/dist-esm/src/operationsInterfaces/zones.js.map +0 -1
  373. package/dist-esm/src/pagingHelper.js.map +0 -1
  374. package/dist-esm/test/dns_operations_test.spec.d.ts +0 -4
  375. package/dist-esm/test/dns_operations_test.spec.d.ts.map +0 -1
  376. package/dist-esm/test/dns_operations_test.spec.js +0 -114
  377. package/dist-esm/test/dns_operations_test.spec.js.map +0 -1
  378. package/src/dnsManagementClient.ts +0 -158
  379. package/src/lroImpl.ts +0 -42
  380. package/src/models/index.ts +0 -746
  381. package/src/models/mappers.ts +0 -1212
  382. package/src/models/parameters.ts +0 -227
  383. package/src/operations/dnsResourceReferenceOperations.ts +0 -69
  384. package/src/operations/dnssecConfigs.ts +0 -468
  385. package/src/operations/index.ts +0 -12
  386. package/src/operations/recordSets.ts +0 -787
  387. package/src/operations/zones.ts +0 -545
  388. package/src/operationsInterfaces/dnsResourceReferenceOperations.ts +0 -26
  389. package/src/operationsInterfaces/dnssecConfigs.ts +0 -95
  390. package/src/operationsInterfaces/index.ts +0 -12
  391. package/src/operationsInterfaces/recordSets.ts +0 -129
  392. package/src/operationsInterfaces/zones.ts +0 -103
  393. package/src/pagingHelper.ts +0 -39
  394. package/tsconfig.json +0 -33
  395. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  396. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  397. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  398. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  399. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  400. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  401. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  402. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  403. /package/{dist-esm/src → dist/browser}/operationsInterfaces/dnsResourceReferenceOperations.js +0 -0
  404. /package/{dist-esm/src → dist/browser}/operationsInterfaces/dnssecConfigs.js +0 -0
  405. /package/{dist-esm/src → dist/browser}/operationsInterfaces/recordSets.js +0 -0
  406. /package/{dist-esm/src → dist/browser}/operationsInterfaces/zones.js +0 -0
  407. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  408. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  409. /package/review/{arm-dns.api.md → arm-dns-node.api.md} +0 -0
@@ -5,14 +5,14 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
- import { setContinuationToken } from "../pagingHelper";
8
+ import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
- import * as Mappers from "../models/mappers";
12
- import * as Parameters from "../models/parameters";
10
+ import * as Mappers from "../models/mappers.js";
11
+ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing RecordSets operations. */
15
14
  export class RecordSetsImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class RecordSets class.
18
18
  * @param client Reference to the service client
@@ -37,52 +37,35 @@ export class RecordSetsImpl {
37
37
  return this;
38
38
  },
39
39
  byPage: (settings) => {
40
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
40
+ if (settings?.maxPageSize) {
41
41
  throw new Error("maxPageSize is not supported by this operation.");
42
42
  }
43
43
  return this.listByTypePagingPage(resourceGroupName, zoneName, recordType, options, settings);
44
44
  },
45
45
  };
46
46
  }
47
- listByTypePagingPage(resourceGroupName, zoneName, recordType, options, settings) {
48
- return __asyncGenerator(this, arguments, function* listByTypePagingPage_1() {
49
- let result;
50
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
51
- if (!continuationToken) {
52
- result = yield __await(this._listByType(resourceGroupName, zoneName, recordType, options));
53
- let page = result.value || [];
54
- continuationToken = result.nextLink;
55
- setContinuationToken(page, continuationToken);
56
- yield yield __await(page);
57
- }
58
- while (continuationToken) {
59
- result = yield __await(this._listByTypeNext(resourceGroupName, zoneName, recordType, continuationToken, options));
60
- continuationToken = result.nextLink;
61
- let page = result.value || [];
62
- setContinuationToken(page, continuationToken);
63
- yield yield __await(page);
64
- }
65
- });
47
+ async *listByTypePagingPage(resourceGroupName, zoneName, recordType, options, settings) {
48
+ let result;
49
+ let continuationToken = settings?.continuationToken;
50
+ if (!continuationToken) {
51
+ result = await this._listByType(resourceGroupName, zoneName, recordType, options);
52
+ let page = result.value || [];
53
+ continuationToken = result.nextLink;
54
+ setContinuationToken(page, continuationToken);
55
+ yield page;
56
+ }
57
+ while (continuationToken) {
58
+ result = await this._listByTypeNext(resourceGroupName, zoneName, recordType, continuationToken, options);
59
+ continuationToken = result.nextLink;
60
+ let page = result.value || [];
61
+ setContinuationToken(page, continuationToken);
62
+ yield page;
63
+ }
66
64
  }
67
- listByTypePagingAll(resourceGroupName, zoneName, recordType, options) {
68
- return __asyncGenerator(this, arguments, function* listByTypePagingAll_1() {
69
- var _a, e_1, _b, _c;
70
- try {
71
- for (var _d = true, _e = __asyncValues(this.listByTypePagingPage(resourceGroupName, zoneName, recordType, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
72
- _c = _f.value;
73
- _d = false;
74
- const page = _c;
75
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
76
- }
77
- }
78
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
79
- finally {
80
- try {
81
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
82
- }
83
- finally { if (e_1) throw e_1.error; }
84
- }
85
- });
65
+ async *listByTypePagingAll(resourceGroupName, zoneName, recordType, options) {
66
+ for await (const page of this.listByTypePagingPage(resourceGroupName, zoneName, recordType, options)) {
67
+ yield* page;
68
+ }
86
69
  }
87
70
  /**
88
71
  * Lists all record sets in a DNS zone.
@@ -100,52 +83,35 @@ export class RecordSetsImpl {
100
83
  return this;
101
84
  },
102
85
  byPage: (settings) => {
103
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
86
+ if (settings?.maxPageSize) {
104
87
  throw new Error("maxPageSize is not supported by this operation.");
105
88
  }
106
89
  return this.listByDnsZonePagingPage(resourceGroupName, zoneName, options, settings);
107
90
  },
108
91
  };
109
92
  }
110
- listByDnsZonePagingPage(resourceGroupName, zoneName, options, settings) {
111
- return __asyncGenerator(this, arguments, function* listByDnsZonePagingPage_1() {
112
- let result;
113
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
114
- if (!continuationToken) {
115
- result = yield __await(this._listByDnsZone(resourceGroupName, zoneName, options));
116
- let page = result.value || [];
117
- continuationToken = result.nextLink;
118
- setContinuationToken(page, continuationToken);
119
- yield yield __await(page);
120
- }
121
- while (continuationToken) {
122
- result = yield __await(this._listByDnsZoneNext(resourceGroupName, zoneName, continuationToken, options));
123
- continuationToken = result.nextLink;
124
- let page = result.value || [];
125
- setContinuationToken(page, continuationToken);
126
- yield yield __await(page);
127
- }
128
- });
93
+ async *listByDnsZonePagingPage(resourceGroupName, zoneName, options, settings) {
94
+ let result;
95
+ let continuationToken = settings?.continuationToken;
96
+ if (!continuationToken) {
97
+ result = await this._listByDnsZone(resourceGroupName, zoneName, options);
98
+ let page = result.value || [];
99
+ continuationToken = result.nextLink;
100
+ setContinuationToken(page, continuationToken);
101
+ yield page;
102
+ }
103
+ while (continuationToken) {
104
+ result = await this._listByDnsZoneNext(resourceGroupName, zoneName, continuationToken, options);
105
+ continuationToken = result.nextLink;
106
+ let page = result.value || [];
107
+ setContinuationToken(page, continuationToken);
108
+ yield page;
109
+ }
129
110
  }
130
- listByDnsZonePagingAll(resourceGroupName, zoneName, options) {
131
- return __asyncGenerator(this, arguments, function* listByDnsZonePagingAll_1() {
132
- var _a, e_2, _b, _c;
133
- try {
134
- for (var _d = true, _e = __asyncValues(this.listByDnsZonePagingPage(resourceGroupName, zoneName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
135
- _c = _f.value;
136
- _d = false;
137
- const page = _c;
138
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
139
- }
140
- }
141
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
142
- finally {
143
- try {
144
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
145
- }
146
- finally { if (e_2) throw e_2.error; }
147
- }
148
- });
111
+ async *listByDnsZonePagingAll(resourceGroupName, zoneName, options) {
112
+ for await (const page of this.listByDnsZonePagingPage(resourceGroupName, zoneName, options)) {
113
+ yield* page;
114
+ }
149
115
  }
150
116
  /**
151
117
  * Lists all record sets in a DNS zone.
@@ -163,52 +129,35 @@ export class RecordSetsImpl {
163
129
  return this;
164
130
  },
165
131
  byPage: (settings) => {
166
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
132
+ if (settings?.maxPageSize) {
167
133
  throw new Error("maxPageSize is not supported by this operation.");
168
134
  }
169
135
  return this.listAllByDnsZonePagingPage(resourceGroupName, zoneName, options, settings);
170
136
  },
171
137
  };
172
138
  }
173
- listAllByDnsZonePagingPage(resourceGroupName, zoneName, options, settings) {
174
- return __asyncGenerator(this, arguments, function* listAllByDnsZonePagingPage_1() {
175
- let result;
176
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
177
- if (!continuationToken) {
178
- result = yield __await(this._listAllByDnsZone(resourceGroupName, zoneName, options));
179
- let page = result.value || [];
180
- continuationToken = result.nextLink;
181
- setContinuationToken(page, continuationToken);
182
- yield yield __await(page);
183
- }
184
- while (continuationToken) {
185
- result = yield __await(this._listAllByDnsZoneNext(resourceGroupName, zoneName, continuationToken, options));
186
- continuationToken = result.nextLink;
187
- let page = result.value || [];
188
- setContinuationToken(page, continuationToken);
189
- yield yield __await(page);
190
- }
191
- });
139
+ async *listAllByDnsZonePagingPage(resourceGroupName, zoneName, options, settings) {
140
+ let result;
141
+ let continuationToken = settings?.continuationToken;
142
+ if (!continuationToken) {
143
+ result = await this._listAllByDnsZone(resourceGroupName, zoneName, options);
144
+ let page = result.value || [];
145
+ continuationToken = result.nextLink;
146
+ setContinuationToken(page, continuationToken);
147
+ yield page;
148
+ }
149
+ while (continuationToken) {
150
+ result = await this._listAllByDnsZoneNext(resourceGroupName, zoneName, continuationToken, options);
151
+ continuationToken = result.nextLink;
152
+ let page = result.value || [];
153
+ setContinuationToken(page, continuationToken);
154
+ yield page;
155
+ }
192
156
  }
193
- listAllByDnsZonePagingAll(resourceGroupName, zoneName, options) {
194
- return __asyncGenerator(this, arguments, function* listAllByDnsZonePagingAll_1() {
195
- var _a, e_3, _b, _c;
196
- try {
197
- for (var _d = true, _e = __asyncValues(this.listAllByDnsZonePagingPage(resourceGroupName, zoneName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
198
- _c = _f.value;
199
- _d = false;
200
- const page = _c;
201
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
202
- }
203
- }
204
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
205
- finally {
206
- try {
207
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
208
- }
209
- finally { if (e_3) throw e_3.error; }
210
- }
211
- });
157
+ async *listAllByDnsZonePagingAll(resourceGroupName, zoneName, options) {
158
+ for await (const page of this.listAllByDnsZonePagingPage(resourceGroupName, zoneName, options)) {
159
+ yield* page;
160
+ }
212
161
  }
213
162
  /**
214
163
  * Updates a record set within a DNS zone.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recordSets.js","sourceRoot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U,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iCAAiC,GAA6B;IAClE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { RecordSets } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DnsManagementClient } from \"../dnsManagementClient.js\";\nimport {\n RecordSet,\n RecordType,\n RecordSetsListByTypeNextOptionalParams,\n RecordSetsListByTypeOptionalParams,\n RecordSetsListByTypeResponse,\n RecordSetsListByDnsZoneNextOptionalParams,\n RecordSetsListByDnsZoneOptionalParams,\n RecordSetsListByDnsZoneResponse,\n RecordSetsListAllByDnsZoneNextOptionalParams,\n RecordSetsListAllByDnsZoneOptionalParams,\n RecordSetsListAllByDnsZoneResponse,\n RecordSetsUpdateOptionalParams,\n RecordSetsUpdateResponse,\n RecordSetsCreateOrUpdateOptionalParams,\n RecordSetsCreateOrUpdateResponse,\n RecordSetsDeleteOptionalParams,\n RecordSetsGetOptionalParams,\n RecordSetsGetResponse,\n RecordSetsListByTypeNextResponse,\n RecordSetsListByDnsZoneNextResponse,\n RecordSetsListAllByDnsZoneNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RecordSets operations. */\nexport class RecordSetsImpl implements RecordSets {\n private readonly client: DnsManagementClient;\n\n /**\n * Initialize a new instance of the class RecordSets class.\n * @param client Reference to the service client\n */\n constructor(client: DnsManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the record sets of a specified type in a DNS zone.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param recordType The type of DNS record in this record set.\n * @param options The options parameters.\n */\n public listByType(\n resourceGroupName: string,\n zoneName: string,\n recordType: RecordType,\n options?: RecordSetsListByTypeOptionalParams,\n ): PagedAsyncIterableIterator<RecordSet> {\n const iter = this.listByTypePagingAll(\n resourceGroupName,\n zoneName,\n recordType,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByTypePagingPage(\n resourceGroupName,\n zoneName,\n recordType,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByTypePagingPage(\n resourceGroupName: string,\n zoneName: string,\n recordType: RecordType,\n options?: RecordSetsListByTypeOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RecordSet[]> {\n let result: RecordSetsListByTypeResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByType(\n resourceGroupName,\n zoneName,\n recordType,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByTypeNext(\n resourceGroupName,\n zoneName,\n recordType,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByTypePagingAll(\n resourceGroupName: string,\n zoneName: string,\n recordType: RecordType,\n options?: RecordSetsListByTypeOptionalParams,\n ): AsyncIterableIterator<RecordSet> {\n for await (const page of this.listByTypePagingPage(\n resourceGroupName,\n zoneName,\n recordType,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all record sets in a DNS zone.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param options The options parameters.\n */\n public listByDnsZone(\n resourceGroupName: string,\n zoneName: string,\n options?: RecordSetsListByDnsZoneOptionalParams,\n ): PagedAsyncIterableIterator<RecordSet> {\n const iter = this.listByDnsZonePagingAll(\n resourceGroupName,\n zoneName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByDnsZonePagingPage(\n resourceGroupName,\n zoneName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByDnsZonePagingPage(\n resourceGroupName: string,\n zoneName: string,\n options?: RecordSetsListByDnsZoneOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RecordSet[]> {\n let result: RecordSetsListByDnsZoneResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByDnsZone(resourceGroupName, zoneName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByDnsZoneNext(\n resourceGroupName,\n zoneName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByDnsZonePagingAll(\n resourceGroupName: string,\n zoneName: string,\n options?: RecordSetsListByDnsZoneOptionalParams,\n ): AsyncIterableIterator<RecordSet> {\n for await (const page of this.listByDnsZonePagingPage(\n resourceGroupName,\n zoneName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all record sets in a DNS zone.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param options The options parameters.\n */\n public listAllByDnsZone(\n resourceGroupName: string,\n zoneName: string,\n options?: RecordSetsListAllByDnsZoneOptionalParams,\n ): PagedAsyncIterableIterator<RecordSet> {\n const iter = this.listAllByDnsZonePagingAll(\n resourceGroupName,\n zoneName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listAllByDnsZonePagingPage(\n resourceGroupName,\n zoneName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listAllByDnsZonePagingPage(\n resourceGroupName: string,\n zoneName: string,\n options?: RecordSetsListAllByDnsZoneOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RecordSet[]> {\n let result: RecordSetsListAllByDnsZoneResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAllByDnsZone(\n resourceGroupName,\n zoneName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listAllByDnsZoneNext(\n resourceGroupName,\n zoneName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listAllByDnsZonePagingAll(\n resourceGroupName: string,\n zoneName: string,\n options?: RecordSetsListAllByDnsZoneOptionalParams,\n ): AsyncIterableIterator<RecordSet> {\n for await (const page of this.listAllByDnsZonePagingPage(\n resourceGroupName,\n zoneName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Updates a record set within a DNS zone.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param relativeRecordSetName The name of the record set, relative to the name of the zone.\n * @param recordType The type of DNS record in this record set.\n * @param parameters Parameters supplied to the Update operation.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n zoneName: string,\n relativeRecordSetName: string,\n recordType: RecordType,\n parameters: RecordSet,\n options?: RecordSetsUpdateOptionalParams,\n ): Promise<RecordSetsUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n zoneName,\n relativeRecordSetName,\n recordType,\n parameters,\n options,\n },\n updateOperationSpec,\n );\n }\n\n /**\n * Creates or updates a record set within a DNS zone. Record sets of type SOA can be updated but not\n * created (they are created when the DNS zone is created).\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param relativeRecordSetName The name of the record set, relative to the name of the zone.\n * @param recordType The type of DNS record in this record set.\n * @param parameters Parameters supplied to the CreateOrUpdate operation.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n zoneName: string,\n relativeRecordSetName: string,\n recordType: RecordType,\n parameters: RecordSet,\n options?: RecordSetsCreateOrUpdateOptionalParams,\n ): Promise<RecordSetsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n zoneName,\n relativeRecordSetName,\n recordType,\n parameters,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes a record set from a DNS zone. This operation cannot be undone. Record sets of type SOA\n * cannot be deleted (they are deleted when the DNS zone is deleted).\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param relativeRecordSetName The name of the record set, relative to the name of the zone.\n * @param recordType The type of DNS record in this record set.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n zoneName: string,\n relativeRecordSetName: string,\n recordType: RecordType,\n options?: RecordSetsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n zoneName,\n relativeRecordSetName,\n recordType,\n options,\n },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets a record set.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param relativeRecordSetName The name of the record set, relative to the name of the zone.\n * @param recordType The type of DNS record in this record set.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n zoneName: string,\n relativeRecordSetName: string,\n recordType: RecordType,\n options?: RecordSetsGetOptionalParams,\n ): Promise<RecordSetsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n zoneName,\n relativeRecordSetName,\n recordType,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Lists the record sets of a specified type in a DNS zone.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param recordType The type of DNS record in this record set.\n * @param options The options parameters.\n */\n private _listByType(\n resourceGroupName: string,\n zoneName: string,\n recordType: RecordType,\n options?: RecordSetsListByTypeOptionalParams,\n ): Promise<RecordSetsListByTypeResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, zoneName, recordType, options },\n listByTypeOperationSpec,\n );\n }\n\n /**\n * Lists all record sets in a DNS zone.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param options The options parameters.\n */\n private _listByDnsZone(\n resourceGroupName: string,\n zoneName: string,\n options?: RecordSetsListByDnsZoneOptionalParams,\n ): Promise<RecordSetsListByDnsZoneResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, zoneName, options },\n listByDnsZoneOperationSpec,\n );\n }\n\n /**\n * Lists all record sets in a DNS zone.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param options The options parameters.\n */\n private _listAllByDnsZone(\n resourceGroupName: string,\n zoneName: string,\n options?: RecordSetsListAllByDnsZoneOptionalParams,\n ): Promise<RecordSetsListAllByDnsZoneResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, zoneName, options },\n listAllByDnsZoneOperationSpec,\n );\n }\n\n /**\n * ListByTypeNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param recordType The type of DNS record in this record set.\n * @param nextLink The nextLink from the previous successful call to the ListByType method.\n * @param options The options parameters.\n */\n private _listByTypeNext(\n resourceGroupName: string,\n zoneName: string,\n recordType: RecordType,\n nextLink: string,\n options?: RecordSetsListByTypeNextOptionalParams,\n ): Promise<RecordSetsListByTypeNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, zoneName, recordType, nextLink, options },\n listByTypeNextOperationSpec,\n );\n }\n\n /**\n * ListByDnsZoneNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param nextLink The nextLink from the previous successful call to the ListByDnsZone method.\n * @param options The options parameters.\n */\n private _listByDnsZoneNext(\n resourceGroupName: string,\n zoneName: string,\n nextLink: string,\n options?: RecordSetsListByDnsZoneNextOptionalParams,\n ): Promise<RecordSetsListByDnsZoneNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, zoneName, nextLink, options },\n listByDnsZoneNextOperationSpec,\n );\n }\n\n /**\n * ListAllByDnsZoneNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param zoneName The name of the DNS zone (without a terminating dot).\n * @param nextLink The nextLink from the previous successful call to the ListAllByDnsZone method.\n * @param options The options parameters.\n */\n private _listAllByDnsZoneNext(\n resourceGroupName: string,\n zoneName: string,\n nextLink: string,\n options?: RecordSetsListAllByDnsZoneNextOptionalParams,\n ): Promise<RecordSetsListAllByDnsZoneNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, zoneName, nextLink, options },\n listAllByDnsZoneNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecordSet,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.zoneName,\n Parameters.subscriptionId,\n Parameters.relativeRecordSetName,\n Parameters.recordType,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.contentType,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecordSet,\n },\n 201: {\n bodyMapper: Mappers.RecordSet,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.zoneName,\n Parameters.subscriptionId,\n Parameters.relativeRecordSetName,\n Parameters.recordType,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n Parameters.contentType,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.zoneName,\n Parameters.subscriptionId,\n Parameters.relativeRecordSetName,\n Parameters.recordType,\n ],\n headerParameters: [Parameters.accept, Parameters.ifMatch],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecordSet,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.zoneName,\n Parameters.subscriptionId,\n Parameters.relativeRecordSetName,\n Parameters.recordType,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByTypeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecordSetListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.top,\n Parameters.recordsetnamesuffix,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.zoneName,\n Parameters.subscriptionId,\n Parameters.recordType,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByDnsZoneOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/recordsets\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecordSetListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.top,\n Parameters.recordsetnamesuffix,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.zoneName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listAllByDnsZoneOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/all\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecordSetListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.top,\n Parameters.recordSetNameSuffix,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.zoneName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByTypeNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecordSetListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.zoneName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.recordType,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByDnsZoneNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecordSetListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.zoneName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listAllByDnsZoneNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecordSetListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.zoneName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -1,8 +1,8 @@
1
1
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { Zones } from "../operationsInterfaces";
3
- import { DnsManagementClient } from "../dnsManagementClient";
2
+ import { Zones } from "../operationsInterfaces/index.js";
3
+ import { DnsManagementClient } from "../dnsManagementClient.js";
4
4
  import { SimplePollerLike, OperationState } from "@azure/core-lro";
5
- import { Zone, ZonesListByResourceGroupOptionalParams, ZonesListOptionalParams, ZonesCreateOrUpdateOptionalParams, ZonesCreateOrUpdateResponse, ZonesDeleteOptionalParams, ZonesGetOptionalParams, ZonesGetResponse, ZoneUpdate, ZonesUpdateOptionalParams, ZonesUpdateResponse } from "../models";
5
+ import { Zone, ZonesListByResourceGroupOptionalParams, ZonesListOptionalParams, ZonesCreateOrUpdateOptionalParams, ZonesCreateOrUpdateResponse, ZonesDeleteOptionalParams, ZonesGetOptionalParams, ZonesGetResponse, ZoneUpdate, ZonesUpdateOptionalParams, ZonesUpdateResponse } from "../models/index.js";
6
6
  /** Class containing Zones operations. */
7
7
  export declare class ZonesImpl implements Zones {
8
8
  private readonly client;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zones.d.ts","sourceRoot":"","sources":["../../../src/operations/zones.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAIzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,IAAI,EAEJ,sCAAsC,EAGtC,uBAAuB,EAEvB,iCAAiC,EACjC,2BAA2B,EAC3B,yBAAyB,EACzB,sBAAsB,EACtB,gBAAgB,EAChB,UAAU,EACV,yBAAyB,EACzB,mBAAmB,EAGpB,MAAM,oBAAoB,CAAC;AAG5B,yCAAyC;AACzC,qBAAa,SAAU,YAAW,KAAK;IACrC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAE7C;;;OAGG;gBACS,MAAM,EAAE,mBAAmB;IAIvC;;;;OAIG;IACI,mBAAmB,CACxB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,0BAA0B,CAAC,IAAI,CAAC;YAsBpB,6BAA6B;YA2B7B,4BAA4B;IAY3C;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,uBAAuB,GAChC,0BAA0B,CAAC,IAAI,CAAC;YAkBpB,cAAc;YAsBd,aAAa;IAQ5B;;;;;;OAMG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,IAAI,EAChB,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC;IAOvC;;;;;;OAMG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IAoDxD;;;;;;OAMG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,IAAI,CAAC;IAKhB;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,sBAAsB,GAC/B,OAAO,CAAC,gBAAgB,CAAC;IAO5B;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC;IAO/B;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAIb;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;IAWhC;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -5,16 +5,16 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
- import { setContinuationToken } from "../pagingHelper";
8
+ import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
- import * as Mappers from "../models/mappers";
12
- import * as Parameters from "../models/parameters";
10
+ import * as Mappers from "../models/mappers.js";
11
+ import * as Parameters from "../models/parameters.js";
13
12
  import { createHttpPoller, } from "@azure/core-lro";
14
- import { createLroSpec } from "../lroImpl";
13
+ import { createLroSpec } from "../lroImpl.js";
15
14
  /// <reference lib="esnext.asynciterable" />
16
15
  /** Class containing Zones operations. */
17
16
  export class ZonesImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class Zones class.
20
20
  * @param client Reference to the service client
@@ -37,52 +37,35 @@ export class ZonesImpl {
37
37
  return this;
38
38
  },
39
39
  byPage: (settings) => {
40
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
40
+ if (settings?.maxPageSize) {
41
41
  throw new Error("maxPageSize is not supported by this operation.");
42
42
  }
43
43
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
44
44
  },
45
45
  };
46
46
  }
47
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
48
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
49
- let result;
50
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
51
- if (!continuationToken) {
52
- result = yield __await(this._listByResourceGroup(resourceGroupName, options));
53
- let page = result.value || [];
54
- continuationToken = result.nextLink;
55
- setContinuationToken(page, continuationToken);
56
- yield yield __await(page);
57
- }
58
- while (continuationToken) {
59
- result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
60
- continuationToken = result.nextLink;
61
- let page = result.value || [];
62
- setContinuationToken(page, continuationToken);
63
- yield yield __await(page);
64
- }
65
- });
47
+ async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
48
+ let result;
49
+ let continuationToken = settings?.continuationToken;
50
+ if (!continuationToken) {
51
+ result = await this._listByResourceGroup(resourceGroupName, options);
52
+ let page = result.value || [];
53
+ continuationToken = result.nextLink;
54
+ setContinuationToken(page, continuationToken);
55
+ yield page;
56
+ }
57
+ while (continuationToken) {
58
+ result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
59
+ continuationToken = result.nextLink;
60
+ let page = result.value || [];
61
+ setContinuationToken(page, continuationToken);
62
+ yield page;
63
+ }
66
64
  }
67
- listByResourceGroupPagingAll(resourceGroupName, options) {
68
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
69
- var _a, e_1, _b, _c;
70
- try {
71
- for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
72
- _c = _f.value;
73
- _d = false;
74
- const page = _c;
75
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
76
- }
77
- }
78
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
79
- finally {
80
- try {
81
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
82
- }
83
- finally { if (e_1) throw e_1.error; }
84
- }
85
- });
65
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
66
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
67
+ yield* page;
68
+ }
86
69
  }
87
70
  /**
88
71
  * Lists the DNS zones in all resource groups in a subscription.
@@ -98,52 +81,35 @@ export class ZonesImpl {
98
81
  return this;
99
82
  },
100
83
  byPage: (settings) => {
101
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
84
+ if (settings?.maxPageSize) {
102
85
  throw new Error("maxPageSize is not supported by this operation.");
103
86
  }
104
87
  return this.listPagingPage(options, settings);
105
88
  },
106
89
  };
107
90
  }
108
- listPagingPage(options, settings) {
109
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
110
- let result;
111
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
112
- if (!continuationToken) {
113
- result = yield __await(this._list(options));
114
- let page = result.value || [];
115
- continuationToken = result.nextLink;
116
- setContinuationToken(page, continuationToken);
117
- yield yield __await(page);
118
- }
119
- while (continuationToken) {
120
- result = yield __await(this._listNext(continuationToken, options));
121
- continuationToken = result.nextLink;
122
- let page = result.value || [];
123
- setContinuationToken(page, continuationToken);
124
- yield yield __await(page);
125
- }
126
- });
91
+ async *listPagingPage(options, settings) {
92
+ let result;
93
+ let continuationToken = settings?.continuationToken;
94
+ if (!continuationToken) {
95
+ result = await this._list(options);
96
+ let page = result.value || [];
97
+ continuationToken = result.nextLink;
98
+ setContinuationToken(page, continuationToken);
99
+ yield page;
100
+ }
101
+ while (continuationToken) {
102
+ result = await this._listNext(continuationToken, options);
103
+ continuationToken = result.nextLink;
104
+ let page = result.value || [];
105
+ setContinuationToken(page, continuationToken);
106
+ yield page;
107
+ }
127
108
  }
128
- listPagingAll(options) {
129
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
130
- var _a, e_2, _b, _c;
131
- try {
132
- for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
133
- _c = _f.value;
134
- _d = false;
135
- const page = _c;
136
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
137
- }
138
- }
139
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
140
- finally {
141
- try {
142
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
143
- }
144
- finally { if (e_2) throw e_2.error; }
145
- }
146
- });
109
+ async *listPagingAll(options) {
110
+ for await (const page of this.listPagingPage(options)) {
111
+ yield* page;
112
+ }
147
113
  }
148
114
  /**
149
115
  * Creates or updates a DNS zone. Does not modify DNS records within the zone.
@@ -162,42 +128,45 @@ export class ZonesImpl {
162
128
  * @param zoneName The name of the DNS zone (without a terminating dot).
163
129
  * @param options The options parameters.
164
130
  */
165
- beginDelete(resourceGroupName, zoneName, options) {
166
- return __awaiter(this, void 0, void 0, function* () {
167
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
168
- return this.client.sendOperationRequest(args, spec);
169
- });
170
- const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
171
- var _a;
172
- let currentRawResponse = undefined;
173
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
174
- const callback = (rawResponse, flatResponse) => {
175
- currentRawResponse = rawResponse;
176
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
177
- };
178
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
179
- const flatResponse = yield directSendOperation(updatedArgs, spec);
180
- return {
181
- flatResponse,
182
- rawResponse: {
183
- statusCode: currentRawResponse.status,
184
- body: currentRawResponse.parsedBody,
185
- headers: currentRawResponse.headers.toJSON(),
186
- },
187
- };
188
- });
189
- const lro = createLroSpec({
190
- sendOperationFn,
191
- args: { resourceGroupName, zoneName, options },
192
- spec: deleteOperationSpec,
193
- });
194
- const poller = yield createHttpPoller(lro, {
195
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
196
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
197
- });
198
- yield poller.poll();
199
- return poller;
131
+ async beginDelete(resourceGroupName, zoneName, options) {
132
+ const directSendOperation = async (args, spec) => {
133
+ return this.client.sendOperationRequest(args, spec);
134
+ };
135
+ const sendOperationFn = async (args, spec) => {
136
+ let currentRawResponse = undefined;
137
+ const providedCallback = args.options?.onResponse;
138
+ const callback = (rawResponse, flatResponse) => {
139
+ currentRawResponse = rawResponse;
140
+ providedCallback?.(rawResponse, flatResponse);
141
+ };
142
+ const updatedArgs = {
143
+ ...args,
144
+ options: {
145
+ ...args.options,
146
+ onResponse: callback,
147
+ },
148
+ };
149
+ const flatResponse = await directSendOperation(updatedArgs, spec);
150
+ return {
151
+ flatResponse,
152
+ rawResponse: {
153
+ statusCode: currentRawResponse.status,
154
+ body: currentRawResponse.parsedBody,
155
+ headers: currentRawResponse.headers.toJSON(),
156
+ },
157
+ };
158
+ };
159
+ const lro = createLroSpec({
160
+ sendOperationFn,
161
+ args: { resourceGroupName, zoneName, options },
162
+ spec: deleteOperationSpec,
163
+ });
164
+ const poller = await createHttpPoller(lro, {
165
+ restoreFrom: options?.resumeFrom,
166
+ intervalInMs: options?.updateIntervalInMs,
200
167
  });
168
+ await poller.poll();
169
+ return poller;
201
170
  }
202
171
  /**
203
172
  * Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot
@@ -206,11 +175,9 @@ export class ZonesImpl {
206
175
  * @param zoneName The name of the DNS zone (without a terminating dot).
207
176
  * @param options The options parameters.
208
177
  */
209
- beginDeleteAndWait(resourceGroupName, zoneName, options) {
210
- return __awaiter(this, void 0, void 0, function* () {
211
- const poller = yield this.beginDelete(resourceGroupName, zoneName, options);
212
- return poller.pollUntilDone();
213
- });
178
+ async beginDeleteAndWait(resourceGroupName, zoneName, options) {
179
+ const poller = await this.beginDelete(resourceGroupName, zoneName, options);
180
+ return poller.pollUntilDone();
214
181
  }
215
182
  /**
216
183
  * Gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone.