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,45 @@
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.destinations_pq import DestinationsPq
8
+ from cribl_control_plane.samples import Samples
6
9
  from cribl_control_plane.types import BaseModel, OptionalNullable, UNSET
7
10
  from cribl_control_plane.utils import get_security_from_env
8
11
  from cribl_control_plane.utils.unmarshal_json_response import unmarshal_json_response
9
- from typing import Any, List, Mapping, Optional, Union, cast
12
+ from typing import Any, Mapping, Optional, Union, cast
10
13
 
11
14
 
12
15
  class Destinations(BaseSDK):
13
- def list_destination(
16
+ r"""Actions related to Destinations"""
17
+
18
+ pq: DestinationsPq
19
+ samples: Samples
20
+
21
+ def __init__(
22
+ self, sdk_config: SDKConfiguration, parent_ref: Optional[object] = None
23
+ ) -> None:
24
+ BaseSDK.__init__(self, sdk_config, parent_ref=parent_ref)
25
+ self.sdk_configuration = sdk_config
26
+ self._init_sdks()
27
+
28
+ def _init_sdks(self):
29
+ self.pq = DestinationsPq(self.sdk_configuration, parent_ref=self.parent_ref)
30
+ self.samples = Samples(self.sdk_configuration, parent_ref=self.parent_ref)
31
+
32
+ def list(
14
33
  self,
15
34
  *,
16
35
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
17
36
  server_url: Optional[str] = None,
18
37
  timeout_ms: Optional[int] = None,
19
38
  http_headers: Optional[Mapping[str, str]] = None,
20
- ) -> models.ListOutputResponse:
21
- r"""Get a list of Destination objects
39
+ ) -> models.CountedOutput:
40
+ r"""List all Destinations
22
41
 
23
- Get a list of Destination objects
42
+ Get a list of all Destinations.
24
43
 
25
44
  :param retries: Override the default retry configuration for this method
26
45
  :param server_url: Override the default server URL for this method
@@ -49,16 +68,21 @@ class Destinations(BaseSDK):
49
68
  accept_header_value="application/json",
50
69
  http_headers=http_headers,
51
70
  security=self.sdk_configuration.security,
71
+ allow_empty_value=None,
52
72
  timeout_ms=timeout_ms,
53
73
  )
54
74
 
55
75
  if retries == UNSET:
56
76
  if self.sdk_configuration.retry_config is not UNSET:
57
77
  retries = self.sdk_configuration.retry_config
78
+ else:
79
+ retries = utils.RetryConfig(
80
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
81
+ )
58
82
 
59
83
  retry_config = None
60
84
  if isinstance(retries, utils.RetryConfig):
61
- retry_config = (retries, ["429", "500", "502", "503", "504"])
85
+ retry_config = (retries, ["429"])
62
86
 
