@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
@@ -15,17 +15,22 @@ const index_js_1 = require("./operations/index.js");
15
15
  const Parameters = tslib_1.__importStar(require("./models/parameters.js"));
16
16
  const Mappers = tslib_1.__importStar(require("./models/mappers.js"));
17
17
  class SearchManagementClient extends coreClient.ServiceClient {
18
- constructor(credentials, subscriptionIdOrOptions, options) {
19
- var _a, _b, _c;
18
+ $host;
19
+ apiVersion;
20
+ subscriptionId;
21
+ /**
22
+ * Initializes a new instance of the SearchManagementClient class.
23
+ * @param credentials Subscription credentials which uniquely identify client subscription.
24
+ * @param subscriptionId The unique identifier for a Microsoft Azure subscription. You can obtain this
25
+ * value from the Azure Resource Manager API or the portal.
26
+ * @param options The parameter options
27
+ */
28
+ constructor(credentials, subscriptionId, options) {
20
29
  if (credentials === undefined) {
21
30
  throw new Error("'credentials' cannot be null");
22
31
  }
23
- let subscriptionId;
24
- if (typeof subscriptionIdOrOptions === "string") {
25
- subscriptionId = subscriptionIdOrOptions;
26
- }
27
- else if (typeof subscriptionIdOrOptions === "object") {
28
- options = subscriptionIdOrOptions;
32
+ if (subscriptionId === undefined) {
33
+ throw new Error("'subscriptionId' cannot be null");
29
34
  }
30
35
  // Initializing default values for options
31
36
  if (!options) {
@@ -35,16 +40,21 @@ class SearchManagementClient extends coreClient.ServiceClient {
35
40
  requestContentType: "application/json; charset=utf-8",
36
41
  credential: credentials,
37
42
  };
38
- const packageDetails = `azsdk-js-arm-search/3.3.0-beta.2`;
43
+ const packageDetails = `azsdk-js-arm-search/3.3.0`;
39
44
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
40
45
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
41
46
  : `${packageDetails}`;
42
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
47
+ const optionsWithDefaults = {
48
+ ...defaults,
49
+ ...options,
50
+ userAgentOptions: {
43
51
  userAgentPrefix,
44
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
52
+ },
53
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
54
+ };
45
55
  super(optionsWithDefaults);
46
56
  let bearerTokenAuthenticationPolicyFound = false;
47
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
57
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
48
58
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
49
59
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName);
50
60
  }
@@ -57,7 +67,7 @@ class SearchManagementClient extends coreClient.ServiceClient {
57
67
  });
58
68
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
59
69
  credential: credentials,
60
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
70
+ scopes: optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,
61
71
  challengeCallbacks: {
62
72
  authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
63
73
  },
@@ -67,9 +77,8 @@ class SearchManagementClient extends coreClient.ServiceClient {
67
77
  this.subscriptionId = subscriptionId;
68
78
  // Assigning values to Constant parameters
69
79
  this.$host = options.$host || "https://management.azure.com";
70
- this.apiVersion = options.apiVersion || "2025-02-01-preview";
80
+ this.apiVersion = options.apiVersion || "2025-05-01";
71
81
  this.operations = new index_js_1.OperationsImpl(this);
72
- this.offerings = new index_js_1.OfferingsImpl(this);
73
82
  this.adminKeys = new index_js_1.AdminKeysImpl(this);
74
83
  this.queryKeys = new index_js_1.QueryKeysImpl(this);
75
84
  this.services = new index_js_1.ServicesImpl(this);
@@ -114,6 +123,15 @@ class SearchManagementClient extends coreClient.ServiceClient {
114
123
  usageBySubscriptionSku(location, skuName, options) {
115
124
  return this.sendOperationRequest({ location, skuName, options }, usageBySubscriptionSkuOperationSpec);
116
125
  }
126
+ operations;
127
+ adminKeys;
128
+ queryKeys;
129
+ services;
130
+ privateLinkResources;
131
+ privateEndpointConnections;
132
+ sharedPrivateLinkResources;
133
+ usages;
134
+ networkSecurityPerimeterConfigurations;
117
135
  }
118
136
  exports.SearchManagementClient = SearchManagementClient;
119
137
  // Operation Specifications
@@ -1 +1 @@
1
- {"version":3,"file":"searchManagementClient.js","sourceRoot":"","sources":["../../src/searchManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAG9D,oDAW+B;AAa/B,2EAAqD;AACrD,qEAA+C;AAO/C,MAAa,sBAAuB,SAAQ,UAAU,CAAC,aAAa;IAqBlE,YACE,WAAqC,EACrC,uBAAuE,EACvE,OAA8C;;QAE9C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,cAAkC,CAAC;QAEvC,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YAChD,cAAc,GAAG,uBAAuB,CAAC;QAC3C,CAAC;aAAM,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YACvD,OAAO,GAAG,uBAAuB,CAAC;QACpC,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAyC;YACrD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,kCAAkC,CAAC;QAC1D,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;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,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,OAAO;KACnB;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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport type { PipelineRequest, PipelineResponse, SendRequest } from \"@azure/core-rest-pipeline\";\nimport type * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n OfferingsImpl,\n AdminKeysImpl,\n QueryKeysImpl,\n ServicesImpl,\n PrivateLinkResourcesImpl,\n PrivateEndpointConnectionsImpl,\n SharedPrivateLinkResourcesImpl,\n UsagesImpl,\n NetworkSecurityPerimeterConfigurationsImpl,\n} from \"./operations/index.js\";\nimport type {\n Operations,\n Offerings,\n AdminKeys,\n QueryKeys,\n Services,\n PrivateLinkResources,\n PrivateEndpointConnections,\n SharedPrivateLinkResources,\n Usages,\n NetworkSecurityPerimeterConfigurations,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport type {\n SearchManagementClientOptionalParams,\n UsageBySubscriptionSkuOptionalParams,\n UsageBySubscriptionSkuResponse,\n} from \"./models/index.js\";\n\nexport class SearchManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the SearchManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The unique identifier for a Microsoft Azure subscription. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: SearchManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: SearchManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: SearchManagementClientOptionalParams | string,\n options?: SearchManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: SearchManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-search/3.3.0-beta.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2025-02-01-preview\";\n this.operations = new OperationsImpl(this);\n this.offerings = new OfferingsImpl(this);\n this.adminKeys = new AdminKeysImpl(this);\n this.queryKeys = new QueryKeysImpl(this);\n this.services = new ServicesImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.sharedPrivateLinkResources = new SharedPrivateLinkResourcesImpl(this);\n this.usages = new UsagesImpl(this);\n this.networkSecurityPerimeterConfigurations = new NetworkSecurityPerimeterConfigurationsImpl(\n this,\n );\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Gets the quota usage for a search SKU in the given subscription.\n * @param location The unique location name for a Microsoft Azure geographic region.\n * @param skuName The unique SKU name that identifies a billable tier.\n * @param options The options parameters.\n */\n usageBySubscriptionSku(\n location: string,\n skuName: string,\n options?: UsageBySubscriptionSkuOptionalParams,\n ): Promise<UsageBySubscriptionSkuResponse> {\n return this.sendOperationRequest(\n { location, skuName, options },\n usageBySubscriptionSkuOperationSpec,\n );\n }\n\n operations: Operations;\n offerings: Offerings;\n adminKeys: AdminKeys;\n queryKeys: QueryKeys;\n services: Services;\n privateLinkResources: PrivateLinkResources;\n privateEndpointConnections: PrivateEndpointConnections;\n sharedPrivateLinkResources: SharedPrivateLinkResources;\n usages: Usages;\n networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst usageBySubscriptionSkuOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages/{skuName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QuotaUsageResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n Parameters.skuName,\n ],\n headerParameters: [Parameters.accept, Parameters.clientRequestId],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"searchManagementClient.js","sourceRoot":"","sources":["../../src/searchManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAG9D,oDAU+B;AAY/B,2EAAqD;AACrD,qEAA+C;AAO/C,MAAa,sBAAuB,SAAQ,UAAU,CAAC,aAAa;IAClE,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA8C;QAE9C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAA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CAAY;IACrB,QAAQ,CAAW;IACnB,oBAAoB,CAAuB;IAC3C,0BAA0B,CAA6B;IACvD,0BAA0B,CAA6B;IACvD,MAAM,CAAS;IACf,sCAAsC,CAAyC;CAChF;AArJD,wDAqJC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,kGAAkG;IACxG,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;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,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,OAAO;KACnB;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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport { PipelineRequest, PipelineResponse, SendRequest } from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n AdminKeysImpl,\n QueryKeysImpl,\n ServicesImpl,\n PrivateLinkResourcesImpl,\n PrivateEndpointConnectionsImpl,\n SharedPrivateLinkResourcesImpl,\n UsagesImpl,\n NetworkSecurityPerimeterConfigurationsImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n AdminKeys,\n QueryKeys,\n Services,\n PrivateLinkResources,\n PrivateEndpointConnections,\n SharedPrivateLinkResources,\n Usages,\n NetworkSecurityPerimeterConfigurations,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n SearchManagementClientOptionalParams,\n UsageBySubscriptionSkuOptionalParams,\n UsageBySubscriptionSkuResponse,\n} from \"./models/index.js\";\n\nexport class SearchManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the SearchManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The unique identifier for a Microsoft Azure subscription. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: SearchManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: SearchManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-search/3.3.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2025-05-01\";\n this.operations = new OperationsImpl(this);\n this.adminKeys = new AdminKeysImpl(this);\n this.queryKeys = new QueryKeysImpl(this);\n this.services = new ServicesImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.sharedPrivateLinkResources = new SharedPrivateLinkResourcesImpl(this);\n this.usages = new UsagesImpl(this);\n this.networkSecurityPerimeterConfigurations = new NetworkSecurityPerimeterConfigurationsImpl(\n this,\n );\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Gets the quota usage for a search SKU in the given subscription.\n * @param location The unique location name for a Microsoft Azure geographic region.\n * @param skuName The unique SKU name that identifies a billable tier.\n * @param options The options parameters.\n */\n usageBySubscriptionSku(\n location: string,\n skuName: string,\n options?: UsageBySubscriptionSkuOptionalParams,\n ): Promise<UsageBySubscriptionSkuResponse> {\n return this.sendOperationRequest(\n { location, skuName, options },\n usageBySubscriptionSkuOperationSpec,\n );\n }\n\n operations: Operations;\n adminKeys: AdminKeys;\n queryKeys: QueryKeys;\n services: Services;\n privateLinkResources: PrivateLinkResources;\n privateEndpointConnections: PrivateEndpointConnections;\n sharedPrivateLinkResources: SharedPrivateLinkResources;\n usages: Usages;\n networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst usageBySubscriptionSkuOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages/{skuName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QuotaUsageResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n Parameters.skuName,\n ],\n headerParameters: [Parameters.accept, Parameters.clientRequestId],\n serializer,\n};\n"]}
@@ -1,11 +1,11 @@
1
- // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
- // It should be published with your NPM package. It should not be tracked by Git.
3
- {
4
- "tsdocVersion": "0.12",
5
- "toolPackages": [
6
- {
7
- "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.52.3"
9
- }
10
- ]
11
- }
1
+ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
+ // It should be published with your NPM package. It should not be tracked by Git.
3
+ {
4
+ "tsdocVersion": "0.12",
5
+ "toolPackages": [
6
+ {
7
+ "packageName": "@microsoft/api-extractor",
8
+ "packageVersion": "7.52.8"
9
+ }
10
+ ]
11
+ }
@@ -1,4 +1,4 @@
1
- import type { LongRunningOperation, LroResponse } from "@azure/core-lro";
1
+ import { LongRunningOperation, LroResponse } from "@azure/core-lro";
2
2
  export declare function createLroSpec<T>(inputs: {
3
3
  sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
4
4
  args: Record<string, unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEzE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAgB1B"}
1
+ {"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAgB1B"}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __rest } from "tslib";
9
8
  export function createLroSpec(inputs) {
10
9
  const { args, spec, sendOperationFn } = inputs;
11
10
  return {
@@ -13,8 +12,13 @@ export function createLroSpec(inputs) {
13
12
  requestPath: spec.path,
14
13
  sendInitialRequest: () => sendOperationFn(args, spec),
15
14
  sendPollRequest: (path, options) => {
16
- const { requestBody } = spec, restSpec = __rest(spec, ["requestBody"]);
17
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
15
+ const { requestBody, ...restSpec } = spec;
16
+ return sendOperationFn(args, {
17
+ ...restSpec,
18
+ httpMethod: "GET",
19
+ path,
20
+ abortSignal: options?.abortSignal,
21
+ });
18
22
  },
19
23
  };
20
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAKH,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CAAC,IAAY,EAAE,OAA2C,EAAE,EAAE;YAC7E,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,UAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,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 { AbortSignalLike } from \"@azure/abort-controller\";\nimport type { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (path: string, options?: { abortSignal?: AbortSignalLike }) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CAAC,IAAY,EAAE,OAA2C,EAAE,EAAE;YAC7E,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,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 { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (path: string, options?: { abortSignal?: AbortSignalLike }) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}