@azure/arm-kubernetesconfiguration 6.1.1-alpha.20250210.1 → 6.1.1-alpha.20250211.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 (484) hide show
  1. package/README.md +21 -14
  2. package/dist/browser/index.d.ts +5 -0
  3. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  4. package/{dist-esm/src → dist/browser}/index.js +4 -4
  5. package/dist/browser/index.js.map +1 -0
  6. package/dist/browser/lroImpl.js.map +1 -0
  7. package/dist/browser/models/index.js.map +1 -0
  8. package/dist/browser/models/mappers.js.map +1 -0
  9. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  10. package/dist/browser/models/parameters.js.map +1 -0
  11. package/{dist-esm/src → dist/browser}/operations/extensions.d.ts +3 -3
  12. package/dist/browser/operations/extensions.d.ts.map +1 -0
  13. package/{dist-esm/src → dist/browser}/operations/extensions.js +139 -151
  14. package/dist/browser/operations/extensions.js.map +1 -0
  15. package/{dist-esm/src → dist/browser}/operations/fluxConfigOperationStatus.d.ts +3 -3
  16. package/dist/browser/operations/fluxConfigOperationStatus.d.ts.map +1 -0
  17. package/{dist-esm/src → dist/browser}/operations/fluxConfigOperationStatus.js +2 -2
  18. package/dist/browser/operations/fluxConfigOperationStatus.js.map +1 -0
  19. package/{dist-esm/src → dist/browser}/operations/fluxConfigurations.d.ts +3 -3
  20. package/dist/browser/operations/fluxConfigurations.d.ts.map +1 -0
  21. package/{dist-esm/src → dist/browser}/operations/fluxConfigurations.js +139 -151
  22. package/dist/browser/operations/fluxConfigurations.js.map +1 -0
  23. package/dist/browser/operations/index.d.ts +7 -0
  24. package/dist/browser/operations/index.d.ts.map +1 -0
  25. package/dist/browser/operations/index.js +14 -0
  26. package/dist/browser/operations/index.js.map +1 -0
  27. package/{dist-esm/src → dist/browser}/operations/operationStatus.d.ts +3 -3
  28. package/dist/browser/operations/operationStatus.d.ts.map +1 -0
  29. package/{dist-esm/src → dist/browser}/operations/operationStatus.js +3 -3
  30. package/dist/browser/operations/operationStatus.js.map +1 -0
  31. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  32. package/dist/browser/operations/operations.d.ts.map +1 -0
  33. package/{dist-esm/src → dist/browser}/operations/operations.js +3 -3
  34. package/dist/browser/operations/operations.js.map +1 -0
  35. package/{dist-esm/src → dist/browser}/operations/sourceControlConfigurations.d.ts +3 -3
  36. package/dist/browser/operations/sourceControlConfigurations.d.ts.map +1 -0
  37. package/{dist-esm/src → dist/browser}/operations/sourceControlConfigurations.js +48 -52
  38. package/dist/browser/operations/sourceControlConfigurations.js.map +1 -0
  39. package/{dist-esm/src → dist/browser}/operationsInterfaces/extensions.d.ts +1 -1
  40. package/dist/browser/operationsInterfaces/extensions.d.ts.map +1 -0
  41. package/dist/browser/operationsInterfaces/extensions.js.map +1 -0
  42. package/{dist-esm/src → dist/browser}/operationsInterfaces/fluxConfigOperationStatus.d.ts +1 -1
  43. package/dist/browser/operationsInterfaces/fluxConfigOperationStatus.d.ts.map +1 -0
  44. package/dist/browser/operationsInterfaces/fluxConfigOperationStatus.js.map +1 -0
  45. package/{dist-esm/src → dist/browser}/operationsInterfaces/fluxConfigurations.d.ts +1 -1
  46. package/dist/browser/operationsInterfaces/fluxConfigurations.d.ts.map +1 -0
  47. package/dist/browser/operationsInterfaces/fluxConfigurations.js.map +1 -0
  48. package/dist/browser/operationsInterfaces/index.d.ts +7 -0
  49. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
  50. package/dist/browser/operationsInterfaces/index.js +14 -0
  51. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  52. package/{dist-esm/src → dist/browser}/operationsInterfaces/operationStatus.d.ts +1 -1
  53. package/dist/browser/operationsInterfaces/operationStatus.d.ts.map +1 -0
  54. package/dist/browser/operationsInterfaces/operationStatus.js.map +1 -0
  55. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  56. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  57. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  58. package/{dist-esm/src → dist/browser}/operationsInterfaces/sourceControlConfigurations.d.ts +1 -1
  59. package/dist/browser/operationsInterfaces/sourceControlConfigurations.d.ts.map +1 -0
  60. package/dist/browser/operationsInterfaces/sourceControlConfigurations.js.map +1 -0
  61. package/dist/browser/package.json +3 -0
  62. package/dist/browser/pagingHelper.js.map +1 -0
  63. package/{dist-esm/src → dist/browser}/sourceControlConfigurationClient.d.ts +2 -2
  64. package/dist/browser/sourceControlConfigurationClient.d.ts.map +1 -0
  65. package/{dist-esm/src → dist/browser}/sourceControlConfigurationClient.js +15 -18
  66. package/dist/browser/sourceControlConfigurationClient.js.map +1 -0
  67. package/dist/commonjs/index.d.ts +5 -0
  68. package/dist/commonjs/index.d.ts.map +1 -0
  69. package/dist/commonjs/index.js +19 -0
  70. package/dist/commonjs/index.js.map +1 -0
  71. package/dist/commonjs/lroImpl.d.ts +11 -0
  72. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  73. package/dist/commonjs/lroImpl.js +17 -0
  74. package/dist/commonjs/lroImpl.js.map +1 -0
  75. package/{types/arm-kubernetesconfiguration.d.ts → dist/commonjs/models/index.d.ts} +1187 -1668
  76. package/dist/commonjs/models/index.d.ts.map +1 -0
  77. package/dist/commonjs/models/index.js +143 -0
  78. package/dist/commonjs/models/index.js.map +1 -0
  79. package/dist/commonjs/models/mappers.d.ts +49 -0
  80. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  81. package/dist/commonjs/models/mappers.js +2069 -0
  82. package/dist/commonjs/models/mappers.js.map +1 -0
  83. package/dist/commonjs/models/parameters.d.ts +22 -0
  84. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  85. package/dist/commonjs/models/parameters.js +193 -0
  86. package/dist/commonjs/models/parameters.js.map +1 -0
  87. package/dist/commonjs/operations/extensions.d.ts +141 -0
  88. package/dist/commonjs/operations/extensions.d.ts.map +1 -0
  89. package/dist/commonjs/operations/extensions.js +540 -0
  90. package/dist/commonjs/operations/extensions.js.map +1 -0
  91. package/dist/commonjs/operations/fluxConfigOperationStatus.d.ts +26 -0
  92. package/dist/commonjs/operations/fluxConfigOperationStatus.d.ts.map +1 -0
  93. package/dist/commonjs/operations/fluxConfigOperationStatus.js +76 -0
  94. package/dist/commonjs/operations/fluxConfigOperationStatus.js.map +1 -0
  95. package/dist/commonjs/operations/fluxConfigurations.d.ts +141 -0
  96. package/dist/commonjs/operations/fluxConfigurations.d.ts.map +1 -0
  97. package/dist/commonjs/operations/fluxConfigurations.js +540 -0
  98. package/dist/commonjs/operations/fluxConfigurations.js.map +1 -0
  99. package/dist/commonjs/operations/index.d.ts +7 -0
  100. package/dist/commonjs/operations/index.d.ts.map +1 -0
  101. package/dist/commonjs/operations/index.js +17 -0
  102. package/dist/commonjs/operations/index.js.map +1 -0
  103. package/dist/commonjs/operations/operationStatus.d.ts +63 -0
  104. package/dist/commonjs/operations/operationStatus.d.ts.map +1 -0
  105. package/dist/commonjs/operations/operationStatus.js +231 -0
  106. package/dist/commonjs/operations/operationStatus.js.map +1 -0
  107. package/dist/commonjs/operations/operations.d.ts +32 -0
  108. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  109. package/dist/commonjs/operations/operations.js +137 -0
  110. package/dist/commonjs/operations/operations.js.map +1 -0
  111. package/dist/commonjs/operations/sourceControlConfigurations.d.ts +102 -0
  112. package/dist/commonjs/operations/sourceControlConfigurations.d.ts.map +1 -0
  113. package/dist/commonjs/operations/sourceControlConfigurations.js +377 -0
  114. package/dist/commonjs/operations/sourceControlConfigurations.js.map +1 -0
  115. package/dist/commonjs/operationsInterfaces/extensions.d.ts +108 -0
  116. package/dist/commonjs/operationsInterfaces/extensions.d.ts.map +1 -0
  117. package/dist/commonjs/operationsInterfaces/extensions.js +10 -0
  118. package/dist/commonjs/operationsInterfaces/extensions.js.map +1 -0
  119. package/dist/commonjs/operationsInterfaces/fluxConfigOperationStatus.d.ts +18 -0
  120. package/dist/commonjs/operationsInterfaces/fluxConfigOperationStatus.d.ts.map +1 -0
  121. package/dist/commonjs/operationsInterfaces/fluxConfigOperationStatus.js +10 -0
  122. package/dist/commonjs/operationsInterfaces/fluxConfigOperationStatus.js.map +1 -0
  123. package/dist/commonjs/operationsInterfaces/fluxConfigurations.d.ts +108 -0
  124. package/dist/commonjs/operationsInterfaces/fluxConfigurations.d.ts.map +1 -0
  125. package/dist/commonjs/operationsInterfaces/fluxConfigurations.js +10 -0
  126. package/dist/commonjs/operationsInterfaces/fluxConfigurations.js.map +1 -0
  127. package/dist/commonjs/operationsInterfaces/index.d.ts +7 -0
  128. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  129. package/dist/commonjs/operationsInterfaces/index.js +17 -0
  130. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  131. package/dist/commonjs/operationsInterfaces/operationStatus.d.ts +30 -0
  132. package/dist/commonjs/operationsInterfaces/operationStatus.d.ts.map +1 -0
  133. package/dist/commonjs/operationsInterfaces/operationStatus.js +10 -0
  134. package/dist/commonjs/operationsInterfaces/operationStatus.js.map +1 -0
  135. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  136. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  137. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  138. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  139. package/dist/commonjs/operationsInterfaces/sourceControlConfigurations.d.ts +69 -0
  140. package/dist/commonjs/operationsInterfaces/sourceControlConfigurations.d.ts.map +1 -0
  141. package/dist/commonjs/operationsInterfaces/sourceControlConfigurations.js +10 -0
  142. package/dist/commonjs/operationsInterfaces/sourceControlConfigurations.js.map +1 -0
  143. package/dist/commonjs/package.json +3 -0
  144. package/dist/commonjs/pagingHelper.d.ts +13 -0
  145. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  146. package/dist/commonjs/pagingHelper.js +36 -0
  147. package/dist/commonjs/pagingHelper.js.map +1 -0
  148. package/dist/commonjs/sourceControlConfigurationClient.d.ts +25 -0
  149. package/dist/commonjs/sourceControlConfigurationClient.d.ts.map +1 -0
  150. package/dist/commonjs/sourceControlConfigurationClient.js +107 -0
  151. package/dist/commonjs/sourceControlConfigurationClient.js.map +1 -0
  152. package/dist/esm/index.d.ts +5 -0
  153. package/dist/esm/index.d.ts.map +1 -0
  154. package/{src/index.ts → dist/esm/index.js} +5 -5
  155. package/dist/esm/index.js.map +1 -0
  156. package/dist/esm/lroImpl.d.ts +11 -0
  157. package/dist/esm/lroImpl.d.ts.map +1 -0
  158. package/dist/esm/lroImpl.js +14 -0
  159. package/dist/esm/lroImpl.js.map +1 -0
  160. package/dist/esm/models/index.d.ts +1187 -0
  161. package/dist/esm/models/index.d.ts.map +1 -0
  162. package/dist/esm/models/index.js +140 -0
  163. package/dist/esm/models/index.js.map +1 -0
  164. package/dist/esm/models/mappers.d.ts +49 -0
  165. package/dist/esm/models/mappers.d.ts.map +1 -0
  166. package/dist/esm/models/mappers.js +2066 -0
  167. package/dist/esm/models/mappers.js.map +1 -0
  168. package/dist/esm/models/parameters.d.ts +22 -0
  169. package/dist/esm/models/parameters.d.ts.map +1 -0
  170. package/dist/esm/models/parameters.js +190 -0
  171. package/dist/esm/models/parameters.js.map +1 -0
  172. package/dist/esm/operations/extensions.d.ts +141 -0
  173. package/dist/esm/operations/extensions.d.ts.map +1 -0
  174. package/dist/esm/operations/extensions.js +536 -0
  175. package/dist/esm/operations/extensions.js.map +1 -0
  176. package/dist/esm/operations/fluxConfigOperationStatus.d.ts +26 -0
  177. package/dist/esm/operations/fluxConfigOperationStatus.d.ts.map +1 -0
  178. package/dist/esm/operations/fluxConfigOperationStatus.js +71 -0
  179. package/dist/esm/operations/fluxConfigOperationStatus.js.map +1 -0
  180. package/dist/esm/operations/fluxConfigurations.d.ts +141 -0
  181. package/dist/esm/operations/fluxConfigurations.d.ts.map +1 -0
  182. package/dist/esm/operations/fluxConfigurations.js +536 -0
  183. package/dist/esm/operations/fluxConfigurations.js.map +1 -0
  184. package/dist/esm/operations/index.d.ts +7 -0
  185. package/dist/esm/operations/index.d.ts.map +1 -0
  186. package/dist/esm/operations/index.js +14 -0
  187. package/dist/esm/operations/index.js.map +1 -0
  188. package/dist/esm/operations/operationStatus.d.ts +63 -0
  189. package/dist/esm/operations/operationStatus.d.ts.map +1 -0
  190. package/dist/esm/operations/operationStatus.js +227 -0
  191. package/dist/esm/operations/operationStatus.js.map +1 -0
  192. package/dist/esm/operations/operations.d.ts +32 -0
  193. package/dist/esm/operations/operations.d.ts.map +1 -0
  194. package/dist/esm/operations/operations.js +133 -0
  195. package/dist/esm/operations/operations.js.map +1 -0
  196. package/dist/esm/operations/sourceControlConfigurations.d.ts +102 -0
  197. package/dist/esm/operations/sourceControlConfigurations.d.ts.map +1 -0
  198. package/dist/esm/operations/sourceControlConfigurations.js +373 -0
  199. package/dist/esm/operations/sourceControlConfigurations.js.map +1 -0
  200. package/dist/esm/operationsInterfaces/extensions.d.ts +108 -0
  201. package/dist/esm/operationsInterfaces/extensions.d.ts.map +1 -0
  202. package/dist/esm/operationsInterfaces/extensions.js +9 -0
  203. package/dist/esm/operationsInterfaces/extensions.js.map +1 -0
  204. package/dist/esm/operationsInterfaces/fluxConfigOperationStatus.d.ts +18 -0
  205. package/dist/esm/operationsInterfaces/fluxConfigOperationStatus.d.ts.map +1 -0
  206. package/dist/esm/operationsInterfaces/fluxConfigOperationStatus.js +9 -0
  207. package/dist/esm/operationsInterfaces/fluxConfigOperationStatus.js.map +1 -0
  208. package/dist/esm/operationsInterfaces/fluxConfigurations.d.ts +108 -0
  209. package/dist/esm/operationsInterfaces/fluxConfigurations.d.ts.map +1 -0
  210. package/dist/esm/operationsInterfaces/fluxConfigurations.js +9 -0
  211. package/dist/esm/operationsInterfaces/fluxConfigurations.js.map +1 -0
  212. package/dist/esm/operationsInterfaces/index.d.ts +7 -0
  213. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  214. package/dist/esm/operationsInterfaces/index.js +14 -0
  215. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  216. package/dist/esm/operationsInterfaces/operationStatus.d.ts +30 -0
  217. package/dist/esm/operationsInterfaces/operationStatus.d.ts.map +1 -0
  218. package/dist/esm/operationsInterfaces/operationStatus.js +9 -0
  219. package/dist/esm/operationsInterfaces/operationStatus.js.map +1 -0
  220. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  221. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  222. package/dist/esm/operationsInterfaces/operations.js +9 -0
  223. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  224. package/dist/esm/operationsInterfaces/sourceControlConfigurations.d.ts +69 -0
  225. package/dist/esm/operationsInterfaces/sourceControlConfigurations.d.ts.map +1 -0
  226. package/dist/esm/operationsInterfaces/sourceControlConfigurations.js +9 -0
  227. package/dist/esm/operationsInterfaces/sourceControlConfigurations.js.map +1 -0
  228. package/dist/esm/package.json +3 -0
  229. package/dist/esm/pagingHelper.d.ts +13 -0
  230. package/dist/esm/pagingHelper.d.ts.map +1 -0
  231. package/dist/esm/pagingHelper.js +32 -0
  232. package/dist/esm/pagingHelper.js.map +1 -0
  233. package/dist/esm/sourceControlConfigurationClient.d.ts +25 -0
  234. package/dist/esm/sourceControlConfigurationClient.d.ts.map +1 -0
  235. package/dist/esm/sourceControlConfigurationClient.js +102 -0
  236. package/dist/esm/sourceControlConfigurationClient.js.map +1 -0
  237. package/dist/react-native/index.d.ts +5 -0
  238. package/dist/react-native/index.d.ts.map +1 -0
  239. package/dist/react-native/index.js +13 -0
  240. package/dist/react-native/index.js.map +1 -0
  241. package/dist/react-native/lroImpl.d.ts +11 -0
  242. package/dist/react-native/lroImpl.d.ts.map +1 -0
  243. package/dist/react-native/lroImpl.js +14 -0
  244. package/dist/react-native/lroImpl.js.map +1 -0
  245. package/dist/react-native/models/index.d.ts +1187 -0
  246. package/dist/react-native/models/index.d.ts.map +1 -0
  247. package/dist/react-native/models/index.js +140 -0
  248. package/dist/react-native/models/index.js.map +1 -0
  249. package/dist/react-native/models/mappers.d.ts +49 -0
  250. package/dist/react-native/models/mappers.d.ts.map +1 -0
  251. package/dist/react-native/models/mappers.js +2066 -0
  252. package/dist/react-native/models/mappers.js.map +1 -0
  253. package/dist/react-native/models/parameters.d.ts +22 -0
  254. package/dist/react-native/models/parameters.d.ts.map +1 -0
  255. package/dist/react-native/models/parameters.js +190 -0
  256. package/dist/react-native/models/parameters.js.map +1 -0
  257. package/dist/react-native/operations/extensions.d.ts +141 -0
  258. package/dist/react-native/operations/extensions.d.ts.map +1 -0
  259. package/dist/react-native/operations/extensions.js +536 -0
  260. package/dist/react-native/operations/extensions.js.map +1 -0
  261. package/dist/react-native/operations/fluxConfigOperationStatus.d.ts +26 -0
  262. package/dist/react-native/operations/fluxConfigOperationStatus.d.ts.map +1 -0
  263. package/dist/react-native/operations/fluxConfigOperationStatus.js +71 -0
  264. package/dist/react-native/operations/fluxConfigOperationStatus.js.map +1 -0
  265. package/dist/react-native/operations/fluxConfigurations.d.ts +141 -0
  266. package/dist/react-native/operations/fluxConfigurations.d.ts.map +1 -0
  267. package/dist/react-native/operations/fluxConfigurations.js +536 -0
  268. package/dist/react-native/operations/fluxConfigurations.js.map +1 -0
  269. package/dist/react-native/operations/index.d.ts +7 -0
  270. package/dist/react-native/operations/index.d.ts.map +1 -0
  271. package/dist/react-native/operations/index.js +14 -0
  272. package/dist/react-native/operations/index.js.map +1 -0
  273. package/dist/react-native/operations/operationStatus.d.ts +63 -0
  274. package/dist/react-native/operations/operationStatus.d.ts.map +1 -0
  275. package/dist/react-native/operations/operationStatus.js +227 -0
  276. package/dist/react-native/operations/operationStatus.js.map +1 -0
  277. package/dist/react-native/operations/operations.d.ts +32 -0
  278. package/dist/react-native/operations/operations.d.ts.map +1 -0
  279. package/dist/react-native/operations/operations.js +133 -0
  280. package/dist/react-native/operations/operations.js.map +1 -0
  281. package/dist/react-native/operations/sourceControlConfigurations.d.ts +102 -0
  282. package/dist/react-native/operations/sourceControlConfigurations.d.ts.map +1 -0
  283. package/dist/react-native/operations/sourceControlConfigurations.js +373 -0
  284. package/dist/react-native/operations/sourceControlConfigurations.js.map +1 -0
  285. package/dist/react-native/operationsInterfaces/extensions.d.ts +108 -0
  286. package/dist/react-native/operationsInterfaces/extensions.d.ts.map +1 -0
  287. package/dist/react-native/operationsInterfaces/extensions.js +9 -0
  288. package/dist/react-native/operationsInterfaces/extensions.js.map +1 -0
  289. package/dist/react-native/operationsInterfaces/fluxConfigOperationStatus.d.ts +18 -0
  290. package/dist/react-native/operationsInterfaces/fluxConfigOperationStatus.d.ts.map +1 -0
  291. package/dist/react-native/operationsInterfaces/fluxConfigOperationStatus.js +9 -0
  292. package/dist/react-native/operationsInterfaces/fluxConfigOperationStatus.js.map +1 -0
  293. package/dist/react-native/operationsInterfaces/fluxConfigurations.d.ts +108 -0
  294. package/dist/react-native/operationsInterfaces/fluxConfigurations.d.ts.map +1 -0
  295. package/dist/react-native/operationsInterfaces/fluxConfigurations.js +9 -0
  296. package/dist/react-native/operationsInterfaces/fluxConfigurations.js.map +1 -0
  297. package/dist/react-native/operationsInterfaces/index.d.ts +7 -0
  298. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  299. package/dist/react-native/operationsInterfaces/index.js +14 -0
  300. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  301. package/dist/react-native/operationsInterfaces/operationStatus.d.ts +30 -0
  302. package/dist/react-native/operationsInterfaces/operationStatus.d.ts.map +1 -0
  303. package/dist/react-native/operationsInterfaces/operationStatus.js +9 -0
  304. package/dist/react-native/operationsInterfaces/operationStatus.js.map +1 -0
  305. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  306. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  307. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  308. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  309. package/dist/react-native/operationsInterfaces/sourceControlConfigurations.d.ts +69 -0
  310. package/dist/react-native/operationsInterfaces/sourceControlConfigurations.d.ts.map +1 -0
  311. package/dist/react-native/operationsInterfaces/sourceControlConfigurations.js +9 -0
  312. package/dist/react-native/operationsInterfaces/sourceControlConfigurations.js.map +1 -0
  313. package/dist/react-native/package.json +3 -0
  314. package/dist/react-native/pagingHelper.d.ts +13 -0
  315. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  316. package/dist/react-native/pagingHelper.js +32 -0
  317. package/dist/react-native/pagingHelper.js.map +1 -0
  318. package/dist/react-native/sourceControlConfigurationClient.d.ts +25 -0
  319. package/dist/react-native/sourceControlConfigurationClient.d.ts.map +1 -0
  320. package/dist/react-native/sourceControlConfigurationClient.js +102 -0
  321. package/dist/react-native/sourceControlConfigurationClient.js.map +1 -0
  322. package/package.json +70 -41
  323. package/dist/index.js +0 -4494
  324. package/dist/index.js.map +0 -1
  325. package/dist/index.min.js +0 -1
  326. package/dist/index.min.js.map +0 -1
  327. package/dist-esm/samples-dev/extensionsCreateSample.d.ts +0 -2
  328. package/dist-esm/samples-dev/extensionsCreateSample.d.ts.map +0 -1
  329. package/dist-esm/samples-dev/extensionsCreateSample.js +0 -74
  330. package/dist-esm/samples-dev/extensionsCreateSample.js.map +0 -1
  331. package/dist-esm/samples-dev/extensionsDeleteSample.d.ts +0 -2
  332. package/dist-esm/samples-dev/extensionsDeleteSample.d.ts.map +0 -1
  333. package/dist-esm/samples-dev/extensionsDeleteSample.js +0 -39
  334. package/dist-esm/samples-dev/extensionsDeleteSample.js.map +0 -1
  335. package/dist-esm/samples-dev/extensionsGetSample.d.ts +0 -2
  336. package/dist-esm/samples-dev/extensionsGetSample.d.ts.map +0 -1
  337. package/dist-esm/samples-dev/extensionsGetSample.js +0 -60
  338. package/dist-esm/samples-dev/extensionsGetSample.js.map +0 -1
  339. package/dist-esm/samples-dev/extensionsListSample.d.ts +0 -2
  340. package/dist-esm/samples-dev/extensionsListSample.d.ts.map +0 -1
  341. package/dist-esm/samples-dev/extensionsListSample.js +0 -54
  342. package/dist-esm/samples-dev/extensionsListSample.js.map +0 -1
  343. package/dist-esm/samples-dev/extensionsUpdateSample.d.ts +0 -2
  344. package/dist-esm/samples-dev/extensionsUpdateSample.d.ts.map +0 -1
  345. package/dist-esm/samples-dev/extensionsUpdateSample.js +0 -41
  346. package/dist-esm/samples-dev/extensionsUpdateSample.js.map +0 -1
  347. package/dist-esm/samples-dev/fluxConfigOperationStatusGetSample.d.ts +0 -2
  348. package/dist-esm/samples-dev/fluxConfigOperationStatusGetSample.d.ts.map +0 -1
  349. package/dist-esm/samples-dev/fluxConfigOperationStatusGetSample.js +0 -40
  350. package/dist-esm/samples-dev/fluxConfigOperationStatusGetSample.js.map +0 -1
  351. package/dist-esm/samples-dev/fluxConfigurationsCreateOrUpdateSample.d.ts +0 -2
  352. package/dist-esm/samples-dev/fluxConfigurationsCreateOrUpdateSample.d.ts.map +0 -1
  353. package/dist-esm/samples-dev/fluxConfigurationsCreateOrUpdateSample.js +0 -125
  354. package/dist-esm/samples-dev/fluxConfigurationsCreateOrUpdateSample.js.map +0 -1
  355. package/dist-esm/samples-dev/fluxConfigurationsDeleteSample.d.ts +0 -2
  356. package/dist-esm/samples-dev/fluxConfigurationsDeleteSample.d.ts.map +0 -1
  357. package/dist-esm/samples-dev/fluxConfigurationsDeleteSample.js +0 -39
  358. package/dist-esm/samples-dev/fluxConfigurationsDeleteSample.js.map +0 -1
  359. package/dist-esm/samples-dev/fluxConfigurationsGetSample.d.ts +0 -2
  360. package/dist-esm/samples-dev/fluxConfigurationsGetSample.d.ts.map +0 -1
  361. package/dist-esm/samples-dev/fluxConfigurationsGetSample.js +0 -39
  362. package/dist-esm/samples-dev/fluxConfigurationsGetSample.js.map +0 -1
  363. package/dist-esm/samples-dev/fluxConfigurationsListSample.d.ts +0 -2
  364. package/dist-esm/samples-dev/fluxConfigurationsListSample.d.ts.map +0 -1
  365. package/dist-esm/samples-dev/fluxConfigurationsListSample.js +0 -54
  366. package/dist-esm/samples-dev/fluxConfigurationsListSample.js.map +0 -1
  367. package/dist-esm/samples-dev/fluxConfigurationsUpdateSample.d.ts +0 -2
  368. package/dist-esm/samples-dev/fluxConfigurationsUpdateSample.d.ts.map +0 -1
  369. package/dist-esm/samples-dev/fluxConfigurationsUpdateSample.js +0 -50
  370. package/dist-esm/samples-dev/fluxConfigurationsUpdateSample.js.map +0 -1
  371. package/dist-esm/samples-dev/operationStatusGetSample.d.ts +0 -2
  372. package/dist-esm/samples-dev/operationStatusGetSample.d.ts.map +0 -1
  373. package/dist-esm/samples-dev/operationStatusGetSample.js +0 -40
  374. package/dist-esm/samples-dev/operationStatusGetSample.js.map +0 -1
  375. package/dist-esm/samples-dev/operationStatusListSample.d.ts +0 -2
  376. package/dist-esm/samples-dev/operationStatusListSample.d.ts.map +0 -1
  377. package/dist-esm/samples-dev/operationStatusListSample.js +0 -54
  378. package/dist-esm/samples-dev/operationStatusListSample.js.map +0 -1
  379. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  380. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  381. package/dist-esm/samples-dev/operationsListSample.js +0 -51
  382. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  383. package/dist-esm/samples-dev/sourceControlConfigurationsCreateOrUpdateSample.d.ts +0 -2
  384. package/dist-esm/samples-dev/sourceControlConfigurationsCreateOrUpdateSample.d.ts.map +0 -1
  385. package/dist-esm/samples-dev/sourceControlConfigurationsCreateOrUpdateSample.js +0 -49
  386. package/dist-esm/samples-dev/sourceControlConfigurationsCreateOrUpdateSample.js.map +0 -1
  387. package/dist-esm/samples-dev/sourceControlConfigurationsDeleteSample.d.ts +0 -2
  388. package/dist-esm/samples-dev/sourceControlConfigurationsDeleteSample.d.ts.map +0 -1
  389. package/dist-esm/samples-dev/sourceControlConfigurationsDeleteSample.js +0 -39
  390. package/dist-esm/samples-dev/sourceControlConfigurationsDeleteSample.js.map +0 -1
  391. package/dist-esm/samples-dev/sourceControlConfigurationsGetSample.d.ts +0 -2
  392. package/dist-esm/samples-dev/sourceControlConfigurationsGetSample.d.ts.map +0 -1
  393. package/dist-esm/samples-dev/sourceControlConfigurationsGetSample.js +0 -39
  394. package/dist-esm/samples-dev/sourceControlConfigurationsGetSample.js.map +0 -1
  395. package/dist-esm/samples-dev/sourceControlConfigurationsListSample.d.ts +0 -2
  396. package/dist-esm/samples-dev/sourceControlConfigurationsListSample.d.ts.map +0 -1
  397. package/dist-esm/samples-dev/sourceControlConfigurationsListSample.js +0 -54
  398. package/dist-esm/samples-dev/sourceControlConfigurationsListSample.js.map +0 -1
  399. package/dist-esm/src/index.d.ts +0 -5
  400. package/dist-esm/src/index.js.map +0 -1
  401. package/dist-esm/src/lroImpl.js.map +0 -1
  402. package/dist-esm/src/models/index.js.map +0 -1
  403. package/dist-esm/src/models/mappers.js.map +0 -1
  404. package/dist-esm/src/models/parameters.js.map +0 -1
  405. package/dist-esm/src/operations/extensions.d.ts.map +0 -1
  406. package/dist-esm/src/operations/extensions.js.map +0 -1
  407. package/dist-esm/src/operations/fluxConfigOperationStatus.d.ts.map +0 -1
  408. package/dist-esm/src/operations/fluxConfigOperationStatus.js.map +0 -1
  409. package/dist-esm/src/operations/fluxConfigurations.d.ts.map +0 -1
  410. package/dist-esm/src/operations/fluxConfigurations.js.map +0 -1
  411. package/dist-esm/src/operations/index.d.ts +0 -7
  412. package/dist-esm/src/operations/index.d.ts.map +0 -1
  413. package/dist-esm/src/operations/index.js +0 -14
  414. package/dist-esm/src/operations/index.js.map +0 -1
  415. package/dist-esm/src/operations/operationStatus.d.ts.map +0 -1
  416. package/dist-esm/src/operations/operationStatus.js.map +0 -1
  417. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  418. package/dist-esm/src/operations/operations.js.map +0 -1
  419. package/dist-esm/src/operations/sourceControlConfigurations.d.ts.map +0 -1
  420. package/dist-esm/src/operations/sourceControlConfigurations.js.map +0 -1
  421. package/dist-esm/src/operationsInterfaces/extensions.d.ts.map +0 -1
  422. package/dist-esm/src/operationsInterfaces/extensions.js.map +0 -1
  423. package/dist-esm/src/operationsInterfaces/fluxConfigOperationStatus.d.ts.map +0 -1
  424. package/dist-esm/src/operationsInterfaces/fluxConfigOperationStatus.js.map +0 -1
  425. package/dist-esm/src/operationsInterfaces/fluxConfigurations.d.ts.map +0 -1
  426. package/dist-esm/src/operationsInterfaces/fluxConfigurations.js.map +0 -1
  427. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -7
  428. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  429. package/dist-esm/src/operationsInterfaces/index.js +0 -14
  430. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  431. package/dist-esm/src/operationsInterfaces/operationStatus.d.ts.map +0 -1
  432. package/dist-esm/src/operationsInterfaces/operationStatus.js.map +0 -1
  433. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  434. package/dist-esm/src/operationsInterfaces/sourceControlConfigurations.d.ts.map +0 -1
  435. package/dist-esm/src/operationsInterfaces/sourceControlConfigurations.js.map +0 -1
  436. package/dist-esm/src/pagingHelper.js.map +0 -1
  437. package/dist-esm/src/sourceControlConfigurationClient.d.ts.map +0 -1
  438. package/dist-esm/src/sourceControlConfigurationClient.js.map +0 -1
  439. package/dist-esm/test/kubernetesconfiguration_operations_test.spec.d.ts +0 -4
  440. package/dist-esm/test/kubernetesconfiguration_operations_test.spec.d.ts.map +0 -1
  441. package/dist-esm/test/kubernetesconfiguration_operations_test.spec.js +0 -83
  442. package/dist-esm/test/kubernetesconfiguration_operations_test.spec.js.map +0 -1
  443. package/src/lroImpl.ts +0 -38
  444. package/src/models/index.ts +0 -1294
  445. package/src/models/mappers.ts +0 -2174
  446. package/src/models/parameters.ts +0 -221
  447. package/src/operations/extensions.ts +0 -777
  448. package/src/operations/fluxConfigOperationStatus.ts +0 -95
  449. package/src/operations/fluxConfigurations.ts +0 -777
  450. package/src/operations/index.ts +0 -14
  451. package/src/operations/operationStatus.ts +0 -314
  452. package/src/operations/operations.ts +0 -149
  453. package/src/operations/sourceControlConfigurations.ts +0 -521
  454. package/src/operationsInterfaces/extensions.ts +0 -197
  455. package/src/operationsInterfaces/fluxConfigOperationStatus.ts +0 -37
  456. package/src/operationsInterfaces/fluxConfigurations.ts +0 -197
  457. package/src/operationsInterfaces/index.ts +0 -14
  458. package/src/operationsInterfaces/operationStatus.ts +0 -58
  459. package/src/operationsInterfaces/operations.ts +0 -25
  460. package/src/operationsInterfaces/sourceControlConfigurations.ts +0 -121
  461. package/src/pagingHelper.ts +0 -39
  462. package/src/sourceControlConfigurationClient.ts +0 -166
  463. package/tsconfig.json +0 -33
  464. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  465. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
  466. /package/{dist-esm/src → dist/browser}/lroImpl.js +0 -0
  467. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  468. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  469. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  470. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  471. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  472. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  473. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  474. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  475. /package/{dist-esm/src → dist/browser}/operationsInterfaces/extensions.js +0 -0
  476. /package/{dist-esm/src → dist/browser}/operationsInterfaces/fluxConfigOperationStatus.js +0 -0
  477. /package/{dist-esm/src → dist/browser}/operationsInterfaces/fluxConfigurations.js +0 -0
  478. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operationStatus.js +0 -0
  479. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  480. /package/{dist-esm/src → dist/browser}/operationsInterfaces/sourceControlConfigurations.js +0 -0
  481. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  482. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  483. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
  484. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