63
87
  http_res = self.do_request(
64
88
  hook_ctx=HookContext(
@@ -77,7 +101,7 @@ class Destinations(BaseSDK):
77
101
 
78
102
  response_data: Any = None
79
103
  if utils.match_response(http_res, "200", "application/json"):
80
- return unmarshal_json_response(models.ListOutputResponse, http_res)
104
+ return unmarshal_json_response(models.CountedOutput, http_res)
81
105
  if utils.match_response(http_res, "500", "application/json"):
82
106
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
83
107
  raise errors.Error(response_data, http_res)
@@ -90,17 +114,17 @@ class Destinations(BaseSDK):
90
114
 
91
115
  raise errors.APIError("Unexpected response received", http_res)
92
116
 
93
- async def list_destination_async(
117
+ async def list_async(
94
118
  self,
95
119
  *,
96
120
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
97
121
  server_url: Optional[str] = None,
98
122
  timeout_ms: Optional[int] = None,
99
123
  http_headers: Optional[Mapping[str, str]] = None,
100
- ) -> models.ListOutputResponse:
101
- r"""Get a list of Destination objects
124
+ ) -> models.CountedOutput:
125
+ r"""List all Destinations
102
126
 
103
- Get a list of Destination objects
127
+ Get a list of all Destinations.
104
128
 
105
129
  :param retries: Override the default retry configuration for this method
106
130
  :param server_url: Override the default server URL for this method
@@ -129,16 +153,21 @@ class Destinations(BaseSDK):
129
153
  accept_header_value="application/json",
130
154
  http_headers=http_headers,
131
155
  security=self.sdk_configuration.security,
156
+ allow_empty_value=None,
132
157
  timeout_ms=timeout_ms,
133
158
  )
134
159
 
135
160
  if retries == UNSET:
136
161
  if self.sdk_configuration.retry_config is not UNSET:
137
162
  retries = self.sdk_configuration.retry_config
163
+ else:
164
+ retries = utils.RetryConfig(
165
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
166
+ )
138
167
 
139
168
  retry_config = None
140
169
  if isinstance(retries, utils.RetryConfig):
141
- retry_config = (retries, ["429", "500", "502", "503", "504"])
170
+ retry_config = (retries, ["429"])
142
171
 
143
172
  http_res = await self.do_request_async(
144
173
  hook_ctx=HookContext(
@@ -157,7 +186,7 @@ class Destinations(BaseSDK):
157
186
 
158
187
  response_data: Any = None
159
188
  if utils.match_response(http_res, "200", "application/json"):
160
- return unmarshal_json_response(models.ListOutputResponse, http_res)
189
+ return unmarshal_json_response(models.CountedOutput, http_res)
161
190
  if utils.match_response(http_res, "500", "application/json"):
162
191
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
163
192
  raise errors.Error(response_data, http_res)
@@ -170,18 +199,18 @@ class Destinations(BaseSDK):
170
199
 
171
200
  raise errors.APIError("Unexpected response received", http_res)
172
201
 
173
- def create_destination(
202
+ def create(
174
203
  self,
175
204
  *,
176
- request: Union[models.CreateOutputRequest, models.CreateOutputRequestTypedDict],
205
+ request: Union[models.Output, models.OutputTypedDict],
177
206
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
178
207
  server_url: Optional[str] = None,
179
208
  timeout_ms: Optional[int] = None,
180
209
  http_headers: Optional[Mapping[str, str]] = None,
181
- ) -> models.CreateOutputResponse:
182
- r"""Create Destination
210
+ ) -> models.CountedOutput:
211
+ r"""Create a Destination
183
212
 
184
- Create Destination
213
+ Create a new Destination.
185
214
 
186
215
  :param request: The request object to send.
187
216
  :param retries: Override the default retry configuration for this method
@@ -200,8 +229,8 @@ class Destinations(BaseSDK):
200
229
  base_url = self._get_url(base_url, url_variables)
201
230
 
202
231
  if not isinstance(request, BaseModel):
203
- request = utils.unmarshal(request, models.CreateOutputRequest)
204
- request = cast(models.CreateOutputRequest, request)
232
+ request = utils.unmarshal(request, models.Output)
233
+ request = cast(models.Output, request)
205
234
 
206
235
  req = self._build_request(
207
236
  method="POST",
@@ -217,18 +246,23 @@ class Destinations(BaseSDK):
217
246
  http_headers=http_headers,
218
247
  security=self.sdk_configuration.security,
219
248
  get_serialized_body=lambda: utils.serialize_request_body(
220
- request, False, False, "json", models.CreateOutputRequest
249
+ request, False, False, "json", models.Output
221
250
  ),
251
+ allow_empty_value=None,
222
252
  timeout_ms=timeout_ms,
223
253
  )
224
254
 
225
255
  if retries == UNSET:
226
256
  if self.sdk_configuration.retry_config is not UNSET:
227
257
  retries = self.sdk_configuration.retry_config
258
+ else:
259
+ retries = utils.RetryConfig(
260
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
261
+ )
228
262
 
229
263
  retry_config = None
230
264
  if isinstance(retries, utils.RetryConfig):
231
- retry_config = (retries, ["429", "500", "502", "503", "504"])
265
+ retry_config = (retries, ["429"])
232
266
 
233
267
  http_res = self.do_request(
234
268
  hook_ctx=HookContext(
@@ -247,7 +281,7 @@ class Destinations(BaseSDK):
247
281
 
248
282
  response_data: Any = None
249
283
  if utils.match_response(http_res, "200", "application/json"):
250
- return unmarshal_json_response(models.CreateOutputResponse, http_res)
284
+ return unmarshal_json_response(models.CountedOutput, http_res)
251
285
  if utils.match_response(http_res, "500", "application/json"):
252
286
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
253
287
  raise errors.Error(response_data, http_res)
@@ -260,18 +294,18 @@ class Destinations(BaseSDK):
260
294
 
261
295
  raise errors.APIError("Unexpected response received", http_res)
262
296
 
263
- async def create_destination_async(
297
+ async def create_async(
264
298
  self,
265
299
  *,
266
- request: Union[models.CreateOutputRequest, models.CreateOutputRequestTypedDict],
300
+ request: Union[models.Output, models.OutputTypedDict],
267
301
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
268
302
  server_url: Optional[str] = None,
269
303
  timeout_ms: Optional[int] = None,
270
304
  http_headers: Optional[Mapping[str, str]] = None,
271
- ) -> models.CreateOutputResponse:
272
- r"""Create Destination
305
+ ) -> models.CountedOutput:
306
+ r"""Create a Destination
273
307
 
274
- Create Destination
308
+ Create a new Destination.
275
309
 
276
310
  :param request: The request object to send.
277
311
  :param retries: Override the default retry configuration for this method
@@ -290,8 +324,8 @@ class Destinations(BaseSDK):
290
324
  base_url = self._get_url(base_url, url_variables)
291
325
 
292
326
  if not isinstance(request, BaseModel):
293
- request = utils.unmarshal(request, models.CreateOutputRequest)
294
- request = cast(models.CreateOutputRequest, request)
327
+ request = utils.unmarshal(request, models.Output)
328
+ request = cast(models.Output, request)
295
329
 
296
330
  req = self._build_request_async(
297
331
  method="POST",
@@ -307,18 +341,23 @@ class Destinations(BaseSDK):
307
341
  http_headers=http_headers,
308
342
  security=self.sdk_configuration.security,
309
343
  get_serialized_body=lambda: utils.serialize_request_body(
310
- request, False, False, "json", models.CreateOutputRequest
344
+ request, False, False, "json", models.Output
311
345
  ),
346
+ allow_empty_value=None,
312
347
  timeout_ms=timeout_ms,
313
348
  )
314
349
 
315
350
  if retries == UNSET:
316
351
  if self.sdk_configuration.retry_config is not UNSET:
317
352
  retries = self.sdk_configuration.retry_config
353
+ else:
354
+ retries = utils.RetryConfig(
355
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
356
+ )
318
357
 
319
358
  retry_config = None
320
359
  if isinstance(retries, utils.RetryConfig):
321
- retry_config = (retries, ["429", "500", "502", "503", "504"])
360
+ retry_config = (retries, ["429"])
322
361
 
323
362
  http_res = await self.do_request_async(
324
363
  hook_ctx=HookContext(
@@ -337,7 +376,7 @@ class Destinations(BaseSDK):
337
376
 
338
377
  response_data: Any = None
339
378
  if utils.match_response(http_res, "200", "application/json"):
340
- return unmarshal_json_response(models.CreateOutputResponse, http_res)
379
+ return unmarshal_json_response(models.CountedOutput, http_res)
341
380
  if utils.match_response(http_res, "500", "application/json"):
342
381
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
343
382
  raise errors.Error(response_data, http_res)
@@ -350,7 +389,7 @@ class Destinations(BaseSDK):
350
389
 
351
390
  raise errors.APIError("Unexpected response received", http_res)
352
391
 
353
- def get_destination_by_id(
392
+ def get(
354
393
  self,
355
394
  *,
356
395
  id: str,
@@ -358,12 +397,12 @@ class Destinations(BaseSDK):
358
397
  server_url: Optional[str] = None,
359
398
  timeout_ms: Optional[int] = None,
360
399
  http_headers: Optional[Mapping[str, str]] = None,
361
- ) -> models.GetOutputByIDResponse:
362
- r"""Get Destination by ID
400
+ ) -> models.CountedOutput:
401
+ r"""Get a Destination
363
402
 
364
- Get Destination by ID
403
+ Get the specified Destination.
365
404
 
366
- :param id: Unique ID to GET
405
+ :param id: The <code>id</code> of the Destination to get.
367
406
  :param retries: Override the default retry configuration for this method
368
407
  :param server_url: Override the default server URL for this method
369
408
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -396,16 +435,21 @@ class Destinations(BaseSDK):
396
435
  accept_header_value="application/json",
397
436
  http_headers=http_headers,
398
437
  security=self.sdk_configuration.security,
438
+ allow_empty_value=None,
399
439
  timeout_ms=timeout_ms,
400
440
  )
401
441
 
402
442
  if retries == UNSET:
403
443
  if self.sdk_configuration.retry_config is not UNSET:
404
444
  retries = self.sdk_configuration.retry_config
445
+ else:
446
+ retries = utils.RetryConfig(
447
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
448
+ )
405
449
 
406
450
  retry_config = None
407
451
  if isinstance(retries, utils.RetryConfig):
408
- retry_config = (retries, ["429", "500", "502", "503", "504"])
452
+ retry_config = (retries, ["429"])
409
453
 
410
454
  http_res = self.do_request(
411
455
  hook_ctx=HookContext(
@@ -424,7 +468,7 @@ class Destinations(BaseSDK):
424
468
 
425
469
  response_data: Any = None
426
470
  if utils.match_response(http_res, "200", "application/json"):
427
- return unmarshal_json_response(models.GetOutputByIDResponse, http_res)
471
+ return unmarshal_json_response(models.CountedOutput, http_res)
428
472
  if utils.match_response(http_res, "500", "application/json"):
429
473
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
430
474
  raise errors.Error(response_data, http_res)
@@ -437,7 +481,7 @@ class Destinations(BaseSDK):
437
481
 
438
482
  raise errors.APIError("Unexpected response received", http_res)
439
483
 
440
- async def get_destination_by_id_async(
484
+ async def get_async(
441
485
  self,
442
486
  *,
443
487
  id: str,
@@ -445,12 +489,12 @@ class Destinations(BaseSDK):
445
489
  server_url: Optional[str] = None,
446
490
  timeout_ms: Optional[int] = None,
447
491
  http_headers: Optional[Mapping[str, str]] = None,
448
- ) -> models.GetOutputByIDResponse:
449
- r"""Get Destination by ID
492
+ ) -> models.CountedOutput:
493
+ r"""Get a Destination
450
494
 
451
- Get Destination by ID
495
+ Get the specified Destination.
452
496
 
453
- :param id: Unique ID to GET
497
+ :param id: The <code>id</code> of the Destination to get.
454
498
  :param retries: Override the default retry configuration for this method
455
499
  :param server_url: Override the default server URL for this method
456
500
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -483,16 +527,21 @@ class Destinations(BaseSDK):
483
527
  accept_header_value="application/json",
484
528
  http_headers=http_headers,
485
529
  security=self.sdk_configuration.security,
530
+ allow_empty_value=None,
486
531
  timeout_ms=timeout_ms,
487
532
  )
488
533
 
489
534
  if retries == UNSET:
490
535
  if self.sdk_configuration.retry_config is not UNSET:
491
536
  retries = self.sdk_configuration.retry_config
537
+ else:
538
+ retries = utils.RetryConfig(
539
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
540
+ )
492
541
 
493
542
  retry_config = None
494
543
  if isinstance(retries, utils.RetryConfig):
495
- retry_config = (retries, ["429", "500", "502", "503", "504"])
544
+ retry_config = (retries, ["429"])
496
545
 
497
546
  http_res = await self.do_request_async(
498
547
  hook_ctx=HookContext(
@@ -511,7 +560,7 @@ class Destinations(BaseSDK):
511
560
 
512
561
  response_data: Any = None
513
562
  if utils.match_response(http_res, "200", "application/json"):
514
- return unmarshal_json_response(models.GetOutputByIDResponse, http_res)
563
+ return unmarshal_json_response(models.CountedOutput, http_res)
515
564
  if utils.match_response(http_res, "500", "application/json"):
516
565
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
517
566
  raise errors.Error(response_data, http_res)
@@ -524,7 +573,7 @@ class Destinations(BaseSDK):
524
573
 
525
574
  raise errors.APIError("Unexpected response received", http_res)
526
575
 
527
- def update_destination_by_id(
576
+ def update(
528
577
  self,
529
578
  *,
530
579
  id: str,
@@ -533,13 +582,13 @@ class Destinations(BaseSDK):
533
582
  server_url: Optional[str] = None,
534
583
  timeout_ms: Optional[int] = None,
535
584
  http_headers: Optional[Mapping[str, str]] = None,
536
- ) -> models.UpdateOutputByIDResponse:
537
- r"""Update Destination
585
+ ) -> models.CountedOutput:
586
+ r"""Update a Destination
538
587
 
539
- Update Destination
588
+ Update the specified Destination.</br></br>Provide a complete representation of the Destination that you want to update in the request body. This endpoint does not support partial updates. Cribl removes any omitted fields when updating the Destination.</br></br>Confirm that the configuration in your request body is correct before sending the request. If the configuration is incorrect, the updated Destination might not function as expected.
540
589
 
541
- :param id: Unique ID to PATCH
542
- :param output: Destination object to be updated
590
+ :param id: The <code>id</code> of the Destination to update.
591
+ :param output: Output object
543
592
  :param retries: Override the default retry configuration for this method
544
593
  :param server_url: Override the default server URL for this method
545
594
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -576,16 +625,21 @@ class Destinations(BaseSDK):
576
625
  get_serialized_body=lambda: utils.serialize_request_body(
577
626
  request.output, False, False, "json", models.Output
578
627
  ),
628
+ allow_empty_value=None,
579
629
  timeout_ms=timeout_ms,
580
630
  )
581
631
 
582
632
  if retries == UNSET:
583
633
  if self.sdk_configuration.retry_config is not UNSET:
584
634
  retries = self.sdk_configuration.retry_config
635
+ else:
636
+ retries = utils.RetryConfig(
637
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
638
+ )
585
639
 
586
640
  retry_config = None
587
641
  if isinstance(retries, utils.RetryConfig):
588
- retry_config = (retries, ["429", "500", "502", "503", "504"])
642
+ retry_config = (retries, ["429"])
589
643
 
590
644
  http_res = self.do_request(
591
645
  hook_ctx=HookContext(
@@ -604,7 +658,7 @@ class Destinations(BaseSDK):
604
658
 
605
659
  response_data: Any = None
606
660
  if utils.match_response(http_res, "200", "application/json"):
607
- return unmarshal_json_response(models.UpdateOutputByIDResponse, http_res)
661
+ return unmarshal_json_response(models.CountedOutput, http_res)
608
662
  if utils.match_response(http_res, "500", "application/json"):
609
663
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
610
664
  raise errors.Error(response_data, http_res)
@@ -617,7 +671,7 @@ class Destinations(BaseSDK):
617
671
 
618
672
  raise errors.APIError("Unexpected response received", http_res)
619
673
 
620
- async def update_destination_by_id_async(
674
+ async def update_async(
621
675
  self,
622
676
  *,
623
677
  id: str,
@@ -626,13 +680,13 @@ class Destinations(BaseSDK):
626
680
  server_url: Optional[str] = None,
627
681
  timeout_ms: Optional[int] = None,
628
682
  http_headers: Optional[Mapping[str, str]] = None,
629
- ) -> models.UpdateOutputByIDResponse:
630
- r"""Update Destination
683
+ ) -> models.CountedOutput:
684
+ r"""Update a Destination
631
685
 
632
- Update Destination
686
+ Update the specified Destination.</br></br>Provide a complete representation of the Destination that you want to update in the request body. This endpoint does not support partial updates. Cribl removes any omitted fields when updating the Destination.</br></br>Confirm that the configuration in your request body is correct before sending the request. If the configuration is incorrect, the updated Destination might not function as expected.
633
687
 
634
- :param id: Unique ID to PATCH
635
- :param output: Destination object to be updated
688
+ :param id: The <code>id</code> of the Destination to update.
689
+ :param output: Output object
636
690
  :param retries: Override the default retry configuration for this method
637
691
  :param server_url: Override the default server URL for this method
638
692
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -669,16 +723,21 @@ class Destinations(BaseSDK):
669
723
  get_serialized_body=lambda: utils.serialize_request_body(
670
724
  request.output, False, False, "json", models.Output
671
725
  ),
726
+ allow_empty_value=None,
672
727
  timeout_ms=timeout_ms,
673
728
  )
674
729
 
675
730
  if retries == UNSET:
676
731
  if self.sdk_configuration.retry_config is not UNSET:
677
732
  retries = self.sdk_configuration.retry_config
733
+ else:
734
+ retries = utils.RetryConfig(
735
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
736
+ )
678
737
 
679
738
  retry_config = None
680
739
  if isinstance(retries, utils.RetryConfig):
681
- retry_config = (retries, ["429", "500", "502", "503", "504"])
740
+ retry_config = (retries, ["429"])
682
741
 
683
742
  http_res = await self.do_request_async(
684
743
  hook_ctx=HookContext(
@@ -697,7 +756,7 @@ class Destinations(BaseSDK):
697
756
 
698
757
  response_data: Any = None
699
758
  if utils.match_response(http_res, "200", "application/json"):
700
- return unmarshal_json_response(models.UpdateOutputByIDResponse, http_res)
759
+ return unmarshal_json_response(models.CountedOutput, http_res)
701
760
  if utils.match_response(http_res, "500", "application/json"):
702
761
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
703
762
  raise errors.Error(response_data, http_res)
@@ -710,7 +769,7 @@ class Destinations(BaseSDK):
710
769
 
711
770
  raise errors.APIError("Unexpected response received", http_res)
712
771
 
713
- def delete_destination_by_id(
772
+ def delete(
714
773
  self,
715
774
  *,
716
775
  id: str,
@@ -718,12 +777,12 @@ class Destinations(BaseSDK):
718
777
  server_url: Optional[str] = None,
719
778
  timeout_ms: Optional[int] = None,
720
779
  http_headers: Optional[Mapping[str, str]] = None,
721
- ) -> models.DeleteOutputByIDResponse:
722
- r"""Delete Destination
780
+ ) -> models.CountedOutput:
781
+ r"""Delete a Destination
723
782
 
724
- Delete Destination
783
+ Delete the specified Destination.
725
784
 
726
- :param id: Unique ID to DELETE
785
+ :param id: The <code>id</code> of the Destination to delete.
727
786
  :param retries: Override the default retry configuration for this method
728
787
  :param server_url: Override the default server URL for this method
729
788
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -756,16 +815,21 @@ class Destinations(BaseSDK):
756
815
  accept_header_value="application/json",
757
816
  http_headers=http_headers,
758
817
  security=self.sdk_configuration.security,
818
+ allow_empty_value=None,
759
819
  timeout_ms=timeout_ms,
760
820
  )
761
821
 
762
822
  if retries == UNSET:
763
823
  if self.sdk_configuration.retry_config is not UNSET:
764
824
  retries = self.sdk_configuration.retry_config
825
+ else:
826
+ retries = utils.RetryConfig(
827
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
828
+ )
765
829
 
766
830
  retry_config = None
767
831
  if isinstance(retries, utils.RetryConfig):
768
- retry_config = (retries, ["429", "500", "502", "503", "504"])
832
+ retry_config = (retries, ["429"])
769
833
 
770
834
  http_res = self.do_request(
771
835
  hook_ctx=HookContext(
@@ -784,7 +848,7 @@ class Destinations(BaseSDK):
784
848
 
785
849
  response_data: Any = None
786
850
  if utils.match_response(http_res, "200", "application/json"):
787
- return unmarshal_json_response(models.DeleteOutputByIDResponse, http_res)
851
+ return unmarshal_json_response(models.CountedOutput, http_res)
788
852
  if utils.match_response(http_res, "500", "application/json"):
789
853
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
790
854
  raise errors.Error(response_data, http_res)
@@ -797,7 +861,7 @@ class Destinations(BaseSDK):
797
861
 
798
862
  raise errors.APIError("Unexpected response received", http_res)
799
863
 
800
- async def delete_destination_by_id_async(
864
+ async def delete_async(
801
865
  self,
802
866
  *,
803
867
  id: str,
@@ -805,12 +869,12 @@ class Destinations(BaseSDK):
805
869
  server_url: Optional[str] = None,
806
870
  timeout_ms: Optional[int] = None,
807
871
  http_headers: Optional[Mapping[str, str]] = None,
808
- ) -> models.DeleteOutputByIDResponse:
809
- r"""Delete Destination
872
+ ) -> models.CountedOutput:
873
+ r"""Delete a Destination
810
874
 
811
- Delete Destination
875
+ Delete the specified Destination.
812
876
 
813
- :param id: Unique ID to DELETE
877
+ :param id: The <code>id</code> of the Destination to delete.
814
878
  :param retries: Override the default retry configuration for this method
815
879
  :param server_url: Override the default server URL for this method
816
880
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -843,16 +907,21 @@ class Destinations(BaseSDK):
843
907
  accept_header_value="application/json",
844
908
  http_headers=http_headers,
845
909
  security=self.sdk_configuration.security,
910
+ allow_empty_value=None,
846
911
  timeout_ms=timeout_ms,
847
912
  )
848
913
 
849
914
  if retries == UNSET:
850
915
  if self.sdk_configuration.retry_config is not UNSET:
851
916
  retries = self.sdk_configuration.retry_config
917
+ else:
918
+ retries = utils.RetryConfig(
919
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
920
+ )
852
921
 
853
922
  retry_config = None
854
923
  if isinstance(retries, utils.RetryConfig):
855
- retry_config = (retries, ["429", "500", "502", "503", "504"])
924
+ retry_config = (retries, ["429"])
856
925
 
857
926
  http_res = await self.do_request_async(
858
927
  hook_ctx=HookContext(
@@ -871,735 +940,7 @@ class Destinations(BaseSDK):
871
940
 
872
941
  response_data: Any = None
873
942
  if utils.match_response(http_res, "200", "application/json"):
874
- return unmarshal_json_response(models.DeleteOutputByIDResponse, 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 delete_destination_pq_by_id(
888
- self,
889
- *,
890
- id: str,
891
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
892
- server_url: Optional[str] = None,
893
- timeout_ms: Optional[int] = None,
894
- http_headers: Optional[Mapping[str, str]] = None,
895
- ) -> models.DeleteOutputPqByIDResponse:
896
- r"""Clears destination persistent queue
897
-
898
- Clears destination persistent queue
899
-
900
- :param id: Destination Id
901
- :param retries: Override the default retry configuration for this method
902
- :param server_url: Override the default server URL for this method
903
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
904
- :param http_headers: Additional headers to set or replace on requests.
905
- """
906
- base_url = None
907
- url_variables = None
908
- if timeout_ms is None:
909
- timeout_ms = self.sdk_configuration.timeout_ms
910
-
911
- if server_url is not None:
912
- base_url = server_url
913
- else:
914
- base_url = self._get_url(base_url, url_variables)
915
-
916
- request = models.DeleteOutputPqByIDRequest(
917
- id=id,
918
- )
919
-
920
- req = self._build_request(
921
- method="DELETE",
922
- path="/system/outputs/{id}/pq",
923
- base_url=base_url,
924
- url_variables=url_variables,
925
- request=request,
926
- request_body_required=False,
927
- request_has_path_params=True,
928
- request_has_query_params=True,
929
- user_agent_header="user-agent",
930
- accept_header_value="application/json",
931
- http_headers=http_headers,
932
- security=self.sdk_configuration.security,
933
- timeout_ms=timeout_ms,
934
- )
935
-
936
- if retries == UNSET:
937
- if self.sdk_configuration.retry_config is not UNSET:
938
- retries = self.sdk_configuration.retry_config
939
-
940
- retry_config = None
941
- if isinstance(retries, utils.RetryConfig):
942
- retry_config = (retries, ["429", "500", "502", "503", "504"])
943
-
944
- http_res = self.do_request(
945
- hook_ctx=HookContext(
946
- config=self.sdk_configuration,
947
- base_url=base_url or "",
948
- operation_id="deleteOutputPqById",
949
- oauth2_scopes=[],
950
- security_source=get_security_from_env(
951
- self.sdk_configuration.security, models.Security
952
- ),
953
- ),
954
- request=req,
955
- error_status_codes=["401", "4XX", "500", "5XX"],
956
- retry_config=retry_config,
957
- )
958
-
959
- response_data: Any = None
960
- if utils.match_response(http_res, "200", "application/json"):
961
- return unmarshal_json_response(models.DeleteOutputPqByIDResponse, http_res)
962
- if utils.match_response(http_res, "500", "application/json"):
963
- response_data = unmarshal_json_response(errors.ErrorData, http_res)
964
- raise errors.Error(response_data, http_res)
965
- if utils.match_response(http_res, ["401", "4XX"], "*"):
966
- http_res_text = utils.stream_to_text(http_res)
967
- raise errors.APIError("API error occurred", http_res, http_res_text)
968
- if utils.match_response(http_res, "5XX", "*"):
969
- http_res_text = utils.stream_to_text(http_res)
970
- raise errors.APIError("API error occurred", http_res, http_res_text)
971
-
972
- raise errors.APIError("Unexpected response received", http_res)
973
-
974
- async def delete_destination_pq_by_id_async(
975
- self,
976
- *,
977
- id: str,
978
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
979
- server_url: Optional[str] = None,
980
- timeout_ms: Optional[int] = None,
981
- http_headers: Optional[Mapping[str, str]] = None,
982
- ) -> models.DeleteOutputPqByIDResponse:
983
- r"""Clears destination persistent queue
984
-
985
- Clears destination persistent queue
986
-
987
- :param id: Destination Id
988
- :param retries: Override the default retry configuration for this method
989
- :param server_url: Override the default server URL for this method
990
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
991
- :param http_headers: Additional headers to set or replace on requests.
992
- """
993
- base_url = None
994
- url_variables = None
995
- if timeout_ms is None:
996
- timeout_ms = self.sdk_configuration.timeout_ms
997
-
998
- if server_url is not None:
999
- base_url = server_url
1000
- else:
1001
- base_url = self._get_url(base_url, url_variables)
1002
-
1003
- request = models.DeleteOutputPqByIDRequest(
1004
- id=id,
1005
- )
1006
-
1007
- req = self._build_request_async(
1008
- method="DELETE",
1009
- path="/system/outputs/{id}/pq",
1010
- base_url=base_url,
1011
- url_variables=url_variables,
1012
- request=request,
1013
- request_body_required=False,
1014
- request_has_path_params=True,
1015
- request_has_query_params=True,
1016
- user_agent_header="user-agent",
1017
- accept_header_value="application/json",
1018
- http_headers=http_headers,
1019
- security=self.sdk_configuration.security,
1020
- timeout_ms=timeout_ms,
1021
- )
1022
-
1023
- if retries == UNSET:
1024
- if self.sdk_configuration.retry_config is not UNSET:
1025
- retries = self.sdk_configuration.retry_config
1026
-
1027
- retry_config = None
1028
- if isinstance(retries, utils.RetryConfig):
1029
- retry_config = (retries, ["429", "500", "502", "503", "504"])
1030
-
1031
- http_res = await self.do_request_async(
1032
- hook_ctx=HookContext(
1033
- config=self.sdk_configuration,
1034
- base_url=base_url or "",
1035
- operation_id="deleteOutputPqById",
1036
- oauth2_scopes=[],
1037
- security_source=get_security_from_env(
1038
- self.sdk_configuration.security, models.Security
1039
- ),
1040
- ),
1041
- request=req,
1042
- error_status_codes=["401", "4XX", "500", "5XX"],
1043
- retry_config=retry_config,
1044
- )
1045
-
1046
- response_data: Any = None
1047
- if utils.match_response(http_res, "200", "application/json"):
1048
- return unmarshal_json_response(models.DeleteOutputPqByIDResponse, http_res)
1049
- if utils.match_response(http_res, "500", "application/json"):
1050
- response_data = unmarshal_json_response(errors.ErrorData, http_res)
1051
- raise errors.Error(response_data, http_res)
1052
- if utils.match_response(http_res, ["401", "4XX"], "*"):
1053
- http_res_text = await utils.stream_to_text_async(http_res)
1054
- raise errors.APIError("API error occurred", http_res, http_res_text)
1055
- if utils.match_response(http_res, "5XX", "*"):
1056
- http_res_text = await utils.stream_to_text_async(http_res)
1057
- raise errors.APIError("API error occurred", http_res, http_res_text)
1058
-
1059
- raise errors.APIError("Unexpected response received", http_res)
1060
-
1061
- def get_destination_pq_by_id(
1062
- self,
1063
- *,
1064
- id: str,
1065
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
1066
- server_url: Optional[str] = None,
1067
- timeout_ms: Optional[int] = None,
1068
- http_headers: Optional[Mapping[str, str]] = None,
1069
- ) -> models.GetOutputPqByIDResponse:
1070
- r"""Retrieves status of latest clear PQ job for a destination
1071
-
1072
- Retrieves status of latest clear PQ job for a destination
1073
-
1074
- :param id: Destination Id
1075
- :param retries: Override the default retry configuration for this method
1076
- :param server_url: Override the default server URL for this method
1077
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
1078
- :param http_headers: Additional headers to set or replace on requests.
1079
- """
1080
- base_url = None
1081
- url_variables = None
1082
- if timeout_ms is None:
1083
- timeout_ms = self.sdk_configuration.timeout_ms
1084
-
1085
- if server_url is not None:
1086
- base_url = server_url
1087
- else:
1088
- base_url = self._get_url(base_url, url_variables)
1089
-
1090
- request = models.GetOutputPqByIDRequest(
1091
- id=id,
1092
- )
1093
-
1094
- req = self._build_request(
1095
- method="GET",
1096
- path="/system/outputs/{id}/pq",
1097
- base_url=base_url,
1098
- url_variables=url_variables,
1099
- request=request,
1100
- request_body_required=False,
1101
- request_has_path_params=True,
1102
- request_has_query_params=True,
1103
- user_agent_header="user-agent",
1104
- accept_header_value="application/json",
1105
- http_headers=http_headers,
1106
- security=self.sdk_configuration.security,
1107
- timeout_ms=timeout_ms,
1108
- )
1109
-
1110
- if retries == UNSET:
1111
- if self.sdk_configuration.retry_config is not UNSET:
1112
- retries = self.sdk_configuration.retry_config
1113
-
1114
- retry_config = None
1115
- if isinstance(retries, utils.RetryConfig):
1116
- retry_config = (retries, ["429", "500", "502", "503", "504"])
1117
-
1118
- http_res = self.do_request(
1119
- hook_ctx=HookContext(
1120
- config=self.sdk_configuration,
1121
- base_url=base_url or "",
1122
- operation_id="getOutputPqById",
1123
- oauth2_scopes=[],
1124
- security_source=get_security_from_env(
1125
- self.sdk_configuration.security, models.Security
1126
- ),
1127
- ),
1128
- request=req,
1129
- error_status_codes=["401", "4XX", "500", "5XX"],
1130
- retry_config=retry_config,
1131
- )
1132
-
1133
- response_data: Any = None
1134
- if utils.match_response(http_res, "200", "application/json"):
1135
- return unmarshal_json_response(models.GetOutputPqByIDResponse, http_res)
1136
- if utils.match_response(http_res, "500", "application/json"):
1137
- response_data = unmarshal_json_response(errors.ErrorData, http_res)
1138
- raise errors.Error(response_data, http_res)
1139
- if utils.match_response(http_res, ["401", "4XX"], "*"):
1140
- http_res_text = utils.stream_to_text(http_res)
1141
- raise errors.APIError("API error occurred", http_res, http_res_text)
1142
- if utils.match_response(http_res, "5XX", "*"):
1143
- http_res_text = utils.stream_to_text(http_res)
1144
- raise errors.APIError("API error occurred", http_res, http_res_text)
1145
-
1146
- raise errors.APIError("Unexpected response received", http_res)
1147
-
1148
- async def get_destination_pq_by_id_async(
1149
- self,
1150
- *,
1151
- id: str,
1152
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
1153
- server_url: Optional[str] = None,
1154
- timeout_ms: Optional[int] = None,
1155
- http_headers: Optional[Mapping[str, str]] = None,
1156
- ) -> models.GetOutputPqByIDResponse:
1157
- r"""Retrieves status of latest clear PQ job for a destination
1158
-
1159
- Retrieves status of latest clear PQ job for a destination
1160
-
1161
- :param id: Destination Id
1162
- :param retries: Override the default retry configuration for this method
1163
- :param server_url: Override the default server URL for this method
1164
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
1165
- :param http_headers: Additional headers to set or replace on requests.
1166
- """
1167
- base_url = None
1168
- url_variables = None
1169
- if timeout_ms is None:
1170
- timeout_ms = self.sdk_configuration.timeout_ms
1171
-
1172
- if server_url is not None:
1173
- base_url = server_url
1174
- else:
1175
- base_url = self._get_url(base_url, url_variables)
1176
-
1177
- request = models.GetOutputPqByIDRequest(
1178
- id=id,
1179
- )
1180
-
1181
- req = self._build_request_async(
1182
- method="GET",
1183
- path="/system/outputs/{id}/pq",
1184
- base_url=base_url,
1185
- url_variables=url_variables,
1186
- request=request,
1187
- request_body_required=False,
1188
- request_has_path_params=True,
1189
- request_has_query_params=True,
1190
- user_agent_header="user-agent",
1191
- accept_header_value="application/json",
1192
- http_headers=http_headers,
1193
- security=self.sdk_configuration.security,
1194
- timeout_ms=timeout_ms,
1195
- )
1196
-
1197
- if retries == UNSET:
1198
- if self.sdk_configuration.retry_config is not UNSET:
1199
- retries = self.sdk_configuration.retry_config
1200
-
1201
- retry_config = None
1202
- if isinstance(retries, utils.RetryConfig):
1203
- retry_config = (retries, ["429", "500", "502", "503", "504"])
1204
-
1205
- http_res = await self.do_request_async(
1206
- hook_ctx=HookContext(
1207
- config=self.sdk_configuration,
1208
- base_url=base_url or "",
1209
- operation_id="getOutputPqById",
1210
- oauth2_scopes=[],
1211
- security_source=get_security_from_env(
1212
- self.sdk_configuration.security, models.Security
1213
- ),
1214
- ),
1215
- request=req,
1216
- error_status_codes=["401", "4XX", "500", "5XX"],
1217
- retry_config=retry_config,
1218
- )
1219
-
1220
- response_data: Any = None
1221
- if utils.match_response(http_res, "200", "application/json"):
1222
- return unmarshal_json_response(models.GetOutputPqByIDResponse, http_res)
1223
- if utils.match_response(http_res, "500", "application/json"):
1224
- response_data = unmarshal_json_response(errors.ErrorData, http_res)
1225
- raise errors.Error(response_data, http_res)
1226
- if utils.match_response(http_res, ["401", "4XX"], "*"):
1227
- http_res_text = await utils.stream_to_text_async(http_res)
1228
- raise errors.APIError("API error occurred", http_res, http_res_text)
1229
- if utils.match_response(http_res, "5XX", "*"):
1230
- http_res_text = await utils.stream_to_text_async(http_res)
1231
- raise errors.APIError("API error occurred", http_res, http_res_text)
1232
-
1233
- raise errors.APIError("Unexpected response received", http_res)
1234
-
1235
- def get_destination_samples_by_id(
1236
- self,
1237
- *,
1238
- id: str,
1239
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
1240
- server_url: Optional[str] = None,
1241
- timeout_ms: Optional[int] = None,
1242
- http_headers: Optional[Mapping[str, str]] = None,
1243
- ) -> models.GetOutputSamplesByIDResponse:
1244
- r"""Retrieve samples data for the specified destination. Used to get sample data for the test action.
1245
-
1246
- Retrieve samples data for the specified destination. Used to get sample data for the test action.
1247
-
1248
- :param id: Destination Id
1249
- :param retries: Override the default retry configuration for this method
1250
- :param server_url: Override the default server URL for this method
1251
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
1252
- :param http_headers: Additional headers to set or replace on requests.
1253
- """
1254
- base_url = None
1255
- url_variables = None
1256
- if timeout_ms is None:
1257
- timeout_ms = self.sdk_configuration.timeout_ms
1258
-
1259
- if server_url is not None:
1260
- base_url = server_url
1261
- else:
1262
- base_url = self._get_url(base_url, url_variables)
1263
-
1264
- request = models.GetOutputSamplesByIDRequest(
1265
- id=id,
1266
- )
1267
-
1268
- req = self._build_request(
1269
- method="GET",
1270
- path="/system/outputs/{id}/samples",
1271
- base_url=base_url,
1272
- url_variables=url_variables,
1273
- request=request,
1274
- request_body_required=False,
1275
- request_has_path_params=True,
1276
- request_has_query_params=True,
1277
- user_agent_header="user-agent",
1278
- accept_header_value="application/json",
1279
- http_headers=http_headers,
1280
- security=self.sdk_configuration.security,
1281
- timeout_ms=timeout_ms,
1282
- )
1283
-
1284
- if retries == UNSET:
1285
- if self.sdk_configuration.retry_config is not UNSET:
1286
- retries = self.sdk_configuration.retry_config
1287
-
1288
- retry_config = None
1289
- if isinstance(retries, utils.RetryConfig):
1290
- retry_config = (retries, ["429", "500", "502", "503", "504"])
1291
-
1292
- http_res = self.do_request(
1293
- hook_ctx=HookContext(
1294
- config=self.sdk_configuration,
1295
- base_url=base_url or "",
1296
- operation_id="getOutputSamplesById",
1297
- oauth2_scopes=[],
1298
- security_source=get_security_from_env(
1299
- self.sdk_configuration.security, models.Security
1300
- ),
1301
- ),
1302
- request=req,
1303
- error_status_codes=["401", "4XX", "500", "5XX"],
1304
- retry_config=retry_config,
1305
- )
1306
-
1307
- response_data: Any = None
1308
- if utils.match_response(http_res, "200", "application/json"):
1309
- return unmarshal_json_response(
1310
- models.GetOutputSamplesByIDResponse, http_res
1311
- )
1312
- if utils.match_response(http_res, "500", "application/json"):
1313
- response_data = unmarshal_json_response(errors.ErrorData, http_res)
1314
- raise errors.Error(response_data, http_res)
1315
- if utils.match_response(http_res, ["401", "4XX"], "*"):
1316
- http_res_text = utils.stream_to_text(http_res)
1317
- raise errors.APIError("API error occurred", http_res, http_res_text)
1318
- if utils.match_response(http_res, "5XX", "*"):
1319
- http_res_text = utils.stream_to_text(http_res)
1320
- raise errors.APIError("API error occurred", http_res, http_res_text)
1321
-
1322
- raise errors.APIError("Unexpected response received", http_res)
1323
-
1324
- async def get_destination_samples_by_id_async(
1325
- self,
1326
- *,
1327
- id: str,
1328
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
1329
- server_url: Optional[str] = None,
1330
- timeout_ms: Optional[int] = None,
1331
- http_headers: Optional[Mapping[str, str]] = None,
1332
- ) -> models.GetOutputSamplesByIDResponse:
1333
- r"""Retrieve samples data for the specified destination. Used to get sample data for the test action.
1334
-
1335
- Retrieve samples data for the specified destination. Used to get sample data for the test action.
1336
-
1337
- :param id: Destination Id
1338
- :param retries: Override the default retry configuration for this method
1339
- :param server_url: Override the default server URL for this method
1340
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
1341
- :param http_headers: Additional headers to set or replace on requests.
1342
- """
1343
- base_url = None
1344
- url_variables = None
1345
- if timeout_ms is None:
1346
- timeout_ms = self.sdk_configuration.timeout_ms
1347
-
1348
- if server_url is not None:
1349
- base_url = server_url
1350
- else:
1351
- base_url = self._get_url(base_url, url_variables)
1352
-
1353
- request = models.GetOutputSamplesByIDRequest(
1354
- id=id,
1355
- )
1356
-
1357
- req = self._build_request_async(
1358
- method="GET",
1359
- path="/system/outputs/{id}/samples",
1360
- base_url=base_url,
1361
- url_variables=url_variables,
1362
- request=request,
1363
- request_body_required=False,
1364
- request_has_path_params=True,
1365
- request_has_query_params=True,
1366
- user_agent_header="user-agent",
1367
- accept_header_value="application/json",
1368
- http_headers=http_headers,
1369
- security=self.sdk_configuration.security,
1370
- timeout_ms=timeout_ms,
1371
- )
1372
-
1373
- if retries == UNSET:
1374
- if self.sdk_configuration.retry_config is not UNSET:
1375
- retries = self.sdk_configuration.retry_config
1376
-
1377
- retry_config = None
1378
- if isinstance(retries, utils.RetryConfig):
1379
- retry_config = (retries, ["429", "500", "502", "503", "504"])
1380
-
1381
- http_res = await self.do_request_async(
1382
- hook_ctx=HookContext(
1383
- config=self.sdk_configuration,
1384
- base_url=base_url or "",
1385
- operation_id="getOutputSamplesById",
1386
- oauth2_scopes=[],
1387
- security_source=get_security_from_env(
1388
- self.sdk_configuration.security, models.Security
1389
- ),
1390
- ),
1391
- request=req,
1392
- error_status_codes=["401", "4XX", "500", "5XX"],
1393
- retry_config=retry_config,
1394
- )
1395
-
1396
- response_data: Any = None
1397
- if utils.match_response(http_res, "200", "application/json"):
1398
- return unmarshal_json_response(
1399
- models.GetOutputSamplesByIDResponse, http_res
1400
- )
1401
- if utils.match_response(http_res, "500", "application/json"):
1402
- response_data = unmarshal_json_response(errors.ErrorData, http_res)
1403
- raise errors.Error(response_data, http_res)
1404
- if utils.match_response(http_res, ["401", "4XX"], "*"):
1405
- http_res_text = await utils.stream_to_text_async(http_res)
1406
- raise errors.APIError("API error occurred", http_res, http_res_text)
1407
- if utils.match_response(http_res, "5XX", "*"):
1408
- http_res_text = await utils.stream_to_text_async(http_res)
1409
- raise errors.APIError("API error occurred", http_res, http_res_text)
1410
-
1411
- raise errors.APIError("Unexpected response received", http_res)
1412
-
1413
- def create_destination_test_by_id(
1414
- self,
1415
- *,
1416
- id: str,
1417
- events: Union[List[models.CriblEvent], List[models.CriblEventTypedDict]],
1418
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
1419
- server_url: Optional[str] = None,
1420
- timeout_ms: Optional[int] = None,
1421
- http_headers: Optional[Mapping[str, str]] = None,
1422
- ) -> models.CreateOutputTestByIDResponse:
1423
- r"""Send sample data to a destination to validate configuration or test connectivity
1424
-
1425
- Send sample data to a destination to validate configuration or test connectivity
1426
-
1427
- :param id: Destination Id
1428
- :param events:
1429
- :param retries: Override the default retry configuration for this method
1430
- :param server_url: Override the default server URL for this method
1431
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
1432
- :param http_headers: Additional headers to set or replace on requests.
1433
- """
1434
- base_url = None
1435
- url_variables = None
1436
- if timeout_ms is None:
1437
- timeout_ms = self.sdk_configuration.timeout_ms
1438
-
1439
- if server_url is not None:
1440
- base_url = server_url
1441
- else:
1442
- base_url = self._get_url(base_url, url_variables)
1443
-
1444
- request = models.CreateOutputTestByIDRequest(
1445
- id=id,
1446
- output_test_request=models.OutputTestRequest(
1447
- events=utils.get_pydantic_model(events, List[models.CriblEvent]),
1448
- ),
1449
- )
1450
-
1451
- req = self._build_request(
1452
- method="POST",
1453
- path="/system/outputs/{id}/test",
1454
- base_url=base_url,
1455
- url_variables=url_variables,
1456
- request=request,
1457
- request_body_required=True,
1458
- request_has_path_params=True,
1459
- request_has_query_params=True,
1460
- user_agent_header="user-agent",
1461
- accept_header_value="application/json",
1462
- http_headers=http_headers,
1463
- security=self.sdk_configuration.security,
1464
- get_serialized_body=lambda: utils.serialize_request_body(
1465
- request.output_test_request,
1466
- False,
1467
- False,
1468
- "json",
1469
- models.OutputTestRequest,
1470
- ),
1471
- timeout_ms=timeout_ms,
1472
- )
1473
-
1474
- if retries == UNSET:
1475
- if self.sdk_configuration.retry_config is not UNSET:
1476
- retries = self.sdk_configuration.retry_config
1477
-
1478
- retry_config = None
1479
- if isinstance(retries, utils.RetryConfig):
1480
- retry_config = (retries, ["429", "500", "502", "503", "504"])
1481
-
1482
- http_res = self.do_request(
1483
- hook_ctx=HookContext(
1484
- config=self.sdk_configuration,
1485
- base_url=base_url or "",
1486
- operation_id="createOutputTestById",
1487
- oauth2_scopes=[],
1488
- security_source=get_security_from_env(
1489
- self.sdk_configuration.security, models.Security
1490
- ),
1491
- ),
1492
- request=req,
1493
- error_status_codes=["401", "4XX", "500", "5XX"],
1494
- retry_config=retry_config,
1495
- )
1496
-
1497
- response_data: Any = None
1498
- if utils.match_response(http_res, "200", "application/json"):
1499
- return unmarshal_json_response(
1500
- models.CreateOutputTestByIDResponse, http_res
1501
- )
1502
- if utils.match_response(http_res, "500", "application/json"):
1503
- response_data = unmarshal_json_response(errors.ErrorData, http_res)
1504
- raise errors.Error(response_data, http_res)
1505
- if utils.match_response(http_res, ["401", "4XX"], "*"):
1506
- http_res_text = utils.stream_to_text(http_res)
1507
- raise errors.APIError("API error occurred", http_res, http_res_text)
1508
- if utils.match_response(http_res, "5XX", "*"):
1509
- http_res_text = utils.stream_to_text(http_res)
1510
- raise errors.APIError("API error occurred", http_res, http_res_text)
1511
-
1512
- raise errors.APIError("Unexpected response received", http_res)
1513
-
1514
- async def create_destination_test_by_id_async(
1515
- self,
1516
- *,
1517
- id: str,
1518
- events: Union[List[models.CriblEvent], List[models.CriblEventTypedDict]],
1519
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
1520
- server_url: Optional[str] = None,
1521
- timeout_ms: Optional[int] = None,
1522
- http_headers: Optional[Mapping[str, str]] = None,
1523
- ) -> models.CreateOutputTestByIDResponse:
1524
- r"""Send sample data to a destination to validate configuration or test connectivity
1525
-
1526
- Send sample data to a destination to validate configuration or test connectivity
1527
-
1528
- :param id: Destination Id
1529
- :param events:
1530
- :param retries: Override the default retry configuration for this method
1531
- :param server_url: Override the default server URL for this method
1532
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
1533
- :param http_headers: Additional headers to set or replace on requests.
1534
- """
1535
- base_url = None
1536
- url_variables = None
1537
- if timeout_ms is None:
1538
- timeout_ms = self.sdk_configuration.timeout_ms
1539
-
1540
- if server_url is not None:
1541
- base_url = server_url
1542
- else:
1543
- base_url = self._get_url(base_url, url_variables)
1544
-
1545
- request = models.CreateOutputTestByIDRequest(
1546
- id=id,
1547
- output_test_request=models.OutputTestRequest(
1548
- events=utils.get_pydantic_model(events, List[models.CriblEvent]),
1549
- ),
1550
- )
1551
-
1552
- req = self._build_request_async(
1553
- method="POST",
1554
- path="/system/outputs/{id}/test",
1555
- base_url=base_url,
1556
- url_variables=url_variables,
1557
- request=request,
1558
- request_body_required=True,
1559
- request_has_path_params=True,
1560
- request_has_query_params=True,
1561
- user_agent_header="user-agent",
1562
- accept_header_value="application/json",
1563
- http_headers=http_headers,
1564
- security=self.sdk_configuration.security,
1565
- get_serialized_body=lambda: utils.serialize_request_body(
1566
- request.output_test_request,
1567
- False,
1568
- False,
1569
- "json",
1570
- models.OutputTestRequest,
1571
- ),
1572
- timeout_ms=timeout_ms,
1573
- )
1574
-
1575
- if retries == UNSET:
1576
- if self.sdk_configuration.retry_config is not UNSET:
1577
- retries = self.sdk_configuration.retry_config
1578
-
1579
- retry_config = None
1580
- if isinstance(retries, utils.RetryConfig):
1581
- retry_config = (retries, ["429", "500", "502", "503", "504"])
1582
-
1583
- http_res = await self.do_request_async(
1584
- hook_ctx=HookContext(
1585
- config=self.sdk_configuration,
1586
- base_url=base_url or "",
1587
- operation_id="createOutputTestById",
1588
- oauth2_scopes=[],
1589
- security_source=get_security_from_env(
1590
- self.sdk_configuration.security, models.Security
1591
- ),
1592
- ),
1593
- request=req,
1594
- error_status_codes=["401", "4XX", "500", "5XX"],
1595
- retry_config=retry_config,
1596
- )
1597
-
1598
- response_data: Any = None
1599
- if utils.match_response(http_res, "200", "application/json"):
1600
- return unmarshal_json_response(
1601
- models.CreateOutputTestByIDResponse, http_res
1602
- )
943
+ return unmarshal_json_response(models.CountedOutput, http_res)
1603
944
  if utils.match_response(http_res, "500", "application/json"):
1604
945
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
1605
946
  raise errors.Error(response_data, http_res)