cribl-control-plane 0.0.21__py3-none-any.whl → 0.4.0b23__py3-none-any.whl

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 (436) hide show
  1. cribl_control_plane/_hooks/clientcredentials.py +113 -48
  2. cribl_control_plane/_version.py +4 -4
  3. cribl_control_plane/acl.py +225 -0
  4. cribl_control_plane/auth_sdk.py +12 -176
  5. cribl_control_plane/basesdk.py +17 -1
  6. cribl_control_plane/branches.py +351 -0
  7. cribl_control_plane/commits.py +1403 -0
  8. cribl_control_plane/commits_files.py +391 -0
  9. cribl_control_plane/configs_versions.py +201 -0
  10. cribl_control_plane/cribl.py +495 -0
  11. cribl_control_plane/destinations.py +146 -805
  12. cribl_control_plane/destinations_pq.py +379 -0
  13. cribl_control_plane/errors/__init__.py +26 -10
  14. cribl_control_plane/errors/apierror.py +2 -0
  15. cribl_control_plane/errors/criblcontrolplaneerror.py +11 -7
  16. cribl_control_plane/errors/error.py +4 -2
  17. cribl_control_plane/errors/healthserverstatus_error.py +41 -0
  18. cribl_control_plane/errors/no_response_error.py +5 -1
  19. cribl_control_plane/errors/responsevalidationerror.py +2 -0
  20. cribl_control_plane/functions.py +367 -0
  21. cribl_control_plane/groups_configs.py +22 -0
  22. cribl_control_plane/groups_sdk.py +333 -578
  23. cribl_control_plane/health.py +38 -18
  24. cribl_control_plane/hectokens.py +503 -0
  25. cribl_control_plane/httpclient.py +0 -1
  26. cribl_control_plane/{lake.py → lakedatasets.py} +207 -115
  27. cribl_control_plane/models/__init__.py +3644 -5986
  28. cribl_control_plane/models/addhectokenrequest.py +7 -1
  29. cribl_control_plane/models/authtoken.py +5 -1
  30. cribl_control_plane/models/backupssettings_union.py +37 -0
  31. cribl_control_plane/models/{lookupversions.py → branchinfo.py} +4 -4
  32. cribl_control_plane/models/cacheconnection.py +30 -2
  33. cribl_control_plane/models/cacheconnectionbackfillstatus.py +2 -1
  34. cribl_control_plane/models/cloudprovider.py +2 -1
  35. cribl_control_plane/models/collectorazureblob.py +130 -0
  36. cribl_control_plane/models/collectorconf.py +56 -0
  37. cribl_control_plane/models/collectorcribllake.py +27 -0
  38. cribl_control_plane/models/collectordatabase.py +92 -0
  39. cribl_control_plane/models/collectorfilesystem.py +66 -0
  40. cribl_control_plane/models/collectorgooglecloudstorage.py +131 -0
  41. cribl_control_plane/models/collectorhealthcheck.py +269 -0
  42. cribl_control_plane/models/collectorrest.py +340 -0
  43. cribl_control_plane/models/collectors3.py +239 -0
  44. cribl_control_plane/models/collectorscript.py +59 -0
  45. cribl_control_plane/models/collectorsplunk.py +253 -0
  46. cribl_control_plane/models/configgroup.py +67 -11
  47. cribl_control_plane/models/configgroupcloud.py +17 -3
  48. cribl_control_plane/models/countedbranchinfo.py +20 -0
  49. cribl_control_plane/models/countedconfiggroup.py +20 -0
  50. cribl_control_plane/models/countedcribllakedataset.py +20 -0
  51. cribl_control_plane/models/counteddistributedsummary.py +20 -0
  52. cribl_control_plane/models/countedfunctionresponse.py +20 -0
  53. cribl_control_plane/models/countedgitcommitsummary.py +20 -0
  54. cribl_control_plane/models/countedgitcountresult.py +20 -0
  55. cribl_control_plane/models/countedgitdiffresult.py +20 -0
  56. cribl_control_plane/models/countedgitfilesresponse.py +20 -0
  57. cribl_control_plane/models/{getversioninfoop.py → countedgitinfo.py} +2 -6
  58. cribl_control_plane/models/countedgitlogresult.py +20 -0
  59. cribl_control_plane/models/countedgitrevertresult.py +20 -0
  60. cribl_control_plane/models/countedgitshowresult.py +20 -0
  61. cribl_control_plane/models/countedgitstatusresult.py +20 -0
  62. cribl_control_plane/models/{listinputop.py → countedinput.py} +2 -6
  63. cribl_control_plane/models/countedinputsplunkhec.py +20 -0
  64. cribl_control_plane/models/countedjobinfo.py +20 -0
  65. cribl_control_plane/models/countedmasterworkerentry.py +20 -0
  66. cribl_control_plane/models/countednumber.py +19 -0
  67. cribl_control_plane/models/{getversionbranchop.py → countedobject.py} +2 -6
  68. cribl_control_plane/models/{listoutputop.py → countedoutput.py} +2 -6
  69. cribl_control_plane/models/countedoutputsamplesresponse.py +20 -0
  70. cribl_control_plane/models/countedoutputtestresponse.py +20 -0
  71. cribl_control_plane/models/countedpackinfo.py +20 -0
  72. cribl_control_plane/models/{createpacksop.py → countedpackinstallinfo.py} +2 -6
  73. cribl_control_plane/models/{listpipelineop.py → countedpipeline.py} +2 -6
  74. cribl_control_plane/models/{listroutesop.py → countedroutes.py} +2 -6
  75. cribl_control_plane/models/countedstring.py +19 -0
  76. cribl_control_plane/models/countedsystemsettingsconf.py +20 -0
  77. cribl_control_plane/models/countedteamaccesscontrollist.py +20 -0
  78. cribl_control_plane/models/counteduseraccesscontrollist.py +20 -0
  79. cribl_control_plane/models/createauthloginop.py +18 -0
  80. cribl_control_plane/models/createconfiggroupbyproductop.py +46 -0
  81. cribl_control_plane/models/createcribllakedatasetbylakeidop.py +3 -21
  82. cribl_control_plane/models/createinputhectokenbyidop.py +3 -21
  83. cribl_control_plane/models/createoutputtestbyidop.py +3 -22
  84. cribl_control_plane/models/createroutesappendbyidop.py +4 -21
  85. cribl_control_plane/models/createversioncommitop.py +27 -20
  86. cribl_control_plane/models/createversionrevertop.py +7 -23
  87. cribl_control_plane/models/createversionundoop.py +7 -22
  88. cribl_control_plane/models/criblevent.py +15 -0
  89. cribl_control_plane/models/cribllakedataset.py +23 -3
  90. cribl_control_plane/models/cribllakedatasetupdate.py +95 -0
  91. cribl_control_plane/models/currentbranchresult.py +13 -0
  92. cribl_control_plane/models/datasetmetadata.py +18 -2
  93. cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +43 -0
  94. cribl_control_plane/models/deletecribllakedatasetbylakeidandidop.py +5 -24
  95. cribl_control_plane/models/deleteinputbyidop.py +3 -22
  96. cribl_control_plane/models/deleteoutputbyidop.py +3 -22
  97. cribl_control_plane/models/deleteoutputpqbyidop.py +3 -21
  98. cribl_control_plane/models/deletepacksbyidop.py +3 -22
  99. cribl_control_plane/models/deletepipelinebyidop.py +3 -22
  100. cribl_control_plane/models/difffiles.py +130 -0
  101. cribl_control_plane/models/diffline.py +26 -0
  102. cribl_control_plane/models/difflinecontext.py +28 -0
  103. cribl_control_plane/models/difflinedelete.py +25 -0
  104. cribl_control_plane/models/difflineinsert.py +25 -0
  105. cribl_control_plane/models/distributedsummary.py +6 -0
  106. cribl_control_plane/models/functionaggregatemetrics.py +206 -0
  107. cribl_control_plane/models/functionaggregation.py +172 -0
  108. cribl_control_plane/models/functionautotimestamp.py +173 -0
  109. cribl_control_plane/models/functioncef.py +111 -0
  110. cribl_control_plane/models/functionchain.py +75 -0
  111. cribl_control_plane/models/functionclone.py +75 -0
  112. cribl_control_plane/models/functioncode.py +96 -0
  113. cribl_control_plane/models/functioncomment.py +75 -0
  114. cribl_control_plane/models/functiondistinct.py +99 -0
  115. cribl_control_plane/models/functiondnslookup.py +250 -0
  116. cribl_control_plane/models/functiondrop.py +73 -0
  117. cribl_control_plane/models/functiondropdimensions.py +87 -0
  118. cribl_control_plane/models/functiondynamicsampling.py +121 -0
  119. cribl_control_plane/models/functioneval.py +103 -0
  120. cribl_control_plane/models/functioneventbreaker.py +103 -0
  121. cribl_control_plane/models/functioneventstats.py +92 -0
  122. cribl_control_plane/models/functionexternaldata.py +73 -0
  123. cribl_control_plane/models/functionflatten.py +90 -0
  124. cribl_control_plane/models/functionfoldkeys.py +89 -0
  125. cribl_control_plane/models/functiongenstats.py +73 -0
  126. cribl_control_plane/models/functiongeoip.py +120 -0
  127. cribl_control_plane/models/functiongrok.py +95 -0
  128. cribl_control_plane/models/functionhandlebar.py +112 -0
  129. cribl_control_plane/models/functionjoin.py +112 -0
  130. cribl_control_plane/models/functionjsonunroll.py +80 -0
  131. cribl_control_plane/models/functionlakeexport.py +102 -0
  132. cribl_control_plane/models/functionlimit.py +75 -0
  133. cribl_control_plane/models/functionlocalsearchdatatypeparser.py +76 -0
  134. cribl_control_plane/models/functionlocalsearchrulesetrunner.py +97 -0
  135. cribl_control_plane/models/functionlookup.py +148 -0
  136. cribl_control_plane/models/functionmask.py +121 -0
  137. cribl_control_plane/models/functionmvexpand.py +128 -0
  138. cribl_control_plane/models/functionmvpull.py +99 -0
  139. cribl_control_plane/models/functionnotificationpolicies.py +186 -0
  140. cribl_control_plane/models/functionnotifications.py +85 -0
  141. cribl_control_plane/models/functionnotify.py +196 -0
  142. cribl_control_plane/models/functionnumerify.py +119 -0
  143. cribl_control_plane/models/functionotlplogs.py +82 -0
  144. cribl_control_plane/models/functionotlpmetrics.py +118 -0
  145. cribl_control_plane/models/functionotlptraces.py +111 -0
  146. cribl_control_plane/models/functionpack.py +80 -0
  147. cribl_control_plane/models/functionpivot.py +85 -0
  148. cribl_control_plane/models/functionpublishmetrics.py +153 -0
  149. cribl_control_plane/models/functionredis.py +173 -0
  150. cribl_control_plane/models/functionregexextract.py +112 -0
  151. cribl_control_plane/models/functionregexfilter.py +95 -0
  152. cribl_control_plane/models/functionrename.py +107 -0
  153. cribl_control_plane/models/functionresponse.py +242 -0
  154. cribl_control_plane/models/functionrollupmetrics.py +114 -0
  155. cribl_control_plane/models/functionsampling.py +90 -0
  156. cribl_control_plane/models/functionsend.py +141 -0
  157. cribl_control_plane/models/functionsensitivedatascanner.py +128 -0
  158. cribl_control_plane/models/functionserde.py +161 -0
  159. cribl_control_plane/models/functionserialize.py +134 -0
  160. cribl_control_plane/models/functionsidlookup.py +93 -0
  161. cribl_control_plane/models/functionsnmptrapserialize.py +144 -0
  162. cribl_control_plane/models/functionsort.py +97 -0
  163. cribl_control_plane/models/functionstore.py +132 -0
  164. cribl_control_plane/models/functionsuppress.py +115 -0
  165. cribl_control_plane/models/functiontee.py +90 -0
  166. cribl_control_plane/models/functiontrimtimestamp.py +75 -0
  167. cribl_control_plane/models/functionunion.py +80 -0
  168. cribl_control_plane/models/functionunroll.py +80 -0
  169. cribl_control_plane/models/functionwindow.py +96 -0
  170. cribl_control_plane/models/functionxmlunroll.py +92 -0
  171. cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +63 -0
  172. cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +63 -0
  173. cribl_control_plane/models/getconfiggroupbyproductandidop.py +53 -0
  174. cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +43 -0
  175. cribl_control_plane/models/getcribllakedatasetbylakeidandidop.py +5 -24
  176. cribl_control_plane/models/getcribllakedatasetbylakeidop.py +56 -16
  177. cribl_control_plane/models/getfunctionsbyidop.py +18 -0
  178. cribl_control_plane/models/getinputbyidop.py +3 -22
  179. cribl_control_plane/models/getmasterworkerentryop.py +22 -0
  180. cribl_control_plane/models/getoutputbyidop.py +3 -22
  181. cribl_control_plane/models/getoutputpqbyidop.py +3 -21
  182. cribl_control_plane/models/getoutputsamplesbyidop.py +3 -22
  183. cribl_control_plane/models/getpacksbyidop.py +18 -0
  184. cribl_control_plane/models/getpacksop.py +3 -21
  185. cribl_control_plane/models/getpipelinebyidop.py +3 -22
  186. cribl_control_plane/models/getroutesbyidop.py +3 -22
  187. cribl_control_plane/models/getsummaryop.py +23 -32
  188. cribl_control_plane/models/getversioncountop.py +10 -27
  189. cribl_control_plane/models/getversiondiffop.py +12 -28
  190. cribl_control_plane/models/getversionfilesop.py +10 -28
  191. cribl_control_plane/models/getversionop.py +30 -0
  192. cribl_control_plane/models/getversionshowop.py +12 -28
  193. cribl_control_plane/models/getversionstatusop.py +7 -23
  194. cribl_control_plane/models/gitcommitsummary.py +3 -3
  195. cribl_control_plane/models/{routecloneconf.py → gitcountresult.py} +4 -4
  196. cribl_control_plane/models/gitdiffresult.py +16 -0
  197. cribl_control_plane/models/gitfilesresponse.py +7 -5
  198. cribl_control_plane/models/gitinfo.py +14 -3
  199. cribl_control_plane/models/gitlogresult.py +33 -0
  200. cribl_control_plane/models/gitrevertparams.py +3 -3
  201. cribl_control_plane/models/gitrevertresult.py +5 -5
  202. cribl_control_plane/models/gitshowresult.py +19 -0
  203. cribl_control_plane/models/gitstatusresult.py +0 -3
  204. cribl_control_plane/models/groupcreaterequest.py +172 -0
  205. cribl_control_plane/models/hbcriblinfo.py +42 -7
  206. cribl_control_plane/models/healthserverstatus.py +55 -0
  207. cribl_control_plane/models/heartbeatmetadata.py +6 -11
  208. cribl_control_plane/models/input.py +89 -81
  209. cribl_control_plane/models/inputappscope.py +131 -35
  210. cribl_control_plane/models/inputazureblob.py +62 -6
  211. cribl_control_plane/models/inputcloudflarehec.py +518 -0
  212. cribl_control_plane/models/inputcollection.py +49 -6
  213. cribl_control_plane/models/inputconfluentcloud.py +262 -22
  214. cribl_control_plane/models/inputcribl.py +52 -9
  215. cribl_control_plane/models/inputcriblhttp.py +124 -33
  216. cribl_control_plane/models/inputcribllakehttp.py +199 -29
  217. cribl_control_plane/models/inputcriblmetrics.py +53 -9
  218. cribl_control_plane/models/inputcribltcp.py +125 -27
  219. cribl_control_plane/models/inputcrowdstrike.py +99 -10
  220. cribl_control_plane/models/inputdatadogagent.py +101 -27
  221. cribl_control_plane/models/inputdatagen.py +47 -4
  222. cribl_control_plane/models/inputedgeprometheus.py +215 -58
  223. cribl_control_plane/models/inputelastic.py +170 -39
  224. cribl_control_plane/models/inputeventhub.py +212 -9
  225. cribl_control_plane/models/inputexec.py +59 -6
  226. cribl_control_plane/models/inputfile.py +83 -15
  227. cribl_control_plane/models/inputfirehose.py +100 -27
  228. cribl_control_plane/models/inputgooglepubsub.py +83 -15
  229. cribl_control_plane/models/{inputgrafana_union.py → inputgrafana.py} +261 -67
  230. cribl_control_plane/models/inputhttp.py +100 -27
  231. cribl_control_plane/models/inputhttpraw.py +100 -27
  232. cribl_control_plane/models/inputjournalfiles.py +51 -7
  233. cribl_control_plane/models/inputkafka.py +257 -19
  234. cribl_control_plane/models/inputkinesis.py +133 -17
  235. cribl_control_plane/models/inputkubeevents.py +52 -9
  236. cribl_control_plane/models/inputkubelogs.py +66 -13
  237. cribl_control_plane/models/inputkubemetrics.py +66 -13
  238. cribl_control_plane/models/inputloki.py +116 -30
  239. cribl_control_plane/models/inputmetrics.py +97 -24
  240. cribl_control_plane/models/inputmodeldriventelemetry.py +110 -29
  241. cribl_control_plane/models/inputmsk.py +148 -21
  242. cribl_control_plane/models/inputnetflow.py +50 -7
  243. cribl_control_plane/models/inputoffice365mgmt.py +115 -17
  244. cribl_control_plane/models/inputoffice365msgtrace.py +117 -19
  245. cribl_control_plane/models/inputoffice365service.py +117 -19
  246. cribl_control_plane/models/inputopentelemetry.py +146 -35
  247. cribl_control_plane/models/inputprometheus.py +196 -47
  248. cribl_control_plane/models/inputprometheusrw.py +117 -30
  249. cribl_control_plane/models/inputrawudp.py +50 -7
  250. cribl_control_plane/models/inputs3.py +85 -8
  251. cribl_control_plane/models/inputs3inventory.py +99 -10
  252. cribl_control_plane/models/inputsecuritylake.py +100 -10
  253. cribl_control_plane/models/inputsnmp.py +115 -24
  254. cribl_control_plane/models/inputsplunk.py +133 -31
  255. cribl_control_plane/models/inputsplunkhec.py +122 -32
  256. cribl_control_plane/models/inputsplunksearch.py +115 -18
  257. cribl_control_plane/models/inputsqs.py +102 -19
  258. cribl_control_plane/models/{inputsyslog_union.py → inputsyslog.py} +193 -51
  259. cribl_control_plane/models/inputsystemmetrics.py +207 -37
  260. cribl_control_plane/models/inputsystemstate.py +66 -13
  261. cribl_control_plane/models/inputtcp.py +125 -29
  262. cribl_control_plane/models/inputtcpjson.py +115 -29
  263. cribl_control_plane/models/inputwef.py +151 -22
  264. cribl_control_plane/models/inputwindowsmetrics.py +191 -38
  265. cribl_control_plane/models/inputwineventlogs.py +93 -11
  266. cribl_control_plane/models/inputwiz.py +176 -11
  267. cribl_control_plane/models/inputwizwebhook.py +466 -0
  268. cribl_control_plane/models/inputzscalerhec.py +122 -32
  269. cribl_control_plane/models/jobinfo.py +34 -0
  270. cribl_control_plane/models/jobstatus.py +48 -0
  271. cribl_control_plane/models/lakedatasetmetrics.py +17 -0
  272. cribl_control_plane/models/lakehouseconnectiontype.py +2 -1
  273. cribl_control_plane/models/listconfiggroupbyproductop.py +46 -0
  274. cribl_control_plane/models/listmasterworkerentryop.py +64 -0
  275. cribl_control_plane/models/logininfo.py +3 -3
  276. cribl_control_plane/models/masterworkerentry.py +20 -13
  277. cribl_control_plane/models/nodeactiveupgradestatus.py +2 -1
  278. cribl_control_plane/models/nodefailedupgradestatus.py +2 -1
  279. cribl_control_plane/models/nodeprovidedinfo.py +13 -11
  280. cribl_control_plane/models/nodeskippedupgradestatus.py +2 -1
  281. cribl_control_plane/models/nodeupgradestate.py +2 -1
  282. cribl_control_plane/models/nodeupgradestatus.py +51 -5
  283. cribl_control_plane/models/outpostnodeinfo.py +16 -0
  284. cribl_control_plane/models/output.py +103 -89
  285. cribl_control_plane/models/outputazureblob.py +174 -21
  286. cribl_control_plane/models/outputazuredataexplorer.py +517 -93
  287. cribl_control_plane/models/outputazureeventhub.py +318 -34
  288. cribl_control_plane/models/outputazurelogs.py +145 -26
  289. cribl_control_plane/models/outputchronicle.py +532 -0
  290. cribl_control_plane/models/outputclickhouse.py +208 -37
  291. cribl_control_plane/models/outputcloudflarer2.py +632 -0
  292. cribl_control_plane/models/outputcloudwatch.py +132 -26
  293. cribl_control_plane/models/outputconfluentcloud.py +387 -46
  294. cribl_control_plane/models/outputcriblhttp.py +203 -36
  295. cribl_control_plane/models/outputcribllake.py +161 -21
  296. cribl_control_plane/models/outputcribltcp.py +199 -34
  297. cribl_control_plane/models/outputcrowdstrikenextgensiem.py +176 -32
  298. cribl_control_plane/models/outputdatabricks.py +501 -0
  299. cribl_control_plane/models/outputdatadog.py +204 -36
  300. cribl_control_plane/models/outputdataset.py +186 -34
  301. cribl_control_plane/models/outputdevnull.py +5 -5
  302. cribl_control_plane/models/outputdiskspool.py +22 -7
  303. cribl_control_plane/models/outputdls3.py +238 -29
  304. cribl_control_plane/models/outputdynatracehttp.py +211 -37
  305. cribl_control_plane/models/outputdynatraceotlp.py +213 -39
  306. cribl_control_plane/models/outputelastic.py +199 -30
  307. cribl_control_plane/models/outputelasticcloud.py +174 -29
  308. cribl_control_plane/models/outputexabeam.py +99 -13
  309. cribl_control_plane/models/outputfilesystem.py +139 -14
  310. cribl_control_plane/models/outputgooglechronicle.py +216 -35
  311. cribl_control_plane/models/outputgooglecloudlogging.py +177 -34
  312. cribl_control_plane/models/outputgooglecloudstorage.py +220 -29
  313. cribl_control_plane/models/outputgooglepubsub.py +138 -51
  314. cribl_control_plane/models/outputgrafanacloud.py +386 -70
  315. cribl_control_plane/models/outputgraphite.py +131 -28
  316. cribl_control_plane/models/outputhoneycomb.py +145 -26
  317. cribl_control_plane/models/outputhumiohec.py +165 -31
  318. cribl_control_plane/models/outputinfluxdb.py +165 -28
  319. cribl_control_plane/models/outputkafka.py +378 -41
  320. cribl_control_plane/models/outputkinesis.py +168 -30
  321. cribl_control_plane/models/outputloki.py +171 -27
  322. cribl_control_plane/models/outputmicrosoftfabric.py +540 -0
  323. cribl_control_plane/models/outputminio.py +228 -28
  324. cribl_control_plane/models/outputmsk.py +270 -43
  325. cribl_control_plane/models/outputnewrelic.py +176 -34
  326. cribl_control_plane/models/outputnewrelicevents.py +166 -31
  327. cribl_control_plane/models/outputopentelemetry.py +240 -40
  328. cribl_control_plane/models/outputprometheus.py +145 -26
  329. cribl_control_plane/models/outputring.py +54 -13
  330. cribl_control_plane/models/outputs3.py +238 -31
  331. cribl_control_plane/models/outputsecuritylake.py +182 -21
  332. cribl_control_plane/models/outputsentinel.py +175 -32
  333. cribl_control_plane/models/outputsentineloneaisiem.py +184 -38
  334. cribl_control_plane/models/outputservicenow.py +226 -41
  335. cribl_control_plane/models/outputsignalfx.py +145 -26
  336. cribl_control_plane/models/outputsns.py +146 -28
  337. cribl_control_plane/models/outputsplunk.py +209 -39
  338. cribl_control_plane/models/outputsplunkhec.py +243 -31
  339. cribl_control_plane/models/outputsplunklb.py +266 -46
  340. cribl_control_plane/models/outputsqs.py +166 -36
  341. cribl_control_plane/models/outputstatsd.py +130 -28
  342. cribl_control_plane/models/outputstatsdext.py +131 -28
  343. cribl_control_plane/models/outputsumologic.py +146 -25
  344. cribl_control_plane/models/outputsyslog.py +323 -51
  345. cribl_control_plane/models/outputtcpjson.py +191 -37
  346. cribl_control_plane/models/outputwavefront.py +145 -26
  347. cribl_control_plane/models/outputwebhook.py +216 -38
  348. cribl_control_plane/models/outputxsiam.py +148 -31
  349. cribl_control_plane/models/packinfo.py +11 -8
  350. cribl_control_plane/models/packinstallinfo.py +14 -11
  351. cribl_control_plane/models/packrequestbody_union.py +140 -0
  352. cribl_control_plane/models/packupgraderequest.py +26 -0
  353. cribl_control_plane/models/piisettings_union.py +31 -0
  354. cribl_control_plane/models/productscore.py +10 -0
  355. cribl_control_plane/models/rbacresource.py +2 -1
  356. cribl_control_plane/models/resourcepolicy.py +15 -2
  357. cribl_control_plane/models/rollbacksettings_union.py +44 -0
  358. cribl_control_plane/models/routeconf.py +3 -4
  359. cribl_control_plane/models/routes.py +0 -24
  360. cribl_control_plane/models/runnablejob.py +27 -0
  361. cribl_control_plane/models/runnablejobcollection.py +628 -0
  362. cribl_control_plane/models/runnablejobexecutor.py +360 -0
  363. cribl_control_plane/models/runnablejobscheduledsearch.py +279 -0
  364. cribl_control_plane/models/schemeclientoauth.py +5 -0
  365. cribl_control_plane/models/snisettings_union.py +31 -0
  366. cribl_control_plane/models/systemsettingsconf.py +291 -0
  367. cribl_control_plane/models/tlssettings_union.py +43 -0
  368. cribl_control_plane/models/updateconfiggroupbyproductandidop.py +56 -0
  369. cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +53 -0
  370. cribl_control_plane/models/updatecribllakedatasetbylakeidandidop.py +14 -29
  371. cribl_control_plane/models/updatehectokenrequest.py +7 -1
  372. cribl_control_plane/models/updateinputbyidop.py +5 -23
  373. cribl_control_plane/models/updateinputhectokenbyidandtokenop.py +5 -23
  374. cribl_control_plane/models/updateoutputbyidop.py +5 -23
  375. cribl_control_plane/models/updatepacksbyidop.py +12 -50
  376. cribl_control_plane/models/updatepacksop.py +12 -24
  377. cribl_control_plane/models/updatepipelinebyidop.py +5 -23
  378. cribl_control_plane/models/updateroutesbyidop.py +8 -27
  379. cribl_control_plane/models/upgradegroupsettings_union.py +43 -0
  380. cribl_control_plane/models/upgradepackageurls.py +20 -0
  381. cribl_control_plane/models/upgradesettings.py +38 -0
  382. cribl_control_plane/models/uploadpackresponse.py +13 -0
  383. cribl_control_plane/models/{appmode.py → workertypes.py} +2 -5
  384. cribl_control_plane/{workers_sdk.py → nodes.py} +102 -234
  385. cribl_control_plane/packs.py +385 -184
  386. cribl_control_plane/pipelines.py +116 -66
  387. cribl_control_plane/routes_sdk.py +102 -70
  388. cribl_control_plane/samples.py +407 -0
  389. cribl_control_plane/sdk.py +35 -25
  390. cribl_control_plane/settings.py +20 -0
  391. cribl_control_plane/sources.py +143 -545
  392. cribl_control_plane/statuses.py +195 -0
  393. cribl_control_plane/summaries.py +195 -0
  394. cribl_control_plane/system_sdk.py +20 -0
  395. cribl_control_plane/teams.py +36 -28
  396. cribl_control_plane/tokens.py +210 -0
  397. cribl_control_plane/utils/__init__.py +18 -5
  398. cribl_control_plane/utils/annotations.py +32 -8
  399. cribl_control_plane/utils/eventstreaming.py +10 -0
  400. cribl_control_plane/utils/forms.py +21 -10
  401. cribl_control_plane/utils/queryparams.py +14 -2
  402. cribl_control_plane/utils/retries.py +69 -5
  403. cribl_control_plane/utils/security.py +5 -0
  404. cribl_control_plane/utils/unmarshal_json_response.py +15 -1
  405. cribl_control_plane/versions.py +31 -0
  406. cribl_control_plane/{distributed.py → versions_configs.py} +29 -35
  407. cribl_control_plane-0.4.0b23.dist-info/METADATA +855 -0
  408. cribl_control_plane-0.4.0b23.dist-info/RECORD +450 -0
  409. {cribl_control_plane-0.0.21.dist-info → cribl_control_plane-0.4.0b23.dist-info}/WHEEL +1 -1
  410. cribl_control_plane-0.4.0b23.dist-info/licenses/LICENSE +201 -0
  411. cribl_control_plane/errors/healthstatus_error.py +0 -32
  412. cribl_control_plane/models/createinputop.py +0 -18238
  413. cribl_control_plane/models/createoutputop.py +0 -18437
  414. cribl_control_plane/models/createpipelineop.py +0 -24
  415. cribl_control_plane/models/createproductsgroupsbyproductop.py +0 -54
  416. cribl_control_plane/models/createversionpushop.py +0 -23
  417. cribl_control_plane/models/createversionsyncop.py +0 -23
  418. cribl_control_plane/models/deletegroupsbyidop.py +0 -37
  419. cribl_control_plane/models/getgroupsaclbyidop.py +0 -63
  420. cribl_control_plane/models/getgroupsbyidop.py +0 -49
  421. cribl_control_plane/models/getgroupsconfigversionbyidop.py +0 -36
  422. cribl_control_plane/models/getproductsgroupsaclteamsbyproductandidop.py +0 -78
  423. cribl_control_plane/models/getproductsgroupsbyproductop.py +0 -58
  424. cribl_control_plane/models/getsummaryworkersop.py +0 -39
  425. cribl_control_plane/models/getversioncurrentbranchop.py +0 -23
  426. cribl_control_plane/models/getworkersop.py +0 -82
  427. cribl_control_plane/models/healthstatus.py +0 -33
  428. cribl_control_plane/models/packrequestbody.py +0 -75
  429. cribl_control_plane/models/restartresponse.py +0 -26
  430. cribl_control_plane/models/routesroute_input.py +0 -67
  431. cribl_control_plane/models/updategroupsbyidop.py +0 -48
  432. cribl_control_plane/models/updategroupsdeploybyidop.py +0 -46
  433. cribl_control_plane/models/updateworkersrestartop.py +0 -24
  434. cribl_control_plane/versioning.py +0 -2309
  435. cribl_control_plane-0.0.21.dist-info/METADATA +0 -561
  436. cribl_control_plane-0.0.21.dist-info/RECORD +0 -301
