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
@@ -3,57 +3,32 @@
3
3
  from .basesdk import BaseSDK
4
4
  from cribl_control_plane import errors, models, utils
5
5
  from cribl_control_plane._hooks import HookContext
6
- from cribl_control_plane.types import OptionalNullable, UNSET
6
+ from cribl_control_plane.types import BaseModel, OptionalNullable, UNSET
7
7
  from cribl_control_plane.utils import get_security_from_env
8
8
  from cribl_control_plane.utils.unmarshal_json_response import unmarshal_json_response
9
- from typing import Any, List, Mapping, Optional, Union
9
+ import io
10
+ from typing import Any, IO, Mapping, Optional, Union, cast
10
11
 
11
12
 
12
13
  class Packs(BaseSDK):
13
14
  r"""Actions related to Packs"""
14
15
 
15
- def create_packs(
16
+ def install(
16
17
  self,
17
18
  *,
18
- id: str,
19
- source: str,
20
- allow_custom_functions: Optional[bool] = None,
21
- author: Optional[str] = None,
22
- description: Optional[str] = None,
23
- display_name: Optional[str] = None,
24
- exports: Optional[List[str]] = None,
25
- force: Optional[bool] = None,
26
- inputs: Optional[float] = None,
27
- min_log_stream_version: Optional[str] = None,
28
- outputs: Optional[float] = None,
29
- spec: Optional[str] = None,
30
- tags: Optional[
31
- Union[models.PackRequestBodyTags, models.PackRequestBodyTagsTypedDict]
32
- ] = None,
33
- version: Optional[str] = None,
19
+ request: Union[
20
+ models.PackRequestBodyUnion, models.PackRequestBodyUnionTypedDict
21
+ ],
34
22
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
35
23
  server_url: Optional[str] = None,
36
24
  timeout_ms: Optional[int] = None,
37
25
  http_headers: Optional[Mapping[str, str]] = None,
38
- ) -> models.CreatePacksResponse:
39
- r"""Install Pack
26
+ ) -> models.CountedPackInstallInfo:
27
+ r"""Install a Pack
40
28
 
41
- Install Pack
29
+ Install a Pack.<br><br>To install an uploaded Pack, provide the <code>source</code> value from the <code>PUT /packs</code> response as the <code>source</code> parameter in the request body.<br><br>To install a Pack by importing from a URL, provide the direct URL location of the <code>.crbl</code> file for the Pack as the <code>source</code> parameter in the request body.<br><br>To install a Pack by importing from a Git repository, provide <code>git+<repo-url></code> as the <code>source</code> parameter in the request body.<br><br>If you do not include the <code>source</code> parameter in the request body, an empty Pack is created.
42
30
 
43
- :param id:
44
- :param source:
45
- :param allow_custom_functions:
46
- :param author:
47
- :param description:
48
- :param display_name:
49
- :param exports:
50
- :param force:
51
- :param inputs:
52
- :param min_log_stream_version:
53
- :param outputs:
54
- :param spec:
55
- :param tags:
56
- :param version:
31
+ :param request: The request object to send.
57
32
  :param retries: Override the default retry configuration for this method
58
33
  :param server_url: Override the default server URL for this method
59
34
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -69,22 +44,9 @@ class Packs(BaseSDK):
69
44
  else:
70
45
  base_url = self._get_url(base_url, url_variables)
71
46
 
72
- request = models.PackRequestBody(
73
- allow_custom_functions=allow_custom_functions,
74
- author=author,
75
- description=description,
76
- display_name=display_name,
77
- exports=exports,
78
- force=force,
79
- id=id,
80
- inputs=inputs,
81
- min_log_stream_version=min_log_stream_version,
82
- outputs=outputs,
83
- source=source,
84
- spec=spec,
85
- tags=utils.get_pydantic_model(tags, Optional[models.PackRequestBodyTags]),
86
- version=version,
87
- )
47
+ if not isinstance(request, BaseModel):
48
+ request = utils.unmarshal(request, models.PackRequestBodyUnion)
49
+ request = cast(models.PackRequestBodyUnion, request)
88
50
 
89
51
  req = self._build_request(
90
52
  method="POST",
@@ -100,18 +62,23 @@ class Packs(BaseSDK):
100
62
  http_headers=http_headers,
101
63
  security=self.sdk_configuration.security,
102
64
  get_serialized_body=lambda: utils.serialize_request_body(
103
- request, False, False, "json", models.PackRequestBody
65
+ request, False, False, "json", models.PackRequestBodyUnion
104
66
  ),
67
+ allow_empty_value=None,
105
68
  timeout_ms=timeout_ms,
106
69
  )
107
70
 
108
71
  if retries == UNSET:
109
72
  if self.sdk_configuration.retry_config is not UNSET:
110
73
  retries = self.sdk_configuration.retry_config
74
+ else:
75
+ retries = utils.RetryConfig(
76
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
77
+ )
111
78
 
112
79
  retry_config = None
113
80
  if isinstance(retries, utils.RetryConfig):
114
- retry_config = (retries, ["429", "500", "502", "503", "504"])
81
+ retry_config = (retries, ["429"])
115
82
 
116
83
  http_res = self.do_request(
117
84
  hook_ctx=HookContext(
@@ -130,7 +97,7 @@ class Packs(BaseSDK):
130
97
 
131
98
  response_data: Any = None
132
99
  if utils.match_response(http_res, "200", "application/json"):
133
- return unmarshal_json_response(models.CreatePacksResponse, http_res)
100
+ return unmarshal_json_response(models.CountedPackInstallInfo, http_res)
134
101
  if utils.match_response(http_res, "500", "application/json"):
135
102
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
136
103
  raise errors.Error(response_data, http_res)
@@ -143,48 +110,22 @@ class Packs(BaseSDK):
143
110
 
144
111
  raise errors.APIError("Unexpected response received", http_res)
145
112
 
146
- async def create_packs_async(
113
+ async def install_async(
147
114
  self,
148
115
  *,
149
- id: str,
150
- source: str,
151
- allow_custom_functions: Optional[bool] = None,
152
- author: Optional[str] = None,
153
- description: Optional[str] = None,
154
- display_name: Optional[str] = None,
155
- exports: Optional[List[str]] = None,
156
- force: Optional[bool] = None,
157
- inputs: Optional[float] = None,
158
- min_log_stream_version: Optional[str] = None,
159
- outputs: Optional[float] = None,
160
- spec: Optional[str] = None,
161
- tags: Optional[
162
- Union[models.PackRequestBodyTags, models.PackRequestBodyTagsTypedDict]
163
- ] = None,
164
- version: Optional[str] = None,
116
+ request: Union[
117
+ models.PackRequestBodyUnion, models.PackRequestBodyUnionTypedDict
118
+ ],
165
119
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
166
120
  server_url: Optional[str] = None,
167
121
  timeout_ms: Optional[int] = None,
168
122
  http_headers: Optional[Mapping[str, str]] = None,
169
- ) -> models.CreatePacksResponse:
170
- r"""Install Pack
123
+ ) -> models.CountedPackInstallInfo:
124
+ r"""Install a Pack
171
125
 
172
- Install Pack
126
+ Install a Pack.<br><br>To install an uploaded Pack, provide the <code>source</code> value from the <code>PUT /packs</code> response as the <code>source</code> parameter in the request body.<br><br>To install a Pack by importing from a URL, provide the direct URL location of the <code>.crbl</code> file for the Pack as the <code>source</code> parameter in the request body.<br><br>To install a Pack by importing from a Git repository, provide <code>git+<repo-url></code> as the <code>source</code> parameter in the request body.<br><br>If you do not include the <code>source</code> parameter in the request body, an empty Pack is created.
173
127
 
174
- :param id:
175
- :param source:
176
- :param allow_custom_functions:
177
- :param author:
178
- :param description:
179
- :param display_name:
180
- :param exports:
181
- :param force:
182
- :param inputs:
183
- :param min_log_stream_version:
184
- :param outputs:
185
- :param spec:
186
- :param tags:
187
- :param version:
128
+ :param request: The request object to send.
188
129
  :param retries: Override the default retry configuration for this method
189
130
  :param server_url: Override the default server URL for this method
190
131
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -200,22 +141,9 @@ class Packs(BaseSDK):
200
141
  else:
201
142
  base_url = self._get_url(base_url, url_variables)
202
143
 
203
- request = models.PackRequestBody(
204
- allow_custom_functions=allow_custom_functions,
205
- author=author,
206
- description=description,
207
- display_name=display_name,
208
- exports=exports,
209
- force=force,
210
- id=id,
211
- inputs=inputs,
212
- min_log_stream_version=min_log_stream_version,
213
- outputs=outputs,
214
- source=source,
215
- spec=spec,
216
- tags=utils.get_pydantic_model(tags, Optional[models.PackRequestBodyTags]),
217
- version=version,
218
- )
144
+ if not isinstance(request, BaseModel):
145
+ request = utils.unmarshal(request, models.PackRequestBodyUnion)
146
+ request = cast(models.PackRequestBodyUnion, request)
219
147
 
220
148
  req = self._build_request_async(
221
149
  method="POST",
@@ -231,18 +159,23 @@ class Packs(BaseSDK):
231
159
  http_headers=http_headers,
232
160
  security=self.sdk_configuration.security,
233
161
  get_serialized_body=lambda: utils.serialize_request_body(
234
- request, False, False, "json", models.PackRequestBody
162
+ request, False, False, "json", models.PackRequestBodyUnion
235
163
  ),
164
+ allow_empty_value=None,
236
165
  timeout_ms=timeout_ms,
237
166
  )
238
167
 
239
168
  if retries == UNSET:
240
169
  if self.sdk_configuration.retry_config is not UNSET:
241
170
  retries = self.sdk_configuration.retry_config
171
+ else:
172
+ retries = utils.RetryConfig(
173
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
174
+ )
242
175
 
243
176
  retry_config = None
244
177
  if isinstance(retries, utils.RetryConfig):
245
- retry_config = (retries, ["429", "500", "502", "503", "504"])
178
+ retry_config = (retries, ["429"])
246
179
 
247
180
  http_res = await self.do_request_async(
248
181
  hook_ctx=HookContext(
@@ -261,7 +194,7 @@ class Packs(BaseSDK):
261
194
 
262
195
  response_data: Any = None
263
196
  if utils.match_response(http_res, "200", "application/json"):
264
- return unmarshal_json_response(models.CreatePacksResponse, http_res)
197
+ return unmarshal_json_response(models.CountedPackInstallInfo, http_res)
265
198
  if utils.match_response(http_res, "500", "application/json"):
266
199
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
267
200
  raise errors.Error(response_data, http_res)
@@ -274,7 +207,7 @@ class Packs(BaseSDK):
274
207
 
275
208
  raise errors.APIError("Unexpected response received", http_res)
276
209
 
277
- def get_packs(
210
+ def list(
278
211
  self,
279
212
  *,
280
213
  with_: Optional[str] = None,
@@ -282,12 +215,12 @@ class Packs(BaseSDK):
282
215
  server_url: Optional[str] = None,
283
216
  timeout_ms: Optional[int] = None,
284
217
  http_headers: Optional[Mapping[str, str]] = None,
285
- ) -> models.GetPacksResponse:
286
- r"""Get info on packs
218
+ ) -> models.CountedPackInfo:
219
+ r"""List all Packs
287
220
 
288
- Get info on packs
221
+ Get a list of all Packs.
289
222
 
290
- :param with_: Comma separated list of entities, \"outputs\", \"inputs\"
223
+ :param with_: Comma-separated list of additional properties to include in the response. When set, the response includes a count of the specified properties in the Pack. Available values are <code>inputs</code> and <code>outputs</code>.
291
224
  :param retries: Override the default retry configuration for this method
292
225
  :param server_url: Override the default server URL for this method
293
226
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -320,16 +253,21 @@ class Packs(BaseSDK):
320
253
  accept_header_value="application/json",
321
254
  http_headers=http_headers,
322
255
  security=self.sdk_configuration.security,
256
+ allow_empty_value=None,
323
257
  timeout_ms=timeout_ms,
324
258
  )
325
259
 
326
260
  if retries == UNSET:
327
261
  if self.sdk_configuration.retry_config is not UNSET:
328
262
  retries = self.sdk_configuration.retry_config
263
+ else:
264
+ retries = utils.RetryConfig(
265
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
266
+ )
329
267
 
330
268
  retry_config = None
331
269
  if isinstance(retries, utils.RetryConfig):
332
- retry_config = (retries, ["429", "500", "502", "503", "504"])
270
+ retry_config = (retries, ["429"])
333
271
 
334
272
  http_res = self.do_request(
335
273
  hook_ctx=HookContext(
@@ -348,7 +286,7 @@ class Packs(BaseSDK):
348
286
 
349
287
  response_data: Any = None
350
288
  if utils.match_response(http_res, "200", "application/json"):
351
- return unmarshal_json_response(models.GetPacksResponse, http_res)
289
+ return unmarshal_json_response(models.CountedPackInfo, http_res)
352
290
  if utils.match_response(http_res, "500", "application/json"):
353
291
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
354
292
  raise errors.Error(response_data, http_res)
@@ -361,7 +299,7 @@ class Packs(BaseSDK):
361
299
 
362
300
  raise errors.APIError("Unexpected response received", http_res)
363
301
 
364
- async def get_packs_async(
302
+ async def list_async(
365
303
  self,
366
304
  *,
367
305
  with_: Optional[str] = None,
@@ -369,12 +307,12 @@ class Packs(BaseSDK):
369
307
  server_url: Optional[str] = None,
370
308
  timeout_ms: Optional[int] = None,
371
309
  http_headers: Optional[Mapping[str, str]] = None,
372
- ) -> models.GetPacksResponse:
373
- r"""Get info on packs
310
+ ) -> models.CountedPackInfo:
311
+ r"""List all Packs
374
312
 
375
- Get info on packs
313
+ Get a list of all Packs.
376
314
 
377
- :param with_: Comma separated list of entities, \"outputs\", \"inputs\"
315
+ :param with_: Comma-separated list of additional properties to include in the response. When set, the response includes a count of the specified properties in the Pack. Available values are <code>inputs</code> and <code>outputs</code>.
378
316
  :param retries: Override the default retry configuration for this method
379
317
  :param server_url: Override the default server URL for this method
380
318
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -407,16 +345,21 @@ class Packs(BaseSDK):
407
345
  accept_header_value="application/json",
408
346
  http_headers=http_headers,
409
347
  security=self.sdk_configuration.security,
348
+ allow_empty_value=None,
410
349
  timeout_ms=timeout_ms,
411
350
  )
412
351
 
413
352
  if retries == UNSET:
414
353
  if self.sdk_configuration.retry_config is not UNSET:
415
354
  retries = self.sdk_configuration.retry_config
355
+ else:
356
+ retries = utils.RetryConfig(
357
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
358
+ )
416
359
 
417
360
  retry_config = None
418
361
  if isinstance(retries, utils.RetryConfig):
419
- retry_config = (retries, ["429", "500", "502", "503", "504"])
362
+ retry_config = (retries, ["429"])
420
363
 
421
364
  http_res = await self.do_request_async(
422
365
  hook_ctx=HookContext(
@@ -435,7 +378,7 @@ class Packs(BaseSDK):
435
378
 
436
379
  response_data: Any = None
437
380
  if utils.match_response(http_res, "200", "application/json"):
438
- return unmarshal_json_response(models.GetPacksResponse, http_res)
381
+ return unmarshal_json_response(models.CountedPackInfo, http_res)
439
382
  if utils.match_response(http_res, "500", "application/json"):
440
383
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
441
384
  raise errors.Error(response_data, http_res)
@@ -448,20 +391,22 @@ class Packs(BaseSDK):
448
391
 
449
392
  raise errors.APIError("Unexpected response received", http_res)
450
393
 
451
- def update_packs(
394
+ def upload(
452
395
  self,
453
396
  *,
454
- filename: Optional[str] = None,
397
+ filename: str,
398
+ request_body: Union[bytes, IO[bytes], io.BufferedReader],
455
399
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
456
400
  server_url: Optional[str] = None,
457
401
  timeout_ms: Optional[int] = None,
458
402
  http_headers: Optional[Mapping[str, str]] = None,
459
- ) -> models.UpdatePacksResponse:
460
- r"""Upload Pack
403
+ ) -> models.UploadPackResponse:
404
+ r"""Upload a Pack file
461
405
 
462
- Upload Pack
406
+ Upload a Pack file. Returns the <code>source</code> ID needed to install the Pack with <code>POST /packs source</code>, which you must call separately.
463
407
 
464
- :param filename: the file to upload
408
+ :param filename: Filename of the Pack file to upload.
409
+ :param request_body:
465
410
  :param retries: Override the default retry configuration for this method
466
411
  :param server_url: Override the default server URL for this method
467
412
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -479,6 +424,7 @@ class Packs(BaseSDK):
479
424
 
480
425
  request = models.UpdatePacksRequest(
481
426
  filename=filename,
427
+ request_body=request_body,
482
428
  )
483
429
 
484
430
  req = self._build_request(
@@ -487,23 +433,35 @@ class Packs(BaseSDK):
487
433
  base_url=base_url,
488
434
  url_variables=url_variables,
489
435
  request=request,
490
- request_body_required=False,
436
+ request_body_required=True,
491
437
  request_has_path_params=False,
492
438
  request_has_query_params=True,
493
439
  user_agent_header="user-agent",
494
440
  accept_header_value="application/json",
495
441
  http_headers=http_headers,
496
442
  security=self.sdk_configuration.security,
443
+ get_serialized_body=lambda: utils.serialize_request_body(
444
+ request.request_body,
445
+ False,
446
+ False,
447
+ "raw",
448
+ Union[bytes, IO[bytes], io.BufferedReader],
449
+ ),
450
+ allow_empty_value=None,
497
451
  timeout_ms=timeout_ms,
498
452
  )
499
453
 
500
454
  if retries == UNSET:
501
455
  if self.sdk_configuration.retry_config is not UNSET:
502
456
  retries = self.sdk_configuration.retry_config
457
+ else:
458
+ retries = utils.RetryConfig(
459
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
460
+ )
503
461
 
504
462
  retry_config = None
505
463
  if isinstance(retries, utils.RetryConfig):
506
- retry_config = (retries, ["429", "500", "502", "503", "504"])
464
+ retry_config = (retries, ["429"])
507
465
 
508
466
  http_res = self.do_request(
509
467
  hook_ctx=HookContext(
@@ -522,7 +480,7 @@ class Packs(BaseSDK):
522
480
 
523
481
  response_data: Any = None
524
482
  if utils.match_response(http_res, "200", "application/json"):
525
- return unmarshal_json_response(models.UpdatePacksResponse, http_res)
483
+ return unmarshal_json_response(models.UploadPackResponse, http_res)
526
484
  if utils.match_response(http_res, "500", "application/json"):
527
485
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
528
486
  raise errors.Error(response_data, http_res)
@@ -535,20 +493,22 @@ class Packs(BaseSDK):
535
493
 
536
494
  raise errors.APIError("Unexpected response received", http_res)
537
495
 
538
- async def update_packs_async(
496
+ async def upload_async(
539
497
  self,
540
498
  *,
541
- filename: Optional[str] = None,
499
+ filename: str,
500
+ request_body: Union[bytes, IO[bytes], io.BufferedReader],
542
501
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
543
502
  server_url: Optional[str] = None,
544
503
  timeout_ms: Optional[int] = None,
545
504
  http_headers: Optional[Mapping[str, str]] = None,
546
- ) -> models.UpdatePacksResponse:
547
- r"""Upload Pack
505
+ ) -> models.UploadPackResponse:
506
+ r"""Upload a Pack file
548
507
 
549
- Upload Pack
508
+ Upload a Pack file. Returns the <code>source</code> ID needed to install the Pack with <code>POST /packs source</code>, which you must call separately.
550
509
 
551
- :param filename: the file to upload
510
+ :param filename: Filename of the Pack file to upload.
511
+ :param request_body:
552
512
  :param retries: Override the default retry configuration for this method
553
513
  :param server_url: Override the default server URL for this method
554
514
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -566,6 +526,7 @@ class Packs(BaseSDK):
566
526
 
567
527
  request = models.UpdatePacksRequest(
568
528
  filename=filename,
529
+ request_body=request_body,
569
530
  )
570
531
 
571
532
  req = self._build_request_async(
@@ -574,23 +535,35 @@ class Packs(BaseSDK):
574
535
  base_url=base_url,
575
536
  url_variables=url_variables,
576
537
  request=request,
577
- request_body_required=False,
538
+ request_body_required=True,
578
539
  request_has_path_params=False,
579
540
  request_has_query_params=True,
580
541
  user_agent_header="user-agent",
581
542
  accept_header_value="application/json",
582
543
  http_headers=http_headers,
583
544
  security=self.sdk_configuration.security,
545
+ get_serialized_body=lambda: utils.serialize_request_body(
546
+ request.request_body,
547
+ False,
548
+ False,
549
+ "raw",
550
+ Union[bytes, IO[bytes], io.BufferedReader],
551
+ ),
552
+ allow_empty_value=None,
584
553
  timeout_ms=timeout_ms,
585
554
  )
586
555
 
587
556
  if retries == UNSET:
588
557
  if self.sdk_configuration.retry_config is not UNSET:
589
558
  retries = self.sdk_configuration.retry_config
559
+ else:
560
+ retries = utils.RetryConfig(
561
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
562
+ )
590
563
 
591
564
  retry_config = None
592
565
  if isinstance(retries, utils.RetryConfig):
593
- retry_config = (retries, ["429", "500", "502", "503", "504"])
566
+ retry_config = (retries, ["429"])
594
567
 
595
568
  http_res = await self.do_request_async(
596
569
  hook_ctx=HookContext(
@@ -609,7 +582,7 @@ class Packs(BaseSDK):
609
582
 
610
583
  response_data: Any = None
611
584
  if utils.match_response(http_res, "200", "application/json"):
612
- return unmarshal_json_response(models.UpdatePacksResponse, http_res)
585
+ return unmarshal_json_response(models.UploadPackResponse, http_res)
613
586
  if utils.match_response(http_res, "500", "application/json"):
614
587
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
615
588
  raise errors.Error(response_data, http_res)
@@ -622,7 +595,7 @@ class Packs(BaseSDK):
622
595
 
623
596
  raise errors.APIError("Unexpected response received", http_res)
624
597
 
625
- def delete_packs_by_id(
598
+ def delete(
626
599
  self,
627
600
  *,
628
601
  id: str,
@@ -630,12 +603,12 @@ class Packs(BaseSDK):
630
603
  server_url: Optional[str] = None,
631
604
  timeout_ms: Optional[int] = None,
632
605
  http_headers: Optional[Mapping[str, str]] = None,
633
- ) -> models.DeletePacksByIDResponse:
634
- r"""Uninstall Pack from the system
606
+ ) -> models.CountedPackInstallInfo:
607
+ r"""Uninstall a Pack
635
608
 
636
- Uninstall Pack from the system
609
+ Uninstall the specified Pack.
637
610
 
638
- :param id: Pack name
611
+ :param id: The <code>id</code> of the Pack to uninstall.
639
612
  :param retries: Override the default retry configuration for this method
640
613
  :param server_url: Override the default server URL for this method
641
614
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -668,16 +641,21 @@ class Packs(BaseSDK):
668
641
  accept_header_value="application/json",
669
642
  http_headers=http_headers,
670
643
  security=self.sdk_configuration.security,
644
+ allow_empty_value=None,
671
645
  timeout_ms=timeout_ms,
672
646
  )
673
647
 
674
648
  if retries == UNSET:
675
649
  if self.sdk_configuration.retry_config is not UNSET:
676
650
  retries = self.sdk_configuration.retry_config
651
+ else:
652
+ retries = utils.RetryConfig(
653
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
654
+ )
677
655
 
678
656
  retry_config = None
679
657
  if isinstance(retries, utils.RetryConfig):
680
- retry_config = (retries, ["429", "500", "502", "503", "504"])
658
+ retry_config = (retries, ["429"])
681
659
 
682
660
  http_res = self.do_request(
683
661
  hook_ctx=HookContext(
@@ -696,7 +674,7 @@ class Packs(BaseSDK):
696
674
 
697
675
  response_data: Any = None
698
676
  if utils.match_response(http_res, "200", "application/json"):
699
- return unmarshal_json_response(models.DeletePacksByIDResponse, http_res)
677
+ return unmarshal_json_response(models.CountedPackInstallInfo, http_res)
700
678
  if utils.match_response(http_res, "500", "application/json"):
701
679
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
702
680
  raise errors.Error(response_data, http_res)
@@ -709,7 +687,7 @@ class Packs(BaseSDK):
709
687
 
710
688
  raise errors.APIError("Unexpected response received", http_res)
711
689
 
712
- async def delete_packs_by_id_async(
690
+ async def delete_async(
713
691
  self,
714
692
  *,
715
693
  id: str,
@@ -717,12 +695,12 @@ class Packs(BaseSDK):
717
695
  server_url: Optional[str] = None,
718
696
  timeout_ms: Optional[int] = None,
719
697
  http_headers: Optional[Mapping[str, str]] = None,
720
- ) -> models.DeletePacksByIDResponse:
721
- r"""Uninstall Pack from the system
698
+ ) -> models.CountedPackInstallInfo:
699
+ r"""Uninstall a Pack
722
700
 
723
- Uninstall Pack from the system
701
+ Uninstall the specified Pack.
724
702
 
725
- :param id: Pack name
703
+ :param id: The <code>id</code> of the Pack to uninstall.
726
704
  :param retries: Override the default retry configuration for this method
727
705
  :param server_url: Override the default server URL for this method
728
706
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -755,16 +733,21 @@ class Packs(BaseSDK):
755
733
  accept_header_value="application/json",
756
734
  http_headers=http_headers,
757
735
  security=self.sdk_configuration.security,
736
+ allow_empty_value=None,
758
737
  timeout_ms=timeout_ms,
759
738
  )
760
739
 
761
740
  if retries == UNSET:
762
741
  if self.sdk_configuration.retry_config is not UNSET:
763
742
  retries = self.sdk_configuration.retry_config
743
+ else:
744
+ retries = utils.RetryConfig(
745
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
746
+ )
764
747
 
765
748
  retry_config = None
766
749
  if isinstance(retries, utils.RetryConfig):
767
- retry_config = (retries, ["429", "500", "502", "503", "504"])
750
+ retry_config = (retries, ["429"])
768
751
 
769
752
  http_res = await self.do_request_async(
770
753
  hook_ctx=HookContext(
@@ -783,7 +766,191 @@ class Packs(BaseSDK):
783
766
 
784
767
  response_data: Any = None
785
768
  if utils.match_response(http_res, "200", "application/json"):
786
- return unmarshal_json_response(models.DeletePacksByIDResponse, http_res)
769
+ return unmarshal_json_response(models.CountedPackInstallInfo, http_res)
770
+ if utils.match_response(http_res, "500", "application/json"):
771
+ response_data = unmarshal_json_response(errors.ErrorData, http_res)
772
+ raise errors.Error(response_data, http_res)
773
+ if utils.match_response(http_res, ["401", "4XX"], "*"):
774
+ http_res_text = await utils.stream_to_text_async(http_res)
775
+ raise errors.APIError("API error occurred", http_res, http_res_text)
776
+ if utils.match_response(http_res, "5XX", "*"):
777
+ http_res_text = await utils.stream_to_text_async(http_res)
778
+ raise errors.APIError("API error occurred", http_res, http_res_text)
779
+
780
+ raise errors.APIError("Unexpected response received", http_res)
781
+
782
+ def get(
783
+ self,
784
+ *,
785
+ id: str,
786
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
787
+ server_url: Optional[str] = None,
788
+ timeout_ms: Optional[int] = None,
789
+ http_headers: Optional[Mapping[str, str]] = None,
790
+ ) -> models.CountedPackInfo:
791
+ r"""Get a Pack
792
+
793
+ Get the specified Pack.
794
+
795
+ :param id: The <code>id</code> of the Pack to get.
796
+ :param retries: Override the default retry configuration for this method
797
+ :param server_url: Override the default server URL for this method
798
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
799
+ :param http_headers: Additional headers to set or replace on requests.
800
+ """
801
+ base_url = None
802
+ url_variables = None
803
+ if timeout_ms is None:
804
+ timeout_ms = self.sdk_configuration.timeout_ms
805
+
806
+ if server_url is not None:
807
+ base_url = server_url
808
+ else:
809
+ base_url = self._get_url(base_url, url_variables)
810
+
811
+ request = models.GetPacksByIDRequest(
812
+ id=id,
813
+ )
814
+
815
+ req = self._build_request(
816
+ method="GET",
817
+ path="/packs/{id}",
818
+ base_url=base_url,
819
+ url_variables=url_variables,
820
+ request=request,
821
+ request_body_required=False,
822
+ request_has_path_params=True,
823
+ request_has_query_params=True,
824
+ user_agent_header="user-agent",
825
+ accept_header_value="application/json",
826
+ http_headers=http_headers,
827
+ security=self.sdk_configuration.security,
828
+ allow_empty_value=None,
829
+ timeout_ms=timeout_ms,
830
+ )
831
+
832
+ if retries == UNSET:
833
+ if self.sdk_configuration.retry_config is not UNSET:
834
+ retries = self.sdk_configuration.retry_config
835
+ else:
836
+ retries = utils.RetryConfig(
837
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
838
+ )
839
+
840
+ retry_config = None
841
+ if isinstance(retries, utils.RetryConfig):
842
+ retry_config = (retries, ["429"])
843
+
844
+ http_res = self.do_request(
845
+ hook_ctx=HookContext(
846
+ config=self.sdk_configuration,
847
+ base_url=base_url or "",
848
+ operation_id="getPacksById",
849
+ oauth2_scopes=[],
850
+ security_source=get_security_from_env(
851
+ self.sdk_configuration.security, models.Security
852
+ ),
853
+ ),
854
+ request=req,
855
+ error_status_codes=["401", "4XX", "500", "5XX"],
856
+ retry_config=retry_config,
857
+ )
858
+
859
+ response_data: Any = None
860
+ if utils.match_response(http_res, "200", "application/json"):
861
+ return unmarshal_json_response(models.CountedPackInfo, http_res)
862
+ if utils.match_response(http_res, "500", "application/json"):
863
+ response_data = unmarshal_json_response(errors.ErrorData, http_res)
864
+ raise errors.Error(response_data, http_res)
865
+ if utils.match_response(http_res, ["401", "4XX"], "*"):
866
+ http_res_text = utils.stream_to_text(http_res)
867
+ raise errors.APIError("API error occurred", http_res, http_res_text)
868
+ if utils.match_response(http_res, "5XX", "*"):
869
+ http_res_text = utils.stream_to_text(http_res)
870
+ raise errors.APIError("API error occurred", http_res, http_res_text)
871
+
872
+ raise errors.APIError("Unexpected response received", http_res)
873
+
874
+ async def get_async(
875
+ self,
876
+ *,
877
+ id: str,
878
+ retries: OptionalNullable[utils.RetryConfig] = UNSET,
879
+ server_url: Optional[str] = None,
880
+ timeout_ms: Optional[int] = None,
881
+ http_headers: Optional[Mapping[str, str]] = None,
882
+ ) -> models.CountedPackInfo:
883
+ r"""Get a Pack
884
+
885
+ Get the specified Pack.
886
+
887
+ :param id: The <code>id</code> of the Pack to get.
888
+ :param retries: Override the default retry configuration for this method
889
+ :param server_url: Override the default server URL for this method
890
+ :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
891
+ :param http_headers: Additional headers to set or replace on requests.
892
+ """
893
+ base_url = None
894
+ url_variables = None
895
+ if timeout_ms is None:
896
+ timeout_ms = self.sdk_configuration.timeout_ms
897
+
898
+ if server_url is not None:
899
+ base_url = server_url
900
+ else:
901
+ base_url = self._get_url(base_url, url_variables)
902
+
903
+ request = models.GetPacksByIDRequest(
904
+ id=id,
905
+ )
906
+
907
+ req = self._build_request_async(
908
+ method="GET",
909
+ path="/packs/{id}",
910
+ base_url=base_url,
911
+ url_variables=url_variables,
912
+ request=request,
913
+ request_body_required=False,
914
+ request_has_path_params=True,
915
+ request_has_query_params=True,
916
+ user_agent_header="user-agent",
917
+ accept_header_value="application/json",
918
+ http_headers=http_headers,
919
+ security=self.sdk_configuration.security,
920
+ allow_empty_value=None,
921
+ timeout_ms=timeout_ms,
922
+ )
923
+
924
+ if retries == UNSET:
925
+ if self.sdk_configuration.retry_config is not UNSET:
926
+ retries = self.sdk_configuration.retry_config
927
+ else:
928
+ retries = utils.RetryConfig(
929
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
930
+ )
931
+
932
+ retry_config = None
933
+ if isinstance(retries, utils.RetryConfig):
934
+ retry_config = (retries, ["429"])
935
+
936
+ http_res = await self.do_request_async(
937
+ hook_ctx=HookContext(
938
+ config=self.sdk_configuration,
939
+ base_url=base_url or "",
940
+ operation_id="getPacksById",
941
+ oauth2_scopes=[],
942
+ security_source=get_security_from_env(
943
+ self.sdk_configuration.security, models.Security
944
+ ),
945
+ ),
946
+ request=req,
947
+ error_status_codes=["401", "4XX", "500", "5XX"],
948
+ retry_config=retry_config,
949
+ )
950
+
951
+ response_data: Any = None
952
+ if utils.match_response(http_res, "200", "application/json"):
953
+ return unmarshal_json_response(models.CountedPackInfo, http_res)
787
954
  if utils.match_response(http_res, "500", "application/json"):
788
955
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
789
956
  raise errors.Error(response_data, http_res)
@@ -796,26 +963,28 @@ class Packs(BaseSDK):
796
963
 
797
964
  raise errors.APIError("Unexpected response received", http_res)
798
965
 
799
- def update_packs_by_id(
966
+ def update(
800
967
  self,
801
968
  *,
802
969
  id: str,
803
- source: Optional[str] = None,
970
+ source: str,
971
+ allow_custom_functions: Optional[bool] = None,
804
972
  minor: Optional[str] = None,
805
973
  spec: Optional[str] = None,
806
974
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
807
975
  server_url: Optional[str] = None,
808
976
  timeout_ms: Optional[int] = None,
809
977
  http_headers: Optional[Mapping[str, str]] = None,
810
- ) -> models.UpdatePacksByIDResponse:
811
- r"""Upgrade Pack
978
+ ) -> models.CountedPackInfo:
979
+ r"""Upgrade a Pack
812
980
 
813
- Upgrade Pack
981
+ Upgrade the specified Pack.</br></br>If the Pack includes any user–modified versions of default Cribl Knowledge resources such as lookups, copy the modified files locally for safekeeping before upgrading the Pack.Copy the modified files back to the upgraded Pack after you install it with <code>POST /packs</code> to overwrite the default versions in the Pack.</br></br>After you upgrade the Pack, update any Routes, Pipelines, Sources, and Destinations that use the previous Pack version so that they reference the upgraded Pack.
814
982
 
815
- :param id: Pack name
816
- :param source: body string required Pack source
817
- :param minor: body boolean optional Only upgrade to minor/patch versions
818
- :param spec: body string optional Specify a branch, tag or a semver spec
983
+ :param id: The <code>id</code> of the Pack to upgrade.
984
+ :param source:
985
+ :param allow_custom_functions:
986
+ :param minor:
987
+ :param spec:
819
988
  :param retries: Override the default retry configuration for this method
820
989
  :param server_url: Override the default server URL for this method
821
990
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -833,9 +1002,12 @@ class Packs(BaseSDK):
833
1002
 
834
1003
  request = models.UpdatePacksByIDRequest(
835
1004
  id=id,
836
- source=source,
837
- minor=minor,
838
- spec=spec,
1005
+ pack_upgrade_request=models.PackUpgradeRequest(
1006
+ allow_custom_functions=allow_custom_functions,
1007
+ minor=minor,
1008
+ source=source,
1009
+ spec=spec,
1010
+ ),
839
1011
  )
840
1012
 
841
1013
  req = self._build_request(
@@ -844,23 +1016,35 @@ class Packs(BaseSDK):
844
1016
  base_url=base_url,
845
1017
  url_variables=url_variables,
846
1018
  request=request,
847
- request_body_required=False,
1019
+ request_body_required=True,
848
1020
  request_has_path_params=True,
849
1021
  request_has_query_params=True,
850
1022
  user_agent_header="user-agent",
851
1023
  accept_header_value="application/json",
852
1024
  http_headers=http_headers,
853
1025
  security=self.sdk_configuration.security,
1026
+ get_serialized_body=lambda: utils.serialize_request_body(
1027
+ request.pack_upgrade_request,
1028
+ False,
1029
+ False,
1030
+ "json",
1031
+ models.PackUpgradeRequest,
1032
+ ),
1033
+ allow_empty_value=None,
854
1034
  timeout_ms=timeout_ms,
855
1035
  )
856
1036
 
857
1037
  if retries == UNSET:
858
1038
  if self.sdk_configuration.retry_config is not UNSET:
859
1039
  retries = self.sdk_configuration.retry_config
1040
+ else:
1041
+ retries = utils.RetryConfig(
1042
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
1043
+ )
860
1044
 
861
1045
  retry_config = None
862
1046
  if isinstance(retries, utils.RetryConfig):
863
- retry_config = (retries, ["429", "500", "502", "503", "504"])
1047
+ retry_config = (retries, ["429"])
864
1048
 
865
1049
  http_res = self.do_request(
866
1050
  hook_ctx=HookContext(
@@ -879,7 +1063,7 @@ class Packs(BaseSDK):
879
1063
 
880
1064
  response_data: Any = None
881
1065
  if utils.match_response(http_res, "200", "application/json"):
882
- return unmarshal_json_response(models.UpdatePacksByIDResponse, http_res)
1066
+ return unmarshal_json_response(models.CountedPackInfo, http_res)
883
1067
  if utils.match_response(http_res, "500", "application/json"):
884
1068
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
885
1069
  raise errors.Error(response_data, http_res)
@@ -892,26 +1076,28 @@ class Packs(BaseSDK):
892
1076
 
893
1077
  raise errors.APIError("Unexpected response received", http_res)
894
1078
 
895
- async def update_packs_by_id_async(
1079
+ async def update_async(
896
1080
  self,
897
1081
  *,
898
1082
  id: str,
899
- source: Optional[str] = None,
1083
+ source: str,
1084
+ allow_custom_functions: Optional[bool] = None,
900
1085
  minor: Optional[str] = None,
901
1086
  spec: Optional[str] = None,
902
1087
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
903
1088
  server_url: Optional[str] = None,
904
1089
  timeout_ms: Optional[int] = None,
905
1090
  http_headers: Optional[Mapping[str, str]] = None,
906
- ) -> models.UpdatePacksByIDResponse:
907
- r"""Upgrade Pack
1091
+ ) -> models.CountedPackInfo:
1092
+ r"""Upgrade a Pack
908
1093
 
909
- Upgrade Pack
1094
+ Upgrade the specified Pack.</br></br>If the Pack includes any user–modified versions of default Cribl Knowledge resources such as lookups, copy the modified files locally for safekeeping before upgrading the Pack.Copy the modified files back to the upgraded Pack after you install it with <code>POST /packs</code> to overwrite the default versions in the Pack.</br></br>After you upgrade the Pack, update any Routes, Pipelines, Sources, and Destinations that use the previous Pack version so that they reference the upgraded Pack.
910
1095
 
911
- :param id: Pack name
912
- :param source: body string required Pack source
913
- :param minor: body boolean optional Only upgrade to minor/patch versions
914
- :param spec: body string optional Specify a branch, tag or a semver spec
1096
+ :param id: The <code>id</code> of the Pack to upgrade.
1097
+ :param source:
1098
+ :param allow_custom_functions:
1099
+ :param minor:
1100
+ :param spec:
915
1101
  :param retries: Override the default retry configuration for this method
916
1102
  :param server_url: Override the default server URL for this method
917
1103
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -929,9 +1115,12 @@ class Packs(BaseSDK):
929
1115
 
930
1116
  request = models.UpdatePacksByIDRequest(
931
1117
  id=id,
932
- source=source,
933
- minor=minor,
934
- spec=spec,
1118
+ pack_upgrade_request=models.PackUpgradeRequest(
1119
+ allow_custom_functions=allow_custom_functions,
1120
+ minor=minor,
1121
+ source=source,
1122
+ spec=spec,
1123
+ ),
935
1124
  )
936
1125
 
937
1126
  req = self._build_request_async(
@@ -940,23 +1129,35 @@ class Packs(BaseSDK):
940
1129
  base_url=base_url,
941
1130
  url_variables=url_variables,
942
1131
  request=request,
943
- request_body_required=False,
1132
+ request_body_required=True,
944
1133
  request_has_path_params=True,
945
1134
  request_has_query_params=True,
946
1135
  user_agent_header="user-agent",
947
1136
  accept_header_value="application/json",
948
1137
  http_headers=http_headers,
949
1138
  security=self.sdk_configuration.security,
1139
+ get_serialized_body=lambda: utils.serialize_request_body(
1140
+ request.pack_upgrade_request,
1141
+ False,
1142
+ False,
1143
+ "json",
1144
+ models.PackUpgradeRequest,
1145
+ ),
1146
+ allow_empty_value=None,
950
1147
  timeout_ms=timeout_ms,
951
1148
  )
952
1149
 
953
1150
  if retries == UNSET:
954
1151
  if self.sdk_configuration.retry_config is not UNSET:
955
1152
  retries = self.sdk_configuration.retry_config
1153
+ else:
1154
+ retries = utils.RetryConfig(
1155
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
1156
+ )
956
1157
 
957
1158
  retry_config = None
958
1159
  if isinstance(retries, utils.RetryConfig):
959
- retry_config = (retries, ["429", "500", "502", "503", "504"])
1160
+ retry_config = (retries, ["429"])
960
1161
 
961
1162
  http_res = await self.do_request_async(
962
1163
  hook_ctx=HookContext(
@@ -975,7 +1176,7 @@ class Packs(BaseSDK):
975
1176
 
976
1177
  response_data: Any = None
977
1178
  if utils.match_response(http_res, "200", "application/json"):
978
- return unmarshal_json_response(models.UpdatePacksByIDResponse, http_res)
1179
+ return unmarshal_json_response(models.CountedPackInfo, http_res)
979
1180
  if utils.match_response(http_res, "500", "application/json"):
980
1181
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
981
1182
  raise errors.Error(response_data, http_res)