@azure/arm-search 3.3.0-beta.2 → 3.3.0

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 +83 -0
  2. package/README.md +3 -3
  3. package/dist/browser/lroImpl.d.ts +1 -1
  4. package/dist/browser/lroImpl.d.ts.map +1 -1
  5. package/dist/browser/lroImpl.js +7 -3
  6. package/dist/browser/lroImpl.js.map +1 -1
  7. package/dist/browser/models/index.d.ts +375 -373
  8. package/dist/browser/models/index.d.ts.map +1 -1
  9. package/dist/browser/models/index.js +118 -60
  10. package/dist/browser/models/index.js.map +1 -1
  11. package/dist/browser/models/mappers.d.ts +13 -23
  12. package/dist/browser/models/mappers.d.ts.map +1 -1
  13. package/dist/browser/models/mappers.js +375 -607
  14. package/dist/browser/models/mappers.js.map +1 -1
  15. package/dist/browser/models/parameters.d.ts +1 -1
  16. package/dist/browser/models/parameters.d.ts.map +1 -1
  17. package/dist/browser/models/parameters.js +1 -1
  18. package/dist/browser/models/parameters.js.map +1 -1
  19. package/dist/browser/operations/adminKeys.d.ts +3 -3
  20. package/dist/browser/operations/adminKeys.d.ts.map +1 -1
  21. package/dist/browser/operations/adminKeys.js +1 -0
  22. package/dist/browser/operations/adminKeys.js.map +1 -1
  23. package/dist/browser/operations/index.d.ts +0 -1
  24. package/dist/browser/operations/index.d.ts.map +1 -1
  25. package/dist/browser/operations/index.js +0 -1
  26. package/dist/browser/operations/index.js.map +1 -1
  27. package/dist/browser/operations/networkSecurityPerimeterConfigurations.d.ts +8 -8
  28. package/dist/browser/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
  29. package/dist/browser/operations/networkSecurityPerimeterConfigurations.js +37 -49
  30. package/dist/browser/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
  31. package/dist/browser/operations/operations.d.ts +4 -4
  32. package/dist/browser/operations/operations.d.ts.map +1 -1
  33. package/dist/browser/operations/operations.js +10 -27
  34. package/dist/browser/operations/operations.js.map +1 -1
  35. package/dist/browser/operations/privateEndpointConnections.d.ts +4 -4
  36. package/dist/browser/operations/privateEndpointConnections.d.ts.map +1 -1
  37. package/dist/browser/operations/privateEndpointConnections.js +23 -40
  38. package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
  39. package/dist/browser/operations/privateLinkResources.d.ts +4 -4
  40. package/dist/browser/operations/privateLinkResources.d.ts.map +1 -1
  41. package/dist/browser/operations/privateLinkResources.js +10 -27
  42. package/dist/browser/operations/privateLinkResources.js.map +1 -1
  43. package/dist/browser/operations/queryKeys.d.ts +4 -4
  44. package/dist/browser/operations/queryKeys.d.ts.map +1 -1
  45. package/dist/browser/operations/queryKeys.js +23 -40
  46. package/dist/browser/operations/queryKeys.js.map +1 -1
  47. package/dist/browser/operations/services.d.ts +7 -7
  48. package/dist/browser/operations/services.d.ts.map +1 -1
  49. package/dist/browser/operations/services.js +70 -94
  50. package/dist/browser/operations/services.js.map +1 -1
  51. package/dist/browser/operations/sharedPrivateLinkResources.d.ts +5 -5
  52. package/dist/browser/operations/sharedPrivateLinkResources.d.ts.map +1 -1
  53. package/dist/browser/operations/sharedPrivateLinkResources.js +45 -52
  54. package/dist/browser/operations/sharedPrivateLinkResources.js.map +1 -1
  55. package/dist/browser/operations/usages.d.ts +4 -4
  56. package/dist/browser/operations/usages.d.ts.map +1 -1
  57. package/dist/browser/operations/usages.js +23 -40
  58. package/dist/browser/operations/usages.js.map +1 -1
  59. package/dist/browser/operationsInterfaces/adminKeys.d.ts +1 -1
  60. package/dist/browser/operationsInterfaces/adminKeys.d.ts.map +1 -1
  61. package/dist/browser/operationsInterfaces/adminKeys.js.map +1 -1
  62. package/dist/browser/operationsInterfaces/index.d.ts +0 -1
  63. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
  64. package/dist/browser/operationsInterfaces/index.js +0 -1
  65. package/dist/browser/operationsInterfaces/index.js.map +1 -1
  66. package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +6 -6
  67. package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
  68. package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -1
  69. package/dist/browser/operationsInterfaces/operations.d.ts +2 -2
  70. package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -1
  71. package/dist/browser/operationsInterfaces/operations.js.map +1 -1
  72. package/dist/browser/operationsInterfaces/privateEndpointConnections.d.ts +2 -2
  73. package/dist/browser/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
  74. package/dist/browser/operationsInterfaces/privateEndpointConnections.js.map +1 -1
  75. package/dist/browser/operationsInterfaces/privateLinkResources.d.ts +2 -2
  76. package/dist/browser/operationsInterfaces/privateLinkResources.d.ts.map +1 -1
  77. package/dist/browser/operationsInterfaces/privateLinkResources.js.map +1 -1
  78. package/dist/browser/operationsInterfaces/queryKeys.d.ts +2 -2
  79. package/dist/browser/operationsInterfaces/queryKeys.d.ts.map +1 -1
  80. package/dist/browser/operationsInterfaces/queryKeys.js.map +1 -1
  81. package/dist/browser/operationsInterfaces/services.d.ts +5 -5
  82. package/dist/browser/operationsInterfaces/services.d.ts.map +1 -1
  83. package/dist/browser/operationsInterfaces/services.js.map +1 -1
  84. package/dist/browser/operationsInterfaces/sharedPrivateLinkResources.d.ts +3 -3
  85. package/dist/browser/operationsInterfaces/sharedPrivateLinkResources.d.ts.map +1 -1
  86. package/dist/browser/operationsInterfaces/sharedPrivateLinkResources.js.map +1 -1
  87. package/dist/browser/operationsInterfaces/usages.d.ts +2 -2
  88. package/dist/browser/operationsInterfaces/usages.d.ts.map +1 -1
  89. package/dist/browser/operationsInterfaces/usages.js.map +1 -1
  90. package/dist/browser/pagingHelper.js +2 -4
  91. package/dist/browser/pagingHelper.js.map +1 -1
  92. package/dist/browser/searchManagementClient.d.ts +4 -6
  93. package/dist/browser/searchManagementClient.d.ts.map +1 -1
  94. package/dist/browser/searchManagementClient.js +34 -16
  95. package/dist/browser/searchManagementClient.js.map +1 -1
  96. package/dist/commonjs/lroImpl.d.ts +1 -1
  97. package/dist/commonjs/lroImpl.d.ts.map +1 -1
  98. package/dist/commonjs/lroImpl.js +7 -3
  99. package/dist/commonjs/lroImpl.js.map +1 -1
  100. package/dist/commonjs/models/index.d.ts +375 -373
  101. package/dist/commonjs/models/index.d.ts.map +1 -1
  102. package/dist/commonjs/models/index.js +119 -61
  103. package/dist/commonjs/models/index.js.map +1 -1
  104. package/dist/commonjs/models/mappers.d.ts +13 -23
  105. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  106. package/dist/commonjs/models/mappers.js +377 -609
  107. package/dist/commonjs/models/mappers.js.map +1 -1
  108. package/dist/commonjs/models/parameters.d.ts +1 -1
  109. package/dist/commonjs/models/parameters.d.ts.map +1 -1
  110. package/dist/commonjs/models/parameters.js +1 -1
  111. package/dist/commonjs/models/parameters.js.map +1 -1
  112. package/dist/commonjs/operations/adminKeys.d.ts +3 -3
  113. package/dist/commonjs/operations/adminKeys.d.ts.map +1 -1
  114. package/dist/commonjs/operations/adminKeys.js +1 -0
  115. package/dist/commonjs/operations/adminKeys.js.map +1 -1
  116. package/dist/commonjs/operations/index.d.ts +0 -1
  117. package/dist/commonjs/operations/index.d.ts.map +1 -1
  118. package/dist/commonjs/operations/index.js +0 -1
  119. package/dist/commonjs/operations/index.js.map +1 -1
  120. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.d.ts +8 -8
  121. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
  122. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js +37 -48
  123. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
  124. package/dist/commonjs/operations/operations.d.ts +4 -4
  125. package/dist/commonjs/operations/operations.d.ts.map +1 -1
  126. package/dist/commonjs/operations/operations.js +10 -26
  127. package/dist/commonjs/operations/operations.js.map +1 -1
  128. package/dist/commonjs/operations/privateEndpointConnections.d.ts +4 -4
  129. package/dist/commonjs/operations/privateEndpointConnections.d.ts.map +1 -1
  130. package/dist/commonjs/operations/privateEndpointConnections.js +23 -39
  131. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
  132. package/dist/commonjs/operations/privateLinkResources.d.ts +4 -4
  133. package/dist/commonjs/operations/privateLinkResources.d.ts.map +1 -1
  134. package/dist/commonjs/operations/privateLinkResources.js +10 -26
  135. package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
  136. package/dist/commonjs/operations/queryKeys.d.ts +4 -4
  137. package/dist/commonjs/operations/queryKeys.d.ts.map +1 -1
  138. package/dist/commonjs/operations/queryKeys.js +23 -39
  139. package/dist/commonjs/operations/queryKeys.js.map +1 -1
  140. package/dist/commonjs/operations/services.d.ts +7 -7
  141. package/dist/commonjs/operations/services.d.ts.map +1 -1
  142. package/dist/commonjs/operations/services.js +70 -93
  143. package/dist/commonjs/operations/services.js.map +1 -1
  144. package/dist/commonjs/operations/sharedPrivateLinkResources.d.ts +5 -5
  145. package/dist/commonjs/operations/sharedPrivateLinkResources.d.ts.map +1 -1
  146. package/dist/commonjs/operations/sharedPrivateLinkResources.js +45 -51
  147. package/dist/commonjs/operations/sharedPrivateLinkResources.js.map +1 -1
  148. package/dist/commonjs/operations/usages.d.ts +4 -4
  149. package/dist/commonjs/operations/usages.d.ts.map +1 -1
  150. package/dist/commonjs/operations/usages.js +23 -39
  151. package/dist/commonjs/operations/usages.js.map +1 -1
  152. package/dist/commonjs/operationsInterfaces/adminKeys.d.ts +1 -1
  153. package/dist/commonjs/operationsInterfaces/adminKeys.d.ts.map +1 -1
  154. package/dist/commonjs/operationsInterfaces/adminKeys.js.map +1 -1
  155. package/dist/commonjs/operationsInterfaces/index.d.ts +0 -1
  156. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
  157. package/dist/commonjs/operationsInterfaces/index.js +0 -1
  158. package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
  159. package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +6 -6
  160. package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
  161. package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -1
  162. package/dist/commonjs/operationsInterfaces/operations.d.ts +2 -2
  163. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -1
  164. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -1
  165. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts +2 -2
  166. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
  167. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js.map +1 -1
  168. package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts +2 -2
  169. package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts.map +1 -1
  170. package/dist/commonjs/operationsInterfaces/privateLinkResources.js.map +1 -1
  171. package/dist/commonjs/operationsInterfaces/queryKeys.d.ts +2 -2
  172. package/dist/commonjs/operationsInterfaces/queryKeys.d.ts.map +1 -1
  173. package/dist/commonjs/operationsInterfaces/queryKeys.js.map +1 -1
  174. package/dist/commonjs/operationsInterfaces/services.d.ts +5 -5
  175. package/dist/commonjs/operationsInterfaces/services.d.ts.map +1 -1
  176. package/dist/commonjs/operationsInterfaces/services.js.map +1 -1
  177. package/dist/commonjs/operationsInterfaces/sharedPrivateLinkResources.d.ts +3 -3
  178. package/dist/commonjs/operationsInterfaces/sharedPrivateLinkResources.d.ts.map +1 -1
  179. package/dist/commonjs/operationsInterfaces/sharedPrivateLinkResources.js.map +1 -1
  180. package/dist/commonjs/operationsInterfaces/usages.d.ts +2 -2
  181. package/dist/commonjs/operationsInterfaces/usages.d.ts.map +1 -1
  182. package/dist/commonjs/operationsInterfaces/usages.js.map +1 -1
  183. package/dist/commonjs/pagingHelper.js +2 -4
  184. package/dist/commonjs/pagingHelper.js.map +1 -1
  185. package/dist/commonjs/searchManagementClient.d.ts +4 -6
  186. package/dist/commonjs/searchManagementClient.d.ts.map +1 -1
  187. package/dist/commonjs/searchManagementClient.js +33 -15
  188. package/dist/commonjs/searchManagementClient.js.map +1 -1
  189. package/dist/commonjs/tsdoc-metadata.json +11 -11
  190. package/dist/esm/lroImpl.d.ts +1 -1
  191. package/dist/esm/lroImpl.d.ts.map +1 -1
  192. package/dist/esm/lroImpl.js +7 -3
  193. package/dist/esm/lroImpl.js.map +1 -1
  194. package/dist/esm/models/index.d.ts +375 -373
  195. package/dist/esm/models/index.d.ts.map +1 -1
  196. package/dist/esm/models/index.js +118 -60
  197. package/dist/esm/models/index.js.map +1 -1
  198. package/dist/esm/models/mappers.d.ts +13 -23
  199. package/dist/esm/models/mappers.d.ts.map +1 -1
  200. package/dist/esm/models/mappers.js +375 -607
  201. package/dist/esm/models/mappers.js.map +1 -1
  202. package/dist/esm/models/parameters.d.ts +1 -1
  203. package/dist/esm/models/parameters.d.ts.map +1 -1
  204. package/dist/esm/models/parameters.js +1 -1
  205. package/dist/esm/models/parameters.js.map +1 -1
  206. package/dist/esm/operations/adminKeys.d.ts +3 -3
  207. package/dist/esm/operations/adminKeys.d.ts.map +1 -1
  208. package/dist/esm/operations/adminKeys.js +1 -0
  209. package/dist/esm/operations/adminKeys.js.map +1 -1
  210. package/dist/esm/operations/index.d.ts +0 -1
  211. package/dist/esm/operations/index.d.ts.map +1 -1
  212. package/dist/esm/operations/index.js +0 -1
  213. package/dist/esm/operations/index.js.map +1 -1
  214. package/dist/esm/operations/networkSecurityPerimeterConfigurations.d.ts +8 -8
  215. package/dist/esm/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
  216. package/dist/esm/operations/networkSecurityPerimeterConfigurations.js +37 -49
  217. package/dist/esm/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
  218. package/dist/esm/operations/operations.d.ts +4 -4
  219. package/dist/esm/operations/operations.d.ts.map +1 -1
  220. package/dist/esm/operations/operations.js +10 -27
  221. package/dist/esm/operations/operations.js.map +1 -1
  222. package/dist/esm/operations/privateEndpointConnections.d.ts +4 -4
  223. package/dist/esm/operations/privateEndpointConnections.d.ts.map +1 -1
  224. package/dist/esm/operations/privateEndpointConnections.js +23 -40
  225. package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
  226. package/dist/esm/operations/privateLinkResources.d.ts +4 -4
  227. package/dist/esm/operations/privateLinkResources.d.ts.map +1 -1
  228. package/dist/esm/operations/privateLinkResources.js +10 -27
  229. package/dist/esm/operations/privateLinkResources.js.map +1 -1
  230. package/dist/esm/operations/queryKeys.d.ts +4 -4
  231. package/dist/esm/operations/queryKeys.d.ts.map +1 -1
  232. package/dist/esm/operations/queryKeys.js +23 -40
  233. package/dist/esm/operations/queryKeys.js.map +1 -1
  234. package/dist/esm/operations/services.d.ts +7 -7
  235. package/dist/esm/operations/services.d.ts.map +1 -1
  236. package/dist/esm/operations/services.js +70 -94
  237. package/dist/esm/operations/services.js.map +1 -1
  238. package/dist/esm/operations/sharedPrivateLinkResources.d.ts +5 -5
  239. package/dist/esm/operations/sharedPrivateLinkResources.d.ts.map +1 -1
  240. package/dist/esm/operations/sharedPrivateLinkResources.js +45 -52
  241. package/dist/esm/operations/sharedPrivateLinkResources.js.map +1 -1
  242. package/dist/esm/operations/usages.d.ts +4 -4
  243. package/dist/esm/operations/usages.d.ts.map +1 -1
  244. package/dist/esm/operations/usages.js +23 -40
  245. package/dist/esm/operations/usages.js.map +1 -1
  246. package/dist/esm/operationsInterfaces/adminKeys.d.ts +1 -1
  247. package/dist/esm/operationsInterfaces/adminKeys.d.ts.map +1 -1
  248. package/dist/esm/operationsInterfaces/adminKeys.js.map +1 -1
  249. package/dist/esm/operationsInterfaces/index.d.ts +0 -1
  250. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
  251. package/dist/esm/operationsInterfaces/index.js +0 -1
  252. package/dist/esm/operationsInterfaces/index.js.map +1 -1
  253. package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +6 -6
  254. package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
  255. package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -1
  256. package/dist/esm/operationsInterfaces/operations.d.ts +2 -2
  257. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -1
  258. package/dist/esm/operationsInterfaces/operations.js.map +1 -1
  259. package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts +2 -2
  260. package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
  261. package/dist/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -1
  262. package/dist/esm/operationsInterfaces/privateLinkResources.d.ts +2 -2
  263. package/dist/esm/operationsInterfaces/privateLinkResources.d.ts.map +1 -1
  264. package/dist/esm/operationsInterfaces/privateLinkResources.js.map +1 -1
  265. package/dist/esm/operationsInterfaces/queryKeys.d.ts +2 -2
  266. package/dist/esm/operationsInterfaces/queryKeys.d.ts.map +1 -1
  267. package/dist/esm/operationsInterfaces/queryKeys.js.map +1 -1
  268. package/dist/esm/operationsInterfaces/services.d.ts +5 -5
  269. package/dist/esm/operationsInterfaces/services.d.ts.map +1 -1
  270. package/dist/esm/operationsInterfaces/services.js.map +1 -1
  271. package/dist/esm/operationsInterfaces/sharedPrivateLinkResources.d.ts +3 -3
  272. package/dist/esm/operationsInterfaces/sharedPrivateLinkResources.d.ts.map +1 -1
  273. package/dist/esm/operationsInterfaces/sharedPrivateLinkResources.js.map +1 -1
  274. package/dist/esm/operationsInterfaces/usages.d.ts +2 -2
  275. package/dist/esm/operationsInterfaces/usages.d.ts.map +1 -1
  276. package/dist/esm/operationsInterfaces/usages.js.map +1 -1
  277. package/dist/esm/pagingHelper.js +2 -4
  278. package/dist/esm/pagingHelper.js.map +1 -1
  279. package/dist/esm/searchManagementClient.d.ts +4 -6
  280. package/dist/esm/searchManagementClient.d.ts.map +1 -1
  281. package/dist/esm/searchManagementClient.js +34 -16
  282. package/dist/esm/searchManagementClient.js.map +1 -1
  283. package/dist/react-native/lroImpl.d.ts +1 -1
  284. package/dist/react-native/lroImpl.d.ts.map +1 -1
  285. package/dist/react-native/lroImpl.js +7 -3
  286. package/dist/react-native/lroImpl.js.map +1 -1
  287. package/dist/react-native/models/index.d.ts +375 -373
  288. package/dist/react-native/models/index.d.ts.map +1 -1
  289. package/dist/react-native/models/index.js +118 -60
  290. package/dist/react-native/models/index.js.map +1 -1
  291. package/dist/react-native/models/mappers.d.ts +13 -23
  292. package/dist/react-native/models/mappers.d.ts.map +1 -1
  293. package/dist/react-native/models/mappers.js +375 -607
  294. package/dist/react-native/models/mappers.js.map +1 -1
  295. package/dist/react-native/models/parameters.d.ts +1 -1
  296. package/dist/react-native/models/parameters.d.ts.map +1 -1
  297. package/dist/react-native/models/parameters.js +1 -1
  298. package/dist/react-native/models/parameters.js.map +1 -1
  299. package/dist/react-native/operations/adminKeys.d.ts +3 -3
  300. package/dist/react-native/operations/adminKeys.d.ts.map +1 -1
  301. package/dist/react-native/operations/adminKeys.js +1 -0
  302. package/dist/react-native/operations/adminKeys.js.map +1 -1
  303. package/dist/react-native/operations/index.d.ts +0 -1
  304. package/dist/react-native/operations/index.d.ts.map +1 -1
  305. package/dist/react-native/operations/index.js +0 -1
  306. package/dist/react-native/operations/index.js.map +1 -1
  307. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.d.ts +8 -8
  308. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
  309. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js +37 -49
  310. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
  311. package/dist/react-native/operations/operations.d.ts +4 -4
  312. package/dist/react-native/operations/operations.d.ts.map +1 -1
  313. package/dist/react-native/operations/operations.js +10 -27
  314. package/dist/react-native/operations/operations.js.map +1 -1
  315. package/dist/react-native/operations/privateEndpointConnections.d.ts +4 -4
  316. package/dist/react-native/operations/privateEndpointConnections.d.ts.map +1 -1
  317. package/dist/react-native/operations/privateEndpointConnections.js +23 -40
  318. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
  319. package/dist/react-native/operations/privateLinkResources.d.ts +4 -4
  320. package/dist/react-native/operations/privateLinkResources.d.ts.map +1 -1
  321. package/dist/react-native/operations/privateLinkResources.js +10 -27
  322. package/dist/react-native/operations/privateLinkResources.js.map +1 -1
  323. package/dist/react-native/operations/queryKeys.d.ts +4 -4
  324. package/dist/react-native/operations/queryKeys.d.ts.map +1 -1
  325. package/dist/react-native/operations/queryKeys.js +23 -40
  326. package/dist/react-native/operations/queryKeys.js.map +1 -1
  327. package/dist/react-native/operations/services.d.ts +7 -7
  328. package/dist/react-native/operations/services.d.ts.map +1 -1
  329. package/dist/react-native/operations/services.js +70 -94
  330. package/dist/react-native/operations/services.js.map +1 -1
  331. package/dist/react-native/operations/sharedPrivateLinkResources.d.ts +5 -5
  332. package/dist/react-native/operations/sharedPrivateLinkResources.d.ts.map +1 -1
  333. package/dist/react-native/operations/sharedPrivateLinkResources.js +45 -52
  334. package/dist/react-native/operations/sharedPrivateLinkResources.js.map +1 -1
  335. package/dist/react-native/operations/usages.d.ts +4 -4
  336. package/dist/react-native/operations/usages.d.ts.map +1 -1
  337. package/dist/react-native/operations/usages.js +23 -40
  338. package/dist/react-native/operations/usages.js.map +1 -1
  339. package/dist/react-native/operationsInterfaces/adminKeys.d.ts +1 -1
  340. package/dist/react-native/operationsInterfaces/adminKeys.d.ts.map +1 -1
  341. package/dist/react-native/operationsInterfaces/adminKeys.js.map +1 -1
  342. package/dist/react-native/operationsInterfaces/index.d.ts +0 -1
  343. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
  344. package/dist/react-native/operationsInterfaces/index.js +0 -1
  345. package/dist/react-native/operationsInterfaces/index.js.map +1 -1
  346. package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +6 -6
  347. package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
  348. package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -1
  349. package/dist/react-native/operationsInterfaces/operations.d.ts +2 -2
  350. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -1
  351. package/dist/react-native/operationsInterfaces/operations.js.map +1 -1
  352. package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts +2 -2
  353. package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
  354. package/dist/react-native/operationsInterfaces/privateEndpointConnections.js.map +1 -1
  355. package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts +2 -2
  356. package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts.map +1 -1
  357. package/dist/react-native/operationsInterfaces/privateLinkResources.js.map +1 -1
  358. package/dist/react-native/operationsInterfaces/queryKeys.d.ts +2 -2
  359. package/dist/react-native/operationsInterfaces/queryKeys.d.ts.map +1 -1
  360. package/dist/react-native/operationsInterfaces/queryKeys.js.map +1 -1
  361. package/dist/react-native/operationsInterfaces/services.d.ts +5 -5
  362. package/dist/react-native/operationsInterfaces/services.d.ts.map +1 -1
  363. package/dist/react-native/operationsInterfaces/services.js.map +1 -1
  364. package/dist/react-native/operationsInterfaces/sharedPrivateLinkResources.d.ts +3 -3
  365. package/dist/react-native/operationsInterfaces/sharedPrivateLinkResources.d.ts.map +1 -1
  366. package/dist/react-native/operationsInterfaces/sharedPrivateLinkResources.js.map +1 -1
  367. package/dist/react-native/operationsInterfaces/usages.d.ts +2 -2
  368. package/dist/react-native/operationsInterfaces/usages.d.ts.map +1 -1
  369. package/dist/react-native/operationsInterfaces/usages.js.map +1 -1
  370. package/dist/react-native/pagingHelper.js +2 -4
  371. package/dist/react-native/pagingHelper.js.map +1 -1
  372. package/dist/react-native/searchManagementClient.d.ts +4 -6
  373. package/dist/react-native/searchManagementClient.d.ts.map +1 -1
  374. package/dist/react-native/searchManagementClient.js +34 -16
  375. package/dist/react-native/searchManagementClient.js.map +1 -1
  376. package/package.json +17 -26
  377. package/review/{arm-search.api.md → arm-search-node.api.md} +170 -215
  378. package/dist/browser/operations/offerings.d.ts +0 -26
  379. package/dist/browser/operations/offerings.d.ts.map +0 -1
  380. package/dist/browser/operations/offerings.js +0 -96
  381. package/dist/browser/operations/offerings.js.map +0 -1
  382. package/dist/browser/operationsInterfaces/offerings.d.ts +0 -11
  383. package/dist/browser/operationsInterfaces/offerings.d.ts.map +0 -1
  384. package/dist/browser/operationsInterfaces/offerings.js +0 -9
  385. package/dist/browser/operationsInterfaces/offerings.js.map +0 -1
  386. package/dist/commonjs/operations/offerings.d.ts +0 -26
  387. package/dist/commonjs/operations/offerings.d.ts.map +0 -1
  388. package/dist/commonjs/operations/offerings.js +0 -100
  389. package/dist/commonjs/operations/offerings.js.map +0 -1
  390. package/dist/commonjs/operationsInterfaces/offerings.d.ts +0 -11
  391. package/dist/commonjs/operationsInterfaces/offerings.d.ts.map +0 -1
  392. package/dist/commonjs/operationsInterfaces/offerings.js +0 -10
  393. package/dist/commonjs/operationsInterfaces/offerings.js.map +0 -1
  394. package/dist/esm/operations/offerings.d.ts +0 -26
  395. package/dist/esm/operations/offerings.d.ts.map +0 -1
  396. package/dist/esm/operations/offerings.js +0 -96
  397. package/dist/esm/operations/offerings.js.map +0 -1
  398. package/dist/esm/operationsInterfaces/offerings.d.ts +0 -11
  399. package/dist/esm/operationsInterfaces/offerings.d.ts.map +0 -1
  400. package/dist/esm/operationsInterfaces/offerings.js +0 -9
  401. package/dist/esm/operationsInterfaces/offerings.js.map +0 -1
  402. package/dist/react-native/operations/offerings.d.ts +0 -26
  403. package/dist/react-native/operations/offerings.d.ts.map +0 -1
  404. package/dist/react-native/operations/offerings.js +0 -96
  405. package/dist/react-native/operations/offerings.js.map +0 -1
  406. package/dist/react-native/operationsInterfaces/offerings.d.ts +0 -11
  407. package/dist/react-native/operationsInterfaces/offerings.d.ts.map +0 -1
  408. package/dist/react-native/operationsInterfaces/offerings.js +0 -9
  409. package/dist/react-native/operationsInterfaces/offerings.js.map +0 -1
