@azure/arm-search 3.3.0-beta.1 → 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 (639) hide show
  1. package/CHANGELOG.md +229 -4
  2. package/LICENSE +3 -3
  3. package/README.md +24 -18
  4. package/dist/browser/index.d.ts +5 -0
  5. package/dist/browser/index.d.ts.map +1 -0
  6. package/{dist-esm/src → dist/browser}/index.js +4 -4
  7. package/dist/browser/index.js.map +1 -0
  8. package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +1 -1
  9. package/{dist-esm/src → dist/browser}/lroImpl.js +7 -3
  10. package/dist/browser/lroImpl.js.map +1 -0
  11. package/{dist-esm/src → dist/browser}/models/index.d.ts +393 -197
  12. package/dist/browser/models/index.d.ts.map +1 -0
  13. package/{dist-esm/src → dist/browser}/models/index.js +109 -7
  14. package/dist/browser/models/index.js.map +1 -0
  15. package/{dist-esm/src → dist/browser}/models/mappers.d.ts +12 -15
  16. package/dist/browser/models/mappers.d.ts.map +1 -0
  17. package/{dist-esm/src → dist/browser}/models/mappers.js +395 -362
  18. package/dist/browser/models/mappers.js.map +1 -0
  19. package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +1 -1
  20. package/{dist-esm/src → dist/browser}/models/parameters.js +3 -7
  21. package/dist/browser/models/parameters.js.map +1 -0
  22. package/{dist-esm/src → dist/browser}/operations/adminKeys.d.ts +3 -3
  23. package/dist/browser/operations/adminKeys.d.ts.map +1 -0
  24. package/{dist-esm/src → dist/browser}/operations/adminKeys.js +3 -2
  25. package/dist/browser/operations/adminKeys.js.map +1 -0
  26. package/dist/browser/operations/index.d.ts +10 -0
  27. package/dist/browser/operations/index.d.ts.map +1 -0
  28. package/dist/browser/operations/index.js +17 -0
  29. package/dist/browser/operations/index.js.map +1 -0
  30. package/{dist-esm/src → dist/browser}/operations/networkSecurityPerimeterConfigurations.d.ts +6 -6
  31. package/dist/browser/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
  32. package/{dist-esm/src → dist/browser}/operations/networkSecurityPerimeterConfigurations.js +73 -89
  33. package/dist/browser/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
  34. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  35. package/dist/browser/operations/operations.d.ts.map +1 -0
  36. package/{dist-esm/src → dist/browser}/operations/operations.js +12 -29
  37. package/dist/browser/operations/operations.js.map +1 -0
  38. package/{dist-esm/src → dist/browser}/operations/privateEndpointConnections.d.ts +3 -3
  39. package/dist/browser/operations/privateEndpointConnections.d.ts.map +1 -0
  40. package/{dist-esm/src → dist/browser}/operations/privateEndpointConnections.js +27 -48
  41. package/dist/browser/operations/privateEndpointConnections.js.map +1 -0
  42. package/{dist-esm/src → dist/browser}/operations/privateLinkResources.d.ts +3 -3
  43. package/dist/browser/operations/privateLinkResources.d.ts.map +1 -0
  44. package/{dist-esm/src → dist/browser}/operations/privateLinkResources.js +12 -29
  45. package/dist/browser/operations/privateLinkResources.js.map +1 -0
  46. package/{dist-esm/src → dist/browser}/operations/queryKeys.d.ts +3 -3
  47. package/dist/browser/operations/queryKeys.d.ts.map +1 -0
  48. package/{dist-esm/src → dist/browser}/operations/queryKeys.js +26 -43
  49. package/dist/browser/operations/queryKeys.js.map +1 -0
  50. package/{dist-esm/src → dist/browser}/operations/services.d.ts +23 -5
  51. package/dist/browser/operations/services.d.ts.map +1 -0
  52. package/{dist-esm/src → dist/browser}/operations/services.js +190 -152
  53. package/dist/browser/operations/services.js.map +1 -0
  54. package/{dist-esm/src → dist/browser}/operations/sharedPrivateLinkResources.d.ts +3 -3
  55. package/dist/browser/operations/sharedPrivateLinkResources.d.ts.map +1 -0
  56. package/{dist-esm/src → dist/browser}/operations/sharedPrivateLinkResources.js +122 -141
  57. package/dist/browser/operations/sharedPrivateLinkResources.js.map +1 -0
  58. package/{dist-esm/src → dist/browser}/operations/usages.d.ts +3 -3
  59. package/dist/browser/operations/usages.d.ts.map +1 -0
  60. package/{dist-esm/src → dist/browser}/operations/usages.js +27 -48
  61. package/dist/browser/operations/usages.js.map +1 -0
  62. package/{dist-esm/src → dist/browser}/operationsInterfaces/adminKeys.d.ts +1 -1
  63. package/dist/browser/operationsInterfaces/adminKeys.d.ts.map +1 -0
  64. package/dist/browser/operationsInterfaces/adminKeys.js.map +1 -0
  65. package/dist/browser/operationsInterfaces/index.d.ts +10 -0
  66. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
  67. package/dist/browser/operationsInterfaces/index.js +17 -0
  68. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  69. package/{dist-esm/src → dist/browser}/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +4 -4
  70. package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
  71. package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
  72. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  73. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  74. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  75. package/{dist-esm/src → dist/browser}/operationsInterfaces/privateEndpointConnections.d.ts +1 -1
  76. package/dist/browser/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  77. package/dist/browser/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  78. package/{dist-esm/src → dist/browser}/operationsInterfaces/privateLinkResources.d.ts +1 -1
  79. package/dist/browser/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  80. package/dist/browser/operationsInterfaces/privateLinkResources.js.map +1 -0
  81. package/{dist-esm/src → dist/browser}/operationsInterfaces/queryKeys.d.ts +1 -1
  82. package/dist/browser/operationsInterfaces/queryKeys.d.ts.map +1 -0
  83. package/dist/browser/operationsInterfaces/queryKeys.js.map +1 -0
  84. package/{dist-esm/src → dist/browser}/operationsInterfaces/services.d.ts +21 -3
  85. package/dist/browser/operationsInterfaces/services.d.ts.map +1 -0
  86. package/dist/browser/operationsInterfaces/services.js.map +1 -0
  87. package/{dist-esm/src → dist/browser}/operationsInterfaces/sharedPrivateLinkResources.d.ts +1 -1
  88. package/dist/browser/operationsInterfaces/sharedPrivateLinkResources.d.ts.map +1 -0
  89. package/dist/browser/operationsInterfaces/sharedPrivateLinkResources.js.map +1 -0
  90. package/{dist-esm/src → dist/browser}/operationsInterfaces/usages.d.ts +1 -1
  91. package/{dist-esm/src → dist/browser}/operationsInterfaces/usages.d.ts.map +1 -1
  92. package/dist/browser/operationsInterfaces/usages.js.map +1 -0
  93. package/dist/browser/package.json +3 -0
  94. package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +1 -1
  95. package/{dist-esm/src → dist/browser}/pagingHelper.js +2 -4
  96. package/dist/browser/pagingHelper.js.map +1 -0
  97. package/{dist-esm/src → dist/browser}/searchManagementClient.d.ts +3 -3
  98. package/dist/browser/searchManagementClient.d.ts.map +1 -0
  99. package/{dist-esm/src → dist/browser}/searchManagementClient.js +43 -32
  100. package/dist/browser/searchManagementClient.js.map +1 -0
  101. package/dist/commonjs/index.d.ts +5 -0
  102. package/dist/commonjs/index.d.ts.map +1 -0
  103. package/dist/commonjs/index.js +19 -0
  104. package/dist/commonjs/index.js.map +1 -0
  105. package/dist/commonjs/lroImpl.d.ts +11 -0
  106. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  107. package/dist/commonjs/lroImpl.js +28 -0
  108. package/dist/commonjs/lroImpl.js.map +1 -0
  109. package/{types/arm-search.d.ts → dist/commonjs/models/index.d.ts} +1440 -1788
  110. package/dist/commonjs/models/index.d.ts.map +1 -0
  111. package/dist/commonjs/models/index.js +235 -0
  112. package/dist/commonjs/models/index.js.map +1 -0
  113. package/dist/commonjs/models/mappers.d.ts +57 -0
  114. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  115. package/dist/commonjs/models/mappers.js +1874 -0
  116. package/dist/commonjs/models/mappers.js.map +1 -0
  117. package/dist/commonjs/models/parameters.d.ts +26 -0
  118. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  119. package/dist/commonjs/models/parameters.js +229 -0
  120. package/dist/commonjs/models/parameters.js.map +1 -0
  121. package/dist/commonjs/operations/adminKeys.d.ts +33 -0
  122. package/dist/commonjs/operations/adminKeys.d.ts.map +1 -0
  123. package/dist/commonjs/operations/adminKeys.js +96 -0
  124. package/dist/commonjs/operations/adminKeys.js.map +1 -0
  125. package/dist/commonjs/operations/index.d.ts +10 -0
  126. package/dist/commonjs/operations/index.d.ts.map +1 -0
  127. package/dist/commonjs/operations/index.js +20 -0
  128. package/dist/commonjs/operations/index.js.map +1 -0
  129. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.d.ts +79 -0
  130. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
  131. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js +278 -0
  132. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
  133. package/dist/commonjs/operations/operations.d.ts +26 -0
  134. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  135. package/dist/commonjs/operations/operations.js +84 -0
  136. package/dist/commonjs/operations/operations.js.map +1 -0
  137. package/dist/commonjs/operations/privateEndpointConnections.d.ts +79 -0
  138. package/dist/commonjs/operations/privateEndpointConnections.d.ts.map +1 -0
  139. package/dist/commonjs/operations/privateEndpointConnections.js +270 -0
  140. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -0
  141. package/dist/commonjs/operations/privateLinkResources.d.ts +34 -0
  142. package/dist/commonjs/operations/privateLinkResources.d.ts.map +1 -0
  143. package/dist/commonjs/operations/privateLinkResources.js +97 -0
  144. package/dist/commonjs/operations/privateLinkResources.js.map +1 -0
  145. package/dist/commonjs/operations/queryKeys.d.ts +66 -0
  146. package/dist/commonjs/operations/queryKeys.d.ts.map +1 -0
  147. package/dist/commonjs/operations/queryKeys.js +214 -0
  148. package/dist/commonjs/operations/queryKeys.js.map +1 -0
  149. package/dist/commonjs/operations/services.d.ts +141 -0
  150. package/dist/commonjs/operations/services.d.ts.map +1 -0
  151. package/dist/commonjs/operations/services.js +549 -0
  152. package/dist/commonjs/operations/services.js.map +1 -0
  153. package/dist/commonjs/operations/sharedPrivateLinkResources.d.ts +107 -0
  154. package/dist/commonjs/operations/sharedPrivateLinkResources.d.ts.map +1 -0
  155. package/dist/commonjs/operations/sharedPrivateLinkResources.js +390 -0
  156. package/dist/commonjs/operations/sharedPrivateLinkResources.js.map +1 -0
  157. package/dist/commonjs/operations/usages.d.ts +35 -0
  158. package/dist/commonjs/operations/usages.d.ts.map +1 -0
  159. package/dist/commonjs/operations/usages.js +129 -0
  160. package/dist/commonjs/operations/usages.js.map +1 -0
  161. package/dist/commonjs/operationsInterfaces/adminKeys.d.ts +25 -0
  162. package/dist/commonjs/operationsInterfaces/adminKeys.d.ts.map +1 -0
  163. package/dist/commonjs/operationsInterfaces/adminKeys.js +10 -0
  164. package/dist/commonjs/operationsInterfaces/adminKeys.js.map +1 -0
  165. package/dist/commonjs/operationsInterfaces/index.d.ts +10 -0
  166. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  167. package/dist/commonjs/operationsInterfaces/index.js +20 -0
  168. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  169. package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +50 -0
  170. package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
  171. package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.js +10 -0
  172. package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
  173. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  174. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  175. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  176. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  177. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts +50 -0
  178. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  179. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js +10 -0
  180. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  181. package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts +15 -0
  182. package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  183. package/dist/commonjs/operationsInterfaces/privateLinkResources.js +10 -0
  184. package/dist/commonjs/operationsInterfaces/privateLinkResources.js.map +1 -0
  185. package/dist/commonjs/operationsInterfaces/queryKeys.d.ts +37 -0
  186. package/dist/commonjs/operationsInterfaces/queryKeys.d.ts.map +1 -0
  187. package/dist/commonjs/operationsInterfaces/queryKeys.js +10 -0
  188. package/dist/commonjs/operationsInterfaces/queryKeys.js.map +1 -0
  189. package/dist/commonjs/operationsInterfaces/services.d.ts +103 -0
  190. package/dist/commonjs/operationsInterfaces/services.d.ts.map +1 -0
  191. package/dist/commonjs/operationsInterfaces/services.js +10 -0
  192. package/dist/commonjs/operationsInterfaces/services.js.map +1 -0
  193. package/dist/commonjs/operationsInterfaces/sharedPrivateLinkResources.d.ts +78 -0
  194. package/dist/commonjs/operationsInterfaces/sharedPrivateLinkResources.d.ts.map +1 -0
  195. package/dist/commonjs/operationsInterfaces/sharedPrivateLinkResources.js +10 -0
  196. package/dist/commonjs/operationsInterfaces/sharedPrivateLinkResources.js.map +1 -0
  197. package/dist/commonjs/operationsInterfaces/usages.d.ts +12 -0
  198. package/dist/commonjs/operationsInterfaces/usages.d.ts.map +1 -0
  199. package/dist/commonjs/operationsInterfaces/usages.js +10 -0
  200. package/dist/commonjs/operationsInterfaces/usages.js.map +1 -0
  201. package/dist/commonjs/package.json +3 -0
  202. package/dist/commonjs/pagingHelper.d.ts +13 -0
  203. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  204. package/dist/commonjs/pagingHelper.js +34 -0
  205. package/dist/commonjs/pagingHelper.js.map +1 -0
  206. package/dist/commonjs/searchManagementClient.d.ts +36 -0
  207. package/dist/commonjs/searchManagementClient.d.ts.map +1 -0
  208. package/dist/commonjs/searchManagementClient.js +160 -0
  209. package/dist/commonjs/searchManagementClient.js.map +1 -0
  210. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  211. package/dist/esm/index.d.ts +5 -0
  212. package/dist/esm/index.d.ts.map +1 -0
  213. package/{src/index.ts → dist/esm/index.js} +5 -5
  214. package/dist/esm/index.js.map +1 -0
  215. package/dist/esm/lroImpl.d.ts +11 -0
  216. package/dist/esm/lroImpl.d.ts.map +1 -0
  217. package/dist/esm/lroImpl.js +25 -0
  218. package/dist/esm/lroImpl.js.map +1 -0
  219. package/dist/esm/models/index.d.ts +1440 -0
  220. package/dist/esm/models/index.d.ts.map +1 -0
  221. package/dist/esm/models/index.js +232 -0
  222. package/dist/esm/models/index.js.map +1 -0
  223. package/dist/esm/models/mappers.d.ts +57 -0
  224. package/dist/esm/models/mappers.d.ts.map +1 -0
  225. package/dist/esm/models/mappers.js +1870 -0
  226. package/dist/esm/models/mappers.js.map +1 -0
  227. package/dist/esm/models/parameters.d.ts +26 -0
  228. package/dist/esm/models/parameters.d.ts.map +1 -0
  229. package/dist/esm/models/parameters.js +226 -0
  230. package/dist/esm/models/parameters.js.map +1 -0
  231. package/dist/esm/operations/adminKeys.d.ts +33 -0
  232. package/dist/esm/operations/adminKeys.d.ts.map +1 -0
  233. package/dist/esm/operations/adminKeys.js +91 -0
  234. package/dist/esm/operations/adminKeys.js.map +1 -0
  235. package/dist/esm/operations/index.d.ts +10 -0
  236. package/dist/esm/operations/index.d.ts.map +1 -0
  237. package/dist/esm/operations/index.js +17 -0
  238. package/dist/esm/operations/index.js.map +1 -0
  239. package/dist/esm/operations/networkSecurityPerimeterConfigurations.d.ts +79 -0
  240. package/dist/esm/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
  241. package/dist/esm/operations/networkSecurityPerimeterConfigurations.js +273 -0
  242. package/dist/esm/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
  243. package/dist/esm/operations/operations.d.ts +26 -0
  244. package/dist/esm/operations/operations.d.ts.map +1 -0
  245. package/dist/esm/operations/operations.js +79 -0
  246. package/dist/esm/operations/operations.js.map +1 -0
  247. package/dist/esm/operations/privateEndpointConnections.d.ts +79 -0
  248. package/dist/esm/operations/privateEndpointConnections.d.ts.map +1 -0
  249. package/dist/esm/operations/privateEndpointConnections.js +265 -0
  250. package/dist/esm/operations/privateEndpointConnections.js.map +1 -0
  251. package/dist/esm/operations/privateLinkResources.d.ts +34 -0
  252. package/dist/esm/operations/privateLinkResources.d.ts.map +1 -0
  253. package/dist/esm/operations/privateLinkResources.js +92 -0
  254. package/dist/esm/operations/privateLinkResources.js.map +1 -0
  255. package/dist/esm/operations/queryKeys.d.ts +66 -0
  256. package/dist/esm/operations/queryKeys.d.ts.map +1 -0
  257. package/dist/esm/operations/queryKeys.js +209 -0
  258. package/dist/esm/operations/queryKeys.js.map +1 -0
  259. package/dist/esm/operations/services.d.ts +141 -0
  260. package/dist/esm/operations/services.d.ts.map +1 -0
  261. package/dist/esm/operations/services.js +544 -0
  262. package/dist/esm/operations/services.js.map +1 -0
  263. package/dist/esm/operations/sharedPrivateLinkResources.d.ts +107 -0
  264. package/dist/esm/operations/sharedPrivateLinkResources.d.ts.map +1 -0
  265. package/dist/esm/operations/sharedPrivateLinkResources.js +385 -0
  266. package/dist/esm/operations/sharedPrivateLinkResources.js.map +1 -0
  267. package/dist/esm/operations/usages.d.ts +35 -0
  268. package/dist/esm/operations/usages.d.ts.map +1 -0
  269. package/dist/esm/operations/usages.js +124 -0
  270. package/dist/esm/operations/usages.js.map +1 -0
  271. package/dist/esm/operationsInterfaces/adminKeys.d.ts +25 -0
  272. package/dist/esm/operationsInterfaces/adminKeys.d.ts.map +1 -0
  273. package/dist/esm/operationsInterfaces/adminKeys.js +9 -0
  274. package/dist/esm/operationsInterfaces/adminKeys.js.map +1 -0
  275. package/dist/esm/operationsInterfaces/index.d.ts +10 -0
  276. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  277. package/dist/esm/operationsInterfaces/index.js +17 -0
  278. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  279. package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +50 -0
  280. package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
  281. package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.js +9 -0
  282. package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
  283. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  284. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  285. package/dist/esm/operationsInterfaces/operations.js +9 -0
  286. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  287. package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts +50 -0
  288. package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  289. package/dist/esm/operationsInterfaces/privateEndpointConnections.js +9 -0
  290. package/dist/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  291. package/dist/esm/operationsInterfaces/privateLinkResources.d.ts +15 -0
  292. package/dist/esm/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  293. package/dist/esm/operationsInterfaces/privateLinkResources.js +9 -0
  294. package/dist/esm/operationsInterfaces/privateLinkResources.js.map +1 -0
  295. package/dist/esm/operationsInterfaces/queryKeys.d.ts +37 -0
  296. package/dist/esm/operationsInterfaces/queryKeys.d.ts.map +1 -0
  297. package/dist/esm/operationsInterfaces/queryKeys.js +9 -0
  298. package/dist/esm/operationsInterfaces/queryKeys.js.map +1 -0
  299. package/dist/esm/operationsInterfaces/services.d.ts +103 -0
  300. package/dist/esm/operationsInterfaces/services.d.ts.map +1 -0
  301. package/dist/esm/operationsInterfaces/services.js +9 -0
  302. package/dist/esm/operationsInterfaces/services.js.map +1 -0
  303. package/dist/esm/operationsInterfaces/sharedPrivateLinkResources.d.ts +78 -0
  304. package/dist/esm/operationsInterfaces/sharedPrivateLinkResources.d.ts.map +1 -0
  305. package/dist/esm/operationsInterfaces/sharedPrivateLinkResources.js +9 -0
  306. package/dist/esm/operationsInterfaces/sharedPrivateLinkResources.js.map +1 -0
  307. package/dist/esm/operationsInterfaces/usages.d.ts +12 -0
  308. package/dist/esm/operationsInterfaces/usages.d.ts.map +1 -0
  309. package/dist/esm/operationsInterfaces/usages.js +9 -0
  310. package/dist/esm/operationsInterfaces/usages.js.map +1 -0
  311. package/dist/esm/package.json +3 -0
  312. package/dist/esm/pagingHelper.d.ts +13 -0
  313. package/dist/esm/pagingHelper.d.ts.map +1 -0
  314. package/dist/esm/pagingHelper.js +30 -0
  315. package/dist/esm/pagingHelper.js.map +1 -0
  316. package/dist/esm/searchManagementClient.d.ts +36 -0
  317. package/dist/esm/searchManagementClient.d.ts.map +1 -0
  318. package/dist/esm/searchManagementClient.js +155 -0
  319. package/dist/esm/searchManagementClient.js.map +1 -0
  320. package/dist/react-native/index.d.ts +5 -0
  321. package/dist/react-native/index.d.ts.map +1 -0
  322. package/dist/react-native/index.js +13 -0
  323. package/dist/react-native/index.js.map +1 -0
  324. package/dist/react-native/lroImpl.d.ts +11 -0
  325. package/dist/react-native/lroImpl.d.ts.map +1 -0
  326. package/dist/react-native/lroImpl.js +25 -0
  327. package/dist/react-native/lroImpl.js.map +1 -0
  328. package/dist/react-native/models/index.d.ts +1440 -0
  329. package/dist/react-native/models/index.d.ts.map +1 -0
  330. package/dist/react-native/models/index.js +232 -0
  331. package/dist/react-native/models/index.js.map +1 -0
  332. package/dist/react-native/models/mappers.d.ts +57 -0
  333. package/dist/react-native/models/mappers.d.ts.map +1 -0
  334. package/dist/react-native/models/mappers.js +1870 -0
  335. package/dist/react-native/models/mappers.js.map +1 -0
  336. package/dist/react-native/models/parameters.d.ts +26 -0
  337. package/dist/react-native/models/parameters.d.ts.map +1 -0
  338. package/dist/react-native/models/parameters.js +226 -0
  339. package/dist/react-native/models/parameters.js.map +1 -0
  340. package/dist/react-native/operations/adminKeys.d.ts +33 -0
  341. package/dist/react-native/operations/adminKeys.d.ts.map +1 -0
  342. package/dist/react-native/operations/adminKeys.js +91 -0
  343. package/dist/react-native/operations/adminKeys.js.map +1 -0
  344. package/dist/react-native/operations/index.d.ts +10 -0
  345. package/dist/react-native/operations/index.d.ts.map +1 -0
  346. package/dist/react-native/operations/index.js +17 -0
  347. package/dist/react-native/operations/index.js.map +1 -0
  348. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.d.ts +79 -0
  349. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
  350. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js +273 -0
  351. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
  352. package/dist/react-native/operations/operations.d.ts +26 -0
  353. package/dist/react-native/operations/operations.d.ts.map +1 -0
  354. package/dist/react-native/operations/operations.js +79 -0
  355. package/dist/react-native/operations/operations.js.map +1 -0
  356. package/dist/react-native/operations/privateEndpointConnections.d.ts +79 -0
  357. package/dist/react-native/operations/privateEndpointConnections.d.ts.map +1 -0
  358. package/dist/react-native/operations/privateEndpointConnections.js +265 -0
  359. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -0
  360. package/dist/react-native/operations/privateLinkResources.d.ts +34 -0
  361. package/dist/react-native/operations/privateLinkResources.d.ts.map +1 -0
  362. package/dist/react-native/operations/privateLinkResources.js +92 -0
  363. package/dist/react-native/operations/privateLinkResources.js.map +1 -0
  364. package/dist/react-native/operations/queryKeys.d.ts +66 -0
  365. package/dist/react-native/operations/queryKeys.d.ts.map +1 -0
  366. package/dist/react-native/operations/queryKeys.js +209 -0
  367. package/dist/react-native/operations/queryKeys.js.map +1 -0
  368. package/dist/react-native/operations/services.d.ts +141 -0
  369. package/dist/react-native/operations/services.d.ts.map +1 -0
  370. package/dist/react-native/operations/services.js +544 -0
  371. package/dist/react-native/operations/services.js.map +1 -0
  372. package/dist/react-native/operations/sharedPrivateLinkResources.d.ts +107 -0
  373. package/dist/react-native/operations/sharedPrivateLinkResources.d.ts.map +1 -0
  374. package/dist/react-native/operations/sharedPrivateLinkResources.js +385 -0
  375. package/dist/react-native/operations/sharedPrivateLinkResources.js.map +1 -0
  376. package/dist/react-native/operations/usages.d.ts +35 -0
  377. package/dist/react-native/operations/usages.d.ts.map +1 -0
  378. package/dist/react-native/operations/usages.js +124 -0
  379. package/dist/react-native/operations/usages.js.map +1 -0
  380. package/dist/react-native/operationsInterfaces/adminKeys.d.ts +25 -0
  381. package/dist/react-native/operationsInterfaces/adminKeys.d.ts.map +1 -0
  382. package/dist/react-native/operationsInterfaces/adminKeys.js +9 -0
  383. package/dist/react-native/operationsInterfaces/adminKeys.js.map +1 -0
  384. package/dist/react-native/operationsInterfaces/index.d.ts +10 -0
  385. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  386. package/dist/react-native/operationsInterfaces/index.js +17 -0
  387. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  388. package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +50 -0
  389. package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
  390. package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.js +9 -0
  391. package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
  392. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  393. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  394. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  395. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  396. package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts +50 -0
  397. package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  398. package/dist/react-native/operationsInterfaces/privateEndpointConnections.js +9 -0
  399. package/dist/react-native/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  400. package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts +15 -0
  401. package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  402. package/dist/react-native/operationsInterfaces/privateLinkResources.js +9 -0
  403. package/dist/react-native/operationsInterfaces/privateLinkResources.js.map +1 -0
  404. package/dist/react-native/operationsInterfaces/queryKeys.d.ts +37 -0
  405. package/dist/react-native/operationsInterfaces/queryKeys.d.ts.map +1 -0
  406. package/dist/react-native/operationsInterfaces/queryKeys.js +9 -0
  407. package/dist/react-native/operationsInterfaces/queryKeys.js.map +1 -0
  408. package/dist/react-native/operationsInterfaces/services.d.ts +103 -0
  409. package/dist/react-native/operationsInterfaces/services.d.ts.map +1 -0
  410. package/dist/react-native/operationsInterfaces/services.js +9 -0
  411. package/dist/react-native/operationsInterfaces/services.js.map +1 -0
  412. package/dist/react-native/operationsInterfaces/sharedPrivateLinkResources.d.ts +78 -0
  413. package/dist/react-native/operationsInterfaces/sharedPrivateLinkResources.d.ts.map +1 -0
  414. package/dist/react-native/operationsInterfaces/sharedPrivateLinkResources.js +9 -0
  415. package/dist/react-native/operationsInterfaces/sharedPrivateLinkResources.js.map +1 -0
  416. package/dist/react-native/operationsInterfaces/usages.d.ts +12 -0
  417. package/dist/react-native/operationsInterfaces/usages.d.ts.map +1 -0
  418. package/dist/react-native/operationsInterfaces/usages.js +9 -0
  419. package/dist/react-native/operationsInterfaces/usages.js.map +1 -0
  420. package/dist/react-native/package.json +3 -0
  421. package/dist/react-native/pagingHelper.d.ts +13 -0
  422. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  423. package/dist/react-native/pagingHelper.js +30 -0
  424. package/dist/react-native/pagingHelper.js.map +1 -0
  425. package/dist/react-native/searchManagementClient.d.ts +36 -0
  426. package/dist/react-native/searchManagementClient.d.ts.map +1 -0
  427. package/dist/react-native/searchManagementClient.js +155 -0
  428. package/dist/react-native/searchManagementClient.js.map +1 -0
  429. package/package.json +81 -66
  430. package/review/{arm-search.api.md → arm-search-node.api.md} +216 -137
  431. package/dist/index.js +0 -4576
  432. package/dist/index.js.map +0 -1
  433. package/dist/index.min.js +0 -1
  434. package/dist/index.min.js.map +0 -1
  435. package/dist-esm/samples-dev/adminKeysGetSample.d.ts +0 -2
  436. package/dist-esm/samples-dev/adminKeysGetSample.d.ts.map +0 -1
  437. package/dist-esm/samples-dev/adminKeysGetSample.js +0 -38
  438. package/dist-esm/samples-dev/adminKeysGetSample.js.map +0 -1
  439. package/dist-esm/samples-dev/adminKeysRegenerateSample.d.ts +0 -2
  440. package/dist-esm/samples-dev/adminKeysRegenerateSample.d.ts.map +0 -1
  441. package/dist-esm/samples-dev/adminKeysRegenerateSample.js +0 -39
  442. package/dist-esm/samples-dev/adminKeysRegenerateSample.js.map +0 -1
  443. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.d.ts +0 -2
  444. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.d.ts.map +0 -1
  445. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.js +0 -39
  446. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.js.map +0 -1
  447. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListByServiceSample.d.ts +0 -2
  448. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListByServiceSample.d.ts.map +0 -1
  449. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListByServiceSample.js +0 -54
  450. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListByServiceSample.js.map +0 -1
  451. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.d.ts +0 -2
  452. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.d.ts.map +0 -1
  453. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.js +0 -39
  454. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.js.map +0 -1
  455. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  456. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  457. package/dist-esm/samples-dev/operationsListSample.js +0 -53
  458. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  459. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +0 -2
  460. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +0 -1
  461. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +0 -39
  462. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +0 -1
  463. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +0 -2
  464. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +0 -1
  465. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +0 -39
  466. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +0 -1
  467. package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.d.ts +0 -2
  468. package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.d.ts.map +0 -1
  469. package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.js +0 -54
  470. package/dist-esm/samples-dev/privateEndpointConnectionsListByServiceSample.js.map +0 -1
  471. package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.d.ts +0 -2
  472. package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.d.ts.map +0 -1
  473. package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.js +0 -47
  474. package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.js.map +0 -1
  475. package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.d.ts +0 -2
  476. package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.d.ts.map +0 -1
  477. package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.js +0 -54
  478. package/dist-esm/samples-dev/privateLinkResourcesListSupportedSample.js.map +0 -1
  479. package/dist-esm/samples-dev/queryKeysCreateSample.d.ts +0 -2
  480. package/dist-esm/samples-dev/queryKeysCreateSample.d.ts.map +0 -1
  481. package/dist-esm/samples-dev/queryKeysCreateSample.js +0 -39
  482. package/dist-esm/samples-dev/queryKeysCreateSample.js.map +0 -1
  483. package/dist-esm/samples-dev/queryKeysDeleteSample.d.ts +0 -2
  484. package/dist-esm/samples-dev/queryKeysDeleteSample.d.ts.map +0 -1
  485. package/dist-esm/samples-dev/queryKeysDeleteSample.js +0 -39
  486. package/dist-esm/samples-dev/queryKeysDeleteSample.js.map +0 -1
  487. package/dist-esm/samples-dev/queryKeysListBySearchServiceSample.d.ts +0 -2
  488. package/dist-esm/samples-dev/queryKeysListBySearchServiceSample.d.ts.map +0 -1
  489. package/dist-esm/samples-dev/queryKeysListBySearchServiceSample.js +0 -54
  490. package/dist-esm/samples-dev/queryKeysListBySearchServiceSample.js.map +0 -1
  491. package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.d.ts +0 -2
  492. package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.d.ts.map +0 -1
  493. package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.js +0 -37
  494. package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.js.map +0 -1
  495. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.d.ts +0 -2
  496. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.d.ts.map +0 -1
  497. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js +0 -301
  498. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js.map +0 -1
  499. package/dist-esm/samples-dev/servicesDeleteSample.d.ts +0 -2
  500. package/dist-esm/samples-dev/servicesDeleteSample.d.ts.map +0 -1
  501. package/dist-esm/samples-dev/servicesDeleteSample.js +0 -38
  502. package/dist-esm/samples-dev/servicesDeleteSample.js.map +0 -1
  503. package/dist-esm/samples-dev/servicesGetSample.d.ts +0 -2
  504. package/dist-esm/samples-dev/servicesGetSample.d.ts.map +0 -1
  505. package/dist-esm/samples-dev/servicesGetSample.js +0 -38
  506. package/dist-esm/samples-dev/servicesGetSample.js.map +0 -1
  507. package/dist-esm/samples-dev/servicesListByResourceGroupSample.d.ts +0 -2
  508. package/dist-esm/samples-dev/servicesListByResourceGroupSample.d.ts.map +0 -1
  509. package/dist-esm/samples-dev/servicesListByResourceGroupSample.js +0 -53
  510. package/dist-esm/samples-dev/servicesListByResourceGroupSample.js.map +0 -1
  511. package/dist-esm/samples-dev/servicesListBySubscriptionSample.d.ts +0 -2
  512. package/dist-esm/samples-dev/servicesListBySubscriptionSample.d.ts.map +0 -1
  513. package/dist-esm/samples-dev/servicesListBySubscriptionSample.js +0 -52
  514. package/dist-esm/samples-dev/servicesListBySubscriptionSample.js.map +0 -1
  515. package/dist-esm/samples-dev/servicesUpdateSample.d.ts +0 -2
  516. package/dist-esm/samples-dev/servicesUpdateSample.d.ts.map +0 -1
  517. package/dist-esm/samples-dev/servicesUpdateSample.js +0 -257
  518. package/dist-esm/samples-dev/servicesUpdateSample.js.map +0 -1
  519. package/dist-esm/samples-dev/sharedPrivateLinkResourcesCreateOrUpdateSample.d.ts +0 -2
  520. package/dist-esm/samples-dev/sharedPrivateLinkResourcesCreateOrUpdateSample.d.ts.map +0 -1
  521. package/dist-esm/samples-dev/sharedPrivateLinkResourcesCreateOrUpdateSample.js +0 -47
  522. package/dist-esm/samples-dev/sharedPrivateLinkResourcesCreateOrUpdateSample.js.map +0 -1
  523. package/dist-esm/samples-dev/sharedPrivateLinkResourcesDeleteSample.d.ts +0 -2
  524. package/dist-esm/samples-dev/sharedPrivateLinkResourcesDeleteSample.d.ts.map +0 -1
  525. package/dist-esm/samples-dev/sharedPrivateLinkResourcesDeleteSample.js +0 -39
  526. package/dist-esm/samples-dev/sharedPrivateLinkResourcesDeleteSample.js.map +0 -1
  527. package/dist-esm/samples-dev/sharedPrivateLinkResourcesGetSample.d.ts +0 -2
  528. package/dist-esm/samples-dev/sharedPrivateLinkResourcesGetSample.d.ts.map +0 -1
  529. package/dist-esm/samples-dev/sharedPrivateLinkResourcesGetSample.js +0 -39
  530. package/dist-esm/samples-dev/sharedPrivateLinkResourcesGetSample.js.map +0 -1
  531. package/dist-esm/samples-dev/sharedPrivateLinkResourcesListByServiceSample.d.ts +0 -2
  532. package/dist-esm/samples-dev/sharedPrivateLinkResourcesListByServiceSample.d.ts.map +0 -1
  533. package/dist-esm/samples-dev/sharedPrivateLinkResourcesListByServiceSample.js +0 -54
  534. package/dist-esm/samples-dev/sharedPrivateLinkResourcesListByServiceSample.js.map +0 -1
  535. package/dist-esm/samples-dev/usageBySubscriptionSkuSample.d.ts +0 -2
  536. package/dist-esm/samples-dev/usageBySubscriptionSkuSample.d.ts.map +0 -1
  537. package/dist-esm/samples-dev/usageBySubscriptionSkuSample.js +0 -38
  538. package/dist-esm/samples-dev/usageBySubscriptionSkuSample.js.map +0 -1
  539. package/dist-esm/samples-dev/usagesListBySubscriptionSample.d.ts +0 -2
  540. package/dist-esm/samples-dev/usagesListBySubscriptionSample.d.ts.map +0 -1
  541. package/dist-esm/samples-dev/usagesListBySubscriptionSample.js +0 -53
  542. package/dist-esm/samples-dev/usagesListBySubscriptionSample.js.map +0 -1
  543. package/dist-esm/src/index.d.ts +0 -6
  544. package/dist-esm/src/index.d.ts.map +0 -1
  545. package/dist-esm/src/index.js.map +0 -1
  546. package/dist-esm/src/lroImpl.js.map +0 -1
  547. package/dist-esm/src/models/index.d.ts.map +0 -1
  548. package/dist-esm/src/models/index.js.map +0 -1
  549. package/dist-esm/src/models/mappers.d.ts.map +0 -1
  550. package/dist-esm/src/models/mappers.js.map +0 -1
  551. package/dist-esm/src/models/parameters.js.map +0 -1
  552. package/dist-esm/src/operations/adminKeys.d.ts.map +0 -1
  553. package/dist-esm/src/operations/adminKeys.js.map +0 -1
  554. package/dist-esm/src/operations/index.d.ts +0 -10
  555. package/dist-esm/src/operations/index.d.ts.map +0 -1
  556. package/dist-esm/src/operations/index.js +0 -17
  557. package/dist-esm/src/operations/index.js.map +0 -1
  558. package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.d.ts.map +0 -1
  559. package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.js.map +0 -1
  560. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  561. package/dist-esm/src/operations/operations.js.map +0 -1
  562. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +0 -1
  563. package/dist-esm/src/operations/privateEndpointConnections.js.map +0 -1
  564. package/dist-esm/src/operations/privateLinkResources.d.ts.map +0 -1
  565. package/dist-esm/src/operations/privateLinkResources.js.map +0 -1
  566. package/dist-esm/src/operations/queryKeys.d.ts.map +0 -1
  567. package/dist-esm/src/operations/queryKeys.js.map +0 -1
  568. package/dist-esm/src/operations/services.d.ts.map +0 -1
  569. package/dist-esm/src/operations/services.js.map +0 -1
  570. package/dist-esm/src/operations/sharedPrivateLinkResources.d.ts.map +0 -1
  571. package/dist-esm/src/operations/sharedPrivateLinkResources.js.map +0 -1
  572. package/dist-esm/src/operations/usages.d.ts.map +0 -1
  573. package/dist-esm/src/operations/usages.js.map +0 -1
  574. package/dist-esm/src/operationsInterfaces/adminKeys.d.ts.map +0 -1
  575. package/dist-esm/src/operationsInterfaces/adminKeys.js.map +0 -1
  576. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -10
  577. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  578. package/dist-esm/src/operationsInterfaces/index.js +0 -17
  579. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  580. package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +0 -1
  581. package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +0 -1
  582. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  583. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +0 -1
  584. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +0 -1
  585. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +0 -1
  586. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +0 -1
  587. package/dist-esm/src/operationsInterfaces/queryKeys.d.ts.map +0 -1
  588. package/dist-esm/src/operationsInterfaces/queryKeys.js.map +0 -1
  589. package/dist-esm/src/operationsInterfaces/services.d.ts.map +0 -1
  590. package/dist-esm/src/operationsInterfaces/services.js.map +0 -1
  591. package/dist-esm/src/operationsInterfaces/sharedPrivateLinkResources.d.ts.map +0 -1
  592. package/dist-esm/src/operationsInterfaces/sharedPrivateLinkResources.js.map +0 -1
  593. package/dist-esm/src/operationsInterfaces/usages.js.map +0 -1
  594. package/dist-esm/src/pagingHelper.js.map +0 -1
  595. package/dist-esm/src/searchManagementClient.d.ts.map +0 -1
  596. package/dist-esm/src/searchManagementClient.js.map +0 -1
  597. package/dist-esm/test/search_examples.d.ts +0 -4
  598. package/dist-esm/test/search_examples.d.ts.map +0 -1
  599. package/dist-esm/test/search_examples.js +0 -204
  600. package/dist-esm/test/search_examples.js.map +0 -1
  601. package/src/lroImpl.ts +0 -42
  602. package/src/models/index.ts +0 -1446
  603. package/src/models/mappers.ts +0 -1969
  604. package/src/models/parameters.ts +0 -267
  605. package/src/operations/adminKeys.ts +0 -120
  606. package/src/operations/index.ts +0 -17
  607. package/src/operations/networkSecurityPerimeterConfigurations.ts +0 -400
  608. package/src/operations/operations.ts +0 -103
  609. package/src/operations/privateEndpointConnections.ts +0 -373
  610. package/src/operations/privateLinkResources.ts +0 -144
  611. package/src/operations/queryKeys.ts +0 -298
  612. package/src/operations/services.ts +0 -634
  613. package/src/operations/sharedPrivateLinkResources.ts +0 -544
  614. package/src/operations/usages.ts +0 -176
  615. package/src/operationsInterfaces/adminKeys.ts +0 -48
  616. package/src/operationsInterfaces/index.ts +0 -17
  617. package/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts +0 -90
  618. package/src/operationsInterfaces/operations.ts +0 -22
  619. package/src/operationsInterfaces/privateEndpointConnections.ts +0 -88
  620. package/src/operationsInterfaces/privateLinkResources.ts +0 -31
  621. package/src/operationsInterfaces/queryKeys.ts +0 -66
  622. package/src/operationsInterfaces/services.ts +0 -144
  623. package/src/operationsInterfaces/sharedPrivateLinkResources.ts +0 -131
  624. package/src/operationsInterfaces/usages.ts +0 -27
  625. package/src/pagingHelper.ts +0 -39
  626. package/src/searchManagementClient.ts +0 -226
  627. package/tsconfig.json +0 -33
  628. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  629. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  630. /package/{dist-esm/src → dist/browser}/operationsInterfaces/adminKeys.js +0 -0
  631. /package/{dist-esm/src → dist/browser}/operationsInterfaces/networkSecurityPerimeterConfigurations.js +0 -0
  632. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  633. /package/{dist-esm/src → dist/browser}/operationsInterfaces/privateEndpointConnections.js +0 -0
  634. /package/{dist-esm/src → dist/browser}/operationsInterfaces/privateLinkResources.js +0 -0
  635. /package/{dist-esm/src → dist/browser}/operationsInterfaces/queryKeys.js +0 -0
  636. /package/{dist-esm/src → dist/browser}/operationsInterfaces/services.js +0 -0
  637. /package/{dist-esm/src → dist/browser}/operationsInterfaces/sharedPrivateLinkResources.js +0 -0
  638. /package/{dist-esm/src → dist/browser}/operationsInterfaces/usages.js +0 -0
  639. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