@@ -0,0 +1,536 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import { setContinuationToken } from "../pagingHelper.js";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers.js";
12
+ import * as Parameters from "../models/parameters.js";
13
+ import { createHttpPoller } from "@azure/core-lro";
14
+ import { createLroSpec } from "../lroImpl.js";
15
+ /// <reference lib="esnext.asynciterable" />
16
+ /** Class containing FluxConfigurations operations. */
17
+ export class FluxConfigurationsImpl {
18
+ /**
19
+ * Initialize a new instance of the class FluxConfigurations class.
20
+ * @param client Reference to the service client
21
+ */
22
+ constructor(client) {
23
+ this.client = client;
24
+ }
25
+ /**
26
+ * List all Flux Configurations.
27
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
28
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
29
+ * Microsoft.HybridContainerService.
30
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
31
+ * connectedClusters, provisionedClusters.
32
+ * @param clusterName The name of the kubernetes cluster.
33
+ * @param options The options parameters.
34
+ */
35
+ list(resourceGroupName, clusterRp, clusterResourceName, clusterName, options) {
36
+ const iter = this.listPagingAll(resourceGroupName, clusterRp, clusterResourceName, clusterName, options);
37
+ return {
38
+ next() {
39
+ return iter.next();
40
+ },
41
+ [Symbol.asyncIterator]() {
42
+ return this;
43
+ },
44
+ byPage: (settings) => {
45
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
46
+ throw new Error("maxPageSize is not supported by this operation.");
47
+ }
48
+ return this.listPagingPage(resourceGroupName, clusterRp, clusterResourceName, clusterName, options, settings);
49
+ }
50
+ };
51
+ }
52
+ listPagingPage(resourceGroupName, clusterRp, clusterResourceName, clusterName, options, settings) {
53
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
54
+ let result;
55
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
56
+ if (!continuationToken) {
57
+ result = yield __await(this._list(resourceGroupName, clusterRp, clusterResourceName, clusterName, options));
58
+ let page = result.value || [];
59
+ continuationToken = result.nextLink;
60
+ setContinuationToken(page, continuationToken);
61
+ yield yield __await(page);
62
+ }
63
+ while (continuationToken) {
64
+ result = yield __await(this._listNext(resourceGroupName, clusterRp, clusterResourceName, clusterName, continuationToken, options));
65
+ continuationToken = result.nextLink;
66
+ let page = result.value || [];
67
+ setContinuationToken(page, continuationToken);
68
+ yield yield __await(page);
69
+ }
70
+ });
71
+ }
72
+ listPagingAll(resourceGroupName, clusterRp, clusterResourceName, clusterName, options) {
73
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
74
+ var _a, e_1, _b, _c;
75
+ try {
76
+ for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, clusterRp, clusterResourceName, clusterName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
77
+ _c = _f.value;
78
+ _d = false;
79
+ const page = _c;
80
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
81
+ }
82
+ }
83
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
84
+ finally {
85
+ try {
86
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
87
+ }
88
+ finally { if (e_1) throw e_1.error; }
89
+ }
90
+ });
91
+ }
92
+ /**
93
+ * Gets details of the Flux Configuration.
94
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
95
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
96
+ * Microsoft.HybridContainerService.
97
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
98
+ * connectedClusters, provisionedClusters.
99
+ * @param clusterName The name of the kubernetes cluster.
100
+ * @param fluxConfigurationName Name of the Flux Configuration.
101
+ * @param options The options parameters.
102
+ */
103
+ get(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, options) {
104
+ return this.client.sendOperationRequest({
105
+ resourceGroupName,
106
+ clusterRp,
107
+ clusterResourceName,
108
+ clusterName,
109
+ fluxConfigurationName,
110
+ options
111
+ }, getOperationSpec);
112
+ }
113
+ /**
114
+ * Create a new Kubernetes Flux Configuration.
115
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
116
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
117
+ * Microsoft.HybridContainerService.
118
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
119
+ * connectedClusters, provisionedClusters.
120
+ * @param clusterName The name of the kubernetes cluster.
121
+ * @param fluxConfigurationName Name of the Flux Configuration.
122
+ * @param fluxConfiguration Properties necessary to Create a FluxConfiguration.
123
+ * @param options The options parameters.
124
+ */
125
+ async beginCreateOrUpdate(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, fluxConfiguration, options) {
126
+ const directSendOperation = async (args, spec) => {
127
+ return this.client.sendOperationRequest(args, spec);
128
+ };
129
+ const sendOperationFn = async (args, spec) => {
130
+ var _a;
131
+ let currentRawResponse = undefined;
132
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
133
+ const callback = (rawResponse, flatResponse) => {
134
+ currentRawResponse = rawResponse;
135
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
136
+ };
137
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
138
+ const flatResponse = await directSendOperation(updatedArgs, spec);
139
+ return {
140
+ flatResponse,
141
+ rawResponse: {
142
+ statusCode: currentRawResponse.status,
143
+ body: currentRawResponse.parsedBody,
144
+ headers: currentRawResponse.headers.toJSON()
145
+ }
146
+ };
147
+ };
148
+ const lro = createLroSpec({
149
+ sendOperationFn,
150
+ args: {
151
+ resourceGroupName,
152
+ clusterRp,
153
+ clusterResourceName,
154
+ clusterName,
155
+ fluxConfigurationName,
156
+ fluxConfiguration,
157
+ options
158
+ },
159
+ spec: createOrUpdateOperationSpec
160
+ });
161
+ const poller = await createHttpPoller(lro, {
162
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
163
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
164
+ resourceLocationConfig: "azure-async-operation"
165
+ });
166
+ await poller.poll();
167
+ return poller;
168
+ }
169
+ /**
170
+ * Create a new Kubernetes Flux Configuration.
171
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
172
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
173
+ * Microsoft.HybridContainerService.
174
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
175
+ * connectedClusters, provisionedClusters.
176
+ * @param clusterName The name of the kubernetes cluster.
177
+ * @param fluxConfigurationName Name of the Flux Configuration.
178
+ * @param fluxConfiguration Properties necessary to Create a FluxConfiguration.
179
+ * @param options The options parameters.
180
+ */
181
+ async beginCreateOrUpdateAndWait(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, fluxConfiguration, options) {
182
+ const poller = await this.beginCreateOrUpdate(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, fluxConfiguration, options);
183
+ return poller.pollUntilDone();
184
+ }
185
+ /**
186
+ * Update an existing Kubernetes Flux Configuration.
187
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
188
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
189
+ * Microsoft.HybridContainerService.
190
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
191
+ * connectedClusters, provisionedClusters.
192
+ * @param clusterName The name of the kubernetes cluster.
193
+ * @param fluxConfigurationName Name of the Flux Configuration.
194
+ * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.
195
+ * @param options The options parameters.
196
+ */
197
+ async beginUpdate(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, fluxConfigurationPatch, options) {
198
+ const directSendOperation = async (args, spec) => {
199
+ return this.client.sendOperationRequest(args, spec);
200
+ };
201
+ const sendOperationFn = async (args, spec) => {
202
+ var _a;
203
+ let currentRawResponse = undefined;
204
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
205
+ const callback = (rawResponse, flatResponse) => {
206
+ currentRawResponse = rawResponse;
207
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
208
+ };
209
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
210
+ const flatResponse = await directSendOperation(updatedArgs, spec);
211
+ return {
212
+ flatResponse,
213
+ rawResponse: {
214
+ statusCode: currentRawResponse.status,
215
+ body: currentRawResponse.parsedBody,
216
+ headers: currentRawResponse.headers.toJSON()
217
+ }
218
+ };
219
+ };
220
+ const lro = createLroSpec({
221
+ sendOperationFn,
222
+ args: {
223
+ resourceGroupName,
224
+ clusterRp,
225
+ clusterResourceName,
226
+ clusterName,
227
+ fluxConfigurationName,
228
+ fluxConfigurationPatch,
229
+ options
230
+ },
231
+ spec: updateOperationSpec
232
+ });
233
+ const poller = await createHttpPoller(lro, {
234
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
235
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
236
+ resourceLocationConfig: "azure-async-operation"
237
+ });
238
+ await poller.poll();
239
+ return poller;
240
+ }
241
+ /**
242
+ * Update an existing Kubernetes Flux Configuration.
243
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
244
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
245
+ * Microsoft.HybridContainerService.
246
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
247
+ * connectedClusters, provisionedClusters.
248
+ * @param clusterName The name of the kubernetes cluster.
249
+ * @param fluxConfigurationName Name of the Flux Configuration.
250
+ * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.
251
+ * @param options The options parameters.
252
+ */
253
+ async beginUpdateAndWait(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, fluxConfigurationPatch, options) {
254
+ const poller = await this.beginUpdate(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, fluxConfigurationPatch, options);
255
+ return poller.pollUntilDone();
256
+ }
257
+ /**
258
+ * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from
259
+ * the source repo.
260
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
261
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
262
+ * Microsoft.HybridContainerService.
263
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
264
+ * connectedClusters, provisionedClusters.
265
+ * @param clusterName The name of the kubernetes cluster.
266
+ * @param fluxConfigurationName Name of the Flux Configuration.
267
+ * @param options The options parameters.
268
+ */
269
+ async beginDelete(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, options) {
270
+ const directSendOperation = async (args, spec) => {
271
+ return this.client.sendOperationRequest(args, spec);
272
+ };
273
+ const sendOperationFn = async (args, spec) => {
274
+ var _a;
275
+ let currentRawResponse = undefined;
276
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
277
+ const callback = (rawResponse, flatResponse) => {
278
+ currentRawResponse = rawResponse;
279
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
280
+ };
281
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
282
+ const flatResponse = await directSendOperation(updatedArgs, spec);
283
+ return {
284
+ flatResponse,
285
+ rawResponse: {
286
+ statusCode: currentRawResponse.status,
287
+ body: currentRawResponse.parsedBody,
288
+ headers: currentRawResponse.headers.toJSON()
289
+ }
290
+ };
291
+ };
292
+ const lro = createLroSpec({
293
+ sendOperationFn,
294
+ args: {
295
+ resourceGroupName,
296
+ clusterRp,
297
+ clusterResourceName,
298
+ clusterName,
299
+ fluxConfigurationName,
300
+ options
301
+ },
302
+ spec: deleteOperationSpec
303
+ });
304
+ const poller = await createHttpPoller(lro, {
305
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
306
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
307
+ resourceLocationConfig: "azure-async-operation"
308
+ });
309
+ await poller.poll();
310
+ return poller;
311
+ }
312
+ /**
313
+ * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from
314
+ * the source repo.
315
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
316
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
317
+ * Microsoft.HybridContainerService.
318
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
319
+ * connectedClusters, provisionedClusters.
320
+ * @param clusterName The name of the kubernetes cluster.
321
+ * @param fluxConfigurationName Name of the Flux Configuration.
322
+ * @param options The options parameters.
323
+ */
324
+ async beginDeleteAndWait(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, options) {
325
+ const poller = await this.beginDelete(resourceGroupName, clusterRp, clusterResourceName, clusterName, fluxConfigurationName, options);
326
+ return poller.pollUntilDone();
327
+ }
328
+ /**
329
+ * List all Flux Configurations.
330
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
331
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
332
+ * Microsoft.HybridContainerService.
333
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
334
+ * connectedClusters, provisionedClusters.
335
+ * @param clusterName The name of the kubernetes cluster.
336
+ * @param options The options parameters.
337
+ */
338
+ _list(resourceGroupName, clusterRp, clusterResourceName, clusterName, options) {
339
+ return this.client.sendOperationRequest({
340
+ resourceGroupName,
341
+ clusterRp,
342
+ clusterResourceName,
343
+ clusterName,
344
+ options
345
+ }, listOperationSpec);
346
+ }
347
+ /**
348
+ * ListNext
349
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
350
+ * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,
351
+ * Microsoft.HybridContainerService.
352
+ * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,
353
+ * connectedClusters, provisionedClusters.
354
+ * @param clusterName The name of the kubernetes cluster.
355
+ * @param nextLink The nextLink from the previous successful call to the List method.
356
+ * @param options The options parameters.
357
+ */
358
+ _listNext(resourceGroupName, clusterRp, clusterResourceName, clusterName, nextLink, options) {
359
+ return this.client.sendOperationRequest({
360
+ resourceGroupName,
361
+ clusterRp,
362
+ clusterResourceName,
363
+ clusterName,
364
+ nextLink,
365
+ options
366
+ }, listNextOperationSpec);
367
+ }
368
+ }
369
+ // Operation Specifications
370
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
371
+ const getOperationSpec = {
372
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/{fluxConfigurationName}",
373
+ httpMethod: "GET",
374
+ responses: {
375
+ 200: {
376
+ bodyMapper: Mappers.FluxConfiguration
377
+ },
378
+ default: {
379
+ bodyMapper: Mappers.ErrorResponse
380
+ }
381
+ },
382
+ queryParameters: [Parameters.apiVersion],
383
+ urlParameters: [
384
+ Parameters.$host,
385
+ Parameters.subscriptionId,
386
+ Parameters.resourceGroupName,
387
+ Parameters.clusterRp,
388
+ Parameters.clusterResourceName,
389
+ Parameters.clusterName,
390
+ Parameters.fluxConfigurationName
391
+ ],
392
+ headerParameters: [Parameters.accept],
393
+ serializer
394
+ };
395
+ const createOrUpdateOperationSpec = {
396
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/{fluxConfigurationName}",
397
+ httpMethod: "PUT",
398
+ responses: {
399
+ 200: {
400
+ bodyMapper: Mappers.FluxConfiguration
401
+ },
402
+ 201: {
403
+ bodyMapper: Mappers.FluxConfiguration
404
+ },
405
+ 202: {
406
+ bodyMapper: Mappers.FluxConfiguration
407
+ },
408
+ 204: {
409
+ bodyMapper: Mappers.FluxConfiguration
410
+ },
411
+ default: {
412
+ bodyMapper: Mappers.ErrorResponse
413
+ }
414
+ },
415
+ requestBody: Parameters.fluxConfiguration,
416
+ queryParameters: [Parameters.apiVersion],
417
+ urlParameters: [
418
+ Parameters.$host,
419
+ Parameters.subscriptionId,
420
+ Parameters.resourceGroupName,
421
+ Parameters.clusterRp,
422
+ Parameters.clusterResourceName,
423
+ Parameters.clusterName,
424
+ Parameters.fluxConfigurationName
425
+ ],
426
+ headerParameters: [Parameters.contentType, Parameters.accept],
427
+ mediaType: "json",
428
+ serializer
429
+ };
430
+ const updateOperationSpec = {
431
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/{fluxConfigurationName}",
432
+ httpMethod: "PATCH",
433
+ responses: {
434
+ 200: {
435
+ bodyMapper: Mappers.FluxConfiguration
436
+ },
437
+ 201: {
438
+ bodyMapper: Mappers.FluxConfiguration
439
+ },
440
+ 202: {
441
+ bodyMapper: Mappers.FluxConfiguration
442
+ },
443
+ 204: {
444
+ bodyMapper: Mappers.FluxConfiguration
445
+ },
446
+ default: {
447
+ bodyMapper: Mappers.ErrorResponse
448
+ }
449
+ },
450
+ requestBody: Parameters.fluxConfigurationPatch,
451
+ queryParameters: [Parameters.apiVersion],
452
+ urlParameters: [
453
+ Parameters.$host,
454
+ Parameters.subscriptionId,
455
+ Parameters.resourceGroupName,
456
+ Parameters.clusterRp,
457
+ Parameters.clusterResourceName,
458
+ Parameters.clusterName,
459
+ Parameters.fluxConfigurationName
460
+ ],
461
+ headerParameters: [Parameters.contentType, Parameters.accept],
462
+ mediaType: "json",
463
+ serializer
464
+ };
465
+ const deleteOperationSpec = {
466
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/{fluxConfigurationName}",
467
+ httpMethod: "DELETE",
468
+ responses: {
469
+ 200: {},
470
+ 201: {},
471
+ 202: {},
472
+ 204: {},
473
+ default: {
474
+ bodyMapper: Mappers.ErrorResponse
475
+ }
476
+ },
477
+ queryParameters: [Parameters.apiVersion, Parameters.forceDelete],
478
+ urlParameters: [
479
+ Parameters.$host,
480
+ Parameters.subscriptionId,
481
+ Parameters.resourceGroupName,
482
+ Parameters.clusterRp,
483
+ Parameters.clusterResourceName,
484
+ Parameters.clusterName,
485
+ Parameters.fluxConfigurationName
486
+ ],
487
+ headerParameters: [Parameters.accept],
488
+ serializer
489
+ };
490
+ const listOperationSpec = {
491
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations",
492
+ httpMethod: "GET",
493
+ responses: {
494
+ 200: {
495
+ bodyMapper: Mappers.FluxConfigurationsList
496
+ },
497
+ default: {
498
+ bodyMapper: Mappers.ErrorResponse
499
+ }
500
+ },
501
+ queryParameters: [Parameters.apiVersion],
502
+ urlParameters: [
503
+ Parameters.$host,
504
+ Parameters.subscriptionId,
505
+ Parameters.resourceGroupName,
506
+ Parameters.clusterRp,
507
+ Parameters.clusterResourceName,
508
+ Parameters.clusterName
509
+ ],
510
+ headerParameters: [Parameters.accept],
511
+ serializer
512
+ };
513
+ const listNextOperationSpec = {
514
+ path: "{nextLink}",
515
+ httpMethod: "GET",
516
+ responses: {
517
+ 200: {
518
+ bodyMapper: Mappers.FluxConfigurationsList
519
+ },
520
+ default: {
521
+ bodyMapper: Mappers.ErrorResponse
522
+ }
523
+ },
524
+ urlParameters: [
525
+ Parameters.$host,
526
+ Parameters.subscriptionId,
527
+ Parameters.resourceGroupName,
528
+ Parameters.clusterRp,
529
+ Parameters.clusterResourceName,
530
+ Parameters.clusterName,
531
+ Parameters.nextLink
532
+ ],
533
+ headerParameters: [Parameters.accept],
534
+ serializer
535
+ };
536
+ //# sourceMappingURL=fluxConfigurations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fluxConfigurations.js","sourceRoot":"","sources":["../../../src/operations/fluxConfigurations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAiB9C,4CAA4C;AAC5C,sDAAsD;AACtD,MAAM,OAAO,sBAAsB;IAGjC;;;OAGG;IACH,YAAY,MAAwC;QAClD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;OASG;IACI,IAAI,CACT,iBAAyB,EACzB,SA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QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,mBAAmB;QAC9B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { FluxConfigurations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SourceControlConfigurationClient } from \"../sourceControlConfigurationClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n FluxConfiguration,\n FluxConfigurationsListNextOptionalParams,\n FluxConfigurationsListOptionalParams,\n FluxConfigurationsListResponse,\n FluxConfigurationsGetOptionalParams,\n FluxConfigurationsGetResponse,\n FluxConfigurationsCreateOrUpdateOptionalParams,\n FluxConfigurationsCreateOrUpdateResponse,\n FluxConfigurationPatch,\n FluxConfigurationsUpdateOptionalParams,\n FluxConfigurationsUpdateResponse,\n FluxConfigurationsDeleteOptionalParams,\n FluxConfigurationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing FluxConfigurations operations. */\nexport class FluxConfigurationsImpl implements FluxConfigurations {\n private readonly client: SourceControlConfigurationClient;\n\n /**\n * Initialize a new instance of the class FluxConfigurations class.\n * @param client Reference to the service client\n */\n constructor(client: SourceControlConfigurationClient) {\n this.client = client;\n }\n\n /**\n * List all Flux Configurations.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: FluxConfigurationsListOptionalParams\n ): PagedAsyncIterableIterator<FluxConfiguration> {\n const iter = this.listPagingAll(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: FluxConfigurationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<FluxConfiguration[]> {\n let result: FluxConfigurationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: FluxConfigurationsListOptionalParams\n ): AsyncIterableIterator<FluxConfiguration> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets details of the Flux Configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param fluxConfigurationName Name of the Flux Configuration.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n fluxConfigurationName: string,\n options?: FluxConfigurationsGetOptionalParams\n ): Promise<FluxConfigurationsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n fluxConfigurationName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Create a new Kubernetes Flux Configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param fluxConfigurationName Name of the Flux Configuration.\n * @param fluxConfiguration Properties necessary to Create a FluxConfiguration.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n fluxConfigurationName: string,\n fluxConfiguration: FluxConfiguration,\n options?: FluxConfigurationsCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<FluxConfigurationsCreateOrUpdateResponse>,\n FluxConfigurationsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<FluxConfigurationsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n fluxConfigurationName,\n fluxConfiguration,\n options\n },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n FluxConfigurationsCreateOrUpdateResponse,\n OperationState<FluxConfigurationsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a new Kubernetes Flux Configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param fluxConfigurationName Name of the Flux Configuration.\n * @param fluxConfiguration Properties necessary to Create a FluxConfiguration.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n fluxConfigurationName: string,\n fluxConfiguration: FluxConfiguration,\n options?: FluxConfigurationsCreateOrUpdateOptionalParams\n ): Promise<FluxConfigurationsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n fluxConfigurationName,\n fluxConfiguration,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update an existing Kubernetes Flux Configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param fluxConfigurationName Name of the Flux Configuration.\n * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n fluxConfigurationName: string,\n fluxConfigurationPatch: FluxConfigurationPatch,\n options?: FluxConfigurationsUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<FluxConfigurationsUpdateResponse>,\n FluxConfigurationsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<FluxConfigurationsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n fluxConfigurationName,\n fluxConfigurationPatch,\n options\n },\n spec: updateOperationSpec\n });\n const poller = await createHttpPoller<\n FluxConfigurationsUpdateResponse,\n OperationState<FluxConfigurationsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update an existing Kubernetes Flux Configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param fluxConfigurationName Name of the Flux Configuration.\n * @param fluxConfigurationPatch Properties to Patch in an existing Flux Configuration.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n fluxConfigurationName: string,\n fluxConfigurationPatch: FluxConfigurationPatch,\n options?: FluxConfigurationsUpdateOptionalParams\n ): Promise<FluxConfigurationsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n fluxConfigurationName,\n fluxConfigurationPatch,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from\n * the source repo.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param fluxConfigurationName Name of the Flux Configuration.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n fluxConfigurationName: string,\n options?: FluxConfigurationsDeleteOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n fluxConfigurationName,\n options\n },\n spec: deleteOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * This will delete the YAML file used to set up the Flux Configuration, thus stopping future sync from\n * the source repo.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param fluxConfigurationName Name of the Flux Configuration.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n fluxConfigurationName: string,\n options?: FluxConfigurationsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n fluxConfigurationName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * List all Flux Configurations.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n options?: FluxConfigurationsListOptionalParams\n ): Promise<FluxConfigurationsListResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n options\n },\n listOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes,\n * Microsoft.HybridContainerService.\n * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters,\n * connectedClusters, provisionedClusters.\n * @param clusterName The name of the kubernetes cluster.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n clusterRp: string,\n clusterResourceName: string,\n clusterName: string,\n nextLink: string,\n options?: FluxConfigurationsListNextOptionalParams\n ): Promise<FluxConfigurationsListNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterRp,\n clusterResourceName,\n clusterName,\n nextLink,\n options\n },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/{fluxConfigurationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FluxConfiguration\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName,\n Parameters.fluxConfigurationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/{fluxConfigurationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.FluxConfiguration\n },\n 201: {\n bodyMapper: Mappers.FluxConfiguration\n },\n 202: {\n bodyMapper: Mappers.FluxConfiguration\n },\n 204: {\n bodyMapper: Mappers.FluxConfiguration\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.fluxConfiguration,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName,\n Parameters.fluxConfigurationName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/{fluxConfigurationName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.FluxConfiguration\n },\n 201: {\n bodyMapper: Mappers.FluxConfiguration\n },\n 202: {\n bodyMapper: Mappers.FluxConfiguration\n },\n 204: {\n bodyMapper: Mappers.FluxConfiguration\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.fluxConfigurationPatch,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName,\n Parameters.fluxConfigurationName\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/{fluxConfigurationName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.forceDelete],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName,\n Parameters.fluxConfigurationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FluxConfigurationsList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FluxConfigurationsList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterRp,\n Parameters.clusterResourceName,\n Parameters.clusterName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,7 @@
1
+ export * from "./extensions.js";
2
+ export * from "./operationStatus.js";
3
+ export * from "./fluxConfigurations.js";
4
+ export * from "./fluxConfigOperationStatus.js";
5
+ export * from "./sourceControlConfigurations.js";
6
+ export * from "./operations.js";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,14 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export * from "./extensions.js";
9
+ export * from "./operationStatus.js";
10
+ export * from "./fluxConfigurations.js";
11
+ export * from "./fluxConfigOperationStatus.js";
12
+ export * from "./sourceControlConfigurations.js";
13
+ export * from "./operations.js";
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,iBAAiB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./extensions.js\";\nexport * from \"./operationStatus.js\";\nexport * from \"./fluxConfigurations.js\";\nexport * from \"./fluxConfigOperationStatus.js\";\nexport * from \"./sourceControlConfigurations.js\";\nexport * from \"./operations.js\";\n"]}