@@ -1,26 +1,42 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from .basesdk import BaseSDK
4
+ from .sdkconfiguration import SDKConfiguration
4
5
  from cribl_control_plane import errors, models, utils
5
6
  from cribl_control_plane._hooks import HookContext
7
+ from cribl_control_plane.hectokens import HecTokens
6
8
  from cribl_control_plane.types import BaseModel, OptionalNullable, UNSET
7
9
  from cribl_control_plane.utils import get_security_from_env
8
10
  from cribl_control_plane.utils.unmarshal_json_response import unmarshal_json_response
9
- from typing import Any, List, Mapping, Optional, Union, cast
11
+ from typing import Any, Mapping, Optional, Union, cast
10
12
 
11
13
 
12
14
  class Sources(BaseSDK):
13
- def list_source(
15
+ r"""Actions related to Sources"""
16
+
17
+ hec_tokens: HecTokens
18
+
19
+ def __init__(
20
+ self, sdk_config: SDKConfiguration, parent_ref: Optional[object] = None
21
+ ) -> None:
22
+ BaseSDK.__init__(self, sdk_config, parent_ref=parent_ref)
23
+ self.sdk_configuration = sdk_config
24
+ self._init_sdks()
25
+
26
+ def _init_sdks(self):
27
+ self.hec_tokens = HecTokens(self.sdk_configuration, parent_ref=self.parent_ref)
28
+
29
+ def list(
14
30
  self,
15
31
  *,
16
32
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
17
33
  server_url: Optional[str] = None,
18
34
  timeout_ms: Optional[int] = None,
19
35
  http_headers: Optional[Mapping[str, str]] = None,
20
- ) -> models.ListInputResponse:
21
- r"""Get a list of Source objects
36
+ ) -> models.CountedInput:
37
+ r"""List all Sources
22
38
 
23
- Get a list of Source objects
39
+ Get a list of all Sources.
24
40
 
25
41
  :param retries: Override the default retry configuration for this method
26
42
  :param server_url: Override the default server URL for this method
@@ -49,16 +65,21 @@ class Sources(BaseSDK):
49
65
  accept_header_value="application/json",
50
66
  http_headers=http_headers,
51
67
  security=self.sdk_configuration.security,
68
+ allow_empty_value=None,
52
69
  timeout_ms=timeout_ms,
53
70
  )
