@azure/arm-search 4.0.0-beta.1 → 4.0.0-beta.2

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