package/dist/index.js DELETED
@@ -1,4576 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var tslib = require('tslib');
6
- var coreClient = require('@azure/core-client');
7
- var coreRestPipeline = require('@azure/core-rest-pipeline');
8
- var coreLro = require('@azure/core-lro');
9
-
10
- function _interopNamespaceDefault(e) {
11
- var n = Object.create(null);
12
- if (e) {
13
- Object.keys(e).forEach(function (k) {
14
- if (k !== 'default') {
15
- var d = Object.getOwnPropertyDescriptor(e, k);
16
- Object.defineProperty(n, k, d.get ? d : {
17
- enumerable: true,
18
- get: function () { return e[k]; }
19
- });
20
- }
21
- });
22
- }
23
- n.default = e;
24
- return Object.freeze(n);
25
- }
26
-
27
- var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
28
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
29
-
30
- /*
31
- * Copyright (c) Microsoft Corporation.
32
- * Licensed under the MIT License.
33
- *
34
- * Code generated by Microsoft (R) AutoRest Code Generator.
35
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
36
- */
37
- const pageMap = new WeakMap();
38
- /**
39
- * Given the last `.value` produced by the `byPage` iterator,
40
- * returns a continuation token that can be used to begin paging from
41
- * that point later.
42
- * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
43
- * @returns The continuation token that can be passed into byPage() during future calls.
44
- */
45
- function getContinuationToken(page) {
46
- var _a;
47
- if (typeof page !== "object" || page === null) {
48
- return undefined;
49
- }
50
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
51
- }
52
- function setContinuationToken(page, continuationToken) {
53
- var _a;
54
- if (typeof page !== "object" || page === null || !continuationToken) {
55
- return;
56
- }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
58
- pageInfo.continuationToken = continuationToken;
59
- pageMap.set(page, pageInfo);
60
- }
61
-
62
- /*
63
- * Copyright (c) Microsoft Corporation.
64
- * Licensed under the MIT License.
65
- *
66
- * Code generated by Microsoft (R) AutoRest Code Generator.
67
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
68
- */
69
- /** Known values of {@link PublicNetworkAccess} that the service accepts. */
70
- exports.KnownPublicNetworkAccess = void 0;
71
- (function (KnownPublicNetworkAccess) {
72
- /** The search service is accessible from traffic originating from the public internet. */
73
- KnownPublicNetworkAccess["Enabled"] = "enabled";
74
- /** The search service is not accessible from traffic originating from the public internet. Access is only permitted over approved private endpoint connections. */
75
- KnownPublicNetworkAccess["Disabled"] = "disabled";
76
- })(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
77
- /** Known values of {@link SearchBypass} that the service accepts. */
78
- exports.KnownSearchBypass = void 0;
79
- (function (KnownSearchBypass) {
80
- /** Indicates that no origin can bypass the rules defined in the 'ipRules' section. This is the default. */
81
- KnownSearchBypass["None"] = "None";
82
- /** Indicates that requests originating from the Azure portal can bypass the rules defined in the 'ipRules' section. */
83
- KnownSearchBypass["AzurePortal"] = "AzurePortal";
84
- })(exports.KnownSearchBypass || (exports.KnownSearchBypass = {}));
85
- /** Known values of {@link SearchDisabledDataExfiltrationOption} that the service accepts. */
86
- exports.KnownSearchDisabledDataExfiltrationOption = void 0;
87
- (function (KnownSearchDisabledDataExfiltrationOption) {
88
- /** Indicates that all data exfiltration scenarios are disabled. */
89
- KnownSearchDisabledDataExfiltrationOption["All"] = "All";
90
- })(exports.KnownSearchDisabledDataExfiltrationOption || (exports.KnownSearchDisabledDataExfiltrationOption = {}));
91
- /** Known values of {@link SearchSemanticSearch} that the service accepts. */
92
- exports.KnownSearchSemanticSearch = void 0;
93
- (function (KnownSearchSemanticSearch) {
94
- /** Indicates that semantic reranker is disabled for the search service. This is the default. */
95
- KnownSearchSemanticSearch["Disabled"] = "disabled";
96
- /** Enables semantic reranker on a search service and indicates that it is to be used within the limits of the free plan. The free plan would cap the volume of semantic ranking requests and is offered at no extra charge. This is the default for newly provisioned search services. */
97
- KnownSearchSemanticSearch["Free"] = "free";
98
- /** Enables semantic reranker on a search service as a billable feature, with higher throughput and volume of semantically reranked queries. */
99
- KnownSearchSemanticSearch["Standard"] = "standard";
100
- })(exports.KnownSearchSemanticSearch || (exports.KnownSearchSemanticSearch = {}));
101
- /** Known values of {@link PrivateLinkServiceConnectionProvisioningState} that the service accepts. */
102
- exports.KnownPrivateLinkServiceConnectionProvisioningState = void 0;
103
- (function (KnownPrivateLinkServiceConnectionProvisioningState) {
104
- /** The private link service connection is in the process of being created along with other resources for it to be fully functional. */
105
- KnownPrivateLinkServiceConnectionProvisioningState["Updating"] = "Updating";
106
- /** The private link service connection is in the process of being deleted. */
107
- KnownPrivateLinkServiceConnectionProvisioningState["Deleting"] = "Deleting";
108
- /** The private link service connection has failed to be provisioned or deleted. */
109
- KnownPrivateLinkServiceConnectionProvisioningState["Failed"] = "Failed";
110
- /** The private link service connection has finished provisioning and is ready for approval. */
111
- KnownPrivateLinkServiceConnectionProvisioningState["Succeeded"] = "Succeeded";
112
- /** Provisioning request for the private link service connection resource has been accepted but the process of creation has not commenced yet. */
113
- KnownPrivateLinkServiceConnectionProvisioningState["Incomplete"] = "Incomplete";
114
- /** Provisioning request for the private link service connection resource has been canceled. */
115
- KnownPrivateLinkServiceConnectionProvisioningState["Canceled"] = "Canceled";
116
- })(exports.KnownPrivateLinkServiceConnectionProvisioningState || (exports.KnownPrivateLinkServiceConnectionProvisioningState = {}));
117
- /** Known values of {@link SharedPrivateLinkResourceStatus} that the service accepts. */
118
- exports.KnownSharedPrivateLinkResourceStatus = void 0;
119
- (function (KnownSharedPrivateLinkResourceStatus) {
120
- /** The shared private link resource has been created and is pending approval. */
121
- KnownSharedPrivateLinkResourceStatus["Pending"] = "Pending";
122
- /** The shared private link resource is approved and is ready for use. */
123
- KnownSharedPrivateLinkResourceStatus["Approved"] = "Approved";
124
- /** The shared private link resource has been rejected and cannot be used. */
125
- KnownSharedPrivateLinkResourceStatus["Rejected"] = "Rejected";
126
- /** The shared private link resource has been removed from the service. */
127
- KnownSharedPrivateLinkResourceStatus["Disconnected"] = "Disconnected";
128
- })(exports.KnownSharedPrivateLinkResourceStatus || (exports.KnownSharedPrivateLinkResourceStatus = {}));
129
- /** Known values of {@link SharedPrivateLinkResourceProvisioningState} that the service accepts. */
130
- exports.KnownSharedPrivateLinkResourceProvisioningState = void 0;
131
- (function (KnownSharedPrivateLinkResourceProvisioningState) {
132
- /** The shared private link resource is in the process of being created along with other resources for it to be fully functional. */
133
- KnownSharedPrivateLinkResourceProvisioningState["Updating"] = "Updating";
134
- /** The shared private link resource is in the process of being deleted. */
135
- KnownSharedPrivateLinkResourceProvisioningState["Deleting"] = "Deleting";
136
- /** The shared private link resource has failed to be provisioned or deleted. */
137
- KnownSharedPrivateLinkResourceProvisioningState["Failed"] = "Failed";
138
- /** The shared private link resource has finished provisioning and is ready for approval. */
139
- KnownSharedPrivateLinkResourceProvisioningState["Succeeded"] = "Succeeded";
140
- /** Provisioning request for the shared private link resource has been accepted but the process of creation has not commenced yet. */
141
- KnownSharedPrivateLinkResourceProvisioningState["Incomplete"] = "Incomplete";
142
- })(exports.KnownSharedPrivateLinkResourceProvisioningState || (exports.KnownSharedPrivateLinkResourceProvisioningState = {}));
143
- /** Known values of {@link SkuName} that the service accepts. */
144
- exports.KnownSkuName = void 0;
145
- (function (KnownSkuName) {
146
- /** Free tier, with no SLA guarantees and a subset of the features offered on billable tiers. */
147
- KnownSkuName["Free"] = "free";
148
- /** Billable tier for a dedicated service having up to 3 replicas. */
149
- KnownSkuName["Basic"] = "basic";
150
- /** Billable tier for a dedicated service having up to 12 partitions and 12 replicas. */
151
- KnownSkuName["Standard"] = "standard";
152
- /** Similar to 'standard', but with more capacity per search unit. */
153
- KnownSkuName["Standard2"] = "standard2";
154
- /** The largest Standard offering with up to 12 partitions and 12 replicas (or up to 3 partitions with more indexes if you also set the hostingMode property to 'highDensity'). */
155
- KnownSkuName["Standard3"] = "standard3";
156
- /** Billable tier for a dedicated service that supports 1TB per partition, up to 12 partitions. */
157
- KnownSkuName["StorageOptimizedL1"] = "storage_optimized_l1";
158
- /** Billable tier for a dedicated service that supports 2TB per partition, up to 12 partitions. */
159
- KnownSkuName["StorageOptimizedL2"] = "storage_optimized_l2";
160
- })(exports.KnownSkuName || (exports.KnownSkuName = {}));
161
- /** Known values of {@link IdentityType} that the service accepts. */
162
- exports.KnownIdentityType = void 0;
163
- (function (KnownIdentityType) {
164
- /** Indicates that any identity associated with the search service needs to be removed. */
165
- KnownIdentityType["None"] = "None";
166
- /** Indicates that system-assigned identity for the search service will be enabled. */
167
- KnownIdentityType["SystemAssigned"] = "SystemAssigned";
168
- /** Indicates that one or more user assigned identities will be assigned to the search service. */
169
- KnownIdentityType["UserAssigned"] = "UserAssigned";
170
- /** Indicates that system-assigned identity for the search service will be enabled along with the assignment of one or more user assigned identities. */
171
- KnownIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned, UserAssigned";
172
- })(exports.KnownIdentityType || (exports.KnownIdentityType = {}));
173
- /** Known values of {@link UnavailableNameReason} that the service accepts. */
174
- exports.KnownUnavailableNameReason = void 0;
175
- (function (KnownUnavailableNameReason) {
176
- /** The search service name doesn't match naming requirements. */
177
- KnownUnavailableNameReason["Invalid"] = "Invalid";
178
- /** The search service name is already assigned to a different search service. */
179
- KnownUnavailableNameReason["AlreadyExists"] = "AlreadyExists";
180
- })(exports.KnownUnavailableNameReason || (exports.KnownUnavailableNameReason = {}));
181
- /** Known values of {@link SharedPrivateLinkResourceAsyncOperationResult} that the service accepts. */
182
- exports.KnownSharedPrivateLinkResourceAsyncOperationResult = void 0;
183
- (function (KnownSharedPrivateLinkResourceAsyncOperationResult) {
184
- /** Running */
185
- KnownSharedPrivateLinkResourceAsyncOperationResult["Running"] = "Running";
186
- /** Succeeded */
187
- KnownSharedPrivateLinkResourceAsyncOperationResult["Succeeded"] = "Succeeded";
188
- /** Failed */
189
- KnownSharedPrivateLinkResourceAsyncOperationResult["Failed"] = "Failed";
190
- })(exports.KnownSharedPrivateLinkResourceAsyncOperationResult || (exports.KnownSharedPrivateLinkResourceAsyncOperationResult = {}));
191
-
192
- /*
193
- * Copyright (c) Microsoft Corporation.
194
- * Licensed under the MIT License.
195
- *
196
- * Code generated by Microsoft (R) AutoRest Code Generator.
197
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
198
- */
199
- const OperationListResult = {
200
- type: {
201
- name: "Composite",
202
- className: "OperationListResult",
203
- modelProperties: {
204
- value: {
205
- serializedName: "value",
206
- readOnly: true,
207
- type: {
208
- name: "Sequence",
209
- element: {
210
- type: {
211
- name: "Composite",
212
- className: "Operation",
213
- },
214
- },
215
- },
216
- },
217
- nextLink: {
218
- serializedName: "nextLink",
219
- readOnly: true,
220
- type: {
221
- name: "String",
222
- },
223
- },
224
- },
225
- },
226
- };
227
- const Operation = {
228
- type: {
229
- name: "Composite",
230
- className: "Operation",
231
- modelProperties: {
232
- name: {
233
- serializedName: "name",
234
- readOnly: true,
235
- type: {
236
- name: "String",
237
- },
238
- },
239
- display: {
240
- serializedName: "display",
241
- type: {
242
- name: "Composite",
243
- className: "OperationDisplay",
244
- },
245
- },
246
- isDataAction: {
247
- serializedName: "isDataAction",
248
- readOnly: true,
249
- nullable: true,
250
- type: {
251
- name: "Boolean",
252
- },
253
- },
254
- origin: {
255
- serializedName: "origin",
256
- readOnly: true,
257
- type: {
258
- name: "String",
259
- },
260
- },
261
- properties: {
262
- serializedName: "properties",
263
- type: {
264
- name: "Composite",
265
- className: "OperationProperties",
266
- },
267
- },
268
- },
269
- },
270
- };
271
- const OperationDisplay = {
272
- type: {
273
- name: "Composite",
274
- className: "OperationDisplay",
275
- modelProperties: {
276
- provider: {
277
- serializedName: "provider",
278
- readOnly: true,
279
- type: {
280
- name: "String",
281
- },
282
- },
283
- operation: {
284
- serializedName: "operation",
285
- readOnly: true,
286
- type: {
287
- name: "String",
288
- },
289
- },
290
- resource: {
291
- serializedName: "resource",
292
- readOnly: true,
293
- type: {
294
- name: "String",
295
- },
296
- },
297
- description: {
298
- serializedName: "description",
299
- readOnly: true,
300
- type: {
301
- name: "String",
302
- },
303
- },
304
- },
305
- },
306
- };
307
- const OperationProperties = {
308
- type: {
309
- name: "Composite",
310
- className: "OperationProperties",
311
- modelProperties: {
312
- serviceSpecification: {
313
- serializedName: "serviceSpecification",
314
- type: {
315
- name: "Composite",
316
- className: "OperationServiceSpecification",
317
- },
318
- },
319
- },
320
- },
321
- };
322
- const OperationServiceSpecification = {
323
- type: {
324
- name: "Composite",
325
- className: "OperationServiceSpecification",
326
- modelProperties: {
327
- metricSpecifications: {
328
- serializedName: "metricSpecifications",
329
- readOnly: true,
330
- type: {
331
- name: "Sequence",
332
- element: {
333
- type: {
334
- name: "Composite",
335
- className: "OperationMetricsSpecification",
336
- },
337
- },
338
- },
339
- },
340
- logSpecifications: {
341
- serializedName: "logSpecifications",
342
- readOnly: true,
343
- type: {
344
- name: "Sequence",
345
- element: {
346
- type: {
347
- name: "Composite",
348
- className: "OperationLogsSpecification",
349
- },
350
- },
351
- },
352
- },
353
- },
354
- },
355
- };
356
- const OperationMetricsSpecification = {
357
- type: {
358
- name: "Composite",
359
- className: "OperationMetricsSpecification",
360
- modelProperties: {
361
- name: {
362
- serializedName: "name",
363
- readOnly: true,
364
- type: {
365
- name: "String",
366
- },
367
- },
368
- displayName: {
369
- serializedName: "displayName",
370
- readOnly: true,
371
- type: {
372
- name: "String",
373
- },
374
- },
375
- displayDescription: {
376
- serializedName: "displayDescription",
377
- readOnly: true,
378
- type: {
379
- name: "String",
380
- },
381
- },
382
- unit: {
383
- serializedName: "unit",
384
- readOnly: true,
385
- type: {
386
- name: "String",
387
- },
388
- },
389
- aggregationType: {
390
- serializedName: "aggregationType",
391
- readOnly: true,
392
- type: {
393
- name: "String",
394
- },
395
- },
396
- dimensions: {
397
- serializedName: "dimensions",
398
- readOnly: true,
399
- type: {
400
- name: "Sequence",
401
- element: {
402
- type: {
403
- name: "Composite",
404
- className: "OperationMetricDimension",
405
- },
406
- },
407
- },
408
- },
409
- availabilities: {
410
- serializedName: "availabilities",
411
- readOnly: true,
412
- type: {
413
- name: "Sequence",
414
- element: {
415
- type: {
416
- name: "Composite",
417
- className: "OperationAvailability",
418
- },
419
- },
420
- },
421
- },
422
- },
423
- },
424
- };
425
- const OperationMetricDimension = {
426
- type: {
427
- name: "Composite",
428
- className: "OperationMetricDimension",
429
- modelProperties: {
430
- name: {
431
- serializedName: "name",
432
- readOnly: true,
433
- type: {
434
- name: "String",
435
- },
436
- },
437
- displayName: {
438
- serializedName: "displayName",
439
- readOnly: true,
440
- type: {
441
- name: "String",
442
- },
443
- },
444
- },
445
- },
446
- };
447
- const OperationAvailability = {
448
- type: {
449
- name: "Composite",
450
- className: "OperationAvailability",
451
- modelProperties: {
452
- timeGrain: {
453
- serializedName: "timeGrain",
454
- readOnly: true,
455
- type: {
456
- name: "String",
457
- },
458
- },
459
- blobDuration: {
460
- serializedName: "blobDuration",
461
- readOnly: true,
462
- type: {
463
- name: "String",
464
- },
465
- },
466
- },
467
- },
468
- };
469
- const OperationLogsSpecification = {
470
- type: {
471
- name: "Composite",
472
- className: "OperationLogsSpecification",
473
- modelProperties: {
474
- name: {
475
- serializedName: "name",
476
- readOnly: true,
477
- type: {
478
- name: "String",
479
- },
480
- },
481
- displayName: {
482
- serializedName: "displayName",
483
- readOnly: true,
484
- type: {
485
- name: "String",
486
- },
487
- },
488
- blobDuration: {
489
- serializedName: "blobDuration",
490
- readOnly: true,
491
- type: {
492
- name: "String",
493
- },
494
- },
495
- },
496
- },
497
- };
498
- const CloudError = {
499
- type: {
500
- name: "Composite",
501
- className: "CloudError",
502
- modelProperties: {
503
- error: {
504
- serializedName: "error",
505
- type: {
506
- name: "Composite",
507
- className: "CloudErrorBody",
508
- },
509
- },
510
- message: {
511
- serializedName: "message",
512
- type: {
513
- name: "String",
514
- },
515
- },
516
- },
517
- },
518
- };
519
- const CloudErrorBody = {
520
- type: {
521
- name: "Composite",
522
- className: "CloudErrorBody",
523
- modelProperties: {
524
- code: {
525
- serializedName: "code",
526
- type: {
527
- name: "String",
528
- },
529
- },
530
- message: {
531
- serializedName: "message",
532
- type: {
533
- name: "String",
534
- },
535
- },
536
- target: {
537
- serializedName: "target",
538
- type: {
539
- name: "String",
540
- },
541
- },
542
- details: {
543
- serializedName: "details",
544
- type: {
545
- name: "Sequence",
546
- element: {
547
- type: {
548
- name: "Composite",
549
- className: "CloudErrorBody",
550
- },
551
- },
552
- },
553
- },
554
- },
555
- },
556
- };
557
- const AdminKeyResult = {
558
- type: {
559
- name: "Composite",
560
- className: "AdminKeyResult",
561
- modelProperties: {
562
- primaryKey: {
563
- serializedName: "primaryKey",
564
- readOnly: true,
565
- type: {
566
- name: "String",
567
- },
568
- },
569
- secondaryKey: {
570
- serializedName: "secondaryKey",
571
- readOnly: true,
572
- type: {
573
- name: "String",
574
- },
575
- },
576
- },
577
- },
578
- };
579
- const QueryKey = {
580
- type: {
581
- name: "Composite",
582
- className: "QueryKey",
583
- modelProperties: {
584
- name: {
585
- serializedName: "name",
586
- readOnly: true,
587
- type: {
588
- name: "String",
589
- },
590
- },
591
- key: {
592
- serializedName: "key",
593
- readOnly: true,
594
- type: {
595
- name: "String",
596
- },
597
- },
598
- },
599
- },
600
- };
601
- const ListQueryKeysResult = {
602
- type: {
603
- name: "Composite",
604
- className: "ListQueryKeysResult",
605
- modelProperties: {
606
- value: {
607
- serializedName: "value",
608
- readOnly: true,
609
- type: {
610
- name: "Sequence",
611
- element: {
612
- type: {
613
- name: "Composite",
614
- className: "QueryKey",
615
- },
616
- },
617
- },
618
- },
619
- nextLink: {
620
- serializedName: "nextLink",
621
- readOnly: true,
622
- type: {
623
- name: "String",
624
- },
625
- },
626
- },
627
- },
628
- };
629
- const NetworkRuleSet = {
630
- type: {
631
- name: "Composite",
632
- className: "NetworkRuleSet",
633
- modelProperties: {
634
- ipRules: {
635
- serializedName: "ipRules",
636
- type: {
637
- name: "Sequence",
638
- element: {
639
- type: {
640
- name: "Composite",
641
- className: "IpRule",
642
- },
643
- },
644
- },
645
- },
646
- bypass: {
647
- serializedName: "bypass",
648
- type: {
649
- name: "String",
650
- },
651
- },
652
- },
653
- },
654
- };
655
- const IpRule = {
656
- type: {
657
- name: "Composite",
658
- className: "IpRule",
659
- modelProperties: {
660
- value: {
661
- serializedName: "value",
662
- type: {
663
- name: "String",
664
- },
665
- },
666
- },
667
- },
668
- };
669
- const EncryptionWithCmk = {
670
- type: {
671
- name: "Composite",
672
- className: "EncryptionWithCmk",
673
- modelProperties: {
674
- enforcement: {
675
- serializedName: "enforcement",
676
- type: {
677
- name: "Enum",
678
- allowedValues: ["Disabled", "Enabled", "Unspecified"],
679
- },
680
- },
681
- encryptionComplianceStatus: {
682
- serializedName: "encryptionComplianceStatus",
683
- readOnly: true,
684
- type: {
685
- name: "Enum",
686
- allowedValues: ["Compliant", "NonCompliant"],
687
- },
688
- },
689
- },
690
- },
691
- };
692
- const DataPlaneAuthOptions = {
693
- type: {
694
- name: "Composite",
695
- className: "DataPlaneAuthOptions",
696
- modelProperties: {
697
- apiKeyOnly: {
698
- serializedName: "apiKeyOnly",
699
- type: {
700
- name: "Dictionary",
701
- value: { type: { name: "any" } },
702
- },
703
- },
704
- aadOrApiKey: {
705
- serializedName: "aadOrApiKey",
706
- type: {
707
- name: "Composite",
708
- className: "DataPlaneAadOrApiKeyAuthOption",
709
- },
710
- },
711
- },
712
- },
713
- };
714
- const DataPlaneAadOrApiKeyAuthOption = {
715
- type: {
716
- name: "Composite",
717
- className: "DataPlaneAadOrApiKeyAuthOption",
718
- modelProperties: {
719
- aadAuthFailureMode: {
720
- serializedName: "aadAuthFailureMode",
721
- type: {
722
- name: "Enum",
723
- allowedValues: ["http403", "http401WithBearerChallenge"],
724
- },
725
- },
726
- },
727
- },
728
- };
729
- const PrivateEndpointConnectionProperties = {
730
- type: {
731
- name: "Composite",
732
- className: "PrivateEndpointConnectionProperties",
733
- modelProperties: {
734
- privateEndpoint: {
735
- serializedName: "privateEndpoint",
736
- type: {
737
- name: "Composite",
738
- className: "PrivateEndpointConnectionPropertiesPrivateEndpoint",
739
- },
740
- },
741
- privateLinkServiceConnectionState: {
742
- serializedName: "privateLinkServiceConnectionState",
743
- type: {
744
- name: "Composite",
745
- className: "PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState",
746
- },
747
- },
748
- groupId: {
749
- serializedName: "groupId",
750
- type: {
751
- name: "String",
752
- },
753
- },
754
- provisioningState: {
755
- serializedName: "provisioningState",
756
- type: {
757
- name: "String",
758
- },
759
- },
760
- },
761
- },
762
- };
763
- const PrivateEndpointConnectionPropertiesPrivateEndpoint = {
764
- type: {
765
- name: "Composite",
766
- className: "PrivateEndpointConnectionPropertiesPrivateEndpoint",
767
- modelProperties: {
768
- id: {
769
- serializedName: "id",
770
- type: {
771
- name: "String",
772
- },
773
- },
774
- },
775
- },
776
- };
777
- const PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState = {
778
- type: {
779
- name: "Composite",
780
- className: "PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState",
781
- modelProperties: {
782
- status: {
783
- serializedName: "status",
784
- type: {
785
- name: "Enum",
786
- allowedValues: ["Pending", "Approved", "Rejected", "Disconnected"],
787
- },
788
- },
789
- description: {
790
- serializedName: "description",
791
- type: {
792
- name: "String",
793
- },
794
- },
795
- actionsRequired: {
796
- defaultValue: "None",
797
- serializedName: "actionsRequired",
798
- type: {
799
- name: "String",
800
- },
801
- },
802
- },
803
- },
804
- };
805
- const Resource = {
806
- type: {
807
- name: "Composite",
808
- className: "Resource",
809
- modelProperties: {
810
- id: {
811
- serializedName: "id",
812
- readOnly: true,
813
- type: {
814
- name: "String",
815
- },
816
- },
817
- name: {
818
- serializedName: "name",
819
- readOnly: true,
820
- type: {
821
- name: "String",
822
- },
823
- },
824
- type: {
825
- serializedName: "type",
826
- readOnly: true,
827
- type: {
828
- name: "String",
829
- },
830
- },
831
- },
832
- },
833
- };
834
- const SharedPrivateLinkResourceProperties = {
835
- type: {
836
- name: "Composite",
837
- className: "SharedPrivateLinkResourceProperties",
838
- modelProperties: {
839
- privateLinkResourceId: {
840
- serializedName: "privateLinkResourceId",
841
- type: {
842
- name: "String",
843
- },
844
- },
845
- groupId: {
846
- serializedName: "groupId",
847
- type: {
848
- name: "String",
849
- },
850
- },
851
- requestMessage: {
852
- serializedName: "requestMessage",
853
- type: {
854
- name: "String",
855
- },
856
- },
857
- resourceRegion: {
858
- serializedName: "resourceRegion",
859
- type: {
860
- name: "String",
861
- },
862
- },
863
- status: {
864
- serializedName: "status",
865
- type: {
866
- name: "String",
867
- },
868
- },
869
- provisioningState: {
870
- serializedName: "provisioningState",
871
- type: {
872
- name: "String",
873
- },
874
- },
875
- },
876
- },
877
- };
878
- const Sku = {
879
- type: {
880
- name: "Composite",
881
- className: "Sku",
882
- modelProperties: {
883
- name: {
884
- serializedName: "name",
885
- type: {
886
- name: "String",
887
- },
888
- },
889
- },
890
- },
891
- };
892
- const Identity = {
893
- type: {
894
- name: "Composite",
895
- className: "Identity",
896
- modelProperties: {
897
- principalId: {
898
- serializedName: "principalId",
899
- readOnly: true,
900
- type: {
901
- name: "String",
902
- },
903
- },
904
- tenantId: {
905
- serializedName: "tenantId",
906
- readOnly: true,
907
- type: {
908
- name: "String",
909
- },
910
- },
911
- type: {
912
- serializedName: "type",
913
- required: true,
914
- type: {
915
- name: "String",
916
- },
917
- },
918
- userAssignedIdentities: {
919
- serializedName: "userAssignedIdentities",
920
- type: {
921
- name: "Dictionary",
922
- value: {
923
- type: {
924
- name: "Composite",
925
- className: "UserAssignedManagedIdentity",
926
- },
927
- },
928
- },
929
- },
930
- },
931
- },
932
- };
933
- const UserAssignedManagedIdentity = {
934
- type: {
935
- name: "Composite",
936
- className: "UserAssignedManagedIdentity",
937
- modelProperties: {
938
- principalId: {
939
- serializedName: "principalId",
940
- readOnly: true,
941
- type: {
942
- name: "String",
943
- },
944
- },
945
- clientId: {
946
- serializedName: "clientId",
947
- readOnly: true,
948
- type: {
949
- name: "String",
950
- },
951
- },
952
- },
953
- },
954
- };
955
- const SearchServiceListResult = {
956
- type: {
957
- name: "Composite",
958
- className: "SearchServiceListResult",
959
- modelProperties: {
960
- value: {
961
- serializedName: "value",
962
- readOnly: true,
963
- type: {
964
- name: "Sequence",
965
- element: {
966
- type: {
967
- name: "Composite",
968
- className: "SearchService",
969
- },
970
- },
971
- },
972
- },
973
- nextLink: {
974
- serializedName: "nextLink",
975
- readOnly: true,
976
- type: {
977
- name: "String",
978
- },
979
- },
980
- },
981
- },
982
- };
983
- const PrivateLinkResourcesResult = {
984
- type: {
985
- name: "Composite",
986
- className: "PrivateLinkResourcesResult",
987
- modelProperties: {
988
- value: {
989
- serializedName: "value",
990
- readOnly: true,
991
- type: {
992
- name: "Sequence",
993
- element: {
994
- type: {
995
- name: "Composite",
996
- className: "PrivateLinkResource",
997
- },
998
- },
999
- },
1000
- },
1001
- },
1002
- },
1003
- };
1004
- const PrivateLinkResourceProperties = {
1005
- type: {
1006
- name: "Composite",
1007
- className: "PrivateLinkResourceProperties",
1008
- modelProperties: {
1009
- groupId: {
1010
- serializedName: "groupId",
1011
- readOnly: true,
1012
- type: {
1013
- name: "String",
1014
- },
1015
- },
1016
- requiredMembers: {
1017
- serializedName: "requiredMembers",
1018
- readOnly: true,
1019
- type: {
1020
- name: "Sequence",
1021
- element: {
1022
- type: {
1023
- name: "String",
1024
- },
1025
- },
1026
- },
1027
- },
1028
- requiredZoneNames: {
1029
- serializedName: "requiredZoneNames",
1030
- readOnly: true,
1031
- type: {
1032
- name: "Sequence",
1033
- element: {
1034
- type: {
1035
- name: "String",
1036
- },
1037
- },
1038
- },
1039
- },
1040
- shareablePrivateLinkResourceTypes: {
1041
- serializedName: "shareablePrivateLinkResourceTypes",
1042
- readOnly: true,
1043
- type: {
1044
- name: "Sequence",
1045
- element: {
1046
- type: {
1047
- name: "Composite",
1048
- className: "ShareablePrivateLinkResourceType",
1049
- },
1050
- },
1051
- },
1052
- },
1053
- },
1054
- },
1055
- };
1056
- const ShareablePrivateLinkResourceType = {
1057
- type: {
1058
- name: "Composite",
1059
- className: "ShareablePrivateLinkResourceType",
1060
- modelProperties: {
1061
- name: {
1062
- serializedName: "name",
1063
- readOnly: true,
1064
- type: {
1065
- name: "String",
1066
- },
1067
- },
1068
- properties: {
1069
- serializedName: "properties",
1070
- type: {
1071
- name: "Composite",
1072
- className: "ShareablePrivateLinkResourceProperties",
1073
- },
1074
- },
1075
- },
1076
- },
1077
- };
1078
- const ShareablePrivateLinkResourceProperties = {
1079
- type: {
1080
- name: "Composite",
1081
- className: "ShareablePrivateLinkResourceProperties",
1082
- modelProperties: {
1083
- type: {
1084
- serializedName: "type",
1085
- readOnly: true,
1086
- type: {
1087
- name: "String",
1088
- },
1089
- },
1090
- groupId: {
1091
- serializedName: "groupId",
1092
- readOnly: true,
1093
- type: {
1094
- name: "String",
1095
- },
1096
- },
1097
- description: {
1098
- serializedName: "description",
1099
- readOnly: true,
1100
- type: {
1101
- name: "String",
1102
- },
1103
- },
1104
- },
1105
- },
1106
- };
1107
- const PrivateEndpointConnectionListResult = {
1108
- type: {
1109
- name: "Composite",
1110
- className: "PrivateEndpointConnectionListResult",
1111
- modelProperties: {
1112
- value: {
1113
- serializedName: "value",
1114
- readOnly: true,
1115
- type: {
1116
- name: "Sequence",
1117
- element: {
1118
- type: {
1119
- name: "Composite",
1120
- className: "PrivateEndpointConnection",
1121
- },
1122
- },
1123
- },
1124
- },
1125
- nextLink: {
1126
- serializedName: "nextLink",
1127
- readOnly: true,
1128
- type: {
1129
- name: "String",
1130
- },
1131
- },
1132
- },
1133
- },
1134
- };
1135
- const SharedPrivateLinkResourceListResult = {
1136
- type: {
1137
- name: "Composite",
1138
- className: "SharedPrivateLinkResourceListResult",
1139
- modelProperties: {
1140
- value: {
1141
- serializedName: "value",
1142
- readOnly: true,
1143
- type: {
1144
- name: "Sequence",
1145
- element: {
1146
- type: {
1147
- name: "Composite",
1148
- className: "SharedPrivateLinkResource",
1149
- },
1150
- },
1151
- },
1152
- },
1153
- nextLink: {
1154
- serializedName: "nextLink",
1155
- type: {
1156
- name: "String",
1157
- },
1158
- },
1159
- },
1160
- },
1161
- };
1162
- const CheckNameAvailabilityInput = {
1163
- type: {
1164
- name: "Composite",
1165
- className: "CheckNameAvailabilityInput",
1166
- modelProperties: {
1167
- name: {
1168
- serializedName: "name",
1169
- required: true,
1170
- type: {
1171
- name: "String",
1172
- },
1173
- },
1174
- typeParam: {
1175
- defaultValue: "searchServices",
1176
- isConstant: true,
1177
- serializedName: "type",
1178
- type: {
1179
- name: "String",
1180
- },
1181
- },
1182
- },
1183
- },
1184
- };
1185
- const CheckNameAvailabilityOutput = {
1186
- type: {
1187
- name: "Composite",
1188
- className: "CheckNameAvailabilityOutput",
1189
- modelProperties: {
1190
- isNameAvailable: {
1191
- serializedName: "nameAvailable",
1192
- readOnly: true,
1193
- type: {
1194
- name: "Boolean",
1195
- },
1196
- },
1197
- reason: {
1198
- serializedName: "reason",
1199
- readOnly: true,
1200
- type: {
1201
- name: "String",
1202
- },
1203
- },
1204
- message: {
1205
- serializedName: "message",
1206
- readOnly: true,
1207
- type: {
1208
- name: "String",
1209
- },
1210
- },
1211
- },
1212
- },
1213
- };
1214
- const QuotaUsagesListResult = {
1215
- type: {
1216
- name: "Composite",
1217
- className: "QuotaUsagesListResult",
1218
- modelProperties: {
1219
- value: {
1220
- serializedName: "value",
1221
- readOnly: true,
1222
- type: {
1223
- name: "Sequence",
1224
- element: {
1225
- type: {
1226
- name: "Composite",
1227
- className: "QuotaUsageResult",
1228
- },
1229
- },
1230
- },
1231
- },
1232
- nextLink: {
1233
- serializedName: "nextLink",
1234
- readOnly: true,
1235
- type: {
1236
- name: "String",
1237
- },
1238
- },
1239
- },
1240
- },
1241
- };
1242
- const QuotaUsageResult = {
1243
- type: {
1244
- name: "Composite",
1245
- className: "QuotaUsageResult",
1246
- modelProperties: {
1247
- id: {
1248
- serializedName: "id",
1249
- type: {
1250
- name: "String",
1251
- },
1252
- },
1253
- unit: {
1254
- serializedName: "unit",
1255
- type: {
1256
- name: "String",
1257
- },
1258
- },
1259
- currentValue: {
1260
- serializedName: "currentValue",
1261
- type: {
1262
- name: "Number",
1263
- },
1264
- },
1265
- limit: {
1266
- serializedName: "limit",
1267
- type: {
1268
- name: "Number",
1269
- },
1270
- },
1271
- name: {
1272
- serializedName: "name",
1273
- type: {
1274
- name: "Composite",
1275
- className: "QuotaUsageResultName",
1276
- },
1277
- },
1278
- },
1279
- },
1280
- };
1281
- const QuotaUsageResultName = {
1282
- type: {
1283
- name: "Composite",
1284
- className: "QuotaUsageResultName",
1285
- modelProperties: {
1286
- value: {
1287
- serializedName: "value",
1288
- type: {
1289
- name: "String",
1290
- },
1291
- },
1292
- localizedValue: {
1293
- serializedName: "localizedValue",
1294
- type: {
1295
- name: "String",
1296
- },
1297
- },
1298
- },
1299
- },
1300
- };
1301
- const NetworkSecurityPerimeterConfigurationListResult = {
1302
- type: {
1303
- name: "Composite",
1304
- className: "NetworkSecurityPerimeterConfigurationListResult",
1305
- modelProperties: {
1306
- value: {
1307
- serializedName: "value",
1308
- readOnly: true,
1309
- type: {
1310
- name: "Sequence",
1311
- element: {
1312
- type: {
1313
- name: "Composite",
1314
- className: "NetworkSecurityPerimeterConfiguration",
1315
- },
1316
- },
1317
- },
1318
- },
1319
- nextLink: {
1320
- serializedName: "nextLink",
1321
- readOnly: true,
1322
- type: {
1323
- name: "String",
1324
- },
1325
- },
1326
- },
1327
- },
1328
- };
1329
- const NSPConfigPerimeter = {
1330
- type: {
1331
- name: "Composite",
1332
- className: "NSPConfigPerimeter",
1333
- modelProperties: {
1334
- id: {
1335
- serializedName: "id",
1336
- type: {
1337
- name: "String",
1338
- },
1339
- },
1340
- perimeterGuid: {
1341
- serializedName: "perimeterGuid",
1342
- type: {
1343
- name: "String",
1344
- },
1345
- },
1346
- location: {
1347
- serializedName: "location",
1348
- type: {
1349
- name: "String",
1350
- },
1351
- },
1352
- },
1353
- },
1354
- };
1355
- const NSPConfigAssociation = {
1356
- type: {
1357
- name: "Composite",
1358
- className: "NSPConfigAssociation",
1359
- modelProperties: {
1360
- name: {
1361
- serializedName: "name",
1362
- type: {
1363
- name: "String",
1364
- },
1365
- },
1366
- accessMode: {
1367
- serializedName: "accessMode",
1368
- type: {
1369
- name: "String",
1370
- },
1371
- },
1372
- },
1373
- },
1374
- };
1375
- const NSPConfigProfile = {
1376
- type: {
1377
- name: "Composite",
1378
- className: "NSPConfigProfile",
1379
- modelProperties: {
1380
- name: {
1381
- serializedName: "name",
1382
- type: {
1383
- name: "String",
1384
- },
1385
- },
1386
- accessRulesVersion: {
1387
- serializedName: "accessRulesVersion",
1388
- type: {
1389
- name: "String",
1390
- },
1391
- },
1392
- accessRules: {
1393
- serializedName: "accessRules",
1394
- type: {
1395
- name: "Sequence",
1396
- element: {
1397
- type: {
1398
- name: "Composite",
1399
- className: "NSPConfigAccessRule",
1400
- },
1401
- },
1402
- },
1403
- },
1404
- },
1405
- },
1406
- };
1407
- const NSPConfigAccessRule = {
1408
- type: {
1409
- name: "Composite",
1410
- className: "NSPConfigAccessRule",
1411
- modelProperties: {
1412
- name: {
1413
- serializedName: "name",
1414
- type: {
1415
- name: "String",
1416
- },
1417
- },
1418
- properties: {
1419
- serializedName: "properties",
1420
- type: {
1421
- name: "Composite",
1422
- className: "NSPConfigAccessRuleProperties",
1423
- },
1424
- },
1425
- },
1426
- },
1427
- };
1428
- const NSPConfigAccessRuleProperties = {
1429
- type: {
1430
- name: "Composite",
1431
- className: "NSPConfigAccessRuleProperties",
1432
- modelProperties: {
1433
- direction: {
1434
- serializedName: "direction",
1435
- type: {
1436
- name: "String",
1437
- },
1438
- },
1439
- addressPrefixes: {
1440
- serializedName: "addressPrefixes",
1441
- type: {
1442
- name: "Sequence",
1443
- element: {
1444
- type: {
1445
- name: "String",
1446
- },
1447
- },
1448
- },
1449
- },
1450
- fullyQualifiedDomainNames: {
1451
- serializedName: "fullyQualifiedDomainNames",
1452
- type: {
1453
- name: "Sequence",
1454
- element: {
1455
- type: {
1456
- name: "String",
1457
- },
1458
- },
1459
- },
1460
- },
1461
- subscriptions: {
1462
- serializedName: "subscriptions",
1463
- type: {
1464
- name: "Sequence",
1465
- element: {
1466
- type: {
1467
- name: "String",
1468
- },
1469
- },
1470
- },
1471
- },
1472
- networkSecurityPerimeters: {
1473
- serializedName: "networkSecurityPerimeters",
1474
- type: {
1475
- name: "Sequence",
1476
- element: {
1477
- type: {
1478
- name: "Composite",
1479
- className: "NSPConfigNetworkSecurityPerimeterRule",
1480
- },
1481
- },
1482
- },
1483
- },
1484
- },
1485
- },
1486
- };
1487
- const NSPConfigNetworkSecurityPerimeterRule = {
1488
- type: {
1489
- name: "Composite",
1490
- className: "NSPConfigNetworkSecurityPerimeterRule",
1491
- modelProperties: {
1492
- id: {
1493
- serializedName: "id",
1494
- type: {
1495
- name: "String",
1496
- },
1497
- },
1498
- perimeterGuid: {
1499
- serializedName: "perimeterGuid",
1500
- type: {
1501
- name: "String",
1502
- },
1503
- },
1504
- location: {
1505
- serializedName: "location",
1506
- type: {
1507
- name: "String",
1508
- },
1509
- },
1510
- },
1511
- },
1512
- };
1513
- const NSPProvisioningIssue = {
1514
- type: {
1515
- name: "Composite",
1516
- className: "NSPProvisioningIssue",
1517
- modelProperties: {
1518
- name: {
1519
- serializedName: "name",
1520
- type: {
1521
- name: "String",
1522
- },
1523
- },
1524
- properties: {
1525
- serializedName: "properties",
1526
- type: {
1527
- name: "Composite",
1528
- className: "NSPProvisioningIssueProperties",
1529
- },
1530
- },
1531
- },
1532
- },
1533
- };
1534
- const NSPProvisioningIssueProperties = {
1535
- type: {
1536
- name: "Composite",
1537
- className: "NSPProvisioningIssueProperties",
1538
- modelProperties: {
1539
- issueType: {
1540
- serializedName: "issueType",
1541
- type: {
1542
- name: "String",
1543
- },
1544
- },
1545
- severity: {
1546
- serializedName: "severity",
1547
- type: {
1548
- name: "String",
1549
- },
1550
- },
1551
- description: {
1552
- serializedName: "description",
1553
- type: {
1554
- name: "String",
1555
- },
1556
- },
1557
- suggestedResourceIds: {
1558
- serializedName: "suggestedResourceIds",
1559
- type: {
1560
- name: "Sequence",
1561
- element: {
1562
- type: {
1563
- name: "String",
1564
- },
1565
- },
1566
- },
1567
- },
1568
- suggestedAccessRules: {
1569
- serializedName: "suggestedAccessRules",
1570
- type: {
1571
- name: "Sequence",
1572
- element: {
1573
- type: {
1574
- name: "String",
1575
- },
1576
- },
1577
- },
1578
- },
1579
- },
1580
- },
1581
- };
1582
- const AsyncOperationResult = {
1583
- type: {
1584
- name: "Composite",
1585
- className: "AsyncOperationResult",
1586
- modelProperties: {
1587
- status: {
1588
- serializedName: "status",
1589
- type: {
1590
- name: "String",
1591
- },
1592
- },
1593
- },
1594
- },
1595
- };
1596
- const PrivateEndpointConnection = {
1597
- type: {
1598
- name: "Composite",
1599
- className: "PrivateEndpointConnection",
1600
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { properties: {
1601
- serializedName: "properties",
1602
- type: {
1603
- name: "Composite",
1604
- className: "PrivateEndpointConnectionProperties",
1605
- },
1606
- } }),
1607
- },
1608
- };
1609
- const SharedPrivateLinkResource = {
1610
- type: {
1611
- name: "Composite",
1612
- className: "SharedPrivateLinkResource",
1613
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { properties: {
1614
- serializedName: "properties",
1615
- type: {
1616
- name: "Composite",
1617
- className: "SharedPrivateLinkResourceProperties",
1618
- },
1619
- } }),
1620
- },
1621
- };
1622
- const TrackedResource = {
1623
- type: {
1624
- name: "Composite",
1625
- className: "TrackedResource",
1626
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
1627
- serializedName: "tags",
1628
- type: {
1629
- name: "Dictionary",
1630
- value: { type: { name: "String" } },
1631
- },
1632
- }, location: {
1633
- serializedName: "location",
1634
- required: true,
1635
- type: {
1636
- name: "String",
1637
- },
1638
- } }),
1639
- },
1640
- };
1641
- const SearchServiceUpdate = {
1642
- type: {
1643
- name: "Composite",
1644
- className: "SearchServiceUpdate",
1645
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { sku: {
1646
- serializedName: "sku",
1647
- type: {
1648
- name: "Composite",
1649
- className: "Sku",
1650
- },
1651
- }, location: {
1652
- serializedName: "location",
1653
- type: {
1654
- name: "String",
1655
- },
1656
- }, tags: {
1657
- serializedName: "tags",
1658
- type: {
1659
- name: "Dictionary",
1660
- value: { type: { name: "String" } },
1661
- },
1662
- }, identity: {
1663
- serializedName: "identity",
1664
- type: {
1665
- name: "Composite",
1666
- className: "Identity",
1667
- },
1668
- }, replicaCount: {
1669
- defaultValue: 1,
1670
- constraints: {
1671
- InclusiveMaximum: 12,
1672
- InclusiveMinimum: 1,
1673
- },
1674
- serializedName: "properties.replicaCount",
1675
- type: {
1676
- name: "Number",
1677
- },
1678
- }, partitionCount: {
1679
- defaultValue: 1,
1680
- constraints: {
1681
- InclusiveMaximum: 12,
1682
- InclusiveMinimum: 1,
1683
- },
1684
- serializedName: "properties.partitionCount",
1685
- type: {
1686
- name: "Number",
1687
- },
1688
- }, hostingMode: {
1689
- defaultValue: "default",
1690
- serializedName: "properties.hostingMode",
1691
- type: {
1692
- name: "Enum",
1693
- allowedValues: ["default", "highDensity"],
1694
- },
1695
- }, publicNetworkAccess: {
1696
- defaultValue: "enabled",
1697
- serializedName: "properties.publicNetworkAccess",
1698
- type: {
1699
- name: "String",
1700
- },
1701
- }, status: {
1702
- serializedName: "properties.status",
1703
- readOnly: true,
1704
- type: {
1705
- name: "Enum",
1706
- allowedValues: [
1707
- "running",
1708
- "provisioning",
1709
- "deleting",
1710
- "degraded",
1711
- "disabled",
1712
- "error",
1713
- "stopped",
1714
- ],
1715
- },
1716
- }, statusDetails: {
1717
- serializedName: "properties.statusDetails",
1718
- readOnly: true,
1719
- type: {
1720
- name: "String",
1721
- },
1722
- }, provisioningState: {
1723
- serializedName: "properties.provisioningState",
1724
- readOnly: true,
1725
- type: {
1726
- name: "Enum",
1727
- allowedValues: ["succeeded", "provisioning", "failed"],
1728
- },
1729
- }, networkRuleSet: {
1730
- serializedName: "properties.networkRuleSet",
1731
- type: {
1732
- name: "Composite",
1733
- className: "NetworkRuleSet",
1734
- },
1735
- }, disabledDataExfiltrationOptions: {
1736
- serializedName: "properties.disabledDataExfiltrationOptions",
1737
- type: {
1738
- name: "Sequence",
1739
- element: {
1740
- type: {
1741
- name: "String",
1742
- },
1743
- },
1744
- },
1745
- }, encryptionWithCmk: {
1746
- serializedName: "properties.encryptionWithCmk",
1747
- type: {
1748
- name: "Composite",
1749
- className: "EncryptionWithCmk",
1750
- },
1751
- }, disableLocalAuth: {
1752
- serializedName: "properties.disableLocalAuth",
1753
- nullable: true,
1754
- type: {
1755
- name: "Boolean",
1756
- },
1757
- }, authOptions: {
1758
- serializedName: "properties.authOptions",
1759
- type: {
1760
- name: "Composite",
1761
- className: "DataPlaneAuthOptions",
1762
- },
1763
- }, semanticSearch: {
1764
- serializedName: "properties.semanticSearch",
1765
- nullable: true,
1766
- type: {
1767
- name: "String",
1768
- },
1769
- }, privateEndpointConnections: {
1770
- serializedName: "properties.privateEndpointConnections",
1771
- readOnly: true,
1772
- type: {
1773
- name: "Sequence",
1774
- element: {
1775
- type: {
1776
- name: "Composite",
1777
- className: "PrivateEndpointConnection",
1778
- },
1779
- },
1780
- },
1781
- }, sharedPrivateLinkResources: {
1782
- serializedName: "properties.sharedPrivateLinkResources",
1783
- readOnly: true,
1784
- type: {
1785
- name: "Sequence",
1786
- element: {
1787
- type: {
1788
- name: "Composite",
1789
- className: "SharedPrivateLinkResource",
1790
- },
1791
- },
1792
- },
1793
- }, eTag: {
1794
- serializedName: "properties.eTag",
1795
- readOnly: true,
1796
- type: {
1797
- name: "String",
1798
- },
1799
- } }),
1800
- },
1801
- };
1802
- const PrivateLinkResource = {
1803
- type: {
1804
- name: "Composite",
1805
- className: "PrivateLinkResource",
1806
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { properties: {
1807
- serializedName: "properties",
1808
- type: {
1809
- name: "Composite",
1810
- className: "PrivateLinkResourceProperties",
1811
- },
1812
- } }),
1813
- },
1814
- };
1815
- const ProxyResource = {
1816
- type: {
1817
- name: "Composite",
1818
- className: "ProxyResource",
1819
- modelProperties: Object.assign({}, Resource.type.modelProperties),
1820
- },
1821
- };
1822
- const SearchService = {
1823
- type: {
1824
- name: "Composite",
1825
- className: "SearchService",
1826
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { sku: {
1827
- serializedName: "sku",
1828
- type: {
1829
- name: "Composite",
1830
- className: "Sku",
1831
- },
1832
- }, identity: {
1833
- serializedName: "identity",
1834
- type: {
1835
- name: "Composite",
1836
- className: "Identity",
1837
- },
1838
- }, replicaCount: {
1839
- defaultValue: 1,
1840
- constraints: {
1841
- InclusiveMaximum: 12,
1842
- InclusiveMinimum: 1,
1843
- },
1844
- serializedName: "properties.replicaCount",
1845
- type: {
1846
- name: "Number",
1847
- },
1848
- }, partitionCount: {
1849
- defaultValue: 1,
1850
- constraints: {
1851
- InclusiveMaximum: 12,
1852
- InclusiveMinimum: 1,
1853
- },
1854
- serializedName: "properties.partitionCount",
1855
- type: {
1856
- name: "Number",
1857
- },
1858
- }, hostingMode: {
1859
- defaultValue: "default",
1860
- serializedName: "properties.hostingMode",
1861
- type: {
1862
- name: "Enum",
1863
- allowedValues: ["default", "highDensity"],
1864
- },
1865
- }, publicNetworkAccess: {
1866
- defaultValue: "enabled",
1867
- serializedName: "properties.publicNetworkAccess",
1868
- type: {
1869
- name: "String",
1870
- },
1871
- }, status: {
1872
- serializedName: "properties.status",
1873
- readOnly: true,
1874
- type: {
1875
- name: "Enum",
1876
- allowedValues: [
1877
- "running",
1878
- "provisioning",
1879
- "deleting",
1880
- "degraded",
1881
- "disabled",
1882
- "error",
1883
- "stopped",
1884
- ],
1885
- },
1886
- }, statusDetails: {
1887
- serializedName: "properties.statusDetails",
1888
- readOnly: true,
1889
- type: {
1890
- name: "String",
1891
- },
1892
- }, provisioningState: {
1893
- serializedName: "properties.provisioningState",
1894
- readOnly: true,
1895
- type: {
1896
- name: "Enum",
1897
- allowedValues: ["succeeded", "provisioning", "failed"],
1898
- },
1899
- }, networkRuleSet: {
1900
- serializedName: "properties.networkRuleSet",
1901
- type: {
1902
- name: "Composite",
1903
- className: "NetworkRuleSet",
1904
- },
1905
- }, disabledDataExfiltrationOptions: {
1906
- serializedName: "properties.disabledDataExfiltrationOptions",
1907
- type: {
1908
- name: "Sequence",
1909
- element: {
1910
- type: {
1911
- name: "String",
1912
- },
1913
- },
1914
- },
1915
- }, encryptionWithCmk: {
1916
- serializedName: "properties.encryptionWithCmk",
1917
- type: {
1918
- name: "Composite",
1919
- className: "EncryptionWithCmk",
1920
- },
1921
- }, disableLocalAuth: {
1922
- serializedName: "properties.disableLocalAuth",
1923
- nullable: true,
1924
- type: {
1925
- name: "Boolean",
1926
- },
1927
- }, authOptions: {
1928
- serializedName: "properties.authOptions",
1929
- type: {
1930
- name: "Composite",
1931
- className: "DataPlaneAuthOptions",
1932
- },
1933
- }, semanticSearch: {
1934
- serializedName: "properties.semanticSearch",
1935
- nullable: true,
1936
- type: {
1937
- name: "String",
1938
- },
1939
- }, privateEndpointConnections: {
1940
- serializedName: "properties.privateEndpointConnections",
1941
- readOnly: true,
1942
- type: {
1943
- name: "Sequence",
1944
- element: {
1945
- type: {
1946
- name: "Composite",
1947
- className: "PrivateEndpointConnection",
1948
- },
1949
- },
1950
- },
1951
- }, sharedPrivateLinkResources: {
1952
- serializedName: "properties.sharedPrivateLinkResources",
1953
- readOnly: true,
1954
- type: {
1955
- name: "Sequence",
1956
- element: {
1957
- type: {
1958
- name: "Composite",
1959
- className: "SharedPrivateLinkResource",
1960
- },
1961
- },
1962
- },
1963
- }, eTag: {
1964
- serializedName: "properties.eTag",
1965
- readOnly: true,
1966
- type: {
1967
- name: "String",
1968
- },
1969
- } }),
1970
- },
1971
- };
1972
- const NetworkSecurityPerimeterConfiguration = {
1973
- type: {
1974
- name: "Composite",
1975
- className: "NetworkSecurityPerimeterConfiguration",
1976
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { provisioningState: {
1977
- serializedName: "properties.provisioningState",
1978
- readOnly: true,
1979
- type: {
1980
- name: "String",
1981
- },
1982
- }, networkSecurityPerimeter: {
1983
- serializedName: "properties.networkSecurityPerimeter",
1984
- type: {
1985
- name: "Composite",
1986
- className: "NSPConfigPerimeter",
1987
- },
1988
- }, resourceAssociation: {
1989
- serializedName: "properties.resourceAssociation",
1990
- type: {
1991
- name: "Composite",
1992
- className: "NSPConfigAssociation",
1993
- },
1994
- }, profile: {
1995
- serializedName: "properties.profile",
1996
- type: {
1997
- name: "Composite",
1998
- className: "NSPConfigProfile",
1999
- },
2000
- }, provisioningIssues: {
2001
- serializedName: "properties.provisioningIssues",
2002
- type: {
2003
- name: "Sequence",
2004
- element: {
2005
- type: {
2006
- name: "Composite",
2007
- className: "NSPProvisioningIssue",
2008
- },
2009
- },
2010
- },
2011
- } }),
2012
- },
2013
- };
2014
- const NetworkSecurityPerimeterConfigurationsReconcileHeaders = {
2015
- type: {
2016
- name: "Composite",
2017
- className: "NetworkSecurityPerimeterConfigurationsReconcileHeaders",
2018
- modelProperties: {
2019
- location: {
2020
- serializedName: "location",
2021
- type: {
2022
- name: "String",
2023
- },
2024
- },
2025
- },
2026
- },
2027
- };
2028
-
2029
- var Mappers = /*#__PURE__*/Object.freeze({
2030
- __proto__: null,
2031
- AdminKeyResult: AdminKeyResult,
2032
- AsyncOperationResult: AsyncOperationResult,
2033
- CheckNameAvailabilityInput: CheckNameAvailabilityInput,
2034
- CheckNameAvailabilityOutput: CheckNameAvailabilityOutput,
2035
- CloudError: CloudError,
2036
- CloudErrorBody: CloudErrorBody,
2037
- DataPlaneAadOrApiKeyAuthOption: DataPlaneAadOrApiKeyAuthOption,
2038
- DataPlaneAuthOptions: DataPlaneAuthOptions,
2039
- EncryptionWithCmk: EncryptionWithCmk,
2040
- Identity: Identity,
2041
- IpRule: IpRule,
2042
- ListQueryKeysResult: ListQueryKeysResult,
2043
- NSPConfigAccessRule: NSPConfigAccessRule,
2044
- NSPConfigAccessRuleProperties: NSPConfigAccessRuleProperties,
2045
- NSPConfigAssociation: NSPConfigAssociation,
2046
- NSPConfigNetworkSecurityPerimeterRule: NSPConfigNetworkSecurityPerimeterRule,
2047
- NSPConfigPerimeter: NSPConfigPerimeter,
2048
- NSPConfigProfile: NSPConfigProfile,
2049
- NSPProvisioningIssue: NSPProvisioningIssue,
2050
- NSPProvisioningIssueProperties: NSPProvisioningIssueProperties,
2051
- NetworkRuleSet: NetworkRuleSet,
2052
- NetworkSecurityPerimeterConfiguration: NetworkSecurityPerimeterConfiguration,
2053
- NetworkSecurityPerimeterConfigurationListResult: NetworkSecurityPerimeterConfigurationListResult,
2054
- NetworkSecurityPerimeterConfigurationsReconcileHeaders: NetworkSecurityPerimeterConfigurationsReconcileHeaders,
2055
- Operation: Operation,
2056
- OperationAvailability: OperationAvailability,
2057
- OperationDisplay: OperationDisplay,
2058
- OperationListResult: OperationListResult,
2059
- OperationLogsSpecification: OperationLogsSpecification,
2060
- OperationMetricDimension: OperationMetricDimension,
2061
- OperationMetricsSpecification: OperationMetricsSpecification,
2062
- OperationProperties: OperationProperties,
2063
- OperationServiceSpecification: OperationServiceSpecification,
2064
- PrivateEndpointConnection: PrivateEndpointConnection,
2065
- PrivateEndpointConnectionListResult: PrivateEndpointConnectionListResult,
2066
- PrivateEndpointConnectionProperties: PrivateEndpointConnectionProperties,
2067
- PrivateEndpointConnectionPropertiesPrivateEndpoint: PrivateEndpointConnectionPropertiesPrivateEndpoint,
2068
- PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState: PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState,
2069
- PrivateLinkResource: PrivateLinkResource,
2070
- PrivateLinkResourceProperties: PrivateLinkResourceProperties,
2071
- PrivateLinkResourcesResult: PrivateLinkResourcesResult,
2072
- ProxyResource: ProxyResource,
2073
- QueryKey: QueryKey,
2074
- QuotaUsageResult: QuotaUsageResult,
2075
- QuotaUsageResultName: QuotaUsageResultName,
2076
- QuotaUsagesListResult: QuotaUsagesListResult,
2077
- Resource: Resource,
2078
- SearchService: SearchService,
2079
- SearchServiceListResult: SearchServiceListResult,
2080
- SearchServiceUpdate: SearchServiceUpdate,
2081
- ShareablePrivateLinkResourceProperties: ShareablePrivateLinkResourceProperties,
2082
- ShareablePrivateLinkResourceType: ShareablePrivateLinkResourceType,
2083
- SharedPrivateLinkResource: SharedPrivateLinkResource,
2084
- SharedPrivateLinkResourceListResult: SharedPrivateLinkResourceListResult,
2085
- SharedPrivateLinkResourceProperties: SharedPrivateLinkResourceProperties,
2086
- Sku: Sku,
2087
- TrackedResource: TrackedResource,
2088
- UserAssignedManagedIdentity: UserAssignedManagedIdentity
2089
- });
2090
-
2091
- /*
2092
- * Copyright (c) Microsoft Corporation.
2093
- * Licensed under the MIT License.
2094
- *
2095
- * Code generated by Microsoft (R) AutoRest Code Generator.
2096
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2097
- */
2098
- const accept = {
2099
- parameterPath: "accept",
2100
- mapper: {
2101
- defaultValue: "application/json",
2102
- isConstant: true,
2103
- serializedName: "Accept",
2104
- type: {
2105
- name: "String",
2106
- },
2107
- },
2108
- };
2109
- const $host = {
2110
- parameterPath: "$host",
2111
- mapper: {
2112
- serializedName: "$host",
2113
- required: true,
2114
- type: {
2115
- name: "String",
2116
- },
2117
- },
2118
- skipEncoding: true,
2119
- };
2120
- const apiVersion = {
2121
- parameterPath: "apiVersion",
2122
- mapper: {
2123
- defaultValue: "2024-03-01-preview",
2124
- isConstant: true,
2125
- serializedName: "api-version",
2126
- type: {
2127
- name: "String",
2128
- },
2129
- },
2130
- };
2131
- const resourceGroupName = {
2132
- parameterPath: "resourceGroupName",
2133
- mapper: {
2134
- serializedName: "resourceGroupName",
2135
- required: true,
2136
- type: {
2137
- name: "String",
2138
- },
2139
- },
2140
- };
2141
- const searchServiceName = {
2142
- parameterPath: "searchServiceName",
2143
- mapper: {
2144
- constraints: {
2145
- Pattern: new RegExp("^(?=.{2,60}$)[a-z0-9][a-z0-9]+(-[a-z0-9]+)*$"),
2146
- },
2147
- serializedName: "searchServiceName",
2148
- required: true,
2149
- type: {
2150
- name: "String",
2151
- },
2152
- },
2153
- };
2154
- const clientRequestId = {
2155
- parameterPath: [
2156
- "options",
2157
- "searchManagementRequestOptions",
2158
- "clientRequestId",
2159
- ],
2160
- mapper: {
2161
- serializedName: "x-ms-client-request-id",
2162
- type: {
2163
- name: "Uuid",
2164
- },
2165
- },
2166
- };
2167
- const subscriptionId = {
2168
- parameterPath: "subscriptionId",
2169
- mapper: {
2170
- serializedName: "subscriptionId",
2171
- required: true,
2172
- type: {
2173
- name: "String",
2174
- },
2175
- },
2176
- };
2177
- const keyKind = {
2178
- parameterPath: "keyKind",
2179
- mapper: {
2180
- serializedName: "keyKind",
2181
- required: true,
2182
- type: {
2183
- name: "Enum",
2184
- allowedValues: ["primary", "secondary"],
2185
- },
2186
- },
2187
- };
2188
- const name = {
2189
- parameterPath: "name",
2190
- mapper: {
2191
- serializedName: "name",
2192
- required: true,
2193
- type: {
2194
- name: "String",
2195
- },
2196
- },
2197
- };
2198
- const key = {
2199
- parameterPath: "key",
2200
- mapper: {
2201
- serializedName: "key",
2202
- required: true,
2203
- type: {
2204
- name: "String",
2205
- },
2206
- },
2207
- };
2208
- const nextLink = {
2209
- parameterPath: "nextLink",
2210
- mapper: {
2211
- serializedName: "nextLink",
2212
- required: true,
2213
- type: {
2214
- name: "String",
2215
- },
2216
- },
2217
- skipEncoding: true,
2218
- };
2219
- const contentType = {
2220
- parameterPath: ["options", "contentType"],
2221
- mapper: {
2222
- defaultValue: "application/json",
2223
- isConstant: true,
2224
- serializedName: "Content-Type",
2225
- type: {
2226
- name: "String",
2227
- },
2228
- },
2229
- };
2230
- const service = {
2231
- parameterPath: "service",
2232
- mapper: SearchService,
2233
- };
2234
- const searchServiceName1 = {
2235
- parameterPath: "searchServiceName",
2236
- mapper: {
2237
- serializedName: "searchServiceName",
2238
- required: true,
2239
- type: {
2240
- name: "String",
2241
- },
2242
- },
2243
- };
2244
- const service1 = {
2245
- parameterPath: "service",
2246
- mapper: SearchServiceUpdate,
2247
- };
2248
- const privateEndpointConnection = {
2249
- parameterPath: "privateEndpointConnection",
2250
- mapper: PrivateEndpointConnection,
2251
- };
2252
- const privateEndpointConnectionName = {
2253
- parameterPath: "privateEndpointConnectionName",
2254
- mapper: {
2255
- serializedName: "privateEndpointConnectionName",
2256
- required: true,
2257
- type: {
2258
- name: "String",
2259
- },
2260
- },
2261
- };
2262
- const sharedPrivateLinkResource = {
2263
- parameterPath: "sharedPrivateLinkResource",
2264
- mapper: SharedPrivateLinkResource,
2265
- };
2266
- const sharedPrivateLinkResourceName = {
2267
- parameterPath: "sharedPrivateLinkResourceName",
2268
- mapper: {
2269
- serializedName: "sharedPrivateLinkResourceName",
2270
- required: true,
2271
- type: {
2272
- name: "String",
2273
- },
2274
- },
2275
- };
2276
- const location = {
2277
- parameterPath: "location",
2278
- mapper: {
2279
- serializedName: "location",
2280
- required: true,
2281
- type: {
2282
- name: "String",
2283
- },
2284
- },
2285
- };
2286
- const skuName = {
2287
- parameterPath: "skuName",
2288
- mapper: {
2289
- serializedName: "skuName",
2290
- required: true,
2291
- type: {
2292
- name: "String",
2293
- },
2294
- },
2295
- };
2296
- const nspConfigName = {
2297
- parameterPath: "nspConfigName",
2298
- mapper: {
2299
- constraints: {
2300
- Pattern: new RegExp("^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}\\.[a-z][a-z0-9]*$"),
2301
- MaxLength: 100,
2302
- MinLength: 38,
2303
- },
2304
- serializedName: "nspConfigName",
2305
- required: true,
2306
- type: {
2307
- name: "String",
2308
- },
2309
- },
2310
- };
2311
-
2312
- /*
2313
- * Copyright (c) Microsoft Corporation.
2314
- * Licensed under the MIT License.
2315
- *
2316
- * Code generated by Microsoft (R) AutoRest Code Generator.
2317
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2318
- */
2319
- /// <reference lib="esnext.asynciterable" />
2320
- /** Class containing Operations operations. */
2321
- class OperationsImpl {
2322
- /**
2323
- * Initialize a new instance of the class Operations class.
2324
- * @param client Reference to the service client
2325
- */
2326
- constructor(client) {
2327
- this.client = client;
2328
- }
2329
- /**
2330
- * Lists all of the available REST API operations of the Microsoft.Search provider.
2331
- * @param options The options parameters.
2332
- */
2333
- list(options) {
2334
- const iter = this.listPagingAll(options);
2335
- return {
2336
- next() {
2337
- return iter.next();
2338
- },
2339
- [Symbol.asyncIterator]() {
2340
- return this;
2341
- },
2342
- byPage: (settings) => {
2343
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2344
- throw new Error("maxPageSize is not supported by this operation.");
2345
- }
2346
- return this.listPagingPage(options, settings);
2347
- },
2348
- };
2349
- }
2350
- listPagingPage(options, _settings) {
2351
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2352
- let result;
2353
- result = yield tslib.__await(this._list(options));
2354
- yield yield tslib.__await(result.value || []);
2355
- });
2356
- }
2357
- listPagingAll(options) {
2358
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2359
- var _a, e_1, _b, _c;
2360
- try {
2361
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2362
- _c = _f.value;
2363
- _d = false;
2364
- const page = _c;
2365
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2366
- }
2367
- }
2368
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2369
- finally {
2370
- try {
2371
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2372
- }
2373
- finally { if (e_1) throw e_1.error; }
2374
- }
2375
- });
2376
- }
2377
- /**
2378
- * Lists all of the available REST API operations of the Microsoft.Search provider.
2379
- * @param options The options parameters.
2380
- */
2381
- _list(options) {
2382
- return this.client.sendOperationRequest({ options }, listOperationSpec);
2383
- }
2384
- }
2385
- // Operation Specifications
2386
- const serializer$9 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2387
- const listOperationSpec = {
2388
- path: "/providers/Microsoft.Search/operations",
2389
- httpMethod: "GET",
2390
- responses: {
2391
- 200: {
2392
- bodyMapper: OperationListResult,
2393
- },
2394
- default: {
2395
- bodyMapper: CloudError,
2396
- },
2397
- },
2398
- queryParameters: [apiVersion],
2399
- urlParameters: [$host],
2400
- headerParameters: [accept],
2401
- serializer: serializer$9,
2402
- };
2403
-
2404
- /*
2405
- * Copyright (c) Microsoft Corporation.
2406
- * Licensed under the MIT License.
2407
- *
2408
- * Code generated by Microsoft (R) AutoRest Code Generator.
2409
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2410
- */
2411
- /** Class containing AdminKeys operations. */
2412
- class AdminKeysImpl {
2413
- /**
2414
- * Initialize a new instance of the class AdminKeys class.
2415
- * @param client Reference to the service client
2416
- */
2417
- constructor(client) {
2418
- this.client = client;
2419
- }
2420
- /**
2421
- * Gets the primary and secondary admin API keys for the specified Azure AI Search service.
2422
- * @param resourceGroupName The name of the resource group within the current subscription. You can
2423
- * obtain this value from the Azure Resource Manager API or the portal.
2424
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
2425
- * resource group.
2426
- * @param options The options parameters.
2427
- */
2428
- get(resourceGroupName, searchServiceName, options) {
2429
- return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, options }, getOperationSpec$4);
2430
- }
2431
- /**
2432
- * Regenerates either the primary or secondary admin API key. You can only regenerate one key at a
2433
- * time.
2434
- * @param resourceGroupName The name of the resource group within the current subscription. You can
2435
- * obtain this value from the Azure Resource Manager API or the portal.
2436
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
2437
- * resource group.
2438
- * @param keyKind Specifies which key to regenerate. Valid values include 'primary' and 'secondary'.
2439
- * @param options The options parameters.
2440
- */
2441
- regenerate(resourceGroupName, searchServiceName, keyKind, options) {
2442
- return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, keyKind, options }, regenerateOperationSpec);
2443
- }
2444
- }
2445
- // Operation Specifications
2446
- const serializer$8 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2447
- const getOperationSpec$4 = {
2448
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listAdminKeys",
2449
- httpMethod: "POST",
2450
- responses: {
2451
- 200: {
2452
- bodyMapper: AdminKeyResult,
2453
- },
2454
- default: {
2455
- bodyMapper: CloudError,
2456
- },
2457
- },
2458
- queryParameters: [apiVersion],
2459
- urlParameters: [
2460
- $host,
2461
- resourceGroupName,
2462
- searchServiceName,
2463
- subscriptionId,
2464
- ],
2465
- headerParameters: [accept, clientRequestId],
2466
- serializer: serializer$8,
2467
- };
2468
- const regenerateOperationSpec = {
2469
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/regenerateAdminKey/{keyKind}",
2470
- httpMethod: "POST",
2471
- responses: {
2472
- 200: {
2473
- bodyMapper: AdminKeyResult,
2474
- },
2475
- default: {
2476
- bodyMapper: CloudError,
2477
- },
2478
- },
2479
- queryParameters: [apiVersion],
2480
- urlParameters: [
2481
- $host,
2482
- resourceGroupName,
2483
- searchServiceName,
2484
- subscriptionId,
2485
- keyKind,
2486
- ],
2487
- headerParameters: [accept, clientRequestId],
2488
- serializer: serializer$8,
2489
- };
2490
-
2491
- /*
2492
- * Copyright (c) Microsoft Corporation.
2493
- * Licensed under the MIT License.
2494
- *
2495
- * Code generated by Microsoft (R) AutoRest Code Generator.
2496
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2497
- */
2498
- /// <reference lib="esnext.asynciterable" />
2499
- /** Class containing QueryKeys operations. */
2500
- class QueryKeysImpl {
2501
- /**
2502
- * Initialize a new instance of the class QueryKeys class.
2503
- * @param client Reference to the service client
2504
- */
2505
- constructor(client) {
2506
- this.client = client;
2507
- }
2508
- /**
2509
- * Returns the list of query API keys for the given Azure AI Search service.
2510
- * @param resourceGroupName The name of the resource group within the current subscription. You can
2511
- * obtain this value from the Azure Resource Manager API or the portal.
2512
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
2513
- * resource group.
2514
- * @param options The options parameters.
2515
- */
2516
- listBySearchService(resourceGroupName, searchServiceName, options) {
2517
- const iter = this.listBySearchServicePagingAll(resourceGroupName, searchServiceName, options);
2518
- return {
2519
- next() {
2520
- return iter.next();
2521
- },
2522
- [Symbol.asyncIterator]() {
2523
- return this;
2524
- },
2525
- byPage: (settings) => {
2526
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2527
- throw new Error("maxPageSize is not supported by this operation.");
2528
- }
2529
- return this.listBySearchServicePagingPage(resourceGroupName, searchServiceName, options, settings);
2530
- },
2531
- };
2532
- }
2533
- listBySearchServicePagingPage(resourceGroupName, searchServiceName, options, settings) {
2534
- return tslib.__asyncGenerator(this, arguments, function* listBySearchServicePagingPage_1() {
2535
- let result;
2536
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2537
- if (!continuationToken) {
2538
- result = yield tslib.__await(this._listBySearchService(resourceGroupName, searchServiceName, options));
2539
- let page = result.value || [];
2540
- continuationToken = result.nextLink;
2541
- setContinuationToken(page, continuationToken);
2542
- yield yield tslib.__await(page);
2543
- }
2544
- while (continuationToken) {
2545
- result = yield tslib.__await(this._listBySearchServiceNext(resourceGroupName, searchServiceName, continuationToken, options));
2546
- continuationToken = result.nextLink;
2547
- let page = result.value || [];
2548
- setContinuationToken(page, continuationToken);
2549
- yield yield tslib.__await(page);
2550
- }
2551
- });
2552
- }
2553
- listBySearchServicePagingAll(resourceGroupName, searchServiceName, options) {
2554
- return tslib.__asyncGenerator(this, arguments, function* listBySearchServicePagingAll_1() {
2555
- var _a, e_1, _b, _c;
2556
- try {
2557
- for (var _d = true, _e = tslib.__asyncValues(this.listBySearchServicePagingPage(resourceGroupName, searchServiceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2558
- _c = _f.value;
2559
- _d = false;
2560
- const page = _c;
2561
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2562
- }
2563
- }
2564
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2565
- finally {
2566
- try {
2567
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2568
- }
2569
- finally { if (e_1) throw e_1.error; }
2570
- }
2571
- });
2572
- }
2573
- /**
2574
- * Generates a new query key for the specified search service. You can create up to 50 query keys per
2575
- * service.
2576
- * @param resourceGroupName The name of the resource group within the current subscription. You can
2577
- * obtain this value from the Azure Resource Manager API or the portal.
2578
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
2579
- * resource group.
2580
- * @param name The name of the new query API key.
2581
- * @param options The options parameters.
2582
- */
2583
- create(resourceGroupName, searchServiceName, name, options) {
2584
- return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, name, options }, createOperationSpec);
2585
- }
2586
- /**
2587
- * Returns the list of query API keys for the given Azure AI Search service.
2588
- * @param resourceGroupName The name of the resource group within the current subscription. You can
2589
- * obtain this value from the Azure Resource Manager API or the portal.
2590
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
2591
- * resource group.
2592
- * @param options The options parameters.
2593
- */
2594
- _listBySearchService(resourceGroupName, searchServiceName, options) {
2595
- return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, options }, listBySearchServiceOperationSpec);
2596
- }
2597
- /**
2598
- * Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for
2599
- * regenerating a query key is to delete and then recreate it.
2600
- * @param resourceGroupName The name of the resource group within the current subscription. You can
2601
- * obtain this value from the Azure Resource Manager API or the portal.
2602
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
2603
- * resource group.
2604
- * @param key The query key to be deleted. Query keys are identified by value, not by name.
2605
- * @param options The options parameters.
2606
- */
2607
- delete(resourceGroupName, searchServiceName, key, options) {
2608
- return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, key, options }, deleteOperationSpec$3);
2609
- }
2610
- /**
2611
- * ListBySearchServiceNext
2612
- * @param resourceGroupName The name of the resource group within the current subscription. You can
2613
- * obtain this value from the Azure Resource Manager API or the portal.
2614
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
2615
- * resource group.
2616
- * @param nextLink The nextLink from the previous successful call to the ListBySearchService method.
2617
- * @param options The options parameters.
2618
- */
2619
- _listBySearchServiceNext(resourceGroupName, searchServiceName, nextLink, options) {
2620
- return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, nextLink, options }, listBySearchServiceNextOperationSpec);
2621
- }
2622
- }
2623
- // Operation Specifications
2624
- const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2625
- const createOperationSpec = {
2626
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/createQueryKey/{name}",
2627
- httpMethod: "POST",
2628
- responses: {
2629
- 200: {
2630
- bodyMapper: QueryKey,
2631
- },
2632
- default: {
2633
- bodyMapper: CloudError,
2634
- },
2635
- },
2636
- queryParameters: [apiVersion],
2637
- urlParameters: [
2638
- $host,
2639
- resourceGroupName,
2640
- searchServiceName,
2641
- subscriptionId,
2642
- name,
2643
- ],
2644
- headerParameters: [accept, clientRequestId],
2645
- serializer: serializer$7,
2646
- };
2647
- const listBySearchServiceOperationSpec = {
2648
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listQueryKeys",
2649
- httpMethod: "POST",
2650
- responses: {
2651
- 200: {
2652
- bodyMapper: ListQueryKeysResult,
2653
- },
2654
- default: {
2655
- bodyMapper: CloudError,
2656
- },
2657
- },
2658
- queryParameters: [apiVersion],
2659
- urlParameters: [
2660
- $host,
2661
- resourceGroupName,
2662
- searchServiceName,
2663
- subscriptionId,
2664
- ],
2665
- headerParameters: [accept, clientRequestId],
2666
- serializer: serializer$7,
2667
- };
2668
- const deleteOperationSpec$3 = {
2669
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/deleteQueryKey/{key}",
2670
- httpMethod: "DELETE",
2671
- responses: {
2672
- 200: {},
2673
- 204: {},
2674
- 404: {},
2675
- default: {
2676
- bodyMapper: CloudError,
2677
- },
2678
- },
2679
- queryParameters: [apiVersion],
2680
- urlParameters: [
2681
- $host,
2682
- resourceGroupName,
2683
- searchServiceName,
2684
- subscriptionId,
2685
- key,
2686
- ],
2687
- headerParameters: [accept, clientRequestId],
2688
- serializer: serializer$7,
2689
- };
2690
- const listBySearchServiceNextOperationSpec = {
2691
- path: "{nextLink}",
2692
- httpMethod: "GET",
2693
- responses: {
2694
- 200: {
2695
- bodyMapper: ListQueryKeysResult,
2696
- },
2697
- default: {
2698
- bodyMapper: CloudError,
2699
- },
2700
- },
2701
- urlParameters: [
2702
- $host,
2703
- resourceGroupName,
2704
- searchServiceName,
2705
- subscriptionId,
2706
- nextLink,
2707
- ],
2708
- headerParameters: [accept, clientRequestId],
2709
- serializer: serializer$7,
2710
- };
2711
-
2712
- /*
2713
- * Copyright (c) Microsoft Corporation.
2714
- * Licensed under the MIT License.
2715
- *
2716
- * Code generated by Microsoft (R) AutoRest Code Generator.
2717
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2718
- */
2719
- function createLroSpec(inputs) {
2720
- const { args, spec, sendOperationFn } = inputs;
2721
- return {
2722
- requestMethod: spec.httpMethod,
2723
- requestPath: spec.path,
2724
- sendInitialRequest: () => sendOperationFn(args, spec),
2725
- sendPollRequest: (path, options) => {
2726
- const restSpec = tslib.__rest(spec, ["requestBody"]);
2727
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
2728
- },
2729
- };
2730
- }
2731
-
2732
- /*
2733
- * Copyright (c) Microsoft Corporation.
2734
- * Licensed under the MIT License.
2735
- *
2736
- * Code generated by Microsoft (R) AutoRest Code Generator.
2737
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2738
- */
2739
- /// <reference lib="esnext.asynciterable" />
2740
- /** Class containing Services operations. */
2741
- class ServicesImpl {
2742
- /**
2743
- * Initialize a new instance of the class Services class.
2744
- * @param client Reference to the service client
2745
- */
2746
- constructor(client) {
2747
- this.client = client;
2748
- }
2749
- /**
2750
- * Gets a list of all Search services in the given resource group.
2751
- * @param resourceGroupName The name of the resource group within the current subscription. You can
2752
- * obtain this value from the Azure Resource Manager API or the portal.
2753
- * @param options The options parameters.
2754
- */
2755
- listByResourceGroup(resourceGroupName, options) {
2756
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
2757
- return {
2758
- next() {
2759
- return iter.next();
2760
- },
2761
- [Symbol.asyncIterator]() {
2762
- return this;
2763
- },
2764
- byPage: (settings) => {
2765
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2766
- throw new Error("maxPageSize is not supported by this operation.");
2767
- }
2768
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
2769
- },
2770
- };
2771
- }
2772
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
2773
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
2774
- let result;
2775
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2776
- if (!continuationToken) {
2777
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
2778
- let page = result.value || [];
2779
- continuationToken = result.nextLink;
2780
- setContinuationToken(page, continuationToken);
2781
- yield yield tslib.__await(page);
2782
- }
2783
- while (continuationToken) {
2784
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
2785
- continuationToken = result.nextLink;
2786
- let page = result.value || [];
2787
- setContinuationToken(page, continuationToken);
2788
- yield yield tslib.__await(page);
2789
- }
2790
- });
2791
- }
2792
- listByResourceGroupPagingAll(resourceGroupName, options) {
2793
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
2794
- var _a, e_1, _b, _c;
2795
- try {
2796
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2797
- _c = _f.value;
2798
- _d = false;
2799
- const page = _c;
2800
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2801
- }
2802
- }
2803
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2804
- finally {
2805
- try {
2806
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2807
- }
2808
- finally { if (e_1) throw e_1.error; }
2809
- }
2810
- });
2811
- }
2812
- /**
2813
- * Gets a list of all Search services in the given subscription.
2814
- * @param options The options parameters.
2815
- */
2816
- listBySubscription(options) {
2817
- const iter = this.listBySubscriptionPagingAll(options);
2818
- return {
2819
- next() {
2820
- return iter.next();
2821
- },
2822
- [Symbol.asyncIterator]() {
2823
- return this;
2824
- },
2825
- byPage: (settings) => {
2826
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2827
- throw new Error("maxPageSize is not supported by this operation.");
2828
- }
2829
- return this.listBySubscriptionPagingPage(options, settings);
2830
- },
2831
- };
2832
- }
2833
- listBySubscriptionPagingPage(options, settings) {
2834
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
2835
- let result;
2836
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2837
- if (!continuationToken) {
2838
- result = yield tslib.__await(this._listBySubscription(options));
2839
- let page = result.value || [];
2840
- continuationToken = result.nextLink;
2841
- setContinuationToken(page, continuationToken);
2842
- yield yield tslib.__await(page);
2843
- }
2844
- while (continuationToken) {
2845
- result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
2846
- continuationToken = result.nextLink;
2847
- let page = result.value || [];
2848
- setContinuationToken(page, continuationToken);
2849
- yield yield tslib.__await(page);
2850
- }
2851
- });
2852
- }
2853
- listBySubscriptionPagingAll(options) {
2854
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
2855
- var _a, e_2, _b, _c;
2856
- try {
2857
- for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2858
- _c = _f.value;
2859
- _d = false;
2860
- const page = _c;
2861
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2862
- }
2863
- }
2864
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
2865
- finally {
2866
- try {
2867
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2868
- }
2869
- finally { if (e_2) throw e_2.error; }
2870
- }
2871
- });
2872
- }
2873
- /**
2874
- * Creates or updates a search service in the given resource group. If the search service already
2875
- * exists, all properties will be updated with the given values.
2876
- * @param resourceGroupName The name of the resource group within the current subscription. You can
2877
- * obtain this value from the Azure Resource Manager API or the portal.
2878
- * @param searchServiceName The name of the Azure AI Search service to create or update. Search service
2879
- * names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or
2880
- * last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in
2881
- * length. Search service names must be globally unique since they are part of the service URI
2882
- * (https://<name>.search.windows.net). You cannot change the service name after the service is
2883
- * created.
2884
- * @param service The definition of the search service to create or update.
2885
- * @param options The options parameters.
2886
- */
2887
- beginCreateOrUpdate(resourceGroupName, searchServiceName, service, options) {
2888
- return tslib.__awaiter(this, void 0, void 0, function* () {
2889
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2890
- return this.client.sendOperationRequest(args, spec);
2891
- });
2892
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2893
- var _a;
2894
- let currentRawResponse = undefined;
2895
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2896
- const callback = (rawResponse, flatResponse) => {
2897
- currentRawResponse = rawResponse;
2898
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2899
- };
2900
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2901
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2902
- return {
2903
- flatResponse,
2904
- rawResponse: {
2905
- statusCode: currentRawResponse.status,
2906
- body: currentRawResponse.parsedBody,
2907
- headers: currentRawResponse.headers.toJSON(),
2908
- },
2909
- };
2910
- });
2911
- const lro = createLroSpec({
2912
- sendOperationFn,
2913
- args: { resourceGroupName, searchServiceName, service, options },
2914
- spec: createOrUpdateOperationSpec$1,
2915
- });
2916
- const poller = yield coreLro.createHttpPoller(lro, {
2917
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2918
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2919
- });
2920
- yield poller.poll();
2921
- return poller;
2922
- });
2923
- }
2924
- /**
2925
- * Creates or updates a search service in the given resource group. If the search service already
2926
- * exists, all properties will be updated with the given values.
2927
- * @param resourceGroupName The name of the resource group within the current subscription. You can
2928
- * obtain this value from the Azure Resource Manager API or the portal.
2929
- * @param searchServiceName The name of the Azure AI Search service to create or update. Search service
2930
- * names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or
2931
- * last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in
2932
- * length. Search service names must be globally unique since they are part of the service URI
2933
- * (https://<name>.search.windows.net). You cannot change the service name after the service is
2934
- * created.
2935
- * @param service The definition of the search service to create or update.
2936
- * @param options The options parameters.
2937
- */
2938
- beginCreateOrUpdateAndWait(resourceGroupName, searchServiceName, service, options) {
2939
- return tslib.__awaiter(this, void 0, void 0, function* () {
2940
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, searchServiceName, service, options);
2941
- return poller.pollUntilDone();
2942
- });
2943
- }
2944
- /**
2945
- * Updates an existing search service in the given resource group.
2946
- * @param resourceGroupName The name of the resource group within the current subscription. You can
2947
- * obtain this value from the Azure Resource Manager API or the portal.
2948
- * @param searchServiceName The name of the Azure AI Search service to update.
2949
- * @param service The definition of the search service to update.
2950
- * @param options The options parameters.
2951
- */
2952
- update(resourceGroupName, searchServiceName, service, options) {
2953
- return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, service, options }, updateOperationSpec$1);
2954
- }
2955
- /**
2956
- * Gets the search service with the given name in the given resource group.
2957
- * @param resourceGroupName The name of the resource group within the current subscription. You can
2958
- * obtain this value from the Azure Resource Manager API or the portal.
2959
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
2960
- * resource group.
2961
- * @param options The options parameters.
2962
- */
2963
- get(resourceGroupName, searchServiceName, options) {
2964
- return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, options }, getOperationSpec$3);
2965
- }
2966
- /**
2967
- * Deletes a search service in the given resource group, along with its associated resources.
2968
- * @param resourceGroupName The name of the resource group within the current subscription. You can
2969
- * obtain this value from the Azure Resource Manager API or the portal.
2970
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
2971
- * resource group.
2972
- * @param options The options parameters.
2973
- */
2974
- delete(resourceGroupName, searchServiceName, options) {
2975
- return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, options }, deleteOperationSpec$2);
2976
- }
2977
- /**
2978
- * Gets a list of all Search services in the given resource group.
2979
- * @param resourceGroupName The name of the resource group within the current subscription. You can
2980
- * obtain this value from the Azure Resource Manager API or the portal.
2981
- * @param options The options parameters.
2982
- */
2983
- _listByResourceGroup(resourceGroupName, options) {
2984
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
2985
- }
2986
- /**
2987
- * Gets a list of all Search services in the given subscription.
2988
- * @param options The options parameters.
2989
- */
2990
- _listBySubscription(options) {
2991
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$1);
2992
- }
2993
- /**
2994
- * Checks whether or not the given search service name is available for use. Search service names must
2995
- * be globally unique since they are part of the service URI (https://<name>.search.windows.net).
2996
- * @param name The search service name to validate. Search service names must only contain lowercase
2997
- * letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain
2998
- * consecutive dashes, and must be between 2 and 60 characters in length.
2999
- * @param options The options parameters.
3000
- */
3001
- checkNameAvailability(name, options) {
3002
- return this.client.sendOperationRequest({ name, options }, checkNameAvailabilityOperationSpec);
3003
- }
3004
- /**
3005
- * ListByResourceGroupNext
3006
- * @param resourceGroupName The name of the resource group within the current subscription. You can
3007
- * obtain this value from the Azure Resource Manager API or the portal.
3008
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
3009
- * @param options The options parameters.
3010
- */
3011
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
3012
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
3013
- }
3014
- /**
3015
- * ListBySubscriptionNext
3016
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
3017
- * @param options The options parameters.
3018
- */
3019
- _listBySubscriptionNext(nextLink, options) {
3020
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$1);
3021
- }
3022
- }
3023
- // Operation Specifications
3024
- const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3025
- const createOrUpdateOperationSpec$1 = {
3026
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
3027
- httpMethod: "PUT",
3028
- responses: {
3029
- 200: {
3030
- bodyMapper: SearchService,
3031
- },
3032
- 201: {
3033
- bodyMapper: SearchService,
3034
- },
3035
- 202: {
3036
- bodyMapper: SearchService,
3037
- },
3038
- 204: {
3039
- bodyMapper: SearchService,
3040
- },
3041
- default: {
3042
- bodyMapper: CloudError,
3043
- },
3044
- },
3045
- requestBody: service,
3046
- queryParameters: [apiVersion],
3047
- urlParameters: [
3048
- $host,
3049
- resourceGroupName,
3050
- subscriptionId,
3051
- searchServiceName1,
3052
- ],
3053
- headerParameters: [
3054
- accept,
3055
- clientRequestId,
3056
- contentType,
3057
- ],
3058
- mediaType: "json",
3059
- serializer: serializer$6,
3060
- };
3061
- const updateOperationSpec$1 = {
3062
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
3063
- httpMethod: "PATCH",
3064
- responses: {
3065
- 200: {
3066
- bodyMapper: SearchService,
3067
- },
3068
- default: {
3069
- bodyMapper: CloudError,
3070
- },
3071
- },
3072
- requestBody: service1,
3073
- queryParameters: [apiVersion],
3074
- urlParameters: [
3075
- $host,
3076
- resourceGroupName,
3077
- subscriptionId,
3078
- searchServiceName1,
3079
- ],
3080
- headerParameters: [
3081
- accept,
3082
- clientRequestId,
3083
- contentType,
3084
- ],
3085
- mediaType: "json",
3086
- serializer: serializer$6,
3087
- };
3088
- const getOperationSpec$3 = {
3089
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
3090
- httpMethod: "GET",
3091
- responses: {
3092
- 200: {
3093
- bodyMapper: SearchService,
3094
- },
3095
- default: {
3096
- bodyMapper: CloudError,
3097
- },
3098
- },
3099
- queryParameters: [apiVersion],
3100
- urlParameters: [
3101
- $host,
3102
- resourceGroupName,
3103
- searchServiceName,
3104
- subscriptionId,
3105
- ],
3106
- headerParameters: [accept, clientRequestId],
3107
- serializer: serializer$6,
3108
- };
3109
- const deleteOperationSpec$2 = {
3110
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
3111
- httpMethod: "DELETE",
3112
- responses: {
3113
- 200: {},
3114
- 204: {},
3115
- 404: {},
3116
- default: {
3117
- bodyMapper: CloudError,
3118
- },
3119
- },
3120
- queryParameters: [apiVersion],
3121
- urlParameters: [
3122
- $host,
3123
- resourceGroupName,
3124
- searchServiceName,
3125
- subscriptionId,
3126
- ],
3127
- headerParameters: [accept, clientRequestId],
3128
- serializer: serializer$6,
3129
- };
3130
- const listByResourceGroupOperationSpec = {
3131
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices",
3132
- httpMethod: "GET",
3133
- responses: {
3134
- 200: {
3135
- bodyMapper: SearchServiceListResult,
3136
- },
3137
- default: {
3138
- bodyMapper: CloudError,
3139
- },
3140
- },
3141
- queryParameters: [apiVersion],
3142
- urlParameters: [
3143
- $host,
3144
- resourceGroupName,
3145
- subscriptionId,
3146
- ],
3147
- headerParameters: [accept, clientRequestId],
3148
- serializer: serializer$6,
3149
- };
3150
- const listBySubscriptionOperationSpec$1 = {
3151
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Search/searchServices",
3152
- httpMethod: "GET",
3153
- responses: {
3154
- 200: {
3155
- bodyMapper: SearchServiceListResult,
3156
- },
3157
- default: {
3158
- bodyMapper: CloudError,
3159
- },
3160
- },
3161
- queryParameters: [apiVersion],
3162
- urlParameters: [$host, subscriptionId],
3163
- headerParameters: [accept, clientRequestId],
3164
- serializer: serializer$6,
3165
- };
3166
- const checkNameAvailabilityOperationSpec = {
3167
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Search/checkNameAvailability",
3168
- httpMethod: "POST",
3169
- responses: {
3170
- 200: {
3171
- bodyMapper: CheckNameAvailabilityOutput,
3172
- },
3173
- default: {
3174
- bodyMapper: CloudError,
3175
- },
3176
- },
3177
- requestBody: {
3178
- parameterPath: { name: ["name"], typeParam: ["typeParam"] },
3179
- mapper: Object.assign(Object.assign({}, CheckNameAvailabilityInput), { required: true }),
3180
- },
3181
- queryParameters: [apiVersion],
3182
- urlParameters: [$host, subscriptionId],
3183
- headerParameters: [
3184
- accept,
3185
- clientRequestId,
3186
- contentType,
3187
- ],
3188
- mediaType: "json",
3189
- serializer: serializer$6,
3190
- };
3191
- const listByResourceGroupNextOperationSpec = {
3192
- path: "{nextLink}",
3193
- httpMethod: "GET",
3194
- responses: {
3195
- 200: {
3196
- bodyMapper: SearchServiceListResult,
3197
- },
3198
- default: {
3199
- bodyMapper: CloudError,
3200
- },
3201
- },
3202
- urlParameters: [
3203
- $host,
3204
- resourceGroupName,
3205
- subscriptionId,
3206
- nextLink,
3207
- ],
3208
- headerParameters: [accept, clientRequestId],
3209
- serializer: serializer$6,
3210
- };
3211
- const listBySubscriptionNextOperationSpec$1 = {
3212
- path: "{nextLink}",
3213
- httpMethod: "GET",
3214
- responses: {
3215
- 200: {
3216
- bodyMapper: SearchServiceListResult,
3217
- },
3218
- default: {
3219
- bodyMapper: CloudError,
3220
- },
3221
- },
3222
- urlParameters: [
3223
- $host,
3224
- subscriptionId,
3225
- nextLink,
3226
- ],
3227
- headerParameters: [accept, clientRequestId],
3228
- serializer: serializer$6,
3229
- };
3230
-
3231
- /*
3232
- * Copyright (c) Microsoft Corporation.
3233
- * Licensed under the MIT License.
3234
- *
3235
- * Code generated by Microsoft (R) AutoRest Code Generator.
3236
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3237
- */
3238
- /// <reference lib="esnext.asynciterable" />
3239
- /** Class containing PrivateLinkResources operations. */
3240
- class PrivateLinkResourcesImpl {
3241
- /**
3242
- * Initialize a new instance of the class PrivateLinkResources class.
3243
- * @param client Reference to the service client
3244
- */
3245
- constructor(client) {
3246
- this.client = client;
3247
- }
3248
- /**
3249
- * Gets a list of all supported private link resource types for the given service.
3250
- * @param resourceGroupName The name of the resource group within the current subscription. You can
3251
- * obtain this value from the Azure Resource Manager API or the portal.
3252
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
3253
- * resource group.
3254
- * @param options The options parameters.
3255
- */
3256
- listSupported(resourceGroupName, searchServiceName, options) {
3257
- const iter = this.listSupportedPagingAll(resourceGroupName, searchServiceName, options);
3258
- return {
3259
- next() {
3260
- return iter.next();
3261
- },
3262
- [Symbol.asyncIterator]() {
3263
- return this;
3264
- },
3265
- byPage: (settings) => {
3266
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3267
- throw new Error("maxPageSize is not supported by this operation.");
3268
- }
3269
- return this.listSupportedPagingPage(resourceGroupName, searchServiceName, options, settings);
3270
- },
3271
- };
3272
- }
3273
- listSupportedPagingPage(resourceGroupName, searchServiceName, options, _settings) {
3274
- return tslib.__asyncGenerator(this, arguments, function* listSupportedPagingPage_1() {
3275
- let result;
3276
- result = yield tslib.__await(this._listSupported(resourceGroupName, searchServiceName, options));
3277
- yield yield tslib.__await(result.value || []);
3278
- });
3279
- }
3280
- listSupportedPagingAll(resourceGroupName, searchServiceName, options) {
3281
- return tslib.__asyncGenerator(this, arguments, function* listSupportedPagingAll_1() {
3282
- var _a, e_1, _b, _c;
3283
- try {
3284
- for (var _d = true, _e = tslib.__asyncValues(this.listSupportedPagingPage(resourceGroupName, searchServiceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
3285
- _c = _f.value;
3286
- _d = false;
3287
- const page = _c;
3288
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3289
- }
3290
- }
3291
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
3292
- finally {
3293
- try {
3294
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3295
- }
3296
- finally { if (e_1) throw e_1.error; }
3297
- }
3298
- });
3299
- }
3300
- /**
3301
- * Gets a list of all supported private link resource types for the given service.
3302
- * @param resourceGroupName The name of the resource group within the current subscription. You can
3303
- * obtain this value from the Azure Resource Manager API or the portal.
3304
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
3305
- * resource group.
3306
- * @param options The options parameters.
3307
- */
3308
- _listSupported(resourceGroupName, searchServiceName, options) {
3309
- return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, options }, listSupportedOperationSpec);
3310
- }
3311
- }
3312
- // Operation Specifications
3313
- const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3314
- const listSupportedOperationSpec = {
3315
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateLinkResources",
3316
- httpMethod: "GET",
3317
- responses: {
3318
- 200: {
3319
- bodyMapper: PrivateLinkResourcesResult,
3320
- },
3321
- default: {
3322
- bodyMapper: CloudError,
3323
- },
3324
- },
3325
- queryParameters: [apiVersion],
3326
- urlParameters: [
3327
- $host,
3328
- resourceGroupName,
3329
- searchServiceName,
3330
- subscriptionId,
3331
- ],
3332
- headerParameters: [accept, clientRequestId],
3333
- serializer: serializer$5,
3334
- };
3335
-
3336
- /*
3337
- * Copyright (c) Microsoft Corporation.
3338
- * Licensed under the MIT License.
3339
- *
3340
- * Code generated by Microsoft (R) AutoRest Code Generator.
3341
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3342
- */
3343
- /// <reference lib="esnext.asynciterable" />
3344
- /** Class containing PrivateEndpointConnections operations. */
3345
- class PrivateEndpointConnectionsImpl {
3346
- /**
3347
- * Initialize a new instance of the class PrivateEndpointConnections class.
3348
- * @param client Reference to the service client
3349
- */
3350
- constructor(client) {
3351
- this.client = client;
3352
- }
3353
- /**
3354
- * Gets a list of all private endpoint connections in the given service.
3355
- * @param resourceGroupName The name of the resource group within the current subscription. You can
3356
- * obtain this value from the Azure Resource Manager API or the portal.
3357
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
3358
- * resource group.
3359
- * @param options The options parameters.
3360
- */
3361
- listByService(resourceGroupName, searchServiceName, options) {
3362
- const iter = this.listByServicePagingAll(resourceGroupName, searchServiceName, options);
3363
- return {
3364
- next() {
3365
- return iter.next();
3366
- },
3367
- [Symbol.asyncIterator]() {
3368
- return this;
3369
- },
3370
- byPage: (settings) => {
3371
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3372
- throw new Error("maxPageSize is not supported by this operation.");
3373
- }
3374
- return this.listByServicePagingPage(resourceGroupName, searchServiceName, options, settings);
3375
- },
3376
- };
3377
- }
3378
- listByServicePagingPage(resourceGroupName, searchServiceName, options, settings) {
3379
- return tslib.__asyncGenerator(this, arguments, function* listByServicePagingPage_1() {
3380
- let result;
3381
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3382
- if (!continuationToken) {
3383
- result = yield tslib.__await(this._listByService(resourceGroupName, searchServiceName, options));
3384
- let page = result.value || [];
3385
- continuationToken = result.nextLink;
3386
- setContinuationToken(page, continuationToken);
3387
- yield yield tslib.__await(page);
3388
- }
3389
- while (continuationToken) {
3390
- result = yield tslib.__await(this._listByServiceNext(resourceGroupName, searchServiceName, continuationToken, options));
3391
- continuationToken = result.nextLink;
3392
- let page = result.value || [];
3393
- setContinuationToken(page, continuationToken);
3394
- yield yield tslib.__await(page);
3395
- }
3396
- });
3397
- }
3398
- listByServicePagingAll(resourceGroupName, searchServiceName, options) {
3399
- return tslib.__asyncGenerator(this, arguments, function* listByServicePagingAll_1() {
3400
- var _a, e_1, _b, _c;
3401
- try {
3402
- for (var _d = true, _e = tslib.__asyncValues(this.listByServicePagingPage(resourceGroupName, searchServiceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
3403
- _c = _f.value;
3404
- _d = false;
3405
- const page = _c;
3406
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3407
- }
3408
- }
3409
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
3410
- finally {
3411
- try {
3412
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3413
- }
3414
- finally { if (e_1) throw e_1.error; }
3415
- }
3416
- });
3417
- }
3418
- /**
3419
- * Updates a private endpoint connection to the search service in the given resource group.
3420
- * @param resourceGroupName The name of the resource group within the current subscription. You can
3421
- * obtain this value from the Azure Resource Manager API or the portal.
3422
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
3423
- * resource group.
3424
- * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure AI
3425
- * Search service with the specified resource group.
3426
- * @param privateEndpointConnection The definition of the private endpoint connection to update.
3427
- * @param options The options parameters.
3428
- */
3429
- update(resourceGroupName, searchServiceName, privateEndpointConnectionName, privateEndpointConnection, options) {
3430
- return this.client.sendOperationRequest({
3431
- resourceGroupName,
3432
- searchServiceName,
3433
- privateEndpointConnectionName,
3434
- privateEndpointConnection,
3435
- options,
3436
- }, updateOperationSpec);
3437
- }
3438
- /**
3439
- * Gets the details of the private endpoint connection to the search service in the given resource
3440
- * group.
3441
- * @param resourceGroupName The name of the resource group within the current subscription. You can
3442
- * obtain this value from the Azure Resource Manager API or the portal.
3443
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
3444
- * resource group.
3445
- * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure AI
3446
- * Search service with the specified resource group.
3447
- * @param options The options parameters.
3448
- */
3449
- get(resourceGroupName, searchServiceName, privateEndpointConnectionName, options) {
3450
- return this.client.sendOperationRequest({
3451
- resourceGroupName,
3452
- searchServiceName,
3453
- privateEndpointConnectionName,
3454
- options,
3455
- }, getOperationSpec$2);
3456
- }
3457
- /**
3458
- * Disconnects the private endpoint connection and deletes it from the search service.
3459
- * @param resourceGroupName The name of the resource group within the current subscription. You can
3460
- * obtain this value from the Azure Resource Manager API or the portal.
3461
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
3462
- * resource group.
3463
- * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure AI
3464
- * Search service with the specified resource group.
3465
- * @param options The options parameters.
3466
- */
3467
- delete(resourceGroupName, searchServiceName, privateEndpointConnectionName, options) {
3468
- return this.client.sendOperationRequest({
3469
- resourceGroupName,
3470
- searchServiceName,
3471
- privateEndpointConnectionName,
3472
- options,
3473
- }, deleteOperationSpec$1);
3474
- }
3475
- /**
3476
- * Gets a list of all private endpoint connections in the given service.
3477
- * @param resourceGroupName The name of the resource group within the current subscription. You can
3478
- * obtain this value from the Azure Resource Manager API or the portal.
3479
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
3480
- * resource group.
3481
- * @param options The options parameters.
3482
- */
3483
- _listByService(resourceGroupName, searchServiceName, options) {
3484
- return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, options }, listByServiceOperationSpec$2);
3485
- }
3486
- /**
3487
- * ListByServiceNext
3488
- * @param resourceGroupName The name of the resource group within the current subscription. You can
3489
- * obtain this value from the Azure Resource Manager API or the portal.
3490
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
3491
- * resource group.
3492
- * @param nextLink The nextLink from the previous successful call to the ListByService method.
3493
- * @param options The options parameters.
3494
- */
3495
- _listByServiceNext(resourceGroupName, searchServiceName, nextLink, options) {
3496
- return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, nextLink, options }, listByServiceNextOperationSpec$2);
3497
- }
3498
- }
3499
- // Operation Specifications
3500
- const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3501
- const updateOperationSpec = {
3502
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}",
3503
- httpMethod: "PUT",
3504
- responses: {
3505
- 200: {
3506
- bodyMapper: PrivateEndpointConnection,
3507
- },
3508
- default: {
3509
- bodyMapper: CloudError,
3510
- },
3511
- },
3512
- requestBody: privateEndpointConnection,
3513
- queryParameters: [apiVersion],
3514
- urlParameters: [
3515
- $host,
3516
- resourceGroupName,
3517
- searchServiceName,
3518
- subscriptionId,
3519
- privateEndpointConnectionName,
3520
- ],
3521
- headerParameters: [
3522
- accept,
3523
- clientRequestId,
3524
- contentType,
3525
- ],
3526
- mediaType: "json",
3527
- serializer: serializer$4,
3528
- };
3529
- const getOperationSpec$2 = {
3530
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}",
3531
- httpMethod: "GET",
3532
- responses: {
3533
- 200: {
3534
- bodyMapper: PrivateEndpointConnection,
3535
- },
3536
- default: {
3537
- bodyMapper: CloudError,
3538
- },
3539
- },
3540
- queryParameters: [apiVersion],
3541
- urlParameters: [
3542
- $host,
3543
- resourceGroupName,
3544
- searchServiceName,
3545
- subscriptionId,
3546
- privateEndpointConnectionName,
3547
- ],
3548
- headerParameters: [accept, clientRequestId],
3549
- serializer: serializer$4,
3550
- };
3551
- const deleteOperationSpec$1 = {
3552
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}",
3553
- httpMethod: "DELETE",
3554
- responses: {
3555
- 200: {
3556
- bodyMapper: PrivateEndpointConnection,
3557
- },
3558
- 404: {},
3559
- default: {
3560
- bodyMapper: CloudError,
3561
- },
3562
- },
3563
- queryParameters: [apiVersion],
3564
- urlParameters: [
3565
- $host,
3566
- resourceGroupName,
3567
- searchServiceName,
3568
- subscriptionId,
3569
- privateEndpointConnectionName,
3570
- ],
3571
- headerParameters: [accept, clientRequestId],
3572
- serializer: serializer$4,
3573
- };
3574
- const listByServiceOperationSpec$2 = {
3575
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections",
3576
- httpMethod: "GET",
3577
- responses: {
3578
- 200: {
3579
- bodyMapper: PrivateEndpointConnectionListResult,
3580
- },
3581
- default: {
3582
- bodyMapper: CloudError,
3583
- },
3584
- },
3585
- queryParameters: [apiVersion],
3586
- urlParameters: [
3587
- $host,
3588
- resourceGroupName,
3589
- searchServiceName,
3590
- subscriptionId,
3591
- ],
3592
- headerParameters: [accept, clientRequestId],
3593
- serializer: serializer$4,
3594
- };
3595
- const listByServiceNextOperationSpec$2 = {
3596
- path: "{nextLink}",
3597
- httpMethod: "GET",
3598
- responses: {
3599
- 200: {
3600
- bodyMapper: PrivateEndpointConnectionListResult,
3601
- },
3602
- default: {
3603
- bodyMapper: CloudError,
3604
- },
3605
- },
3606
- urlParameters: [
3607
- $host,
3608
- resourceGroupName,
3609
- searchServiceName,
3610
- subscriptionId,
3611
- nextLink,
3612
- ],
3613
- headerParameters: [accept, clientRequestId],
3614
- serializer: serializer$4,
3615
- };
3616
-
3617
- /*
3618
- * Copyright (c) Microsoft Corporation.
3619
- * Licensed under the MIT License.
3620
- *
3621
- * Code generated by Microsoft (R) AutoRest Code Generator.
3622
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3623
- */
3624
- /// <reference lib="esnext.asynciterable" />
3625
- /** Class containing SharedPrivateLinkResources operations. */
3626
- class SharedPrivateLinkResourcesImpl {
3627
- /**
3628
- * Initialize a new instance of the class SharedPrivateLinkResources class.
3629
- * @param client Reference to the service client
3630
- */
3631
- constructor(client) {
3632
- this.client = client;
3633
- }
3634
- /**
3635
- * Gets a list of all shared private link resources managed by the given service.
3636
- * @param resourceGroupName The name of the resource group within the current subscription. You can
3637
- * obtain this value from the Azure Resource Manager API or the portal.
3638
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
3639
- * resource group.
3640
- * @param options The options parameters.
3641
- */
3642
- listByService(resourceGroupName, searchServiceName, options) {
3643
- const iter = this.listByServicePagingAll(resourceGroupName, searchServiceName, options);
3644
- return {
3645
- next() {
3646
- return iter.next();
3647
- },
3648
- [Symbol.asyncIterator]() {
3649
- return this;
3650
- },
3651
- byPage: (settings) => {
3652
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3653
- throw new Error("maxPageSize is not supported by this operation.");
3654
- }
3655
- return this.listByServicePagingPage(resourceGroupName, searchServiceName, options, settings);
3656
- },
3657
- };
3658
- }
3659
- listByServicePagingPage(resourceGroupName, searchServiceName, options, settings) {
3660
- return tslib.__asyncGenerator(this, arguments, function* listByServicePagingPage_1() {
3661
- let result;
3662
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3663
- if (!continuationToken) {
3664
- result = yield tslib.__await(this._listByService(resourceGroupName, searchServiceName, options));
3665
- let page = result.value || [];
3666
- continuationToken = result.nextLink;
3667
- setContinuationToken(page, continuationToken);
3668
- yield yield tslib.__await(page);
3669
- }
3670
- while (continuationToken) {
3671
- result = yield tslib.__await(this._listByServiceNext(resourceGroupName, searchServiceName, continuationToken, options));
3672
- continuationToken = result.nextLink;
3673
- let page = result.value || [];
3674
- setContinuationToken(page, continuationToken);
3675
- yield yield tslib.__await(page);
3676
- }
3677
- });
3678
- }
3679
- listByServicePagingAll(resourceGroupName, searchServiceName, options) {
3680
- return tslib.__asyncGenerator(this, arguments, function* listByServicePagingAll_1() {
3681
- var _a, e_1, _b, _c;
3682
- try {
3683
- for (var _d = true, _e = tslib.__asyncValues(this.listByServicePagingPage(resourceGroupName, searchServiceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
3684
- _c = _f.value;
3685
- _d = false;
3686
- const page = _c;
3687
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3688
- }
3689
- }
3690
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
3691
- finally {
3692
- try {
3693
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3694
- }
3695
- finally { if (e_1) throw e_1.error; }
3696
- }
3697
- });
3698
- }
3699
- /**
3700
- * Initiates the creation or update of a shared private link resource managed by the search service in
3701
- * the given resource group.
3702
- * @param resourceGroupName The name of the resource group within the current subscription. You can
3703
- * obtain this value from the Azure Resource Manager API or the portal.
3704
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
3705
- * resource group.
3706
- * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
3707
- * Azure AI Search service within the specified resource group.
3708
- * @param sharedPrivateLinkResource The definition of the shared private link resource to create or
3709
- * update.
3710
- * @param options The options parameters.
3711
- */
3712
- beginCreateOrUpdate(resourceGroupName, searchServiceName, sharedPrivateLinkResourceName, sharedPrivateLinkResource, options) {
3713
- return tslib.__awaiter(this, void 0, void 0, function* () {
3714
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3715
- return this.client.sendOperationRequest(args, spec);
3716
- });
3717
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3718
- var _a;
3719
- let currentRawResponse = undefined;
3720
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3721
- const callback = (rawResponse, flatResponse) => {
3722
- currentRawResponse = rawResponse;
3723
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3724
- };
3725
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3726
- const flatResponse = yield directSendOperation(updatedArgs, spec);
3727
- return {
3728
- flatResponse,
3729
- rawResponse: {
3730
- statusCode: currentRawResponse.status,
3731
- body: currentRawResponse.parsedBody,
3732
- headers: currentRawResponse.headers.toJSON(),
3733
- },
3734
- };
3735
- });
3736
- const lro = createLroSpec({
3737
- sendOperationFn,
3738
- args: {
3739
- resourceGroupName,
3740
- searchServiceName,
3741
- sharedPrivateLinkResourceName,
3742
- sharedPrivateLinkResource,
3743
- options,
3744
- },
3745
- spec: createOrUpdateOperationSpec,
3746
- });
3747
- const poller = yield coreLro.createHttpPoller(lro, {
3748
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3749
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3750
- resourceLocationConfig: "azure-async-operation",
3751
- });
3752
- yield poller.poll();
3753
- return poller;
3754
- });
3755
- }
3756
- /**
3757
- * Initiates the creation or update of a shared private link resource managed by the search service in
3758
- * the given resource group.
3759
- * @param resourceGroupName The name of the resource group within the current subscription. You can
3760
- * obtain this value from the Azure Resource Manager API or the portal.
3761
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
3762
- * resource group.
3763
- * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
3764
- * Azure AI Search service within the specified resource group.
3765
- * @param sharedPrivateLinkResource The definition of the shared private link resource to create or
3766
- * update.
3767
- * @param options The options parameters.
3768
- */
3769
- beginCreateOrUpdateAndWait(resourceGroupName, searchServiceName, sharedPrivateLinkResourceName, sharedPrivateLinkResource, options) {
3770
- return tslib.__awaiter(this, void 0, void 0, function* () {
3771
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, searchServiceName, sharedPrivateLinkResourceName, sharedPrivateLinkResource, options);
3772
- return poller.pollUntilDone();
3773
- });
3774
- }
3775
- /**
3776
- * Gets the details of the shared private link resource managed by the search service in the given
3777
- * resource group.
3778
- * @param resourceGroupName The name of the resource group within the current subscription. You can
3779
- * obtain this value from the Azure Resource Manager API or the portal.
3780
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
3781
- * resource group.
3782
- * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
3783
- * Azure AI Search service within the specified resource group.
3784
- * @param options The options parameters.
3785
- */
3786
- get(resourceGroupName, searchServiceName, sharedPrivateLinkResourceName, options) {
3787
- return this.client.sendOperationRequest({
3788
- resourceGroupName,
3789
- searchServiceName,
3790
- sharedPrivateLinkResourceName,
3791
- options,
3792
- }, getOperationSpec$1);
3793
- }
3794
- /**
3795
- * Initiates the deletion of the shared private link resource from the search service.
3796
- * @param resourceGroupName The name of the resource group within the current subscription. You can
3797
- * obtain this value from the Azure Resource Manager API or the portal.
3798
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
3799
- * resource group.
3800
- * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
3801
- * Azure AI Search service within the specified resource group.
3802
- * @param options The options parameters.
3803
- */
3804
- beginDelete(resourceGroupName, searchServiceName, sharedPrivateLinkResourceName, options) {
3805
- return tslib.__awaiter(this, void 0, void 0, function* () {
3806
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3807
- return this.client.sendOperationRequest(args, spec);
3808
- });
3809
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3810
- var _a;
3811
- let currentRawResponse = undefined;
3812
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3813
- const callback = (rawResponse, flatResponse) => {
3814
- currentRawResponse = rawResponse;
3815
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3816
- };
3817
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3818
- const flatResponse = yield directSendOperation(updatedArgs, spec);
3819
- return {
3820
- flatResponse,
3821
- rawResponse: {
3822
- statusCode: currentRawResponse.status,
3823
- body: currentRawResponse.parsedBody,
3824
- headers: currentRawResponse.headers.toJSON(),
3825
- },
3826
- };
3827
- });
3828
- const lro = createLroSpec({
3829
- sendOperationFn,
3830
- args: {
3831
- resourceGroupName,
3832
- searchServiceName,
3833
- sharedPrivateLinkResourceName,
3834
- options,
3835
- },
3836
- spec: deleteOperationSpec,
3837
- });
3838
- const poller = yield coreLro.createHttpPoller(lro, {
3839
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3840
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3841
- resourceLocationConfig: "azure-async-operation",
3842
- });
3843
- yield poller.poll();
3844
- return poller;
3845
- });
3846
- }
3847
- /**
3848
- * Initiates the deletion of the shared private link resource from the search service.
3849
- * @param resourceGroupName The name of the resource group within the current subscription. You can
3850
- * obtain this value from the Azure Resource Manager API or the portal.
3851
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
3852
- * resource group.
3853
- * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
3854
- * Azure AI Search service within the specified resource group.
3855
- * @param options The options parameters.
3856
- */
3857
- beginDeleteAndWait(resourceGroupName, searchServiceName, sharedPrivateLinkResourceName, options) {
3858
- return tslib.__awaiter(this, void 0, void 0, function* () {
3859
- const poller = yield this.beginDelete(resourceGroupName, searchServiceName, sharedPrivateLinkResourceName, options);
3860
- return poller.pollUntilDone();
3861
- });
3862
- }
3863
- /**
3864
- * Gets a list of all shared private link resources managed by the given service.
3865
- * @param resourceGroupName The name of the resource group within the current subscription. You can
3866
- * obtain this value from the Azure Resource Manager API or the portal.
3867
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
3868
- * resource group.
3869
- * @param options The options parameters.
3870
- */
3871
- _listByService(resourceGroupName, searchServiceName, options) {
3872
- return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, options }, listByServiceOperationSpec$1);
3873
- }
3874
- /**
3875
- * ListByServiceNext
3876
- * @param resourceGroupName The name of the resource group within the current subscription. You can
3877
- * obtain this value from the Azure Resource Manager API or the portal.
3878
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
3879
- * resource group.
3880
- * @param nextLink The nextLink from the previous successful call to the ListByService method.
3881
- * @param options The options parameters.
3882
- */
3883
- _listByServiceNext(resourceGroupName, searchServiceName, nextLink, options) {
3884
- return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, nextLink, options }, listByServiceNextOperationSpec$1);
3885
- }
3886
- }
3887
- // Operation Specifications
3888
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3889
- const createOrUpdateOperationSpec = {
3890
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
3891
- httpMethod: "PUT",
3892
- responses: {
3893
- 200: {
3894
- bodyMapper: SharedPrivateLinkResource,
3895
- },
3896
- 201: {
3897
- bodyMapper: SharedPrivateLinkResource,
3898
- },
3899
- 202: {
3900
- bodyMapper: SharedPrivateLinkResource,
3901
- },
3902
- 204: {
3903
- bodyMapper: SharedPrivateLinkResource,
3904
- },
3905
- default: {
3906
- bodyMapper: CloudError,
3907
- },
3908
- },
3909
- requestBody: sharedPrivateLinkResource,
3910
- queryParameters: [apiVersion],
3911
- urlParameters: [
3912
- $host,
3913
- resourceGroupName,
3914
- searchServiceName,
3915
- subscriptionId,
3916
- sharedPrivateLinkResourceName,
3917
- ],
3918
- headerParameters: [
3919
- accept,
3920
- clientRequestId,
3921
- contentType,
3922
- ],
3923
- mediaType: "json",
3924
- serializer: serializer$3,
3925
- };
3926
- const getOperationSpec$1 = {
3927
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
3928
- httpMethod: "GET",
3929
- responses: {
3930
- 200: {
3931
- bodyMapper: SharedPrivateLinkResource,
3932
- },
3933
- default: {
3934
- bodyMapper: CloudError,
3935
- },
3936
- },
3937
- queryParameters: [apiVersion],
3938
- urlParameters: [
3939
- $host,
3940
- resourceGroupName,
3941
- searchServiceName,
3942
- subscriptionId,
3943
- sharedPrivateLinkResourceName,
3944
- ],
3945
- headerParameters: [accept, clientRequestId],
3946
- serializer: serializer$3,
3947
- };
3948
- const deleteOperationSpec = {
3949
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
3950
- httpMethod: "DELETE",
3951
- responses: {
3952
- 200: {},
3953
- 201: {},
3954
- 202: {},
3955
- 204: {},
3956
- default: {
3957
- bodyMapper: CloudError,
3958
- },
3959
- },
3960
- queryParameters: [apiVersion],
3961
- urlParameters: [
3962
- $host,
3963
- resourceGroupName,
3964
- searchServiceName,
3965
- subscriptionId,
3966
- sharedPrivateLinkResourceName,
3967
- ],
3968
- headerParameters: [accept, clientRequestId],
3969
- serializer: serializer$3,
3970
- };
3971
- const listByServiceOperationSpec$1 = {
3972
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources",
3973
- httpMethod: "GET",
3974
- responses: {
3975
- 200: {
3976
- bodyMapper: SharedPrivateLinkResourceListResult,
3977
- },
3978
- default: {
3979
- bodyMapper: CloudError,
3980
- },
3981
- },
3982
- queryParameters: [apiVersion],
3983
- urlParameters: [
3984
- $host,
3985
- resourceGroupName,
3986
- searchServiceName,
3987
- subscriptionId,
3988
- ],
3989
- headerParameters: [accept, clientRequestId],
3990
- serializer: serializer$3,
3991
- };
3992
- const listByServiceNextOperationSpec$1 = {
3993
- path: "{nextLink}",
3994
- httpMethod: "GET",
3995
- responses: {
3996
- 200: {
3997
- bodyMapper: SharedPrivateLinkResourceListResult,
3998
- },
3999
- default: {
4000
- bodyMapper: CloudError,
4001
- },
4002
- },
4003
- urlParameters: [
4004
- $host,
4005
- resourceGroupName,
4006
- searchServiceName,
4007
- subscriptionId,
4008
- nextLink,
4009
- ],
4010
- headerParameters: [accept, clientRequestId],
4011
- serializer: serializer$3,
4012
- };
4013
-
4014
- /*
4015
- * Copyright (c) Microsoft Corporation.
4016
- * Licensed under the MIT License.
4017
- *
4018
- * Code generated by Microsoft (R) AutoRest Code Generator.
4019
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4020
- */
4021
- /// <reference lib="esnext.asynciterable" />
4022
- /** Class containing Usages operations. */
4023
- class UsagesImpl {
4024
- /**
4025
- * Initialize a new instance of the class Usages class.
4026
- * @param client Reference to the service client
4027
- */
4028
- constructor(client) {
4029
- this.client = client;
4030
- }
4031
- /**
4032
- * Get a list of all Azure AI Search quota usages across the subscription.
4033
- * @param location The unique location name for a Microsoft Azure geographic region.
4034
- * @param options The options parameters.
4035
- */
4036
- listBySubscription(location, options) {
4037
- const iter = this.listBySubscriptionPagingAll(location, options);
4038
- return {
4039
- next() {
4040
- return iter.next();
4041
- },
4042
- [Symbol.asyncIterator]() {
4043
- return this;
4044
- },
4045
- byPage: (settings) => {
4046
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4047
- throw new Error("maxPageSize is not supported by this operation.");
4048
- }
4049
- return this.listBySubscriptionPagingPage(location, options, settings);
4050
- },
4051
- };
4052
- }
4053
- listBySubscriptionPagingPage(location, options, settings) {
4054
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
4055
- let result;
4056
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4057
- if (!continuationToken) {
4058
- result = yield tslib.__await(this._listBySubscription(location, options));
4059
- let page = result.value || [];
4060
- continuationToken = result.nextLink;
4061
- setContinuationToken(page, continuationToken);
4062
- yield yield tslib.__await(page);
4063
- }
4064
- while (continuationToken) {
4065
- result = yield tslib.__await(this._listBySubscriptionNext(location, continuationToken, options));
4066
- continuationToken = result.nextLink;
4067
- let page = result.value || [];
4068
- setContinuationToken(page, continuationToken);
4069
- yield yield tslib.__await(page);
4070
- }
4071
- });
4072
- }
4073
- listBySubscriptionPagingAll(location, options) {
4074
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
4075
- var _a, e_1, _b, _c;
4076
- try {
4077
- for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(location, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
4078
- _c = _f.value;
4079
- _d = false;
4080
- const page = _c;
4081
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
4082
- }
4083
- }
4084
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
4085
- finally {
4086
- try {
4087
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
4088
- }
4089
- finally { if (e_1) throw e_1.error; }
4090
- }
4091
- });
4092
- }
4093
- /**
4094
- * Get a list of all Azure AI Search quota usages across the subscription.
4095
- * @param location The unique location name for a Microsoft Azure geographic region.
4096
- * @param options The options parameters.
4097
- */
4098
- _listBySubscription(location, options) {
4099
- return this.client.sendOperationRequest({ location, options }, listBySubscriptionOperationSpec);
4100
- }
4101
- /**
4102
- * ListBySubscriptionNext
4103
- * @param location The unique location name for a Microsoft Azure geographic region.
4104
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
4105
- * @param options The options parameters.
4106
- */
4107
- _listBySubscriptionNext(location, nextLink, options) {
4108
- return this.client.sendOperationRequest({ location, nextLink, options }, listBySubscriptionNextOperationSpec);
4109
- }
4110
- }
4111
- // Operation Specifications
4112
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4113
- const listBySubscriptionOperationSpec = {
4114
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages",
4115
- httpMethod: "GET",
4116
- responses: {
4117
- 200: {
4118
- bodyMapper: QuotaUsagesListResult,
4119
- },
4120
- default: {
4121
- bodyMapper: CloudError,
4122
- },
4123
- },
4124
- queryParameters: [apiVersion],
4125
- urlParameters: [
4126
- $host,
4127
- subscriptionId,
4128
- location,
4129
- ],
4130
- headerParameters: [accept, clientRequestId],
4131
- serializer: serializer$2,
4132
- };
4133
- const listBySubscriptionNextOperationSpec = {
4134
- path: "{nextLink}",
4135
- httpMethod: "GET",
4136
- responses: {
4137
- 200: {
4138
- bodyMapper: QuotaUsagesListResult,
4139
- },
4140
- default: {
4141
- bodyMapper: CloudError,
4142
- },
4143
- },
4144
- urlParameters: [
4145
- $host,
4146
- subscriptionId,
4147
- nextLink,
4148
- location,
4149
- ],
4150
- headerParameters: [accept, clientRequestId],
4151
- serializer: serializer$2,
4152
- };
4153
-
4154
- /*
4155
- * Copyright (c) Microsoft Corporation.
4156
- * Licensed under the MIT License.
4157
- *
4158
- * Code generated by Microsoft (R) AutoRest Code Generator.
4159
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4160
- */
4161
- /// <reference lib="esnext.asynciterable" />
4162
- /** Class containing NetworkSecurityPerimeterConfigurations operations. */
4163
- class NetworkSecurityPerimeterConfigurationsImpl {
4164
- /**
4165
- * Initialize a new instance of the class NetworkSecurityPerimeterConfigurations class.
4166
- * @param client Reference to the service client
4167
- */
4168
- constructor(client) {
4169
- this.client = client;
4170
- }
4171
- /**
4172
- * Gets a list of network security perimeter configurations for a search service.
4173
- * @param resourceGroupName The name of the resource group within the current subscription. You can
4174
- * obtain this value from the Azure Resource Manager API or the portal.
4175
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
4176
- * resource group.
4177
- * @param options The options parameters.
4178
- */
4179
- listByService(resourceGroupName, searchServiceName, options) {
4180
- const iter = this.listByServicePagingAll(resourceGroupName, searchServiceName, options);
4181
- return {
4182
- next() {
4183
- return iter.next();
4184
- },
4185
- [Symbol.asyncIterator]() {
4186
- return this;
4187
- },
4188
- byPage: (settings) => {
4189
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4190
- throw new Error("maxPageSize is not supported by this operation.");
4191
- }
4192
- return this.listByServicePagingPage(resourceGroupName, searchServiceName, options, settings);
4193
- },
4194
- };
4195
- }
4196
- listByServicePagingPage(resourceGroupName, searchServiceName, options, settings) {
4197
- return tslib.__asyncGenerator(this, arguments, function* listByServicePagingPage_1() {
4198
- let result;
4199
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4200
- if (!continuationToken) {
4201
- result = yield tslib.__await(this._listByService(resourceGroupName, searchServiceName, options));
4202
- let page = result.value || [];
4203
- continuationToken = result.nextLink;
4204
- setContinuationToken(page, continuationToken);
4205
- yield yield tslib.__await(page);
4206
- }
4207
- while (continuationToken) {
4208
- result = yield tslib.__await(this._listByServiceNext(resourceGroupName, searchServiceName, continuationToken, options));
4209
- continuationToken = result.nextLink;
4210
- let page = result.value || [];
4211
- setContinuationToken(page, continuationToken);
4212
- yield yield tslib.__await(page);
4213
- }
4214
- });
4215
- }
4216
- listByServicePagingAll(resourceGroupName, searchServiceName, options) {
4217
- return tslib.__asyncGenerator(this, arguments, function* listByServicePagingAll_1() {
4218
- var _a, e_1, _b, _c;
4219
- try {
4220
- for (var _d = true, _e = tslib.__asyncValues(this.listByServicePagingPage(resourceGroupName, searchServiceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
4221
- _c = _f.value;
4222
- _d = false;
4223
- const page = _c;
4224
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
4225
- }
4226
- }
4227
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
4228
- finally {
4229
- try {
4230
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
4231
- }
4232
- finally { if (e_1) throw e_1.error; }
4233
- }
4234
- });
4235
- }
4236
- /**
4237
- * Gets a list of network security perimeter configurations for a search service.
4238
- * @param resourceGroupName The name of the resource group within the current subscription. You can
4239
- * obtain this value from the Azure Resource Manager API or the portal.
4240
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
4241
- * resource group.
4242
- * @param options The options parameters.
4243
- */
4244
- _listByService(resourceGroupName, searchServiceName, options) {
4245
- return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, options }, listByServiceOperationSpec);
4246
- }
4247
- /**
4248
- * Gets a network security perimeter configuration.
4249
- * @param resourceGroupName The name of the resource group within the current subscription. You can
4250
- * obtain this value from the Azure Resource Manager API or the portal.
4251
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
4252
- * resource group.
4253
- * @param nspConfigName The network security configuration name.
4254
- * @param options The options parameters.
4255
- */
4256
- get(resourceGroupName, searchServiceName, nspConfigName, options) {
4257
- return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, nspConfigName, options }, getOperationSpec);
4258
- }
4259
- /**
4260
- * Reconcile network security perimeter configuration for the Azure AI Search resource provider. This
4261
- * triggers a manual resync with network security perimeter configurations by ensuring the search
4262
- * service carries the latest configuration.
4263
- * @param resourceGroupName The name of the resource group within the current subscription. You can
4264
- * obtain this value from the Azure Resource Manager API or the portal.
4265
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
4266
- * resource group.
4267
- * @param nspConfigName The network security configuration name.
4268
- * @param options The options parameters.
4269
- */
4270
- beginReconcile(resourceGroupName, searchServiceName, nspConfigName, options) {
4271
- return tslib.__awaiter(this, void 0, void 0, function* () {
4272
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4273
- return this.client.sendOperationRequest(args, spec);
4274
- });
4275
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4276
- var _a;
4277
- let currentRawResponse = undefined;
4278
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4279
- const callback = (rawResponse, flatResponse) => {
4280
- currentRawResponse = rawResponse;
4281
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4282
- };
4283
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4284
- const flatResponse = yield directSendOperation(updatedArgs, spec);
4285
- return {
4286
- flatResponse,
4287
- rawResponse: {
4288
- statusCode: currentRawResponse.status,
4289
- body: currentRawResponse.parsedBody,
4290
- headers: currentRawResponse.headers.toJSON(),
4291
- },
4292
- };
4293
- });
4294
- const lro = createLroSpec({
4295
- sendOperationFn,
4296
- args: { resourceGroupName, searchServiceName, nspConfigName, options },
4297
- spec: reconcileOperationSpec,
4298
- });
4299
- const poller = yield coreLro.createHttpPoller(lro, {
4300
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4301
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4302
- resourceLocationConfig: "location",
4303
- });
4304
- yield poller.poll();
4305
- return poller;
4306
- });
4307
- }
4308
- /**
4309
- * Reconcile network security perimeter configuration for the Azure AI Search resource provider. This
4310
- * triggers a manual resync with network security perimeter configurations by ensuring the search
4311
- * service carries the latest configuration.
4312
- * @param resourceGroupName The name of the resource group within the current subscription. You can
4313
- * obtain this value from the Azure Resource Manager API or the portal.
4314
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
4315
- * resource group.
4316
- * @param nspConfigName The network security configuration name.
4317
- * @param options The options parameters.
4318
- */
4319
- beginReconcileAndWait(resourceGroupName, searchServiceName, nspConfigName, options) {
4320
- return tslib.__awaiter(this, void 0, void 0, function* () {
4321
- const poller = yield this.beginReconcile(resourceGroupName, searchServiceName, nspConfigName, options);
4322
- return poller.pollUntilDone();
4323
- });
4324
- }
4325
- /**
4326
- * ListByServiceNext
4327
- * @param resourceGroupName The name of the resource group within the current subscription. You can
4328
- * obtain this value from the Azure Resource Manager API or the portal.
4329
- * @param searchServiceName The name of the Azure AI Search service associated with the specified
4330
- * resource group.
4331
- * @param nextLink The nextLink from the previous successful call to the ListByService method.
4332
- * @param options The options parameters.
4333
- */
4334
- _listByServiceNext(resourceGroupName, searchServiceName, nextLink, options) {
4335
- return this.client.sendOperationRequest({ resourceGroupName, searchServiceName, nextLink, options }, listByServiceNextOperationSpec);
4336
- }
4337
- }
4338
- // Operation Specifications
4339
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4340
- const listByServiceOperationSpec = {
4341
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/networkSecurityPerimeterConfigurations",
4342
- httpMethod: "GET",
4343
- responses: {
4344
- 200: {
4345
- bodyMapper: NetworkSecurityPerimeterConfigurationListResult,
4346
- },
4347
- default: {
4348
- bodyMapper: CloudError,
4349
- },
4350
- },
4351
- queryParameters: [apiVersion],
4352
- urlParameters: [
4353
- $host,
4354
- resourceGroupName,
4355
- searchServiceName,
4356
- subscriptionId,
4357
- ],
4358
- headerParameters: [accept],
4359
- serializer: serializer$1,
4360
- };
4361
- const getOperationSpec = {
4362
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/networkSecurityPerimeterConfigurations/{nspConfigName}",
4363
- httpMethod: "GET",
4364
- responses: {
4365
- 200: {
4366
- bodyMapper: NetworkSecurityPerimeterConfiguration,
4367
- },
4368
- default: {
4369
- bodyMapper: CloudError,
4370
- },
4371
- },
4372
- queryParameters: [apiVersion],
4373
- urlParameters: [
4374
- $host,
4375
- resourceGroupName,
4376
- searchServiceName,
4377
- subscriptionId,
4378
- nspConfigName,
4379
- ],
4380
- headerParameters: [accept],
4381
- serializer: serializer$1,
4382
- };
4383
- const reconcileOperationSpec = {
4384
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/networkSecurityPerimeterConfigurations/{nspConfigName}/reconcile",
4385
- httpMethod: "POST",
4386
- responses: {
4387
- 200: {
4388
- headersMapper: NetworkSecurityPerimeterConfigurationsReconcileHeaders,
4389
- },
4390
- 201: {
4391
- headersMapper: NetworkSecurityPerimeterConfigurationsReconcileHeaders,
4392
- },
4393
- 202: {
4394
- headersMapper: NetworkSecurityPerimeterConfigurationsReconcileHeaders,
4395
- },
4396
- 204: {
4397
- headersMapper: NetworkSecurityPerimeterConfigurationsReconcileHeaders,
4398
- },
4399
- default: {
4400
- bodyMapper: CloudError,
4401
- },
4402
- },
4403
- queryParameters: [apiVersion],
4404
- urlParameters: [
4405
- $host,
4406
- resourceGroupName,
4407
- searchServiceName,
4408
- subscriptionId,
4409
- nspConfigName,
4410
- ],
4411
- headerParameters: [accept],
4412
- serializer: serializer$1,
4413
- };
4414
- const listByServiceNextOperationSpec = {
4415
- path: "{nextLink}",
4416
- httpMethod: "GET",
4417
- responses: {
4418
- 200: {
4419
- bodyMapper: NetworkSecurityPerimeterConfigurationListResult,
4420
- },
4421
- default: {
4422
- bodyMapper: CloudError,
4423
- },
4424
- },
4425
- urlParameters: [
4426
- $host,
4427
- resourceGroupName,
4428
- searchServiceName,
4429
- subscriptionId,
4430
- nextLink,
4431
- ],
4432
- headerParameters: [accept],
4433
- serializer: serializer$1,
4434
- };
4435
-
4436
- /*
4437
- * Copyright (c) Microsoft Corporation.
4438
- * Licensed under the MIT License.
4439
- *
4440
- * Code generated by Microsoft (R) AutoRest Code Generator.
4441
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4442
- */
4443
- class SearchManagementClient extends coreClient__namespace.ServiceClient {
4444
- /**
4445
- * Initializes a new instance of the SearchManagementClient class.
4446
- * @param credentials Subscription credentials which uniquely identify client subscription.
4447
- * @param subscriptionId The unique identifier for a Microsoft Azure subscription. You can obtain this
4448
- * value from the Azure Resource Manager API or the portal.
4449
- * @param options The parameter options
4450
- */
4451
- constructor(credentials, subscriptionId, options) {
4452
- var _a, _b, _c;
4453
- if (credentials === undefined) {
4454
- throw new Error("'credentials' cannot be null");
4455
- }
4456
- if (subscriptionId === undefined) {
4457
- throw new Error("'subscriptionId' cannot be null");
4458
- }
4459
- // Initializing default values for options
4460
- if (!options) {
4461
- options = {};
4462
- }
4463
- const defaults = {
4464
- requestContentType: "application/json; charset=utf-8",
4465
- credential: credentials,
4466
- };
4467
- const packageDetails = `azsdk-js-arm-search/3.3.0-beta.1`;
4468
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
4469
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
4470
- : `${packageDetails}`;
4471
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
4472
- userAgentPrefix,
4473
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
4474
- super(optionsWithDefaults);
4475
- let bearerTokenAuthenticationPolicyFound = false;
4476
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
4477
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
4478
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
4479
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
4480
- }
4481
- if (!options ||
4482
- !options.pipeline ||
4483
- options.pipeline.getOrderedPolicies().length == 0 ||
4484
- !bearerTokenAuthenticationPolicyFound) {
4485
- this.pipeline.removePolicy({
4486
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName,
4487
- });
4488
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
4489
- credential: credentials,
4490
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
4491
- challengeCallbacks: {
4492
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
4493
- },
4494
- }));
4495
- }
4496
- // Parameter assignments
4497
- this.subscriptionId = subscriptionId;
4498
- // Assigning values to Constant parameters
4499
- this.$host = options.$host || "https://management.azure.com";
4500
- this.apiVersion = options.apiVersion || "2024-03-01-preview";
4501
- this.operations = new OperationsImpl(this);
4502
- this.adminKeys = new AdminKeysImpl(this);
4503
- this.queryKeys = new QueryKeysImpl(this);
4504
- this.services = new ServicesImpl(this);
4505
- this.privateLinkResources = new PrivateLinkResourcesImpl(this);
4506
- this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
4507
- this.sharedPrivateLinkResources = new SharedPrivateLinkResourcesImpl(this);
4508
- this.usages = new UsagesImpl(this);
4509
- this.networkSecurityPerimeterConfigurations =
4510
- new NetworkSecurityPerimeterConfigurationsImpl(this);
4511
- this.addCustomApiVersionPolicy(options.apiVersion);
4512
- }
4513
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
4514
- addCustomApiVersionPolicy(apiVersion) {
4515
- if (!apiVersion) {
4516
- return;
4517
- }
4518
- const apiVersionPolicy = {
4519
- name: "CustomApiVersionPolicy",
4520
- sendRequest(request, next) {
4521
- return tslib.__awaiter(this, void 0, void 0, function* () {
4522
- const param = request.url.split("?");
4523
- if (param.length > 1) {
4524
- const newParams = param[1].split("&").map((item) => {
4525
- if (item.indexOf("api-version") > -1) {
4526
- return "api-version=" + apiVersion;
4527
- }
4528
- else {
4529
- return item;
4530
- }
4531
- });
4532
- request.url = param[0] + "?" + newParams.join("&");
4533
- }
4534
- return next(request);
4535
- });
4536
- },
4537
- };
4538
- this.pipeline.addPolicy(apiVersionPolicy);
4539
- }
4540
- /**
4541
- * Gets the quota usage for a search sku in the given subscription.
4542
- * @param location The unique location name for a Microsoft Azure geographic region.
4543
- * @param skuName The unique SKU name that identifies a billable tier.
4544
- * @param options The options parameters.
4545
- */
4546
- usageBySubscriptionSku(location, skuName, options) {
4547
- return this.sendOperationRequest({ location, skuName, options }, usageBySubscriptionSkuOperationSpec);
4548
- }
4549
- }
4550
- // Operation Specifications
4551
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4552
- const usageBySubscriptionSkuOperationSpec = {
4553
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages/{skuName}",
4554
- httpMethod: "GET",
4555
- responses: {
4556
- 200: {
4557
- bodyMapper: QuotaUsageResult,
4558
- },
4559
- default: {
4560
- bodyMapper: CloudError,
4561
- },
4562
- },
4563
- queryParameters: [apiVersion],
4564
- urlParameters: [
4565
- $host,
4566
- subscriptionId,
4567
- location,
4568
- skuName,
4569
- ],
4570
- headerParameters: [accept, clientRequestId],
4571
- serializer,
4572
- };
4573
-
4574
- exports.SearchManagementClient = SearchManagementClient;
4575
- exports.getContinuationToken = getContinuationToken;
4576
- //# sourceMappingURL=index.js.map