54
71
 
55
72
  if retries == UNSET:
56
73
  if self.sdk_configuration.retry_config is not UNSET:
57
74
  retries = self.sdk_configuration.retry_config
75
+ else:
76
+ retries = utils.RetryConfig(
77
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
78
+ )
58
79
 
59
80
  retry_config = None
60
81
  if isinstance(retries, utils.RetryConfig):
61
- retry_config = (retries, ["429", "500", "502", "503", "504"])
82
+ retry_config = (retries, ["429"])
62
83
 
63
84
  http_res = self.do_request(
64
85
  hook_ctx=HookContext(
@@ -77,7 +98,7 @@ class Sources(BaseSDK):
77
98
 
78
99
  response_data: Any = None
79
100
  if utils.match_response(http_res, "200", "application/json"):
80
- return unmarshal_json_response(models.ListInputResponse, http_res)
101
+ return unmarshal_json_response(models.CountedInput, http_res)
81
102
  if utils.match_response(http_res, "500", "application/json"):
82
103
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
83
104
  raise errors.Error(response_data, http_res)
@@ -90,17 +111,17 @@ class Sources(BaseSDK):
90
111
 
91
112
  raise errors.APIError("Unexpected response received", http_res)
92
113
 
93
- async def list_source_async(
114
+ async def list_async(
94
115
  self,
95
116
  *,
96
117
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
97
118
  server_url: Optional[str] = None,
98
119
  timeout_ms: Optional[int] = None,
99
120
  http_headers: Optional[Mapping[str, str]] = None,
100
- ) -> models.ListInputResponse:
101
- r"""Get a list of Source objects
121
+ ) -> models.CountedInput:
122
+ r"""List all Sources
102
123
 
103
- Get a list of Source objects
124
+ Get a list of all Sources.
104
125
 
105
126
  :param retries: Override the default retry configuration for this method
106
127
  :param server_url: Override the default server URL for this method
@@ -129,16 +150,21 @@ class Sources(BaseSDK):
129
150
  accept_header_value="application/json",
130
151
  http_headers=http_headers,
131
152
  security=self.sdk_configuration.security,
153
+ allow_empty_value=None,
132
154
  timeout_ms=timeout_ms,
133
155
  )
134
156
 
135
157
  if retries == UNSET:
136
158
  if self.sdk_configuration.retry_config is not UNSET:
137
159
  retries = self.sdk_configuration.retry_config
160
+ else:
161
+ retries = utils.RetryConfig(
162
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
163
+ )
138
164
 
139
165
  retry_config = None
140
166
  if isinstance(retries, utils.RetryConfig):
141
- retry_config = (retries, ["429", "500", "502", "503", "504"])
167
+ retry_config = (retries, ["429"])
142
168
 
143
169
  http_res = await self.do_request_async(
144
170
  hook_ctx=HookContext(
@@ -157,7 +183,7 @@ class Sources(BaseSDK):
157
183
 
158
184
  response_data: Any = None
159
185
  if utils.match_response(http_res, "200", "application/json"):
160
- return unmarshal_json_response(models.ListInputResponse, http_res)
186
+ return unmarshal_json_response(models.CountedInput, http_res)
161
187
  if utils.match_response(http_res, "500", "application/json"):
162
188
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
163
189
  raise errors.Error(response_data, http_res)
@@ -170,18 +196,18 @@ class Sources(BaseSDK):
170
196
 
171
197
  raise errors.APIError("Unexpected response received", http_res)
172
198
 
173
- def create_source(
199
+ def create(
174
200
  self,
175
201
  *,
176
- request: Union[models.CreateInputRequest, models.CreateInputRequestTypedDict],
202
+ request: Union[models.Input, models.InputTypedDict],
177
203
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
178
204
  server_url: Optional[str] = None,
179
205
  timeout_ms: Optional[int] = None,
180
206
  http_headers: Optional[Mapping[str, str]] = None,
181
- ) -> models.CreateInputResponse:
182
- r"""Create Source
207
+ ) -> models.CountedInput:
208
+ r"""Create a Source
183
209
 
184
- Create Source
210
+ Create a new Source.
185
211
 
186
212
  :param request: The request object to send.
187
213
  :param retries: Override the default retry configuration for this method
@@ -200,8 +226,8 @@ class Sources(BaseSDK):
200
226
  base_url = self._get_url(base_url, url_variables)
201
227
 
202
228
  if not isinstance(request, BaseModel):
203
- request = utils.unmarshal(request, models.CreateInputRequest)
204
- request = cast(models.CreateInputRequest, request)
229
+ request = utils.unmarshal(request, models.Input)
230
+ request = cast(models.Input, request)
205
231
 
206
232
  req = self._build_request(
207
233
  method="POST",
@@ -217,18 +243,23 @@ class Sources(BaseSDK):
217
243
  http_headers=http_headers,
218
244
  security=self.sdk_configuration.security,
219
245
  get_serialized_body=lambda: utils.serialize_request_body(
220
- request, False, False, "json", models.CreateInputRequest
246
+ request, False, False, "json", models.Input
221
247
  ),
248
+ allow_empty_value=None,
222
249
  timeout_ms=timeout_ms,
223
250
  )
224
251
 
225
252
  if retries == UNSET:
226
253
  if self.sdk_configuration.retry_config is not UNSET:
227
254
  retries = self.sdk_configuration.retry_config
255
+ else:
256
+ retries = utils.RetryConfig(
257
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
258
+ )
228
259
 
229
260
  retry_config = None
230
261
  if isinstance(retries, utils.RetryConfig):
231
- retry_config = (retries, ["429", "500", "502", "503", "504"])
262
+ retry_config = (retries, ["429"])
232
263
 
233
264
  http_res = self.do_request(
234
265
  hook_ctx=HookContext(
@@ -247,7 +278,7 @@ class Sources(BaseSDK):
247
278
 
248
279
  response_data: Any = None
249
280
  if utils.match_response(http_res, "200", "application/json"):
250
- return unmarshal_json_response(models.CreateInputResponse, http_res)
281
+ return unmarshal_json_response(models.CountedInput, http_res)
251
282
  if utils.match_response(http_res, "500", "application/json"):
252
283
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
253
284
  raise errors.Error(response_data, http_res)
@@ -260,18 +291,18 @@ class Sources(BaseSDK):
260
291
 
261
292
  raise errors.APIError("Unexpected response received", http_res)
262
293
 
263
- async def create_source_async(
294
+ async def create_async(
264
295
  self,
265
296
  *,
266
- request: Union[models.CreateInputRequest, models.CreateInputRequestTypedDict],
297
+ request: Union[models.Input, models.InputTypedDict],
267
298
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
268
299
  server_url: Optional[str] = None,
269
300
  timeout_ms: Optional[int] = None,
270
301
  http_headers: Optional[Mapping[str, str]] = None,
271
- ) -> models.CreateInputResponse:
272
- r"""Create Source
302
+ ) -> models.CountedInput:
303
+ r"""Create a Source
273
304
 
274
- Create Source
305
+ Create a new Source.
275
306
 
276
307
  :param request: The request object to send.
277
308
  :param retries: Override the default retry configuration for this method
@@ -290,8 +321,8 @@ class Sources(BaseSDK):
290
321
  base_url = self._get_url(base_url, url_variables)
291
322
 
292
323
  if not isinstance(request, BaseModel):
293
- request = utils.unmarshal(request, models.CreateInputRequest)
294
- request = cast(models.CreateInputRequest, request)
324
+ request = utils.unmarshal(request, models.Input)
325
+ request = cast(models.Input, request)
295
326
 
296
327
  req = self._build_request_async(
297
328
  method="POST",
@@ -307,18 +338,23 @@ class Sources(BaseSDK):
307
338
  http_headers=http_headers,
308
339
  security=self.sdk_configuration.security,
309
340
  get_serialized_body=lambda: utils.serialize_request_body(
310
- request, False, False, "json", models.CreateInputRequest
341
+ request, False, False, "json", models.Input
311
342
  ),
343
+ allow_empty_value=None,
312
344
  timeout_ms=timeout_ms,
313
345
  )
314
346
 
315
347
  if retries == UNSET:
316
348
  if self.sdk_configuration.retry_config is not UNSET:
317
349
  retries = self.sdk_configuration.retry_config
350
+ else:
351
+ retries = utils.RetryConfig(
352
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
353
+ )
318
354
 
319
355
  retry_config = None
320
356
  if isinstance(retries, utils.RetryConfig):
321
- retry_config = (retries, ["429", "500", "502", "503", "504"])
357
+ retry_config = (retries, ["429"])
322
358
 
323
359
  http_res = await self.do_request_async(
324
360
  hook_ctx=HookContext(
@@ -337,7 +373,7 @@ class Sources(BaseSDK):
337
373
 
338
374
  response_data: Any = None
339
375
  if utils.match_response(http_res, "200", "application/json"):
340
- return unmarshal_json_response(models.CreateInputResponse, http_res)
376
+ return unmarshal_json_response(models.CountedInput, http_res)
341
377
  if utils.match_response(http_res, "500", "application/json"):
342
378
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
343
379
  raise errors.Error(response_data, http_res)
@@ -350,7 +386,7 @@ class Sources(BaseSDK):
350
386
 
351
387
  raise errors.APIError("Unexpected response received", http_res)
352
388
 
353
- def get_source_by_id(
389
+ def get(
354
390
  self,
355
391
  *,
356
392
  id: str,
@@ -358,12 +394,12 @@ class Sources(BaseSDK):
358
394
  server_url: Optional[str] = None,
359
395
  timeout_ms: Optional[int] = None,
360
396
  http_headers: Optional[Mapping[str, str]] = None,
361
- ) -> models.GetInputByIDResponse:
362
- r"""Get Source by ID
397
+ ) -> models.CountedInput:
398
+ r"""Get a Source
363
399
 
364
- Get Source by ID
400
+ Get the specified Source.
365
401
 
366
- :param id: Unique ID to GET
402
+ :param id: The <code>id</code> of the Source to get.
367
403
  :param retries: Override the default retry configuration for this method
368
404
  :param server_url: Override the default server URL for this method
369
405
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -396,16 +432,21 @@ class Sources(BaseSDK):
396
432
  accept_header_value="application/json",
397
433
  http_headers=http_headers,
398
434
  security=self.sdk_configuration.security,
435
+ allow_empty_value=None,
399
436
  timeout_ms=timeout_ms,
400
437
  )
401
438
 
402
439
  if retries == UNSET:
403
440
  if self.sdk_configuration.retry_config is not UNSET:
404
441
  retries = self.sdk_configuration.retry_config
442
+ else:
443
+ retries = utils.RetryConfig(
444
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
445
+ )
405
446
 
406
447
  retry_config = None
407
448
  if isinstance(retries, utils.RetryConfig):
408
- retry_config = (retries, ["429", "500", "502", "503", "504"])
449
+ retry_config = (retries, ["429"])
409
450
 
410
451
  http_res = self.do_request(
411
452
  hook_ctx=HookContext(
@@ -424,7 +465,7 @@ class Sources(BaseSDK):
424
465
 
425
466
  response_data: Any = None
426
467
  if utils.match_response(http_res, "200", "application/json"):
427
- return unmarshal_json_response(models.GetInputByIDResponse, http_res)
468
+ return unmarshal_json_response(models.CountedInput, http_res)
428
469
  if utils.match_response(http_res, "500", "application/json"):
429
470
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
430
471
  raise errors.Error(response_data, http_res)
@@ -437,7 +478,7 @@ class Sources(BaseSDK):
437
478
 
438
479
  raise errors.APIError("Unexpected response received", http_res)
439
480
 
440
- async def get_source_by_id_async(
481
+ async def get_async(
441
482
  self,
442
483
  *,
443
484
  id: str,
@@ -445,12 +486,12 @@ class Sources(BaseSDK):
445
486
  server_url: Optional[str] = None,
446
487
  timeout_ms: Optional[int] = None,
447
488
  http_headers: Optional[Mapping[str, str]] = None,
448
- ) -> models.GetInputByIDResponse:
449
- r"""Get Source by ID
489
+ ) -> models.CountedInput:
490
+ r"""Get a Source
450
491
 
451
- Get Source by ID
492
+ Get the specified Source.
452
493
 
453
- :param id: Unique ID to GET
494
+ :param id: The <code>id</code> of the Source to get.
454
495
  :param retries: Override the default retry configuration for this method
455
496
  :param server_url: Override the default server URL for this method
456
497
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -483,16 +524,21 @@ class Sources(BaseSDK):
483
524
  accept_header_value="application/json",
484
525
  http_headers=http_headers,
485
526
  security=self.sdk_configuration.security,
527
+ allow_empty_value=None,
486
528
  timeout_ms=timeout_ms,
487
529
  )
488
530
 
489
531
  if retries == UNSET:
490
532
  if self.sdk_configuration.retry_config is not UNSET:
491
533
  retries = self.sdk_configuration.retry_config
534
+ else:
535
+ retries = utils.RetryConfig(
536
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
537
+ )
492
538
 
493
539
  retry_config = None
494
540
  if isinstance(retries, utils.RetryConfig):
495
- retry_config = (retries, ["429", "500", "502", "503", "504"])
541
+ retry_config = (retries, ["429"])
496
542
 
497
543
  http_res = await self.do_request_async(
498
544
  hook_ctx=HookContext(
@@ -511,7 +557,7 @@ class Sources(BaseSDK):
511
557
 
512
558
  response_data: Any = None
513
559
  if utils.match_response(http_res, "200", "application/json"):
514
- return unmarshal_json_response(models.GetInputByIDResponse, http_res)
560
+ return unmarshal_json_response(models.CountedInput, http_res)
515
561
  if utils.match_response(http_res, "500", "application/json"):
516
562
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
517
563
  raise errors.Error(response_data, http_res)
@@ -524,7 +570,7 @@ class Sources(BaseSDK):
524
570
 
525
571
  raise errors.APIError("Unexpected response received", http_res)
526
572
 
527
- def update_source_by_id(
573
+ def update(
528
574
  self,
529
575
  *,
530
576
  id: str,
@@ -533,13 +579,13 @@ class Sources(BaseSDK):
533
579
  server_url: Optional[str] = None,
534
580
  timeout_ms: Optional[int] = None,
535
581
  http_headers: Optional[Mapping[str, str]] = None,
536
- ) -> models.UpdateInputByIDResponse:
537
- r"""Update Source
582
+ ) -> models.CountedInput:
583
+ r"""Update a Source
538
584
 
539
- Update Source
585
+ Update the specified Source.</br></br>Provide a complete representation of the Source that you want to update in the request body. This endpoint does not support partial updates. Cribl removes any omitted fields when updating the Source.</br></br>Confirm that the configuration in your request body is correct before sending the request. If the configuration is incorrect, the updated Source might not function as expected.
540
586
 
541
- :param id: Unique ID to PATCH
542
- :param input: Source object to be updated
587
+ :param id: The <code>id</code> of the Source to update.
588
+ :param input: Input object
543
589
  :param retries: Override the default retry configuration for this method
544
590
  :param server_url: Override the default server URL for this method
545
591
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -576,16 +622,21 @@ class Sources(BaseSDK):
576
622
  get_serialized_body=lambda: utils.serialize_request_body(
577
623
  request.input, False, False, "json", models.Input
578
624
  ),
625
+ allow_empty_value=None,
579
626
  timeout_ms=timeout_ms,
580
627
  )
581
628
 
582
629
  if retries == UNSET:
583
630
  if self.sdk_configuration.retry_config is not UNSET:
584
631
  retries = self.sdk_configuration.retry_config
632
+ else:
633
+ retries = utils.RetryConfig(
634
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
635
+ )
585
636
 
586
637
  retry_config = None
587
638
  if isinstance(retries, utils.RetryConfig):
588
- retry_config = (retries, ["429", "500", "502", "503", "504"])
639
+ retry_config = (retries, ["429"])
589
640
 
590
641
  http_res = self.do_request(
591
642
  hook_ctx=HookContext(
@@ -604,7 +655,7 @@ class Sources(BaseSDK):
604
655
 
605
656
  response_data: Any = None
606
657
  if utils.match_response(http_res, "200", "application/json"):
607
- return unmarshal_json_response(models.UpdateInputByIDResponse, http_res)
658
+ return unmarshal_json_response(models.CountedInput, http_res)
608
659
  if utils.match_response(http_res, "500", "application/json"):
609
660
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
610
661
  raise errors.Error(response_data, http_res)
@@ -617,7 +668,7 @@ class Sources(BaseSDK):
617
668
 
618
669
  raise errors.APIError("Unexpected response received", http_res)
619
670
 
620
- async def update_source_by_id_async(
671
+ async def update_async(
621
672
  self,
622
673
  *,
623
674
  id: str,
@@ -626,13 +677,13 @@ class Sources(BaseSDK):
626
677
  server_url: Optional[str] = None,
627
678
  timeout_ms: Optional[int] = None,
628
679
  http_headers: Optional[Mapping[str, str]] = None,
629
- ) -> models.UpdateInputByIDResponse:
630
- r"""Update Source
680
+ ) -> models.CountedInput:
681
+ r"""Update a Source
631
682
 
632
- Update Source
683
+ Update the specified Source.</br></br>Provide a complete representation of the Source that you want to update in the request body. This endpoint does not support partial updates. Cribl removes any omitted fields when updating the Source.</br></br>Confirm that the configuration in your request body is correct before sending the request. If the configuration is incorrect, the updated Source might not function as expected.
633
684
 
634
- :param id: Unique ID to PATCH
635
- :param input: Source object to be updated
685
+ :param id: The <code>id</code> of the Source to update.
686
+ :param input: Input object
636
687
  :param retries: Override the default retry configuration for this method
637
688
  :param server_url: Override the default server URL for this method
638
689
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -669,16 +720,21 @@ class Sources(BaseSDK):
669
720
  get_serialized_body=lambda: utils.serialize_request_body(
670
721
  request.input, False, False, "json", models.Input
671
722
  ),
723
+ allow_empty_value=None,
672
724
  timeout_ms=timeout_ms,
673
725
  )
674
726
 
675
727
  if retries == UNSET:
676
728
  if self.sdk_configuration.retry_config is not UNSET:
677
729
  retries = self.sdk_configuration.retry_config
730
+ else:
731
+ retries = utils.RetryConfig(
732
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
733
+ )
678
734
 
679
735
  retry_config = None
680
736
  if isinstance(retries, utils.RetryConfig):
681
- retry_config = (retries, ["429", "500", "502", "503", "504"])
737
+ retry_config = (retries, ["429"])
682
738
 
683
739
  http_res = await self.do_request_async(
684
740
  hook_ctx=HookContext(
@@ -697,7 +753,7 @@ class Sources(BaseSDK):
697
753
 
698
754
  response_data: Any = None
699
755
  if utils.match_response(http_res, "200", "application/json"):
700
- return unmarshal_json_response(models.UpdateInputByIDResponse, http_res)
756
+ return unmarshal_json_response(models.CountedInput, http_res)
701
757
  if utils.match_response(http_res, "500", "application/json"):
702
758
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
703
759
  raise errors.Error(response_data, http_res)
@@ -710,7 +766,7 @@ class Sources(BaseSDK):
710
766
 
711
767
  raise errors.APIError("Unexpected response received", http_res)
712
768
 
713
- def delete_source_by_id(
769
+ def delete(
714
770
  self,
715
771
  *,
716
772
  id: str,
@@ -718,12 +774,12 @@ class Sources(BaseSDK):
718
774
  server_url: Optional[str] = None,
719
775
  timeout_ms: Optional[int] = None,
720
776
  http_headers: Optional[Mapping[str, str]] = None,
721
- ) -> models.DeleteInputByIDResponse:
722
- r"""Delete Source
777
+ ) -> models.CountedInput:
778
+ r"""Delete a Source
723
779
 
724
- Delete Source
780
+ Delete the specified Source.
725
781
 
726
- :param id: Unique ID to DELETE
782
+ :param id: The <code>id</code> of the Source to delete.
727
783
  :param retries: Override the default retry configuration for this method
728
784
  :param server_url: Override the default server URL for this method
729
785
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -756,16 +812,21 @@ class Sources(BaseSDK):
756
812
  accept_header_value="application/json",
757
813
  http_headers=http_headers,
758
814
  security=self.sdk_configuration.security,
815
+ allow_empty_value=None,
759
816
  timeout_ms=timeout_ms,
760
817
  )
761
818
 
762
819
  if retries == UNSET:
763
820
  if self.sdk_configuration.retry_config is not UNSET:
764
821
  retries = self.sdk_configuration.retry_config
822
+ else:
823
+ retries = utils.RetryConfig(
824
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
825
+ )
765
826
 
766
827
  retry_config = None
767
828
  if isinstance(retries, utils.RetryConfig):
768
- retry_config = (retries, ["429", "500", "502", "503", "504"])
829
+ retry_config = (retries, ["429"])
769
830
 
770
831
  http_res = self.do_request(
771
832
  hook_ctx=HookContext(
@@ -784,7 +845,7 @@ class Sources(BaseSDK):
784
845
 
785
846
  response_data: Any = None
786
847
  if utils.match_response(http_res, "200", "application/json"):
787
- return unmarshal_json_response(models.DeleteInputByIDResponse, http_res)
848
+ return unmarshal_json_response(models.CountedInput, http_res)
788
849
  if utils.match_response(http_res, "500", "application/json"):
789
850
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
790
851
  raise errors.Error(response_data, http_res)
@@ -797,7 +858,7 @@ class Sources(BaseSDK):
797
858
 
798
859
  raise errors.APIError("Unexpected response received", http_res)
799
860
 
800
- async def delete_source_by_id_async(
861
+ async def delete_async(
801
862
  self,
802
863
  *,
803
864
  id: str,
@@ -805,12 +866,12 @@ class Sources(BaseSDK):
805
866
  server_url: Optional[str] = None,
806
867
  timeout_ms: Optional[int] = None,
807
868
  http_headers: Optional[Mapping[str, str]] = None,
808
- ) -> models.DeleteInputByIDResponse:
809
- r"""Delete Source
869
+ ) -> models.CountedInput:
870
+ r"""Delete a Source
810
871
 
811
- Delete Source
872
+ Delete the specified Source.
812
873
 
813
- :param id: Unique ID to DELETE
874
+ :param id: The <code>id</code> of the Source to delete.
814
875
  :param retries: Override the default retry configuration for this method
815
876
  :param server_url: Override the default server URL for this method
816
877
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -843,16 +904,21 @@ class Sources(BaseSDK):
843
904
  accept_header_value="application/json",
844
905
  http_headers=http_headers,
845
906
  security=self.sdk_configuration.security,
907
+ allow_empty_value=None,
846
908
  timeout_ms=timeout_ms,
847
909
  )
848
910
 
849
911
  if retries == UNSET:
850
912
  if self.sdk_configuration.retry_config is not UNSET:
851
913
  retries = self.sdk_configuration.retry_config
914
+ else:
915
+ retries = utils.RetryConfig(
916
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
917
+ )
852
918
 
853
919
  retry_config = None
854
920
  if isinstance(retries, utils.RetryConfig):
855
- retry_config = (retries, ["429", "500", "502", "503", "504"])
921
+ retry_config = (retries, ["429"])
856
922
 
857
923
  http_res = await self.do_request_async(
858
924
  hook_ctx=HookContext(
@@ -871,475 +937,7 @@ class Sources(BaseSDK):
871
937
 
872
938
  response_data: Any = None
873
939
  if utils.match_response(http_res, "200", "application/json"):
874
- return unmarshal_json_response(models.DeleteInputByIDResponse, http_res)
875
- if utils.match_response(http_res, "500", "application/json"):
876
- response_data = unmarshal_json_response(errors.ErrorData, http_res)
877
- raise errors.Error(response_data, http_res)
878
- if utils.match_response(http_res, ["401", "4XX"], "*"):
879
- http_res_text = await utils.stream_to_text_async(http_res)
880
- raise errors.APIError("API error occurred", http_res, http_res_text)
881
- if utils.match_response(http_res, "5XX", "*"):
882
- http_res_text = await utils.stream_to_text_async(http_res)
883
- raise errors.APIError("API error occurred", http_res, http_res_text)
884
-
885
- raise errors.APIError("Unexpected response received", http_res)
886
-
887
- def create_source_hec_token_by_id(
888
- self,
889
- *,
890
- id: str,
891
- token: str,
892
- description: Optional[str] = None,
893
- enabled: Optional[bool] = None,
894
- metadata: Optional[
895
- Union[
896
- List[models.AddHecTokenRequestMetadatum],
897
- List[models.AddHecTokenRequestMetadatumTypedDict],
898
- ]
899
- ] = None,
900
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
901
- server_url: Optional[str] = None,
902
- timeout_ms: Optional[int] = None,
903
- http_headers: Optional[Mapping[str, str]] = None,
904
- ) -> models.CreateInputHecTokenByIDResponse:
905
- r"""Add token and optional metadata to an existing HEC Source
906
-
907
- Add token and optional metadata to an existing HEC Source
908
-
909
- :param id: HEC Source id
910
- :param token:
911
- :param description:
912
- :param enabled:
913
- :param metadata:
914
- :param retries: Override the default retry configuration for this method
915
- :param server_url: Override the default server URL for this method
916
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
917
- :param http_headers: Additional headers to set or replace on requests.
918
- """
919
- base_url = None
920
- url_variables = None
921
- if timeout_ms is None:
922
- timeout_ms = self.sdk_configuration.timeout_ms
923
-
924
- if server_url is not None:
925
- base_url = server_url
926
- else:
927
- base_url = self._get_url(base_url, url_variables)
928
-
929
- request = models.CreateInputHecTokenByIDRequest(
930
- id=id,
931
- add_hec_token_request=models.AddHecTokenRequest(
932
- description=description,
933
- enabled=enabled,
934
- metadata=utils.get_pydantic_model(
935
- metadata, Optional[List[models.AddHecTokenRequestMetadatum]]
936
- ),
937
- token=token,
938
- ),
939
- )
940
-
941
- req = self._build_request(
942
- method="POST",
943
- path="/system/inputs/{id}/hectoken",
944
- base_url=base_url,
945
- url_variables=url_variables,
946
- request=request,
947
- request_body_required=True,
948
- request_has_path_params=True,
949
- request_has_query_params=True,
950
- user_agent_header="user-agent",
951
- accept_header_value="application/json",
952
- http_headers=http_headers,
953
- security=self.sdk_configuration.security,
954
- get_serialized_body=lambda: utils.serialize_request_body(
955
- request.add_hec_token_request,
956
- False,
957
- False,
958
- "json",
959
- models.AddHecTokenRequest,
960
- ),
961
- timeout_ms=timeout_ms,
962
- )
963
-
964
- if retries == UNSET:
965
- if self.sdk_configuration.retry_config is not UNSET:
966
- retries = self.sdk_configuration.retry_config
967
-
968
- retry_config = None
969
- if isinstance(retries, utils.RetryConfig):
970
- retry_config = (retries, ["429", "500", "502", "503", "504"])
971
-
972
- http_res = self.do_request(
973
- hook_ctx=HookContext(
974
- config=self.sdk_configuration,
975
- base_url=base_url or "",
976
- operation_id="createInputHecTokenById",
977
- oauth2_scopes=[],
978
- security_source=get_security_from_env(
979
- self.sdk_configuration.security, models.Security
980
- ),
981
- ),
982
- request=req,
983
- error_status_codes=["401", "4XX", "500", "5XX"],
984
- retry_config=retry_config,
985
- )
986
-
987
- response_data: Any = None
988
- if utils.match_response(http_res, "200", "application/json"):
989
- return unmarshal_json_response(
990
- models.CreateInputHecTokenByIDResponse, http_res
991
- )
992
- if utils.match_response(http_res, "500", "application/json"):
993
- response_data = unmarshal_json_response(errors.ErrorData, http_res)
994
- raise errors.Error(response_data, http_res)
995
- if utils.match_response(http_res, ["401", "4XX"], "*"):
996
- http_res_text = utils.stream_to_text(http_res)
997
- raise errors.APIError("API error occurred", http_res, http_res_text)
998
- if utils.match_response(http_res, "5XX", "*"):
999
- http_res_text = utils.stream_to_text(http_res)
1000
- raise errors.APIError("API error occurred", http_res, http_res_text)
1001
-
1002
- raise errors.APIError("Unexpected response received", http_res)
1003
-
1004
- async def create_source_hec_token_by_id_async(
1005
- self,
1006
- *,
1007
- id: str,
1008
- token: str,
1009
- description: Optional[str] = None,
1010
- enabled: Optional[bool] = None,
1011
- metadata: Optional[
1012
- Union[
1013
- List[models.AddHecTokenRequestMetadatum],
1014
- List[models.AddHecTokenRequestMetadatumTypedDict],
1015
- ]
1016
- ] = None,
1017
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
1018
- server_url: Optional[str] = None,
1019
- timeout_ms: Optional[int] = None,
1020
- http_headers: Optional[Mapping[str, str]] = None,
1021
- ) -> models.CreateInputHecTokenByIDResponse:
1022
- r"""Add token and optional metadata to an existing HEC Source
1023
-
1024
- Add token and optional metadata to an existing HEC Source
1025
-
1026
- :param id: HEC Source id
1027
- :param token:
1028
- :param description:
1029
- :param enabled:
1030
- :param metadata:
1031
- :param retries: Override the default retry configuration for this method
1032
- :param server_url: Override the default server URL for this method
1033
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
1034
- :param http_headers: Additional headers to set or replace on requests.
1035
- """
1036
- base_url = None
1037
- url_variables = None
1038
- if timeout_ms is None:
1039
- timeout_ms = self.sdk_configuration.timeout_ms
1040
-
1041
- if server_url is not None:
1042
- base_url = server_url
1043
- else:
1044
- base_url = self._get_url(base_url, url_variables)
1045
-
1046
- request = models.CreateInputHecTokenByIDRequest(
1047
- id=id,
1048
- add_hec_token_request=models.AddHecTokenRequest(
1049
- description=description,
1050
- enabled=enabled,
1051
- metadata=utils.get_pydantic_model(
1052
- metadata, Optional[List[models.AddHecTokenRequestMetadatum]]
1053
- ),
1054
- token=token,
1055
- ),
1056
- )
1057
-
1058
- req = self._build_request_async(
1059
- method="POST",
1060
- path="/system/inputs/{id}/hectoken",
1061
- base_url=base_url,
1062
- url_variables=url_variables,
1063
- request=request,
1064
- request_body_required=True,
1065
- request_has_path_params=True,
1066
- request_has_query_params=True,
1067
- user_agent_header="user-agent",
1068
- accept_header_value="application/json",
1069
- http_headers=http_headers,
1070
- security=self.sdk_configuration.security,
1071
- get_serialized_body=lambda: utils.serialize_request_body(
1072
- request.add_hec_token_request,
1073
- False,
1074
- False,
1075
- "json",
1076
- models.AddHecTokenRequest,
1077
- ),
1078
- timeout_ms=timeout_ms,
1079
- )
1080
-
1081
- if retries == UNSET:
1082
- if self.sdk_configuration.retry_config is not UNSET:
1083
- retries = self.sdk_configuration.retry_config
1084
-
1085
- retry_config = None
1086
- if isinstance(retries, utils.RetryConfig):
1087
- retry_config = (retries, ["429", "500", "502", "503", "504"])
1088
-
1089
- http_res = await self.do_request_async(
1090
- hook_ctx=HookContext(
1091
- config=self.sdk_configuration,
1092
- base_url=base_url or "",
1093
- operation_id="createInputHecTokenById",
1094
- oauth2_scopes=[],
1095
- security_source=get_security_from_env(
1096
- self.sdk_configuration.security, models.Security
1097
- ),
1098
- ),
1099
- request=req,
1100
- error_status_codes=["401", "4XX", "500", "5XX"],
1101
- retry_config=retry_config,
1102
- )
1103
-
1104
- response_data: Any = None
1105
- if utils.match_response(http_res, "200", "application/json"):
1106
- return unmarshal_json_response(
1107
- models.CreateInputHecTokenByIDResponse, http_res
1108
- )
1109
- if utils.match_response(http_res, "500", "application/json"):
1110
- response_data = unmarshal_json_response(errors.ErrorData, http_res)
1111
- raise errors.Error(response_data, http_res)
1112
- if utils.match_response(http_res, ["401", "4XX"], "*"):
1113
- http_res_text = await utils.stream_to_text_async(http_res)
1114
- raise errors.APIError("API error occurred", http_res, http_res_text)
1115
- if utils.match_response(http_res, "5XX", "*"):
1116
- http_res_text = await utils.stream_to_text_async(http_res)
1117
- raise errors.APIError("API error occurred", http_res, http_res_text)
1118
-
1119
- raise errors.APIError("Unexpected response received", http_res)
1120
-
1121
- def update_source_hec_token_by_id_and_token(
1122
- self,
1123
- *,
1124
- id: str,
1125
- token: str,
1126
- description: Optional[str] = None,
1127
- enabled: Optional[bool] = None,
1128
- metadata: Optional[
1129
- Union[
1130
- List[models.UpdateHecTokenRequestMetadatum],
1131
- List[models.UpdateHecTokenRequestMetadatumTypedDict],
1132
- ]
1133
- ] = None,
1134
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
1135
- server_url: Optional[str] = None,
1136
- timeout_ms: Optional[int] = None,
1137
- http_headers: Optional[Mapping[str, str]] = None,
1138
- ) -> models.UpdateInputHecTokenByIDAndTokenResponse:
1139
- r"""Update token metadata on existing HEC Source
1140
-
1141
- Update token metadata on existing HEC Source
1142
-
1143
- :param id: HEC Source id
1144
- :param token: token to update
1145
- :param description:
1146
- :param enabled:
1147
- :param metadata:
1148
- :param retries: Override the default retry configuration for this method
1149
- :param server_url: Override the default server URL for this method
1150
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
1151
- :param http_headers: Additional headers to set or replace on requests.
1152
- """
1153
- base_url = None
1154
- url_variables = None
1155
- if timeout_ms is None:
1156
- timeout_ms = self.sdk_configuration.timeout_ms
1157
-
1158
- if server_url is not None:
1159
- base_url = server_url
1160
- else:
1161
- base_url = self._get_url(base_url, url_variables)
1162
-
1163
- request = models.UpdateInputHecTokenByIDAndTokenRequest(
1164
- id=id,
1165
- token=token,
1166
- update_hec_token_request=models.UpdateHecTokenRequest(
1167
- description=description,
1168
- enabled=enabled,
1169
- metadata=utils.get_pydantic_model(
1170
- metadata, Optional[List[models.UpdateHecTokenRequestMetadatum]]
1171
- ),
1172
- ),
1173
- )
1174
-
1175
- req = self._build_request(
1176
- method="PATCH",
1177
- path="/system/inputs/{id}/hectoken/{token}",
1178
- base_url=base_url,
1179
- url_variables=url_variables,
1180
- request=request,
1181
- request_body_required=True,
1182
- request_has_path_params=True,
1183
- request_has_query_params=True,
1184
- user_agent_header="user-agent",
1185
- accept_header_value="application/json",
1186
- http_headers=http_headers,
1187
- security=self.sdk_configuration.security,
1188
- get_serialized_body=lambda: utils.serialize_request_body(
1189
- request.update_hec_token_request,
1190
- False,
1191
- False,
1192
- "json",
1193
- models.UpdateHecTokenRequest,
1194
- ),
1195
- timeout_ms=timeout_ms,
1196
- )
1197
-
1198
- if retries == UNSET:
1199
- if self.sdk_configuration.retry_config is not UNSET:
1200
- retries = self.sdk_configuration.retry_config
1201
-
1202
- retry_config = None
1203
- if isinstance(retries, utils.RetryConfig):
1204
- retry_config = (retries, ["429", "500", "502", "503", "504"])
1205
-
1206
- http_res = self.do_request(
1207
- hook_ctx=HookContext(
1208
- config=self.sdk_configuration,
1209
- base_url=base_url or "",
1210
- operation_id="updateInputHecTokenByIdAndToken",
1211
- oauth2_scopes=[],
1212
- security_source=get_security_from_env(
1213
- self.sdk_configuration.security, models.Security
1214
- ),
1215
- ),
1216
- request=req,
1217
- error_status_codes=["401", "4XX", "500", "5XX"],
1218
- retry_config=retry_config,
1219
- )
1220
-
1221
- response_data: Any = None
1222
- if utils.match_response(http_res, "200", "application/json"):
1223
- return unmarshal_json_response(
1224
- models.UpdateInputHecTokenByIDAndTokenResponse, http_res
1225
- )
1226
- if utils.match_response(http_res, "500", "application/json"):
1227
- response_data = unmarshal_json_response(errors.ErrorData, http_res)
1228
- raise errors.Error(response_data, http_res)
1229
- if utils.match_response(http_res, ["401", "4XX"], "*"):
1230
- http_res_text = utils.stream_to_text(http_res)
1231
- raise errors.APIError("API error occurred", http_res, http_res_text)
1232
- if utils.match_response(http_res, "5XX", "*"):
1233
- http_res_text = utils.stream_to_text(http_res)
1234
- raise errors.APIError("API error occurred", http_res, http_res_text)
1235
-
1236
- raise errors.APIError("Unexpected response received", http_res)
1237
-
1238
- async def update_source_hec_token_by_id_and_token_async(
1239
- self,
1240
- *,
1241
- id: str,
1242
- token: str,
1243
- description: Optional[str] = None,
1244
- enabled: Optional[bool] = None,
1245
- metadata: Optional[
1246
- Union[
1247
- List[models.UpdateHecTokenRequestMetadatum],
1248
- List[models.UpdateHecTokenRequestMetadatumTypedDict],
1249
- ]
1250
- ] = None,
1251
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
1252
- server_url: Optional[str] = None,
1253
- timeout_ms: Optional[int] = None,
1254
- http_headers: Optional[Mapping[str, str]] = None,
1255
- ) -> models.UpdateInputHecTokenByIDAndTokenResponse:
1256
- r"""Update token metadata on existing HEC Source
1257
-
1258
- Update token metadata on existing HEC Source
1259
-
1260
- :param id: HEC Source id
1261
- :param token: token to update
1262
- :param description:
1263
- :param enabled:
1264
- :param metadata:
1265
- :param retries: Override the default retry configuration for this method
1266
- :param server_url: Override the default server URL for this method
1267
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
1268
- :param http_headers: Additional headers to set or replace on requests.
1269
- """
1270
- base_url = None
1271
- url_variables = None
1272
- if timeout_ms is None:
1273
- timeout_ms = self.sdk_configuration.timeout_ms
1274
-
1275
- if server_url is not None:
1276
- base_url = server_url
1277
- else:
1278
- base_url = self._get_url(base_url, url_variables)
1279
-
1280
- request = models.UpdateInputHecTokenByIDAndTokenRequest(
1281
- id=id,
1282
- token=token,
1283
- update_hec_token_request=models.UpdateHecTokenRequest(
1284
- description=description,
1285
- enabled=enabled,
1286
- metadata=utils.get_pydantic_model(
1287
- metadata, Optional[List[models.UpdateHecTokenRequestMetadatum]]
1288
- ),
1289
- ),
1290
- )
1291
-
1292
- req = self._build_request_async(
1293
- method="PATCH",
1294
- path="/system/inputs/{id}/hectoken/{token}",
1295
- base_url=base_url,
1296
- url_variables=url_variables,
1297
- request=request,
1298
- request_body_required=True,
1299
- request_has_path_params=True,
1300
- request_has_query_params=True,
1301
- user_agent_header="user-agent",
1302
- accept_header_value="application/json",
1303
- http_headers=http_headers,
1304
- security=self.sdk_configuration.security,
1305
- get_serialized_body=lambda: utils.serialize_request_body(
1306
- request.update_hec_token_request,
1307
- False,
1308
- False,
1309
- "json",
1310
- models.UpdateHecTokenRequest,
1311
- ),
1312
- timeout_ms=timeout_ms,
1313
- )
1314
-
1315
- if retries == UNSET:
1316
- if self.sdk_configuration.retry_config is not UNSET:
1317
- retries = self.sdk_configuration.retry_config
1318
-
1319
- retry_config = None
1320
- if isinstance(retries, utils.RetryConfig):
1321
- retry_config = (retries, ["429", "500", "502", "503", "504"])
1322
-
1323
- http_res = await self.do_request_async(
1324
- hook_ctx=HookContext(
1325
- config=self.sdk_configuration,
1326
- base_url=base_url or "",
1327
- operation_id="updateInputHecTokenByIdAndToken",
1328
- oauth2_scopes=[],
1329
- security_source=get_security_from_env(
1330
- self.sdk_configuration.security, models.Security
1331
- ),
1332
- ),
1333
- request=req,
1334
- error_status_codes=["401", "4XX", "500", "5XX"],
1335
- retry_config=retry_config,
1336
- )
1337
-
1338
- response_data: Any = None
1339
- if utils.match_response(http_res, "200", "application/json"):
1340
- return unmarshal_json_response(
1341
- models.UpdateInputHecTokenByIDAndTokenResponse, http_res
1342
- )
940
+ return unmarshal_json_response(models.CountedInput, http_res)
1343
941
  if utils.match_response(http_res, "500", "application/json"):
1344
942
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
1345
943
  raise errors.Error(response_data, http_res)