@@ -1,8 +1,8 @@
1
- import type { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import type { NetworkSecurityPerimeterConfigurations } from "../operationsInterfaces/index.js";
3
- import type { SearchManagementClient } from "../searchManagementClient.js";
4
- import type { SimplePollerLike, OperationState } from "@azure/core-lro";
5
- import type { NetworkSecurityPerimeterConfiguration, NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams, NetworkSecurityPerimeterConfigurationsGetOptionalParams, NetworkSecurityPerimeterConfigurationsGetResponse, NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, NetworkSecurityPerimeterConfigurationsReconcileResponse } from "../models/index.js";
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { NetworkSecurityPerimeterConfigurations } from "../operationsInterfaces/index.js";
3
+ import { SearchManagementClient } from "../searchManagementClient.js";
4
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
5
+ import { NetworkSecurityPerimeterConfiguration, NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams, NetworkSecurityPerimeterConfigurationsGetOptionalParams, NetworkSecurityPerimeterConfigurationsGetResponse, NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, NetworkSecurityPerimeterConfigurationsReconcileResponse } from "../models/index.js";
6
6
  /** Class containing NetworkSecurityPerimeterConfigurations operations. */
7
7
  export declare class NetworkSecurityPerimeterConfigurationsImpl implements NetworkSecurityPerimeterConfigurations {
8
8
  private readonly client;
@@ -37,7 +37,7 @@ export declare class NetworkSecurityPerimeterConfigurationsImpl implements Netwo
37
37
  * obtain this value from the Azure Resource Manager API or the portal.
38
38
  * @param searchServiceName The name of the Azure AI Search service associated with the specified
39
39
  * resource group.
40
- * @param nspConfigName The network security configuration name.
40
+ * @param nspConfigName The network security perimeter configuration name.
41
41
  * @param options The options parameters.
42
42
  */
43
43
  get(resourceGroupName: string, searchServiceName: string, nspConfigName: string, options?: NetworkSecurityPerimeterConfigurationsGetOptionalParams): Promise<NetworkSecurityPerimeterConfigurationsGetResponse>;
@@ -49,7 +49,7 @@ export declare class NetworkSecurityPerimeterConfigurationsImpl implements Netwo
49
49
  * obtain this value from the Azure Resource Manager API or the portal.
50
50
  * @param searchServiceName The name of the Azure AI Search service associated with the specified
51
51
  * resource group.
52
- * @param nspConfigName The network security configuration name.
52
+ * @param nspConfigName The network security perimeter configuration name.
53
53
  * @param options The options parameters.
54
54
  */
55
55
  beginReconcile(resourceGroupName: string, searchServiceName: string, nspConfigName: string, options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams): Promise<SimplePollerLike<OperationState<NetworkSecurityPerimeterConfigurationsReconcileResponse>, NetworkSecurityPerimeterConfigurationsReconcileResponse>>;
@@ -61,7 +61,7 @@ export declare class NetworkSecurityPerimeterConfigurationsImpl implements Netwo
61
61
  * obtain this value from the Azure Resource Manager API or the portal.
62
62
  * @param searchServiceName The name of the Azure AI Search service associated with the specified
63
63
  * resource group.
64
- * @param nspConfigName The network security configuration name.
64
+ * @param nspConfigName The network security perimeter configuration name.
65
65
  * @param options The options parameters.
66
66
  */
67
67
  beginReconcileAndWait(resourceGroupName: string, searchServiceName: string, nspConfigName: string, options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams): Promise<NetworkSecurityPerimeterConfigurationsReconcileResponse>;
@@ -1 +1 @@
1
- {"version":3,"file":"networkSecurityPerimeterConfigurations.d.ts","sourceRoot":"","sources":["../../../src/operations/networkSecurityPerimeterConfigurations.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAEnF,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,kCAAkC,CAAC;AAI/F,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGxE,OAAO,KAAK,EACV,qCAAqC,EAErC,iEAAiE,EAEjE,uDAAuD,EACvD,iDAAiD,EACjD,6DAA6D,EAC7D,uDAAuD,EAExD,MAAM,oBAAoB,CAAC;AAG5B,0EAA0E;AAC1E,qBAAa,0CACX,YAAW,sCAAsC;IAEjD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyB;IAEhD;;;OAGG;gBACS,MAAM,EAAE,sBAAsB;IAI1C;;;;;;;OAOG;IACI,aAAa,CAClB,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,iEAAiE,GAC1E,0BAA0B,CAAC,qCAAqC,CAAC;YAuBrD,uBAAuB;YA6BvB,sBAAsB;IAcrC;;;;;;;OAOG;IACH,OAAO,CAAC,cAAc;IAWtB;;;;;;;;OAQG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,uDAAuD,GAChE,OAAO,CAAC,iDAAiD,CAAC;IAO7D;;;;;;;;;;OAUG;IACG,cAAc,CAClB,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,6DAA6D,GACtE,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,uDAAuD,CAAC,EACvE,uDAAuD,CACxD,CACF;IAuDD;;;;;;;;;;OAUG;IACG,qBAAqB,CACzB,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,6DAA6D,GACtE,OAAO,CAAC,uDAAuD,CAAC;IAUnE;;;;;;;;OAQG;IACH,OAAO,CAAC,kBAAkB;CAW3B"}
1
+ {"version":3,"file":"networkSecurityPerimeterConfigurations.d.ts","sourceRoot":"","sources":["../../../src/operations/networkSecurityPerimeterConfigurations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,sCAAsC,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;;;OAQG;IACH,OAAO,CAAC,kBAAkB;CAW3B"}
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
18
18
  /// <reference lib="esnext.asynciterable" />
19
19
  /** Class containing NetworkSecurityPerimeterConfigurations operations. */
20
20
  class NetworkSecurityPerimeterConfigurationsImpl {
21
+ client;
21
22
  /**
22
23
  * Initialize a new instance of the class NetworkSecurityPerimeterConfigurations class.
23
24
  * @param client Reference to the service client
@@ -43,52 +44,35 @@ class NetworkSecurityPerimeterConfigurationsImpl {
43
44
  return this;
44
45
  },
45
46
  byPage: (settings) => {
46
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
47
+ if (settings?.maxPageSize) {
47
48
  throw new Error("maxPageSize is not supported by this operation.");
48
49
  }
49
50
  return this.listByServicePagingPage(resourceGroupName, searchServiceName, options, settings);
50
51
  },
51
52
  };
52
53
  }
53
- listByServicePagingPage(resourceGroupName, searchServiceName, options, settings) {
54
- return tslib_1.__asyncGenerator(this, arguments, function* listByServicePagingPage_1() {
55
- let result;
56
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
57
- if (!continuationToken) {
58
- result = yield tslib_1.__await(this._listByService(resourceGroupName, searchServiceName, options));
59
- let page = result.value || [];
60
- continuationToken = result.nextLink;
61
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
62
- yield yield tslib_1.__await(page);
63
- }
64
- while (continuationToken) {
65
- result = yield tslib_1.__await(this._listByServiceNext(resourceGroupName, searchServiceName, continuationToken, options));
66
- continuationToken = result.nextLink;
67
- let page = result.value || [];
68
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
69
- yield yield tslib_1.__await(page);
70
- }
71
- });
54
+ async *listByServicePagingPage(resourceGroupName, searchServiceName, options, settings) {
55
+ let result;
56
+ let continuationToken = settings?.continuationToken;
57
+ if (!continuationToken) {
58
+ result = await this._listByService(resourceGroupName, searchServiceName, options);
59
+ let page = result.value || [];
60
+ continuationToken = result.nextLink;
61
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
62
+ yield page;
63
+ }
64
+ while (continuationToken) {
65
+ result = await this._listByServiceNext(resourceGroupName, searchServiceName, continuationToken, options);
66
+ continuationToken = result.nextLink;
67
+ let page = result.value || [];
68
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
69
+ yield page;
70
+ }
72
71
  }
73
- listByServicePagingAll(resourceGroupName, searchServiceName, options) {
74
- return tslib_1.__asyncGenerator(this, arguments, function* listByServicePagingAll_1() {
75
- var _a, e_1, _b, _c;
76
- try {
77
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByServicePagingPage(resourceGroupName, searchServiceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
78
- _c = _f.value;
79
- _d = false;
80
- const page = _c;
81
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
82
- }
83
- }
84
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
85
- finally {
86
- try {
87
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
88
- }
89
- finally { if (e_1) throw e_1.error; }
90
- }
91
- });
72
+ async *listByServicePagingAll(resourceGroupName, searchServiceName, options) {
73
+ for await (const page of this.listByServicePagingPage(resourceGroupName, searchServiceName, options)) {
74
+ yield* page;
75
+ }
92
76
  }
93
77
  /**
94
78
  * Gets a list of network security perimeter configurations for a search service.
@@ -107,7 +91,7 @@ class NetworkSecurityPerimeterConfigurationsImpl {
107
91
  * obtain this value from the Azure Resource Manager API or the portal.
108
92
  * @param searchServiceName The name of the Azure AI Search service associated with the specified
109
93
  * resource group.
110
- * @param nspConfigName The network security configuration name.
94
+ * @param nspConfigName The network security perimeter configuration name.
111
95
  * @param options The options parameters.
112
96
  */
113
97
  get(resourceGroupName, searchServiceName, nspConfigName, options) {
@@ -121,7 +105,7 @@ class NetworkSecurityPerimeterConfigurationsImpl {
121
105
  * obtain this value from the Azure Resource Manager API or the portal.
122
106
  * @param searchServiceName The name of the Azure AI Search service associated with the specified
123
107
  * resource group.
124
- * @param nspConfigName The network security configuration name.
108
+ * @param nspConfigName The network security perimeter configuration name.
125
109
  * @param options The options parameters.
126
110
  */
127
111
  async beginReconcile(resourceGroupName, searchServiceName, nspConfigName, options) {
@@ -129,14 +113,19 @@ class NetworkSecurityPerimeterConfigurationsImpl {
129
113
  return this.client.sendOperationRequest(args, spec);
130
114
  };
131
115
  const sendOperationFn = async (args, spec) => {
132
- var _a;
133
116
  let currentRawResponse = undefined;
134
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
117
+ const providedCallback = args.options?.onResponse;
135
118
  const callback = (rawResponse, flatResponse) => {
136
119
  currentRawResponse = rawResponse;
137
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
120
+ providedCallback?.(rawResponse, flatResponse);
121
+ };
122
+ const updatedArgs = {
123
+ ...args,
124
+ options: {
125
+ ...args.options,
126
+ onResponse: callback,
127
+ },
138
128
  };
139
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
140
129
  const flatResponse = await directSendOperation(updatedArgs, spec);
141
130
  return {
142
131
  flatResponse,
@@ -153,8 +142,8 @@ class NetworkSecurityPerimeterConfigurationsImpl {
153
142
  spec: reconcileOperationSpec,
154
143
  });
155
144
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
156
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
157
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
145
+ restoreFrom: options?.resumeFrom,
146
+ intervalInMs: options?.updateIntervalInMs,
158
147
  resourceLocationConfig: "location",
159
148
  });
160
149
  await poller.poll();
@@ -168,7 +157,7 @@ class NetworkSecurityPerimeterConfigurationsImpl {
168
157
  * obtain this value from the Azure Resource Manager API or the portal.
169
158
  * @param searchServiceName The name of the Azure AI Search service associated with the specified
170
159
  * resource group.
171
- * @param nspConfigName The network security configuration name.
160
+ * @param nspConfigName The network security perimeter configuration name.
172
161
  * @param options The options parameters.
173
162
  */
174
163
  async beginReconcileAndWait(resourceGroupName, searchServiceName, nspConfigName, options) {
@@ -1 +1 @@
1
- {"version":3,"file":"networkSecurityPerimeterConfigurations.js","sourceRoot":"","sources":["../../../src/operations/networkSecurityPerimeterConfigurations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAGtD,8CAAmD;AACnD,8CAA8C;AAa9C,4CAA4C;AAC5C,0EAA0E;AAC1E,MAAa,0CAA0C;IAKrD;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,aAAa,CAClB,iBAAyB,EACzB,iBAAyB,EACzB,OAA2E;QAE3E,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;QACxF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,uBAAuB,CACjC,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,uBAAuB,CACpC,iBAAyB,EACzB,iBAAyB,EACzB,OAA2E,EAC3E,QAAuB;;YAEvB,IAAI,MAAm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,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,sDAAsD;SAC9E;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,sDAAsD;SAC9E;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,sDAAsD;SAC9E;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,aAAa;KACzB;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,+CAA+C;SACpE;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,iBAAiB;QAC5B,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 type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { NetworkSecurityPerimeterConfigurations } 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 type { SearchManagementClient } from \"../searchManagementClient.js\";\nimport type { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport { createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport type {\n NetworkSecurityPerimeterConfiguration,\n NetworkSecurityPerimeterConfigurationsListByServiceNextOptionalParams,\n NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams,\n NetworkSecurityPerimeterConfigurationsListByServiceResponse,\n NetworkSecurityPerimeterConfigurationsGetOptionalParams,\n NetworkSecurityPerimeterConfigurationsGetResponse,\n NetworkSecurityPerimeterConfigurationsReconcileOptionalParams,\n NetworkSecurityPerimeterConfigurationsReconcileResponse,\n NetworkSecurityPerimeterConfigurationsListByServiceNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing NetworkSecurityPerimeterConfigurations operations. */\nexport class NetworkSecurityPerimeterConfigurationsImpl\n implements NetworkSecurityPerimeterConfigurations\n{\n private readonly client: SearchManagementClient;\n\n /**\n * Initialize a new instance of the class NetworkSecurityPerimeterConfigurations class.\n * @param client Reference to the service client\n */\n constructor(client: SearchManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of network security perimeter configurations for a search service.\n * @param resourceGroupName The name of the resource group within the current subscription. You can\n * obtain this value from the Azure Resource Manager API or the portal.\n * @param searchServiceName The name of the Azure AI Search service associated with the specified\n * resource group.\n * @param options The options parameters.\n */\n public listByService(\n resourceGroupName: string,\n searchServiceName: string,\n options?: NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams,\n ): PagedAsyncIterableIterator<NetworkSecurityPerimeterConfiguration> {\n const iter = this.listByServicePagingAll(resourceGroupName, searchServiceName, options);\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.listByServicePagingPage(\n resourceGroupName,\n searchServiceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByServicePagingPage(\n resourceGroupName: string,\n searchServiceName: string,\n options?: NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<NetworkSecurityPerimeterConfiguration[]> {\n let result: NetworkSecurityPerimeterConfigurationsListByServiceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByService(resourceGroupName, searchServiceName, 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._listByServiceNext(\n resourceGroupName,\n searchServiceName,\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 *listByServicePagingAll(\n resourceGroupName: string,\n searchServiceName: string,\n options?: NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams,\n ): AsyncIterableIterator<NetworkSecurityPerimeterConfiguration> {\n for await (const page of this.listByServicePagingPage(\n resourceGroupName,\n searchServiceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of network security perimeter configurations for a search service.\n * @param resourceGroupName The name of the resource group within the current subscription. You can\n * obtain this value from the Azure Resource Manager API or the portal.\n * @param searchServiceName The name of the Azure AI Search service associated with the specified\n * resource group.\n * @param options The options parameters.\n */\n private _listByService(\n resourceGroupName: string,\n searchServiceName: string,\n options?: NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams,\n ): Promise<NetworkSecurityPerimeterConfigurationsListByServiceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, searchServiceName, options },\n listByServiceOperationSpec,\n );\n }\n\n /**\n * Gets a network security perimeter configuration.\n * @param resourceGroupName The name of the resource group within the current subscription. You can\n * obtain this value from the Azure Resource Manager API or the portal.\n * @param searchServiceName The name of the Azure AI Search service associated with the specified\n * resource group.\n * @param nspConfigName The network security configuration name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n searchServiceName: string,\n nspConfigName: string,\n options?: NetworkSecurityPerimeterConfigurationsGetOptionalParams,\n ): Promise<NetworkSecurityPerimeterConfigurationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, searchServiceName, nspConfigName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Reconcile network security perimeter configuration for the Azure AI Search resource provider. This\n * triggers a manual resync with network security perimeter configurations by ensuring the search\n * service carries the latest configuration.\n * @param resourceGroupName The name of the resource group within the current subscription. You can\n * obtain this value from the Azure Resource Manager API or the portal.\n * @param searchServiceName The name of the Azure AI Search service associated with the specified\n * resource group.\n * @param nspConfigName The network security configuration name.\n * @param options The options parameters.\n */\n async beginReconcile(\n resourceGroupName: string,\n searchServiceName: string,\n nspConfigName: string,\n options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<NetworkSecurityPerimeterConfigurationsReconcileResponse>,\n NetworkSecurityPerimeterConfigurationsReconcileResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<NetworkSecurityPerimeterConfigurationsReconcileResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, searchServiceName, nspConfigName, options },\n spec: reconcileOperationSpec,\n });\n const poller = await createHttpPoller<\n NetworkSecurityPerimeterConfigurationsReconcileResponse,\n OperationState<NetworkSecurityPerimeterConfigurationsReconcileResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Reconcile network security perimeter configuration for the Azure AI Search resource provider. This\n * triggers a manual resync with network security perimeter configurations by ensuring the search\n * service carries the latest configuration.\n * @param resourceGroupName The name of the resource group within the current subscription. You can\n * obtain this value from the Azure Resource Manager API or the portal.\n * @param searchServiceName The name of the Azure AI Search service associated with the specified\n * resource group.\n * @param nspConfigName The network security configuration name.\n * @param options The options parameters.\n */\n async beginReconcileAndWait(\n resourceGroupName: string,\n searchServiceName: string,\n nspConfigName: string,\n options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams,\n ): Promise<NetworkSecurityPerimeterConfigurationsReconcileResponse> {\n const poller = await this.beginReconcile(\n resourceGroupName,\n searchServiceName,\n nspConfigName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByServiceNext\n * @param resourceGroupName The name of the resource group within the current subscription. You can\n * obtain this value from the Azure Resource Manager API or the portal.\n * @param searchServiceName The name of the Azure AI Search service associated with the specified\n * resource group.\n * @param nextLink The nextLink from the previous successful call to the ListByService method.\n * @param options The options parameters.\n */\n private _listByServiceNext(\n resourceGroupName: string,\n searchServiceName: string,\n nextLink: string,\n options?: NetworkSecurityPerimeterConfigurationsListByServiceNextOptionalParams,\n ): Promise<NetworkSecurityPerimeterConfigurationsListByServiceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, searchServiceName, nextLink, options },\n listByServiceNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByServiceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/networkSecurityPerimeterConfigurations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.searchServiceName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/networkSecurityPerimeterConfigurations/{nspConfigName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.searchServiceName,\n Parameters.subscriptionId,\n Parameters.nspConfigName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst reconcileOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/networkSecurityPerimeterConfigurations/{nspConfigName}/reconcile\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n headersMapper: Mappers.NetworkSecurityPerimeterConfigurationsReconcileHeaders,\n },\n 201: {\n headersMapper: Mappers.NetworkSecurityPerimeterConfigurationsReconcileHeaders,\n },\n 202: {\n headersMapper: Mappers.NetworkSecurityPerimeterConfigurationsReconcileHeaders,\n },\n 204: {\n headersMapper: Mappers.NetworkSecurityPerimeterConfigurationsReconcileHeaders,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.searchServiceName,\n Parameters.subscriptionId,\n Parameters.nspConfigName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByServiceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.searchServiceName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"networkSecurityPerimeterConfigurations.js","sourceRoot":"","sources":["../../../src/operations/networkSecurityPerimeterConfigurations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAAqF;AACrF,8CAA8C;AAa9C,4CAA4C;AAC5C,0EAA0E;AAC1E,MAAa,0CAA0C;IAGpC,MAAM,CAAyB;IAEhD;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,aAAa,CAClB,iBAAyB,EACzB,iBAAyB,EACzB,OAA2E;QAE3E,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;QACxF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QA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M;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,sDAAsD;SAC9E;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,sDAAsD;SAC9E;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,sDAAsD;SAC9E;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,sDAAsD;SAC9E;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,aAAa;KACzB;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,+CAA+C;SACpE;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,iBAAiB;QAC5B,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 { NetworkSecurityPerimeterConfigurations } 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 { SearchManagementClient } from \"../searchManagementClient.js\";\nimport { SimplePollerLike, OperationState, createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n NetworkSecurityPerimeterConfiguration,\n NetworkSecurityPerimeterConfigurationsListByServiceNextOptionalParams,\n NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams,\n NetworkSecurityPerimeterConfigurationsListByServiceResponse,\n NetworkSecurityPerimeterConfigurationsGetOptionalParams,\n NetworkSecurityPerimeterConfigurationsGetResponse,\n NetworkSecurityPerimeterConfigurationsReconcileOptionalParams,\n NetworkSecurityPerimeterConfigurationsReconcileResponse,\n NetworkSecurityPerimeterConfigurationsListByServiceNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing NetworkSecurityPerimeterConfigurations operations. */\nexport class NetworkSecurityPerimeterConfigurationsImpl\n implements NetworkSecurityPerimeterConfigurations\n{\n private readonly client: SearchManagementClient;\n\n /**\n * Initialize a new instance of the class NetworkSecurityPerimeterConfigurations class.\n * @param client Reference to the service client\n */\n constructor(client: SearchManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of network security perimeter configurations for a search service.\n * @param resourceGroupName The name of the resource group within the current subscription. You can\n * obtain this value from the Azure Resource Manager API or the portal.\n * @param searchServiceName The name of the Azure AI Search service associated with the specified\n * resource group.\n * @param options The options parameters.\n */\n public listByService(\n resourceGroupName: string,\n searchServiceName: string,\n options?: NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams,\n ): PagedAsyncIterableIterator<NetworkSecurityPerimeterConfiguration> {\n const iter = this.listByServicePagingAll(resourceGroupName, searchServiceName, options);\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.listByServicePagingPage(\n resourceGroupName,\n searchServiceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByServicePagingPage(\n resourceGroupName: string,\n searchServiceName: string,\n options?: NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<NetworkSecurityPerimeterConfiguration[]> {\n let result: NetworkSecurityPerimeterConfigurationsListByServiceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByService(resourceGroupName, searchServiceName, 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._listByServiceNext(\n resourceGroupName,\n searchServiceName,\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 *listByServicePagingAll(\n resourceGroupName: string,\n searchServiceName: string,\n options?: NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams,\n ): AsyncIterableIterator<NetworkSecurityPerimeterConfiguration> {\n for await (const page of this.listByServicePagingPage(\n resourceGroupName,\n searchServiceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of network security perimeter configurations for a search service.\n * @param resourceGroupName The name of the resource group within the current subscription. You can\n * obtain this value from the Azure Resource Manager API or the portal.\n * @param searchServiceName The name of the Azure AI Search service associated with the specified\n * resource group.\n * @param options The options parameters.\n */\n private _listByService(\n resourceGroupName: string,\n searchServiceName: string,\n options?: NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams,\n ): Promise<NetworkSecurityPerimeterConfigurationsListByServiceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, searchServiceName, options },\n listByServiceOperationSpec,\n );\n }\n\n /**\n * Gets a network security perimeter configuration.\n * @param resourceGroupName The name of the resource group within the current subscription. You can\n * obtain this value from the Azure Resource Manager API or the portal.\n * @param searchServiceName The name of the Azure AI Search service associated with the specified\n * resource group.\n * @param nspConfigName The network security perimeter configuration name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n searchServiceName: string,\n nspConfigName: string,\n options?: NetworkSecurityPerimeterConfigurationsGetOptionalParams,\n ): Promise<NetworkSecurityPerimeterConfigurationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, searchServiceName, nspConfigName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Reconcile network security perimeter configuration for the Azure AI Search resource provider. This\n * triggers a manual resync with network security perimeter configurations by ensuring the search\n * service carries the latest configuration.\n * @param resourceGroupName The name of the resource group within the current subscription. You can\n * obtain this value from the Azure Resource Manager API or the portal.\n * @param searchServiceName The name of the Azure AI Search service associated with the specified\n * resource group.\n * @param nspConfigName The network security perimeter configuration name.\n * @param options The options parameters.\n */\n async beginReconcile(\n resourceGroupName: string,\n searchServiceName: string,\n nspConfigName: string,\n options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<NetworkSecurityPerimeterConfigurationsReconcileResponse>,\n NetworkSecurityPerimeterConfigurationsReconcileResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<NetworkSecurityPerimeterConfigurationsReconcileResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, searchServiceName, nspConfigName, options },\n spec: reconcileOperationSpec,\n });\n const poller = await createHttpPoller<\n NetworkSecurityPerimeterConfigurationsReconcileResponse,\n OperationState<NetworkSecurityPerimeterConfigurationsReconcileResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Reconcile network security perimeter configuration for the Azure AI Search resource provider. This\n * triggers a manual resync with network security perimeter configurations by ensuring the search\n * service carries the latest configuration.\n * @param resourceGroupName The name of the resource group within the current subscription. You can\n * obtain this value from the Azure Resource Manager API or the portal.\n * @param searchServiceName The name of the Azure AI Search service associated with the specified\n * resource group.\n * @param nspConfigName The network security perimeter configuration name.\n * @param options The options parameters.\n */\n async beginReconcileAndWait(\n resourceGroupName: string,\n searchServiceName: string,\n nspConfigName: string,\n options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams,\n ): Promise<NetworkSecurityPerimeterConfigurationsReconcileResponse> {\n const poller = await this.beginReconcile(\n resourceGroupName,\n searchServiceName,\n nspConfigName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByServiceNext\n * @param resourceGroupName The name of the resource group within the current subscription. You can\n * obtain this value from the Azure Resource Manager API or the portal.\n * @param searchServiceName The name of the Azure AI Search service associated with the specified\n * resource group.\n * @param nextLink The nextLink from the previous successful call to the ListByService method.\n * @param options The options parameters.\n */\n private _listByServiceNext(\n resourceGroupName: string,\n searchServiceName: string,\n nextLink: string,\n options?: NetworkSecurityPerimeterConfigurationsListByServiceNextOptionalParams,\n ): Promise<NetworkSecurityPerimeterConfigurationsListByServiceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, searchServiceName, nextLink, options },\n listByServiceNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByServiceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/networkSecurityPerimeterConfigurations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.searchServiceName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/networkSecurityPerimeterConfigurations/{nspConfigName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.searchServiceName,\n Parameters.subscriptionId,\n Parameters.nspConfigName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst reconcileOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/networkSecurityPerimeterConfigurations/{nspConfigName}/reconcile\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n headersMapper: Mappers.NetworkSecurityPerimeterConfigurationsReconcileHeaders,\n },\n 201: {\n headersMapper: Mappers.NetworkSecurityPerimeterConfigurationsReconcileHeaders,\n },\n 202: {\n headersMapper: Mappers.NetworkSecurityPerimeterConfigurationsReconcileHeaders,\n },\n 204: {\n headersMapper: Mappers.NetworkSecurityPerimeterConfigurationsReconcileHeaders,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.searchServiceName,\n Parameters.subscriptionId,\n Parameters.nspConfigName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByServiceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.searchServiceName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -1,7 +1,7 @@
1
- import type { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import type { Operations } from "../operationsInterfaces/index.js";
3
- import type { SearchManagementClient } from "../searchManagementClient.js";
4
- import type { Operation, OperationsListOptionalParams } from "../models/index.js";
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operations } from "../operationsInterfaces/index.js";
3
+ import { SearchManagementClient } from "../searchManagementClient.js";
4
+ import { Operation, OperationsListOptionalParams } from "../models/index.js";
5
5
  /** Class containing Operations operations. */
6
6
  export declare class OperationsImpl implements Operations {
7
7
  private readonly client;
@@ -1 +1 @@
1
- {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AACnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAInE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,KAAK,EACV,SAAS,EACT,4BAA4B,EAE7B,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyB;IAEhD;;;OAGG;gBACS,MAAM,EAAE,sBAAsB;IAI1C;;;OAGG;IACI,IAAI,CAAC,OAAO,CAAC,EAAE,4BAA4B,GAAG,0BAA0B,CAAC,SAAS,CAAC;YAkB3E,cAAc;YASd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;CAGd"}
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAI9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EACL,SAAS,EACT,4BAA4B,EAE7B,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyB;IAEhD;;;OAGG;gBACS,MAAM,EAAE,sBAAsB;IAI1C;;;OAGG;IACI,IAAI,CAAC,OAAO,CAAC,EAAE,4BAA4B,GAAG,0BAA0B,CAAC,SAAS,CAAC;YAkB3E,cAAc;YASd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;CAGd"}
@@ -15,6 +15,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /// <reference lib="esnext.asynciterable" />
16
16
  /** Class containing Operations operations. */
17
17
  class OperationsImpl {
18
+ client;
18
19
  /**
19
20
  * Initialize a new instance of the class Operations class.
20
21
  * @param client Reference to the service client
@@ -36,39 +37,22 @@ class OperationsImpl {
36
37
  return this;
37
38
  },
38
39
  byPage: (settings) => {
39
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
40
+ if (settings?.maxPageSize) {
40
41
  throw new Error("maxPageSize is not supported by this operation.");
41
42
  }
42
43
  return this.listPagingPage(options, settings);
43
44
  },
44
45
  };
45
46
  }
46
- listPagingPage(options, _settings) {
47
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
48
- let result;
49
- result = yield tslib_1.__await(this._list(options));
50
- yield yield tslib_1.__await(result.value || []);
51
- });
47
+ async *listPagingPage(options, _settings) {
48
+ let result;
49
+ result = await this._list(options);
50
+ yield result.value || [];
52
51
  }
53
- listPagingAll(options) {
54
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
55
- var _a, e_1, _b, _c;
56
- try {
57
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
58
- _c = _f.value;
59
- _d = false;
60
- const page = _c;
61
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
62
- }
63
- }
64
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
65
- finally {
66
- try {
67
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
68
- }
69
- finally { if (e_1) throw e_1.error; }
70
- }
71
- });
52
+ async *listPagingAll(options) {
53
+ for await (const page of this.listPagingPage(options)) {
54
+ yield* page;
55
+ }
72
56
  }
73
57
  /**
74
58
  * Lists all of the available REST API operations of the Microsoft.Search provider.
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CAAC,OAAsC;QA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BAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,wCAAwC;IAC9C,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,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,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 type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport type { Operations } 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 type { SearchManagementClient } from \"../searchManagementClient.js\";\nimport type {\n Operation,\n OperationsListOptionalParams,\n OperationsListResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: SearchManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: SearchManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the available REST API operations of the Microsoft.Search provider.\n * @param options The options parameters.\n */\n public list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams,\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available REST API operations of the Microsoft.Search provider.\n * @param options The options parameters.\n */\n private _list(options?: OperationsListOptionalParams): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Search/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IACR,MAAM,CAAyB;IAEhD;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CAAC,OAAsC;QAChD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,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UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,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 { Operations } 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 { SearchManagementClient } from \"../searchManagementClient.js\";\nimport {\n Operation,\n OperationsListOptionalParams,\n OperationsListResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: SearchManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: SearchManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the available REST API operations of the Microsoft.Search provider.\n * @param options The options parameters.\n */\n public list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams,\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available REST API operations of the Microsoft.Search provider.\n * @param options The options parameters.\n */\n private _list(options?: OperationsListOptionalParams): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Search/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -1,7 +1,7 @@
1
- import type { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import type { PrivateEndpointConnections } from "../operationsInterfaces/index.js";
3
- import type { SearchManagementClient } from "../searchManagementClient.js";
4
- import type { PrivateEndpointConnection, PrivateEndpointConnectionsListByServiceOptionalParams, PrivateEndpointConnectionsUpdateOptionalParams, PrivateEndpointConnectionsUpdateResponse, PrivateEndpointConnectionsGetOptionalParams, PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsDeleteOptionalParams, PrivateEndpointConnectionsDeleteResponse } from "../models/index.js";
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { PrivateEndpointConnections } from "../operationsInterfaces/index.js";
3
+ import { SearchManagementClient } from "../searchManagementClient.js";
4
+ import { PrivateEndpointConnection, PrivateEndpointConnectionsListByServiceOptionalParams, PrivateEndpointConnectionsUpdateOptionalParams, PrivateEndpointConnectionsUpdateResponse, PrivateEndpointConnectionsGetOptionalParams, PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsDeleteOptionalParams, PrivateEndpointConnectionsDeleteResponse } from "../models/index.js";
5
5
  /** Class containing PrivateEndpointConnections operations. */
6
6
  export declare class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections {
7
7
  private readonly client;
@@ -1 +1 @@
1
- {"version":3,"file":"privateEndpointConnections.d.ts","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAEnF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAInF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,KAAK,EACV,yBAAyB,EAEzB,qDAAqD,EAErD,8CAA8C,EAC9C,wCAAwC,EACxC,2CAA2C,EAC3C,qCAAqC,EACrC,8CAA8C,EAC9C,wCAAwC,EAEzC,MAAM,oBAAoB,CAAC;AAG5B,8DAA8D;AAC9D,qBAAa,8BAA+B,YAAW,0BAA0B;IAC/E,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyB;IAEhD;;;OAGG;gBACS,MAAM,EAAE,sBAAsB;IAI1C;;;;;;;OAOG;IACI,aAAa,CAClB,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,qDAAqD,GAC9D,0BAA0B,CAAC,yBAAyB,CAAC;YAuBzC,uBAAuB;YA6BvB,sBAAsB;IAcrC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,6BAA6B,EAAE,MAAM,EACrC,yBAAyB,EAAE,yBAAyB,EACpD,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,wCAAwC,CAAC;IAapD;;;;;;;;;;OAUG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC;IAYjD;;;;;;;;;OASG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,wCAAwC,CAAC;IAYpD;;;;;;;OAOG;IACH,OAAO,CAAC,cAAc;IAWtB;;;;;;;;OAQG;IACH,OAAO,CAAC,kBAAkB;CAW3B"}
1
+ {"version":3,"file":"privateEndpointConnections.d.ts","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAI9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EACL,yBAAyB,EAEzB,qDAAqD,EAErD,8CAA8C,EAC9C,wCAAwC,EACxC,2CAA2C,EAC3C,qCAAqC,EACrC,8CAA8C,EAC9C,wCAAwC,EAEzC,MAAM,oBAAoB,CAAC;AAG5B,8DAA8D;AAC9D,qBAAa,8BAA+B,YAAW,0BAA0B;IAC/E,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyB;IAEhD;;;OAGG;gBACS,MAAM,EAAE,sBAAsB;IAI1C;;;;;;;OAOG;IACI,aAAa,CAClB,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,qDAAqD,GAC9D,0BAA0B,CAAC,yBAAyB,CAAC;YAuBzC,uBAAuB;YA6BvB,sBAAsB;IAcrC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,6BAA6B,EAAE,MAAM,EACrC,yBAAyB,EAAE,yBAAyB,EACpD,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,wCAAwC,CAAC;IAapD;;;;;;;;;;OAUG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC;IAYjD;;;;;;;;;OASG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,wCAAwC,CAAC;IAYpD;;;;;;;OAOG;IACH,OAAO,CAAC,cAAc;IAWtB;;;;;;;;OAQG;IACH,OAAO,CAAC,kBAAkB;CAW3B"}
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing PrivateEndpointConnections operations. */
18
18
  class PrivateEndpointConnectionsImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class PrivateEndpointConnections class.
21
22
  * @param client Reference to the service client
@@ -41,52 +42,35 @@ class PrivateEndpointConnectionsImpl {
41
42
  return this;
42
43
  },
43
44
  byPage: (settings) => {
44
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
45
+ if (settings?.maxPageSize) {
45
46
  throw new Error("maxPageSize is not supported by this operation.");
46
47
  }
47
48
  return this.listByServicePagingPage(resourceGroupName, searchServiceName, options, settings);
48
49
  },
49
50
  };
50
51
  }
51
- listByServicePagingPage(resourceGroupName, searchServiceName, options, settings) {
52
- return tslib_1.__asyncGenerator(this, arguments, function* listByServicePagingPage_1() {
53
- let result;
54
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
55
- if (!continuationToken) {
56
- result = yield tslib_1.__await(this._listByService(resourceGroupName, searchServiceName, options));
57
- let page = result.value || [];
58
- continuationToken = result.nextLink;
59
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
60
- yield yield tslib_1.__await(page);
61
- }
62
- while (continuationToken) {
63
- result = yield tslib_1.__await(this._listByServiceNext(resourceGroupName, searchServiceName, continuationToken, options));
64
- continuationToken = result.nextLink;
65
- let page = result.value || [];
66
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
67
- yield yield tslib_1.__await(page);
68
- }
69
- });
52
+ async *listByServicePagingPage(resourceGroupName, searchServiceName, options, settings) {
53
+ let result;
54
+ let continuationToken = settings?.continuationToken;
55
+ if (!continuationToken) {
56
+ result = await this._listByService(resourceGroupName, searchServiceName, options);
57
+ let page = result.value || [];
58
+ continuationToken = result.nextLink;
59
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
60
+ yield page;
61
+ }
62
+ while (continuationToken) {
63
+ result = await this._listByServiceNext(resourceGroupName, searchServiceName, continuationToken, options);
64
+ continuationToken = result.nextLink;
65
+ let page = result.value || [];
66
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
67
+ yield page;
68
+ }
70
69
  }
71
- listByServicePagingAll(resourceGroupName, searchServiceName, options) {
72
- return tslib_1.__asyncGenerator(this, arguments, function* listByServicePagingAll_1() {
73
- var _a, e_1, _b, _c;
74
- try {
75
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByServicePagingPage(resourceGroupName, searchServiceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
76
- _c = _f.value;
77
- _d = false;
78
- const page = _c;
79
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
80
- }
81
- }
82
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
83
- finally {
84
- try {
85
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
86
- }
87
- finally { if (e_1) throw e_1.error; }
88
- }
89
- });
70
+ async *listByServicePagingAll(resourceGroupName, searchServiceName, options) {
71
+ for await (const page of this.listByServicePagingPage(resourceGroupName, searchServiceName, options)) {
72
+ yield* page;
73
+ }
90
74
  }
91
75
  /**
92
76
  * Updates a private endpoint connection to the search service in the given resource group.
@@ -1 +1 @@
1
- {"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":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*\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 type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { PrivateEndpointConnections } 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 type { SearchManagementClient } from \"../searchManagementClient.js\";\nimport type {\n PrivateEndpointConnection,\n PrivateEndpointConnectionsListByServiceNextOptionalParams,\n PrivateEndpointConnectionsListByServiceOptionalParams,\n PrivateEndpointConnectionsListByServiceResponse,\n PrivateEndpointConnectionsUpdateOptionalParams,\n PrivateEndpointConnectionsUpdateResponse,\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsGetResponse,\n PrivateEndpointConnectionsDeleteOptionalParams,\n PrivateEndpointConnectionsDeleteResponse,\n PrivateEndpointConnectionsListByServiceNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateEndpointConnections operations. */\nexport class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections {\n private readonly client: SearchManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateEndpointConnections class.\n * @param client Reference to the service client\n */\n constructor(client: SearchManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of all private endpoint connections in the given service.\n * @param resourceGroupName The name of the resource group within the current subscription. You can\n * obtain this value from the Azure Resource Manager API or the portal.\n * @param searchServiceName The name of the Azure AI Search service associated with the specified\n * resource group.\n * @param options The options parameters.\n */\n public listByService(\n resourceGroupName: string,\n searchServiceName: string,\n options?: PrivateEndpointConnectionsListByServiceOptionalParams,\n ): PagedAsyncIterableIterator<PrivateEndpointConnection> {\n const iter = this.listByServicePagingAll(resourceGroupName, searchServiceName, options);\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.listByServicePagingPage(\n resourceGroupName,\n searchServiceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByServicePagingPage(\n resourceGroupName: string,\n searchServiceName: string,\n options?: PrivateEndpointConnectionsListByServiceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PrivateEndpointConnection[]> {\n let result: PrivateEndpointConnectionsListByServiceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByService(resourceGroupName, searchServiceName, 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._listByServiceNext(\n resourceGroupName,\n searchServiceName,\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 *listByServicePagingAll(\n resourceGroupName: string,\n searchServiceName: string,\n options?: PrivateEndpointConnectionsListByServiceOptionalParams,\n ): AsyncIterableIterator<PrivateEndpointConnection> {\n for await (const page of this.listByServicePagingPage(\n resourceGroupName,\n searchServiceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Updates a private endpoint connection to the search service in the given resource group.\n * @param resourceGroupName The name of the resource group within the current subscription. You can\n * obtain this value from the Azure Resource Manager API or the portal.\n * @param searchServiceName The name of the Azure AI Search service associated with the specified\n * resource group.\n * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure AI\n * Search service with the specified resource group.\n * @param privateEndpointConnection The definition of the private endpoint connection to update.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n searchServiceName: string,\n privateEndpointConnectionName: string,\n privateEndpointConnection: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsUpdateOptionalParams,\n ): Promise<PrivateEndpointConnectionsUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n searchServiceName,\n privateEndpointConnectionName,\n privateEndpointConnection,\n options,\n },\n updateOperationSpec,\n );\n }\n\n /**\n * Gets the details of the private endpoint connection to the search service in the given resource\n * group.\n * @param resourceGroupName The name of the resource group within the current subscription. You can\n * obtain this value from the Azure Resource Manager API or the portal.\n * @param searchServiceName The name of the Azure AI Search service associated with the specified\n * resource group.\n * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure AI\n * Search service with the specified resource group.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n searchServiceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams,\n ): Promise<PrivateEndpointConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n searchServiceName,\n privateEndpointConnectionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Disconnects the private endpoint connection and deletes it from the search service.\n * @param resourceGroupName The name of the resource group within the current subscription. You can\n * obtain this value from the Azure Resource Manager API or the portal.\n * @param searchServiceName The name of the Azure AI Search service associated with the specified\n * resource group.\n * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure AI\n * Search service with the specified resource group.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n searchServiceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<PrivateEndpointConnectionsDeleteResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n searchServiceName,\n privateEndpointConnectionName,\n options,\n },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets a list of all private endpoint connections in the given service.\n * @param resourceGroupName The name of the resource group within the current subscription. You can\n * obtain this value from the Azure Resource Manager API or the portal.\n * @param searchServiceName The name of the Azure AI Search service associated with the specified\n * resource group.\n * @param options The options parameters.\n */\n private _listByService(\n resourceGroupName: string,\n searchServiceName: string,\n options?: PrivateEndpointConnectionsListByServiceOptionalParams,\n ): Promise<PrivateEndpointConnectionsListByServiceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, searchServiceName, options },\n listByServiceOperationSpec,\n );\n }\n\n /**\n * ListByServiceNext\n * @param resourceGroupName The name of the resource group within the current subscription. You can\n * obtain this value from the Azure Resource Manager API or the portal.\n * @param searchServiceName The name of the Azure AI Search service associated with the specified\n * resource group.\n * @param nextLink The nextLink from the previous successful call to the ListByService method.\n * @param options The options parameters.\n */\n private _listByServiceNext(\n resourceGroupName: string,\n searchServiceName: string,\n nextLink: string,\n options?: PrivateEndpointConnectionsListByServiceNextOptionalParams,\n ): Promise<PrivateEndpointConnectionsListByServiceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, searchServiceName, nextLink, options },\n listByServiceNextOperationSpec,\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.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.privateEndpointConnection,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.searchServiceName,\n Parameters.subscriptionId,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept, Parameters.clientRequestId, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.searchServiceName,\n Parameters.subscriptionId,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept, Parameters.clientRequestId],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 404: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.searchServiceName,\n Parameters.subscriptionId,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept, Parameters.clientRequestId],\n serializer,\n};\nconst listByServiceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.searchServiceName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept, Parameters.clientRequestId],\n serializer,\n};\nconst listByServiceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.searchServiceName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept, Parameters.clientRequestId],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAgBtD,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAa,8BAA8B;IACxB,MAAM,CAAyB;IAEhD;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,aAAa,CAClB,iBAAyB,EACzB,iBAAyB,EACzB,OAA+D;QAE/D,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;QACxF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,uBAAuB,CACjC,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,uBAAuB,CACpC,iBAAyB,EACzB,iBAAyB,EACzB,OAA+D,EAC/D,QAAuB;QAEvB,IAAI,MAAuD,CAAC;QAC5D,IAAI,iBAAiB,GAAG,QAAQ,EAAE,iBAAiB,CAAC;QACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,MAAM,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,iBAAiB,EAAE,iBAAiB,EAA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6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,eAAe,CAAC;IACjE,UAAU;CACX,CAAC;AACF,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EAAE,6JAA6J;IACnK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mCAAmC;SACxD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,eAAe,CAAC;IACjE,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,mCAAmC;SACxD;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,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,eAAe,CAAC;IACjE,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 { PrivateEndpointConnections } 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 { SearchManagementClient } from \"../searchManagementClient.js\";\nimport {\n PrivateEndpointConnection,\n PrivateEndpointConnectionsListByServiceNextOptionalParams,\n PrivateEndpointConnectionsListByServiceOptionalParams,\n PrivateEndpointConnectionsListByServiceResponse,\n PrivateEndpointConnectionsUpdateOptionalParams,\n PrivateEndpointConnectionsUpdateResponse,\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsGetResponse,\n PrivateEndpointConnectionsDeleteOptionalParams,\n PrivateEndpointConnectionsDeleteResponse,\n PrivateEndpointConnectionsListByServiceNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateEndpointConnections operations. */\nexport class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections {\n private readonly client: SearchManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateEndpointConnections class.\n * @param client Reference to the service client\n */\n constructor(client: SearchManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of all private endpoint connections in the given service.\n * @param resourceGroupName The name of the resource group within the current subscription. You can\n * obtain this value from the Azure Resource Manager API or the portal.\n * @param searchServiceName The name of the Azure AI Search service associated with the specified\n * resource group.\n * @param options The options parameters.\n */\n public listByService(\n resourceGroupName: string,\n searchServiceName: string,\n options?: PrivateEndpointConnectionsListByServiceOptionalParams,\n ): PagedAsyncIterableIterator<PrivateEndpointConnection> {\n const iter = this.listByServicePagingAll(resourceGroupName, searchServiceName, options);\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.listByServicePagingPage(\n resourceGroupName,\n searchServiceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByServicePagingPage(\n resourceGroupName: string,\n searchServiceName: string,\n options?: PrivateEndpointConnectionsListByServiceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PrivateEndpointConnection[]> {\n let result: PrivateEndpointConnectionsListByServiceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByService(resourceGroupName, searchServiceName, 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._listByServiceNext(\n resourceGroupName,\n searchServiceName,\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 *listByServicePagingAll(\n resourceGroupName: string,\n searchServiceName: string,\n options?: PrivateEndpointConnectionsListByServiceOptionalParams,\n ): AsyncIterableIterator<PrivateEndpointConnection> {\n for await (const page of this.listByServicePagingPage(\n resourceGroupName,\n searchServiceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Updates a private endpoint connection to the search service in the given resource group.\n * @param resourceGroupName The name of the resource group within the current subscription. You can\n * obtain this value from the Azure Resource Manager API or the portal.\n * @param searchServiceName The name of the Azure AI Search service associated with the specified\n * resource group.\n * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure AI\n * Search service with the specified resource group.\n * @param privateEndpointConnection The definition of the private endpoint connection to update.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n searchServiceName: string,\n privateEndpointConnectionName: string,\n privateEndpointConnection: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsUpdateOptionalParams,\n ): Promise<PrivateEndpointConnectionsUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n searchServiceName,\n privateEndpointConnectionName,\n privateEndpointConnection,\n options,\n },\n updateOperationSpec,\n );\n }\n\n /**\n * Gets the details of the private endpoint connection to the search service in the given resource\n * group.\n * @param resourceGroupName The name of the resource group within the current subscription. You can\n * obtain this value from the Azure Resource Manager API or the portal.\n * @param searchServiceName The name of the Azure AI Search service associated with the specified\n * resource group.\n * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure AI\n * Search service with the specified resource group.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n searchServiceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams,\n ): Promise<PrivateEndpointConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n searchServiceName,\n privateEndpointConnectionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Disconnects the private endpoint connection and deletes it from the search service.\n * @param resourceGroupName The name of the resource group within the current subscription. You can\n * obtain this value from the Azure Resource Manager API or the portal.\n * @param searchServiceName The name of the Azure AI Search service associated with the specified\n * resource group.\n * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure AI\n * Search service with the specified resource group.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n searchServiceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<PrivateEndpointConnectionsDeleteResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n searchServiceName,\n privateEndpointConnectionName,\n options,\n },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets a list of all private endpoint connections in the given service.\n * @param resourceGroupName The name of the resource group within the current subscription. You can\n * obtain this value from the Azure Resource Manager API or the portal.\n * @param searchServiceName The name of the Azure AI Search service associated with the specified\n * resource group.\n * @param options The options parameters.\n */\n private _listByService(\n resourceGroupName: string,\n searchServiceName: string,\n options?: PrivateEndpointConnectionsListByServiceOptionalParams,\n ): Promise<PrivateEndpointConnectionsListByServiceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, searchServiceName, options },\n listByServiceOperationSpec,\n );\n }\n\n /**\n * ListByServiceNext\n * @param resourceGroupName The name of the resource group within the current subscription. You can\n * obtain this value from the Azure Resource Manager API or the portal.\n * @param searchServiceName The name of the Azure AI Search service associated with the specified\n * resource group.\n * @param nextLink The nextLink from the previous successful call to the ListByService method.\n * @param options The options parameters.\n */\n private _listByServiceNext(\n resourceGroupName: string,\n searchServiceName: string,\n nextLink: string,\n options?: PrivateEndpointConnectionsListByServiceNextOptionalParams,\n ): Promise<PrivateEndpointConnectionsListByServiceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, searchServiceName, nextLink, options },\n listByServiceNextOperationSpec,\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.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.privateEndpointConnection,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.searchServiceName,\n Parameters.subscriptionId,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept, Parameters.clientRequestId, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.searchServiceName,\n Parameters.subscriptionId,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept, Parameters.clientRequestId],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 404: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.searchServiceName,\n Parameters.subscriptionId,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept, Parameters.clientRequestId],\n serializer,\n};\nconst listByServiceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.searchServiceName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept, Parameters.clientRequestId],\n serializer,\n};\nconst listByServiceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.searchServiceName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept, Parameters.clientRequestId],\n serializer,\n};\n"]}