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,8 +1,11 @@
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.acl import ACL
8
+ from cribl_control_plane.groups_configs import GroupsConfigs
6
9
  from cribl_control_plane.types import 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
@@ -12,20 +15,36 @@ from typing import Any, List, Mapping, Optional, Union
12
15
  class GroupsSDK(BaseSDK):
13
16
  r"""Actions related to Groups"""
14
17
 
15
- def get_groups_config_version_by_id(
18
+ configs: GroupsConfigs
19
+ acl: ACL
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.configs = GroupsConfigs(self.sdk_configuration, parent_ref=self.parent_ref)
30
+ self.acl = ACL(self.sdk_configuration, parent_ref=self.parent_ref)
31
+
32
+ def list(
16
33
  self,
17
34
  *,
18
- id: str,
35
+ product: models.ProductsCore,
36
+ fields: Optional[str] = None,
19
37
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
20
38
  server_url: Optional[str] = None,
21
39
  timeout_ms: Optional[int] = None,
22
40
  http_headers: Optional[Mapping[str, str]] = None,
23
- ) -> models.GetGroupsConfigVersionByIDResponse:
24
- r"""Get effective bundle version for given Group
41
+ ) -> models.CountedConfigGroup:
42
+ r"""List all Worker Groups or Edge Fleets for the specified Cribl product
25
43
 
26
- Get effective bundle version for given Group
44
+ Get a list of all Worker Groups or Edge Fleets for the specified Cribl product.
27
45
 
28
- :param id: Group ID
46
+ :param product: Name of the Cribl product to get the Worker Groups or Edge Fleets for.
47
+ :param fields: Comma-separated list of additional properties to include in the response. Available values are <code>git.commit</code>, <code>git.localChanges</code>, and <code>git.log</code>.
29
48
  :param retries: Override the default retry configuration for this method
30
49
  :param server_url: Override the default server URL for this method
31
50
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -41,13 +60,14 @@ class GroupsSDK(BaseSDK):
41
60
  else:
42
61
  base_url = self._get_url(base_url, url_variables)
43
62
 
44
- request = models.GetGroupsConfigVersionByIDRequest(
45
- id=id,
63
+ request = models.ListConfigGroupByProductRequest(
64
+ product=product,
65
+ fields=fields,
46
66
  )
47
67
 
48
68
  req = self._build_request(
49
69
  method="GET",
50
- path="/master/groups/{id}/configVersion",
70
+ path="/products/{product}/groups",
51
71
  base_url=base_url,
52
72
  url_variables=url_variables,
53
73
  request=request,
@@ -58,22 +78,27 @@ class GroupsSDK(BaseSDK):
58
78
  accept_header_value="application/json",
59
79
  http_headers=http_headers,
60
80
  security=self.sdk_configuration.security,
81
+ allow_empty_value=None,
61
82
  timeout_ms=timeout_ms,
62
83
  )
63
84
 
64
85
  if retries == UNSET:
65
86
  if self.sdk_configuration.retry_config is not UNSET:
66
87
  retries = self.sdk_configuration.retry_config
88
+ else:
89
+ retries = utils.RetryConfig(
90
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
91
+ )
67
92
 
68
93
  retry_config = None
69
94
  if isinstance(retries, utils.RetryConfig):
70
- retry_config = (retries, ["429", "500", "502", "503", "504"])
95
+ retry_config = (retries, ["429"])
71
96
 
72
97
  http_res = self.do_request(
73
98
  hook_ctx=HookContext(
74
99
  config=self.sdk_configuration,
75
100
  base_url=base_url or "",
76
- operation_id="getGroupsConfigVersionById",
101
+ operation_id="listConfigGroupByProduct",
77
102
  oauth2_scopes=[],
78
103
  security_source=get_security_from_env(
79
104
  self.sdk_configuration.security, models.Security
@@ -86,9 +111,7 @@ class GroupsSDK(BaseSDK):
86
111
 
87
112
  response_data: Any = None
88
113
  if utils.match_response(http_res, "200", "application/json"):
89
- return unmarshal_json_response(
90
- models.GetGroupsConfigVersionByIDResponse, http_res
91
- )
114
+ return unmarshal_json_response(models.CountedConfigGroup, http_res)
92
115
  if utils.match_response(http_res, "500", "application/json"):
93
116
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
94
117
  raise errors.Error(response_data, http_res)
@@ -101,20 +124,22 @@ class GroupsSDK(BaseSDK):
101
124
 
102
125
  raise errors.APIError("Unexpected response received", http_res)
103
126
 
104
- async def get_groups_config_version_by_id_async(
127
+ async def list_async(
105
128
  self,
106
129
  *,
107
- id: str,
130
+ product: models.ProductsCore,
131
+ fields: Optional[str] = None,
108
132
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
109
133
  server_url: Optional[str] = None,
110
134
  timeout_ms: Optional[int] = None,
111
135
  http_headers: Optional[Mapping[str, str]] = None,
112
- ) -> models.GetGroupsConfigVersionByIDResponse:
113
- r"""Get effective bundle version for given Group
136
+ ) -> models.CountedConfigGroup:
137
+ r"""List all Worker Groups or Edge Fleets for the specified Cribl product
114
138
 
115
- Get effective bundle version for given Group
139
+ Get a list of all Worker Groups or Edge Fleets for the specified Cribl product.
116
140
 
117
- :param id: Group ID
141
+ :param product: Name of the Cribl product to get the Worker Groups or Edge Fleets for.
142
+ :param fields: Comma-separated list of additional properties to include in the response. Available values are <code>git.commit</code>, <code>git.localChanges</code>, and <code>git.log</code>.
118
143
  :param retries: Override the default retry configuration for this method
119
144
  :param server_url: Override the default server URL for this method
120
145
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -130,13 +155,14 @@ class GroupsSDK(BaseSDK):
130
155
  else:
131
156
  base_url = self._get_url(base_url, url_variables)
132
157
 
133
- request = models.GetGroupsConfigVersionByIDRequest(
134
- id=id,
158
+ request = models.ListConfigGroupByProductRequest(
159
+ product=product,
160
+ fields=fields,
135
161
  )
136
162
 
137
163
  req = self._build_request_async(
138
164
  method="GET",
139
- path="/master/groups/{id}/configVersion",
165
+ path="/products/{product}/groups",
140
166
  base_url=base_url,
141
167
  url_variables=url_variables,
142
168
  request=request,
@@ -147,22 +173,27 @@ class GroupsSDK(BaseSDK):
147
173
  accept_header_value="application/json",
148
174
  http_headers=http_headers,
149
175
  security=self.sdk_configuration.security,
176
+ allow_empty_value=None,
150
177
  timeout_ms=timeout_ms,
151
178
  )
152
179
 
153
180
  if retries == UNSET:
154
181
  if self.sdk_configuration.retry_config is not UNSET:
155
182
  retries = self.sdk_configuration.retry_config
183
+ else:
184
+ retries = utils.RetryConfig(
185
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
186
+ )
156
187
 
157
188
  retry_config = None
158
189
  if isinstance(retries, utils.RetryConfig):
159
- retry_config = (retries, ["429", "500", "502", "503", "504"])
190
+ retry_config = (retries, ["429"])
160
191
 
161
192
  http_res = await self.do_request_async(
162
193
  hook_ctx=HookContext(
163
194
  config=self.sdk_configuration,
164
195
  base_url=base_url or "",
165
- operation_id="getGroupsConfigVersionById",
196
+ operation_id="listConfigGroupByProduct",
166
197
  oauth2_scopes=[],
167
198
  security_source=get_security_from_env(
168
199
  self.sdk_configuration.security, models.Security
@@ -175,9 +206,7 @@ class GroupsSDK(BaseSDK):
175
206
 
176
207
  response_data: Any = None
177
208
  if utils.match_response(http_res, "200", "application/json"):
178
- return unmarshal_json_response(
179
- models.GetGroupsConfigVersionByIDResponse, http_res
180
- )
209
+ return unmarshal_json_response(models.CountedConfigGroup, http_res)
181
210
  if utils.match_response(http_res, "500", "application/json"):
182
211
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
183
212
  raise errors.Error(response_data, http_res)
@@ -190,19 +219,22 @@ class GroupsSDK(BaseSDK):
190
219
 
191
220
  raise errors.APIError("Unexpected response received", http_res)
192
221
 
193
- def create_products_groups_by_product(
222
+ def create(
194
223
  self,
195
224
  *,
196
- product: models.CreateProductsGroupsByProductProduct,
197
- config_version: str,
225
+ product: models.ProductsCore,
198
226
  id: str,
199
227
  cloud: Optional[
200
228
  Union[models.ConfigGroupCloud, models.ConfigGroupCloudTypedDict]
201
229
  ] = None,
202
230
  deploying_worker_count: Optional[float] = None,
203
231
  description: Optional[str] = None,
204
- estimated_ingest_rate: Optional[float] = None,
205
- git: Optional[Union[models.Git, models.GitTypedDict]] = None,
232
+ estimated_ingest_rate: Optional[
233
+ models.GroupCreateRequestEstimatedIngestRate
234
+ ] = None,
235
+ git: Optional[
236
+ Union[models.GroupCreateRequestGit, models.GroupCreateRequestGitTypedDict]
237
+ ] = None,
206
238
  incompatible_worker_count: Optional[float] = None,
207
239
  inherits: Optional[str] = None,
208
240
  is_fleet: Optional[bool] = None,
@@ -217,9 +249,10 @@ class GroupsSDK(BaseSDK):
217
249
  name: Optional[str] = None,
218
250
  on_prem: Optional[bool] = None,
219
251
  provisioned: Optional[bool] = None,
252
+ source_group_id: Optional[str] = None,
220
253
  streamtags: Optional[List[str]] = None,
221
254
  tags: Optional[str] = None,
222
- type_: Optional[models.ConfigGroupType] = None,
255
+ type_: Optional[models.GroupCreateRequestType] = None,
223
256
  upgrade_version: Optional[str] = None,
224
257
  worker_count: Optional[float] = None,
225
258
  worker_remote_access: Optional[bool] = None,
@@ -227,18 +260,17 @@ class GroupsSDK(BaseSDK):
227
260
  server_url: Optional[str] = None,
228
261
  timeout_ms: Optional[int] = None,
229
262
  http_headers: Optional[Mapping[str, str]] = None,
230
- ) -> models.CreateProductsGroupsByProductResponse:
231
- r"""Create a Fleet or Worker Group
263
+ ) -> models.CountedConfigGroup:
264
+ r"""Create a Worker Group or Edge Fleet for the specified Cribl product
232
265
 
233
- Create a Fleet or Worker Group
266
+ Create a new Worker Group or Edge Fleet for the specified Cribl product.
234
267
 
235
- :param product: Cribl Product
236
- :param config_version:
268
+ :param product: Name of the Cribl product to add the Worker Group or Edge Fleet to.
237
269
  :param id:
238
270
  :param cloud:
239
271
  :param deploying_worker_count:
240
272
  :param description:
241
- :param estimated_ingest_rate:
273
+ :param estimated_ingest_rate: Maximum expected volume of data ingested by the @{group}. (This setting is available only on @{group}s consisting of Cribl-managed Cribl.Cloud @{node}s.)
242
274
  :param git:
243
275
  :param incompatible_worker_count:
244
276
  :param inherits:
@@ -249,6 +281,7 @@ class GroupsSDK(BaseSDK):
249
281
  :param name:
250
282
  :param on_prem:
251
283
  :param provisioned:
284
+ :param source_group_id:
252
285
  :param streamtags:
253
286
  :param tags:
254
287
  :param type:
@@ -270,17 +303,18 @@ class GroupsSDK(BaseSDK):
270
303
  else:
271
304
  base_url = self._get_url(base_url, url_variables)
272
305
 
273
- request = models.CreateProductsGroupsByProductRequest(
306
+ request = models.CreateConfigGroupByProductRequest(
274
307
  product=product,
275
- config_group=models.ConfigGroup(
308
+ group_create_request=models.GroupCreateRequest(
276
309
  cloud=utils.get_pydantic_model(
277
310
  cloud, Optional[models.ConfigGroupCloud]
278
311
  ),
279
- config_version=config_version,
280
312
  deploying_worker_count=deploying_worker_count,
281
313
  description=description,
282
314
  estimated_ingest_rate=estimated_ingest_rate,
283
- git=utils.get_pydantic_model(git, Optional[models.Git]),
315
+ git=utils.get_pydantic_model(
316
+ git, Optional[models.GroupCreateRequestGit]
317
+ ),
284
318
  id=id,
285
319
  incompatible_worker_count=incompatible_worker_count,
286
320
  inherits=inherits,
@@ -293,6 +327,7 @@ class GroupsSDK(BaseSDK):
293
327
  name=name,
294
328
  on_prem=on_prem,
295
329
  provisioned=provisioned,
330
+ source_group_id=source_group_id,
296
331
  streamtags=streamtags,
297
332
  tags=tags,
298
333
  type=type_,
@@ -316,24 +351,33 @@ class GroupsSDK(BaseSDK):
316
351
  http_headers=http_headers,
317
352
  security=self.sdk_configuration.security,
318
353
  get_serialized_body=lambda: utils.serialize_request_body(
319
- request.config_group, False, False, "json", models.ConfigGroup
354
+ request.group_create_request,
355
+ False,
356
+ False,
357
+ "json",
358
+ models.GroupCreateRequest,
320
359
  ),
360
+ allow_empty_value=None,
321
361
  timeout_ms=timeout_ms,
322
362
  )
323
363
 
324
364
  if retries == UNSET:
325
365
  if self.sdk_configuration.retry_config is not UNSET:
326
366
  retries = self.sdk_configuration.retry_config
367
+ else:
368
+ retries = utils.RetryConfig(
369
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
370
+ )
327
371
 
328
372
  retry_config = None
329
373
  if isinstance(retries, utils.RetryConfig):
330
- retry_config = (retries, ["429", "500", "502", "503", "504"])
374
+ retry_config = (retries, ["429"])
331
375
 
332
376
  http_res = self.do_request(
333
377
  hook_ctx=HookContext(
334
378
  config=self.sdk_configuration,
335
379
  base_url=base_url or "",
336
- operation_id="createProductsGroupsByProduct",
380
+ operation_id="createConfigGroupByProduct",
337
381
  oauth2_scopes=[],
338
382
  security_source=get_security_from_env(
339
383
  self.sdk_configuration.security, models.Security
@@ -346,9 +390,7 @@ class GroupsSDK(BaseSDK):
346
390
 
347
391
  response_data: Any = None
348
392
  if utils.match_response(http_res, "200", "application/json"):
349
- return unmarshal_json_response(
350
- models.CreateProductsGroupsByProductResponse, http_res
351
- )
393
+ return unmarshal_json_response(models.CountedConfigGroup, http_res)
352
394
  if utils.match_response(http_res, "500", "application/json"):
353
395
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
354
396
  raise errors.Error(response_data, http_res)
@@ -361,19 +403,22 @@ class GroupsSDK(BaseSDK):
361
403
 
362
404
  raise errors.APIError("Unexpected response received", http_res)
363
405
 
364
- async def create_products_groups_by_product_async(
406
+ async def create_async(
365
407
  self,
366
408
  *,
367
- product: models.CreateProductsGroupsByProductProduct,
368
- config_version: str,
409
+ product: models.ProductsCore,
369
410
  id: str,
370
411
  cloud: Optional[
371
412
  Union[models.ConfigGroupCloud, models.ConfigGroupCloudTypedDict]
372
413
  ] = None,
373
414
  deploying_worker_count: Optional[float] = None,
374
415
  description: Optional[str] = None,
375
- estimated_ingest_rate: Optional[float] = None,
376
- git: Optional[Union[models.Git, models.GitTypedDict]] = None,
416
+ estimated_ingest_rate: Optional[
417
+ models.GroupCreateRequestEstimatedIngestRate
418
+ ] = None,
419
+ git: Optional[
420
+ Union[models.GroupCreateRequestGit, models.GroupCreateRequestGitTypedDict]
421
+ ] = None,
377
422
  incompatible_worker_count: Optional[float] = None,
378
423
  inherits: Optional[str] = None,
379
424
  is_fleet: Optional[bool] = None,
@@ -388,9 +433,10 @@ class GroupsSDK(BaseSDK):
388
433
  name: Optional[str] = None,
389
434
  on_prem: Optional[bool] = None,
390
435
  provisioned: Optional[bool] = None,
436
+ source_group_id: Optional[str] = None,
391
437
  streamtags: Optional[List[str]] = None,
392
438
  tags: Optional[str] = None,
393
- type_: Optional[models.ConfigGroupType] = None,
439
+ type_: Optional[models.GroupCreateRequestType] = None,
394
440
  upgrade_version: Optional[str] = None,
395
441
  worker_count: Optional[float] = None,
396
442
  worker_remote_access: Optional[bool] = None,
@@ -398,18 +444,17 @@ class GroupsSDK(BaseSDK):
398
444
  server_url: Optional[str] = None,
399
445
  timeout_ms: Optional[int] = None,
400
446
  http_headers: Optional[Mapping[str, str]] = None,
401
- ) -> models.CreateProductsGroupsByProductResponse:
402
- r"""Create a Fleet or Worker Group
447
+ ) -> models.CountedConfigGroup:
448
+ r"""Create a Worker Group or Edge Fleet for the specified Cribl product
403
449
 
404
- Create a Fleet or Worker Group
450
+ Create a new Worker Group or Edge Fleet for the specified Cribl product.
405
451
 
406
- :param product: Cribl Product
407
- :param config_version:
452
+ :param product: Name of the Cribl product to add the Worker Group or Edge Fleet to.
408
453
  :param id:
409
454
  :param cloud:
410
455
  :param deploying_worker_count:
411
456
  :param description:
412
- :param estimated_ingest_rate:
457
+ :param estimated_ingest_rate: Maximum expected volume of data ingested by the @{group}. (This setting is available only on @{group}s consisting of Cribl-managed Cribl.Cloud @{node}s.)
413
458
  :param git:
414
459
  :param incompatible_worker_count:
415
460
  :param inherits:
@@ -420,6 +465,7 @@ class GroupsSDK(BaseSDK):
420
465
  :param name:
421
466
  :param on_prem:
422
467
  :param provisioned:
468
+ :param source_group_id:
423
469
  :param streamtags:
424
470
  :param tags:
425
471
  :param type:
@@ -441,17 +487,18 @@ class GroupsSDK(BaseSDK):
441
487
  else:
442
488
  base_url = self._get_url(base_url, url_variables)
443
489
 
444
- request = models.CreateProductsGroupsByProductRequest(
490
+ request = models.CreateConfigGroupByProductRequest(
445
491
  product=product,
446
- config_group=models.ConfigGroup(
492
+ group_create_request=models.GroupCreateRequest(
447
493
  cloud=utils.get_pydantic_model(
448
494
  cloud, Optional[models.ConfigGroupCloud]
449
495
  ),
450
- config_version=config_version,
451
496
  deploying_worker_count=deploying_worker_count,
452
497
  description=description,
453
498
  estimated_ingest_rate=estimated_ingest_rate,
454
- git=utils.get_pydantic_model(git, Optional[models.Git]),
499
+ git=utils.get_pydantic_model(
500
+ git, Optional[models.GroupCreateRequestGit]
501
+ ),
455
502
  id=id,
456
503
  incompatible_worker_count=incompatible_worker_count,
457
504
  inherits=inherits,
@@ -464,6 +511,7 @@ class GroupsSDK(BaseSDK):
464
511
  name=name,
465
512
  on_prem=on_prem,
466
513
  provisioned=provisioned,
514
+ source_group_id=source_group_id,
467
515
  streamtags=streamtags,
468
516
  tags=tags,
469
517
  type=type_,
@@ -487,24 +535,33 @@ class GroupsSDK(BaseSDK):
487
535
  http_headers=http_headers,
488
536
  security=self.sdk_configuration.security,
489
537
  get_serialized_body=lambda: utils.serialize_request_body(
490
- request.config_group, False, False, "json", models.ConfigGroup
538
+ request.group_create_request,
539
+ False,
540
+ False,
541
+ "json",
542
+ models.GroupCreateRequest,
491
543
  ),
544
+ allow_empty_value=None,
492
545
  timeout_ms=timeout_ms,
493
546
  )
494
547
 
495
548
  if retries == UNSET:
496
549
  if self.sdk_configuration.retry_config is not UNSET:
497
550
  retries = self.sdk_configuration.retry_config
551
+ else:
552
+ retries = utils.RetryConfig(
553
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
554
+ )
498
555
 
499
556
  retry_config = None
500
557
  if isinstance(retries, utils.RetryConfig):
501
- retry_config = (retries, ["429", "500", "502", "503", "504"])
558
+ retry_config = (retries, ["429"])
502
559
 
503
560
  http_res = await self.do_request_async(
504
561
  hook_ctx=HookContext(
505
562
  config=self.sdk_configuration,
506
563
  base_url=base_url or "",
507
- operation_id="createProductsGroupsByProduct",
564
+ operation_id="createConfigGroupByProduct",
508
565
  oauth2_scopes=[],
509
566
  security_source=get_security_from_env(
510
567
  self.sdk_configuration.security, models.Security
@@ -517,9 +574,7 @@ class GroupsSDK(BaseSDK):
517
574
 
518
575
  response_data: Any = None
519
576
  if utils.match_response(http_res, "200", "application/json"):
520
- return unmarshal_json_response(
521
- models.CreateProductsGroupsByProductResponse, http_res
522
- )
577
+ return unmarshal_json_response(models.CountedConfigGroup, http_res)
523
578
  if utils.match_response(http_res, "500", "application/json"):
524
579
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
525
580
  raise errors.Error(response_data, http_res)
@@ -532,380 +587,24 @@ class GroupsSDK(BaseSDK):
532
587
 
533
588
  raise errors.APIError("Unexpected response received", http_res)
534
589
 
535
- def get_products_groups_by_product(
536
- self,
537
- *,
538
- product: models.GetProductsGroupsByProductProduct,
539
- fields: Optional[str] = None,
540
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
541
- server_url: Optional[str] = None,
542
- timeout_ms: Optional[int] = None,
543
- http_headers: Optional[Mapping[str, str]] = None,
544
- ) -> models.GetProductsGroupsByProductResponse:
545
- r"""Get a list of ConfigGroup objects
546
-
547
- Get a list of ConfigGroup objects
548
-
549
- :param product: Cribl Product
550
- :param fields: fields to add to results: git.commit, git.localChanges, git.log
551
- :param retries: Override the default retry configuration for this method
552
- :param server_url: Override the default server URL for this method
553
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
554
- :param http_headers: Additional headers to set or replace on requests.
555
- """
556
- base_url = None
557
- url_variables = None
558
- if timeout_ms is None:
559
- timeout_ms = self.sdk_configuration.timeout_ms
560
-
561
- if server_url is not None:
562
- base_url = server_url
563
- else:
564
- base_url = self._get_url(base_url, url_variables)
565
-
566
- request = models.GetProductsGroupsByProductRequest(
567
- fields=fields,
568
- product=product,
569
- )
570
-
571
- req = self._build_request(
572
- method="GET",
573
- path="/products/{product}/groups",
574
- base_url=base_url,
575
- url_variables=url_variables,
576
- request=request,
577
- request_body_required=False,
578
- request_has_path_params=True,
579
- request_has_query_params=True,
580
- user_agent_header="user-agent",
581
- accept_header_value="application/json",
582
- http_headers=http_headers,
583
- security=self.sdk_configuration.security,
584
- timeout_ms=timeout_ms,
585
- )
586
-
587
- if retries == UNSET:
588
- if self.sdk_configuration.retry_config is not UNSET:
589
- retries = self.sdk_configuration.retry_config
590
-
591
- retry_config = None
592
- if isinstance(retries, utils.RetryConfig):
593
- retry_config = (retries, ["429", "500", "502", "503", "504"])
594
-
595
- http_res = self.do_request(
596
- hook_ctx=HookContext(
597
- config=self.sdk_configuration,
598
- base_url=base_url or "",
599
- operation_id="getProductsGroupsByProduct",
600
- oauth2_scopes=[],
601
- security_source=get_security_from_env(
602
- self.sdk_configuration.security, models.Security
603
- ),
604
- ),
605
- request=req,
606
- error_status_codes=["401", "4XX", "500", "5XX"],
607
- retry_config=retry_config,
608
- )
609
-
610
- response_data: Any = None
611
- if utils.match_response(http_res, "200", "application/json"):
612
- return unmarshal_json_response(
613
- models.GetProductsGroupsByProductResponse, http_res
614
- )
615
- if utils.match_response(http_res, "500", "application/json"):
616
- response_data = unmarshal_json_response(errors.ErrorData, http_res)
617
- raise errors.Error(response_data, http_res)
618
- if utils.match_response(http_res, ["401", "4XX"], "*"):
619
- http_res_text = utils.stream_to_text(http_res)
620
- raise errors.APIError("API error occurred", http_res, http_res_text)
621
- if utils.match_response(http_res, "5XX", "*"):
622
- http_res_text = utils.stream_to_text(http_res)
623
- raise errors.APIError("API error occurred", http_res, http_res_text)
624
-
625
- raise errors.APIError("Unexpected response received", http_res)
626
-
627
- async def get_products_groups_by_product_async(
628
- self,
629
- *,
630
- product: models.GetProductsGroupsByProductProduct,
631
- fields: Optional[str] = None,
632
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
633
- server_url: Optional[str] = None,
634
- timeout_ms: Optional[int] = None,
635
- http_headers: Optional[Mapping[str, str]] = None,
636
- ) -> models.GetProductsGroupsByProductResponse:
637
- r"""Get a list of ConfigGroup objects
638
-
639
- Get a list of ConfigGroup objects
640
-
641
- :param product: Cribl Product
642
- :param fields: fields to add to results: git.commit, git.localChanges, git.log
643
- :param retries: Override the default retry configuration for this method
644
- :param server_url: Override the default server URL for this method
645
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
646
- :param http_headers: Additional headers to set or replace on requests.
647
- """
648
- base_url = None
649
- url_variables = None
650
- if timeout_ms is None:
651
- timeout_ms = self.sdk_configuration.timeout_ms
652
-
653
- if server_url is not None:
654
- base_url = server_url
655
- else:
656
- base_url = self._get_url(base_url, url_variables)
657
-
658
- request = models.GetProductsGroupsByProductRequest(
659
- fields=fields,
660
- product=product,
661
- )
662
-
663
- req = self._build_request_async(
664
- method="GET",
665
- path="/products/{product}/groups",
666
- base_url=base_url,
667
- url_variables=url_variables,
668
- request=request,
669
- request_body_required=False,
670
- request_has_path_params=True,
671
- request_has_query_params=True,
672
- user_agent_header="user-agent",
673
- accept_header_value="application/json",
674
- http_headers=http_headers,
675
- security=self.sdk_configuration.security,
676
- timeout_ms=timeout_ms,
677
- )
678
-
679
- if retries == UNSET:
680
- if self.sdk_configuration.retry_config is not UNSET:
681
- retries = self.sdk_configuration.retry_config
682
-
683
- retry_config = None
684
- if isinstance(retries, utils.RetryConfig):
685
- retry_config = (retries, ["429", "500", "502", "503", "504"])
686
-
687
- http_res = await self.do_request_async(
688
- hook_ctx=HookContext(
689
- config=self.sdk_configuration,
690
- base_url=base_url or "",
691
- operation_id="getProductsGroupsByProduct",
692
- oauth2_scopes=[],
693
- security_source=get_security_from_env(
694
- self.sdk_configuration.security, models.Security
695
- ),
696
- ),
697
- request=req,
698
- error_status_codes=["401", "4XX", "500", "5XX"],
699
- retry_config=retry_config,
700
- )
701
-
702
- response_data: Any = None
703
- if utils.match_response(http_res, "200", "application/json"):
704
- return unmarshal_json_response(
705
- models.GetProductsGroupsByProductResponse, http_res
706
- )
707
- if utils.match_response(http_res, "500", "application/json"):
708
- response_data = unmarshal_json_response(errors.ErrorData, http_res)
709
- raise errors.Error(response_data, http_res)
710
- if utils.match_response(http_res, ["401", "4XX"], "*"):
711
- http_res_text = await utils.stream_to_text_async(http_res)
712
- raise errors.APIError("API error occurred", http_res, http_res_text)
713
- if utils.match_response(http_res, "5XX", "*"):
714
- http_res_text = await utils.stream_to_text_async(http_res)
715
- raise errors.APIError("API error occurred", http_res, http_res_text)
716
-
717
- raise errors.APIError("Unexpected response received", http_res)
718
-
719
- def delete_groups_by_id(
720
- self,
721
- *,
722
- id: str,
723
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
724
- server_url: Optional[str] = None,
725
- timeout_ms: Optional[int] = None,
726
- http_headers: Optional[Mapping[str, str]] = None,
727
- ) -> models.DeleteGroupsByIDResponse:
728
- r"""Delete a Fleet or Worker Group
729
-
730
- Delete a Fleet or Worker Group
731
-
732
- :param id: Group ID
733
- :param retries: Override the default retry configuration for this method
734
- :param server_url: Override the default server URL for this method
735
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
736
- :param http_headers: Additional headers to set or replace on requests.
737
- """
738
- base_url = None
739
- url_variables = None
740
- if timeout_ms is None:
741
- timeout_ms = self.sdk_configuration.timeout_ms
742
-
743
- if server_url is not None:
744
- base_url = server_url
745
- else:
746
- base_url = self._get_url(base_url, url_variables)
747
-
748
- request = models.DeleteGroupsByIDRequest(
749
- id=id,
750
- )
751
-
752
- req = self._build_request(
753
- method="DELETE",
754
- path="/master/groups/{id}",
755
- base_url=base_url,
756
- url_variables=url_variables,
757
- request=request,
758
- request_body_required=False,
759
- request_has_path_params=True,
760
- request_has_query_params=True,
761
- user_agent_header="user-agent",
762
- accept_header_value="application/json",
763
- http_headers=http_headers,
764
- security=self.sdk_configuration.security,
765
- timeout_ms=timeout_ms,
766
- )
767
-
768
- if retries == UNSET:
769
- if self.sdk_configuration.retry_config is not UNSET:
770
- retries = self.sdk_configuration.retry_config
771
-
772
- retry_config = None
773
- if isinstance(retries, utils.RetryConfig):
774
- retry_config = (retries, ["429", "500", "502", "503", "504"])
775
-
776
- http_res = self.do_request(
777
- hook_ctx=HookContext(
778
- config=self.sdk_configuration,
779
- base_url=base_url or "",
780
- operation_id="deleteGroupsById",
781
- oauth2_scopes=[],
782
- security_source=get_security_from_env(
783
- self.sdk_configuration.security, models.Security
784
- ),
785
- ),
786
- request=req,
787
- error_status_codes=["401", "4XX", "500", "5XX"],
788
- retry_config=retry_config,
789
- )
790
-
791
- response_data: Any = None
792
- if utils.match_response(http_res, "200", "application/json"):
793
- return unmarshal_json_response(models.DeleteGroupsByIDResponse, http_res)
794
- if utils.match_response(http_res, "500", "application/json"):
795
- response_data = unmarshal_json_response(errors.ErrorData, http_res)
796
- raise errors.Error(response_data, http_res)
797
- if utils.match_response(http_res, ["401", "4XX"], "*"):
798
- http_res_text = utils.stream_to_text(http_res)
799
- raise errors.APIError("API error occurred", http_res, http_res_text)
800
- if utils.match_response(http_res, "5XX", "*"):
801
- http_res_text = utils.stream_to_text(http_res)
802
- raise errors.APIError("API error occurred", http_res, http_res_text)
803
-
804
- raise errors.APIError("Unexpected response received", http_res)
805
-
806
- async def delete_groups_by_id_async(
807
- self,
808
- *,
809
- id: str,
810
- retries: OptionalNullable[utils.RetryConfig] = UNSET,
811
- server_url: Optional[str] = None,
812
- timeout_ms: Optional[int] = None,
813
- http_headers: Optional[Mapping[str, str]] = None,
814
- ) -> models.DeleteGroupsByIDResponse:
815
- r"""Delete a Fleet or Worker Group
816
-
817
- Delete a Fleet or Worker Group
818
-
819
- :param id: Group ID
820
- :param retries: Override the default retry configuration for this method
821
- :param server_url: Override the default server URL for this method
822
- :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
823
- :param http_headers: Additional headers to set or replace on requests.
824
- """
825
- base_url = None
826
- url_variables = None
827
- if timeout_ms is None:
828
- timeout_ms = self.sdk_configuration.timeout_ms
829
-
830
- if server_url is not None:
831
- base_url = server_url
832
- else:
833
- base_url = self._get_url(base_url, url_variables)
834
-
835
- request = models.DeleteGroupsByIDRequest(
836
- id=id,
837
- )
838
-
839
- req = self._build_request_async(
840
- method="DELETE",
841
- path="/master/groups/{id}",
842
- base_url=base_url,
843
- url_variables=url_variables,
844
- request=request,
845
- request_body_required=False,
846
- request_has_path_params=True,
847
- request_has_query_params=True,
848
- user_agent_header="user-agent",
849
- accept_header_value="application/json",
850
- http_headers=http_headers,
851
- security=self.sdk_configuration.security,
852
- timeout_ms=timeout_ms,
853
- )
854
-
855
- if retries == UNSET:
856
- if self.sdk_configuration.retry_config is not UNSET:
857
- retries = self.sdk_configuration.retry_config
858
-
859
- retry_config = None
860
- if isinstance(retries, utils.RetryConfig):
861
- retry_config = (retries, ["429", "500", "502", "503", "504"])
862
-
863
- http_res = await self.do_request_async(
864
- hook_ctx=HookContext(
865
- config=self.sdk_configuration,
866
- base_url=base_url or "",
867
- operation_id="deleteGroupsById",
868
- oauth2_scopes=[],
869
- security_source=get_security_from_env(
870
- self.sdk_configuration.security, models.Security
871
- ),
872
- ),
873
- request=req,
874
- error_status_codes=["401", "4XX", "500", "5XX"],
875
- retry_config=retry_config,
876
- )
877
-
878
- response_data: Any = None
879
- if utils.match_response(http_res, "200", "application/json"):
880
- return unmarshal_json_response(models.DeleteGroupsByIDResponse, http_res)
881
- if utils.match_response(http_res, "500", "application/json"):
882
- response_data = unmarshal_json_response(errors.ErrorData, http_res)
883
- raise errors.Error(response_data, http_res)
884
- if utils.match_response(http_res, ["401", "4XX"], "*"):
885
- http_res_text = await utils.stream_to_text_async(http_res)
886
- raise errors.APIError("API error occurred", http_res, http_res_text)
887
- if utils.match_response(http_res, "5XX", "*"):
888
- http_res_text = await utils.stream_to_text_async(http_res)
889
- raise errors.APIError("API error occurred", http_res, http_res_text)
890
-
891
- raise errors.APIError("Unexpected response received", http_res)
892
-
893
- def get_groups_by_id(
590
+ def get(
894
591
  self,
895
592
  *,
593
+ product: models.ProductsCore,
896
594
  id: str,
897
595
  fields: Optional[str] = None,
898
596
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
899
597
  server_url: Optional[str] = None,
900
598
  timeout_ms: Optional[int] = None,
901
599
  http_headers: Optional[Mapping[str, str]] = None,
902
- ) -> models.GetGroupsByIDResponse:
903
- r"""Get a specific ConfigGroup object
600
+ ) -> models.CountedConfigGroup:
601
+ r"""Get a Worker Group or Edge Fleet
904
602
 
905
- Get a specific ConfigGroup object
603
+ Get the specified Worker Group or Edge Fleet.
906
604
 
907
- :param id: Group id
908
- :param fields: fields to add to results: git.commit, git.localChanges, git.log
605
+ :param product: Name of the Cribl product to get the Worker Groups or Edge Fleets for.
606
+ :param id: The <code>id</code> of the Worker Group or Edge Fleet to get.
607
+ :param fields: Comma-separated list of additional properties to include in the response. Available values are <code>git.commit</code>, <code>git.localChanges</code>, and <code>git.log</code>.
909
608
  :param retries: Override the default retry configuration for this method
910
609
  :param server_url: Override the default server URL for this method
911
610
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -921,14 +620,15 @@ class GroupsSDK(BaseSDK):
921
620
  else:
922
621
  base_url = self._get_url(base_url, url_variables)
923
622
 
924
- request = models.GetGroupsByIDRequest(
623
+ request = models.GetConfigGroupByProductAndIDRequest(
624
+ product=product,
925
625
  id=id,
926
626
  fields=fields,
927
627
  )
928
628
 
929
629
  req = self._build_request(
930
630
  method="GET",
931
- path="/master/groups/{id}",
631
+ path="/products/{product}/groups/{id}",
932
632
  base_url=base_url,
933
633
  url_variables=url_variables,
934
634
  request=request,
@@ -939,22 +639,27 @@ class GroupsSDK(BaseSDK):
939
639
  accept_header_value="application/json",
940
640
  http_headers=http_headers,
941
641
  security=self.sdk_configuration.security,
642
+ allow_empty_value=None,
942
643
  timeout_ms=timeout_ms,
943
644
  )
944
645
 
945
646
  if retries == UNSET:
946
647
  if self.sdk_configuration.retry_config is not UNSET:
947
648
  retries = self.sdk_configuration.retry_config
649
+ else:
650
+ retries = utils.RetryConfig(
651
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
652
+ )
948
653
 
949
654
  retry_config = None
950
655
  if isinstance(retries, utils.RetryConfig):
951
- retry_config = (retries, ["429", "500", "502", "503", "504"])
656
+ retry_config = (retries, ["429"])
952
657
 
953
658
  http_res = self.do_request(
954
659
  hook_ctx=HookContext(
955
660
  config=self.sdk_configuration,
956
661
  base_url=base_url or "",
957
- operation_id="getGroupsById",
662
+ operation_id="getConfigGroupByProductAndId",
958
663
  oauth2_scopes=[],
959
664
  security_source=get_security_from_env(
960
665
  self.sdk_configuration.security, models.Security
@@ -967,7 +672,7 @@ class GroupsSDK(BaseSDK):
967
672
 
968
673
  response_data: Any = None
969
674
  if utils.match_response(http_res, "200", "application/json"):
970
- return unmarshal_json_response(models.GetGroupsByIDResponse, http_res)
675
+ return unmarshal_json_response(models.CountedConfigGroup, http_res)
971
676
  if utils.match_response(http_res, "500", "application/json"):
972
677
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
973
678
  raise errors.Error(response_data, http_res)
@@ -980,22 +685,24 @@ class GroupsSDK(BaseSDK):
980
685
 
981
686
  raise errors.APIError("Unexpected response received", http_res)
982
687
 
983
- async def get_groups_by_id_async(
688
+ async def get_async(
984
689
  self,
985
690
  *,
691
+ product: models.ProductsCore,
986
692
  id: str,
987
693
  fields: Optional[str] = None,
988
694
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
989
695
  server_url: Optional[str] = None,
990
696
  timeout_ms: Optional[int] = None,
991
697
  http_headers: Optional[Mapping[str, str]] = None,
992
- ) -> models.GetGroupsByIDResponse:
993
- r"""Get a specific ConfigGroup object
698
+ ) -> models.CountedConfigGroup:
699
+ r"""Get a Worker Group or Edge Fleet
994
700
 
995
- Get a specific ConfigGroup object
701
+ Get the specified Worker Group or Edge Fleet.
996
702
 
997
- :param id: Group id
998
- :param fields: fields to add to results: git.commit, git.localChanges, git.log
703
+ :param product: Name of the Cribl product to get the Worker Groups or Edge Fleets for.
704
+ :param id: The <code>id</code> of the Worker Group or Edge Fleet to get.
705
+ :param fields: Comma-separated list of additional properties to include in the response. Available values are <code>git.commit</code>, <code>git.localChanges</code>, and <code>git.log</code>.
999
706
  :param retries: Override the default retry configuration for this method
1000
707
  :param server_url: Override the default server URL for this method
1001
708
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1011,14 +718,15 @@ class GroupsSDK(BaseSDK):
1011
718
  else:
1012
719
  base_url = self._get_url(base_url, url_variables)
1013
720
 
1014
- request = models.GetGroupsByIDRequest(
721
+ request = models.GetConfigGroupByProductAndIDRequest(
722
+ product=product,
1015
723
  id=id,
1016
724
  fields=fields,
1017
725
  )
1018
726
 
1019
727
  req = self._build_request_async(
1020
728
  method="GET",
1021
- path="/master/groups/{id}",
729
+ path="/products/{product}/groups/{id}",
1022
730
  base_url=base_url,
1023
731
  url_variables=url_variables,
1024
732
  request=request,
@@ -1029,22 +737,27 @@ class GroupsSDK(BaseSDK):
1029
737
  accept_header_value="application/json",
1030
738
  http_headers=http_headers,
1031
739
  security=self.sdk_configuration.security,
740
+ allow_empty_value=None,
1032
741
  timeout_ms=timeout_ms,
1033
742
  )
1034
743
 
1035
744
  if retries == UNSET:
1036
745
  if self.sdk_configuration.retry_config is not UNSET:
1037
746
  retries = self.sdk_configuration.retry_config
747
+ else:
748
+ retries = utils.RetryConfig(
749
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
750
+ )
1038
751
 
1039
752
  retry_config = None
1040
753
  if isinstance(retries, utils.RetryConfig):
1041
- retry_config = (retries, ["429", "500", "502", "503", "504"])
754
+ retry_config = (retries, ["429"])
1042
755
 
1043
756
  http_res = await self.do_request_async(
1044
757
  hook_ctx=HookContext(
1045
758
  config=self.sdk_configuration,
1046
759
  base_url=base_url or "",
1047
- operation_id="getGroupsById",
760
+ operation_id="getConfigGroupByProductAndId",
1048
761
  oauth2_scopes=[],
1049
762
  security_source=get_security_from_env(
1050
763
  self.sdk_configuration.security, models.Security
@@ -1057,7 +770,7 @@ class GroupsSDK(BaseSDK):
1057
770
 
1058
771
  response_data: Any = None
1059
772
  if utils.match_response(http_res, "200", "application/json"):
1060
- return unmarshal_json_response(models.GetGroupsByIDResponse, http_res)
773
+ return unmarshal_json_response(models.CountedConfigGroup, http_res)
1061
774
  if utils.match_response(http_res, "500", "application/json"):
1062
775
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
1063
776
  raise errors.Error(response_data, http_res)
@@ -1070,19 +783,22 @@ class GroupsSDK(BaseSDK):
1070
783
 
1071
784
  raise errors.APIError("Unexpected response received", http_res)
1072
785
 
1073
- def update_groups_by_id(
786
+ def update(
1074
787
  self,
1075
788
  *,
789
+ product: models.ProductsCore,
1076
790
  id_param: str,
1077
- config_version: str,
1078
791
  id: str,
1079
792
  cloud: Optional[
1080
793
  Union[models.ConfigGroupCloud, models.ConfigGroupCloudTypedDict]
1081
794
  ] = None,
795
+ config_version: Optional[str] = None,
1082
796
  deploying_worker_count: Optional[float] = None,
1083
797
  description: Optional[str] = None,
1084
- estimated_ingest_rate: Optional[float] = None,
1085
- git: Optional[Union[models.Git, models.GitTypedDict]] = None,
798
+ estimated_ingest_rate: Optional[models.ConfigGroupEstimatedIngestRate] = None,
799
+ git: Optional[
800
+ Union[models.ConfigGroupGit, models.ConfigGroupGitTypedDict]
801
+ ] = None,
1086
802
  incompatible_worker_count: Optional[float] = None,
1087
803
  inherits: Optional[str] = None,
1088
804
  is_fleet: Optional[bool] = None,
@@ -1107,18 +823,19 @@ class GroupsSDK(BaseSDK):
1107
823
  server_url: Optional[str] = None,
1108
824
  timeout_ms: Optional[int] = None,
1109
825
  http_headers: Optional[Mapping[str, str]] = None,
1110
- ) -> models.UpdateGroupsByIDResponse:
1111
- r"""Update a Fleet or Worker Group
826
+ ) -> models.CountedConfigGroup:
827
+ r"""Update a Worker Group or Edge Fleet
1112
828
 
1113
- Update a Fleet or Worker Group
829
+ Update the specified Worker Group or Edge Fleet.
1114
830
 
1115
- :param id_param: Group ID
1116
- :param config_version:
831
+ :param product: Name of the Cribl product to get the Worker Groups or Edge Fleets for.
832
+ :param id_param: The <code>id</code> of the Worker Group or Edge Fleet to update.
1117
833
  :param id:
1118
834
  :param cloud:
835
+ :param config_version:
1119
836
  :param deploying_worker_count:
1120
837
  :param description:
1121
- :param estimated_ingest_rate:
838
+ :param estimated_ingest_rate: Maximum expected volume of data ingested by the @{group}. (This setting is available only on @{group}s consisting of Cribl-managed Cribl.Cloud @{node}s.)
1122
839
  :param git:
1123
840
  :param incompatible_worker_count:
1124
841
  :param inherits:
@@ -1150,7 +867,8 @@ class GroupsSDK(BaseSDK):
1150
867
  else:
1151
868
  base_url = self._get_url(base_url, url_variables)
1152
869
 
1153
- request = models.UpdateGroupsByIDRequest(
870
+ request = models.UpdateConfigGroupByProductAndIDRequest(
871
+ product=product,
1154
872
  id_param=id_param,
1155
873
  config_group=models.ConfigGroup(
1156
874
  cloud=utils.get_pydantic_model(
@@ -1160,7 +878,7 @@ class GroupsSDK(BaseSDK):
1160
878
  deploying_worker_count=deploying_worker_count,
1161
879
  description=description,
1162
880
  estimated_ingest_rate=estimated_ingest_rate,
1163
- git=utils.get_pydantic_model(git, Optional[models.Git]),
881
+ git=utils.get_pydantic_model(git, Optional[models.ConfigGroupGit]),
1164
882
  id=id,
1165
883
  incompatible_worker_count=incompatible_worker_count,
1166
884
  inherits=inherits,
@@ -1184,7 +902,7 @@ class GroupsSDK(BaseSDK):
1184
902
 
1185
903
  req = self._build_request(
1186
904
  method="PATCH",
1187
- path="/master/groups/{id}",
905
+ path="/products/{product}/groups/{id}",
1188
906
  base_url=base_url,
1189
907
  url_variables=url_variables,
1190
908
  request=request,
@@ -1198,22 +916,27 @@ class GroupsSDK(BaseSDK):
1198
916
  get_serialized_body=lambda: utils.serialize_request_body(
1199
917
  request.config_group, False, False, "json", models.ConfigGroup
1200
918
  ),
919
+ allow_empty_value=None,
1201
920
  timeout_ms=timeout_ms,
1202
921
  )
1203
922
 
1204
923
  if retries == UNSET:
1205
924
  if self.sdk_configuration.retry_config is not UNSET:
1206
925
  retries = self.sdk_configuration.retry_config
926
+ else:
927
+ retries = utils.RetryConfig(
928
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
929
+ )
1207
930
 
1208
931
  retry_config = None
1209
932
  if isinstance(retries, utils.RetryConfig):
1210
- retry_config = (retries, ["429", "500", "502", "503", "504"])
933
+ retry_config = (retries, ["429"])
1211
934
 
1212
935
  http_res = self.do_request(
1213
936
  hook_ctx=HookContext(
1214
937
  config=self.sdk_configuration,
1215
938
  base_url=base_url or "",
1216
- operation_id="updateGroupsById",
939
+ operation_id="updateConfigGroupByProductAndId",
1217
940
  oauth2_scopes=[],
1218
941
  security_source=get_security_from_env(
1219
942
  self.sdk_configuration.security, models.Security
@@ -1226,7 +949,7 @@ class GroupsSDK(BaseSDK):
1226
949
 
1227
950
  response_data: Any = None
1228
951
  if utils.match_response(http_res, "200", "application/json"):
1229
- return unmarshal_json_response(models.UpdateGroupsByIDResponse, http_res)
952
+ return unmarshal_json_response(models.CountedConfigGroup, http_res)
1230
953
  if utils.match_response(http_res, "500", "application/json"):
1231
954
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
1232
955
  raise errors.Error(response_data, http_res)
@@ -1239,19 +962,22 @@ class GroupsSDK(BaseSDK):
1239
962
 
1240
963
  raise errors.APIError("Unexpected response received", http_res)
1241
964
 
1242
- async def update_groups_by_id_async(
965
+ async def update_async(
1243
966
  self,
1244
967
  *,
968
+ product: models.ProductsCore,
1245
969
  id_param: str,
1246
- config_version: str,
1247
970
  id: str,
1248
971
  cloud: Optional[
1249
972
  Union[models.ConfigGroupCloud, models.ConfigGroupCloudTypedDict]
1250
973
  ] = None,
974
+ config_version: Optional[str] = None,
1251
975
  deploying_worker_count: Optional[float] = None,
1252
976
  description: Optional[str] = None,
1253
- estimated_ingest_rate: Optional[float] = None,
1254
- git: Optional[Union[models.Git, models.GitTypedDict]] = None,
977
+ estimated_ingest_rate: Optional[models.ConfigGroupEstimatedIngestRate] = None,
978
+ git: Optional[
979
+ Union[models.ConfigGroupGit, models.ConfigGroupGitTypedDict]
980
+ ] = None,
1255
981
  incompatible_worker_count: Optional[float] = None,
1256
982
  inherits: Optional[str] = None,
1257
983
  is_fleet: Optional[bool] = None,
@@ -1276,18 +1002,19 @@ class GroupsSDK(BaseSDK):
1276
1002
  server_url: Optional[str] = None,
1277
1003
  timeout_ms: Optional[int] = None,
1278
1004
  http_headers: Optional[Mapping[str, str]] = None,
1279
- ) -> models.UpdateGroupsByIDResponse:
1280
- r"""Update a Fleet or Worker Group
1005
+ ) -> models.CountedConfigGroup:
1006
+ r"""Update a Worker Group or Edge Fleet
1281
1007
 
1282
- Update a Fleet or Worker Group
1008
+ Update the specified Worker Group or Edge Fleet.
1283
1009
 
1284
- :param id_param: Group ID
1285
- :param config_version:
1010
+ :param product: Name of the Cribl product to get the Worker Groups or Edge Fleets for.
1011
+ :param id_param: The <code>id</code> of the Worker Group or Edge Fleet to update.
1286
1012
  :param id:
1287
1013
  :param cloud:
1014
+ :param config_version:
1288
1015
  :param deploying_worker_count:
1289
1016
  :param description:
1290
- :param estimated_ingest_rate:
1017
+ :param estimated_ingest_rate: Maximum expected volume of data ingested by the @{group}. (This setting is available only on @{group}s consisting of Cribl-managed Cribl.Cloud @{node}s.)
1291
1018
  :param git:
1292
1019
  :param incompatible_worker_count:
1293
1020
  :param inherits:
@@ -1319,7 +1046,8 @@ class GroupsSDK(BaseSDK):
1319
1046
  else:
1320
1047
  base_url = self._get_url(base_url, url_variables)
1321
1048
 
1322
- request = models.UpdateGroupsByIDRequest(
1049
+ request = models.UpdateConfigGroupByProductAndIDRequest(
1050
+ product=product,
1323
1051
  id_param=id_param,
1324
1052
  config_group=models.ConfigGroup(
1325
1053
  cloud=utils.get_pydantic_model(
@@ -1329,7 +1057,7 @@ class GroupsSDK(BaseSDK):
1329
1057
  deploying_worker_count=deploying_worker_count,
1330
1058
  description=description,
1331
1059
  estimated_ingest_rate=estimated_ingest_rate,
1332
- git=utils.get_pydantic_model(git, Optional[models.Git]),
1060
+ git=utils.get_pydantic_model(git, Optional[models.ConfigGroupGit]),
1333
1061
  id=id,
1334
1062
  incompatible_worker_count=incompatible_worker_count,
1335
1063
  inherits=inherits,
@@ -1353,7 +1081,7 @@ class GroupsSDK(BaseSDK):
1353
1081
 
1354
1082
  req = self._build_request_async(
1355
1083
  method="PATCH",
1356
- path="/master/groups/{id}",
1084
+ path="/products/{product}/groups/{id}",
1357
1085
  base_url=base_url,
1358
1086
  url_variables=url_variables,
1359
1087
  request=request,
@@ -1367,22 +1095,27 @@ class GroupsSDK(BaseSDK):
1367
1095
  get_serialized_body=lambda: utils.serialize_request_body(
1368
1096
  request.config_group, False, False, "json", models.ConfigGroup
1369
1097
  ),
1098
+ allow_empty_value=None,
1370
1099
  timeout_ms=timeout_ms,
1371
1100
  )
1372
1101
 
1373
1102
  if retries == UNSET:
1374
1103
  if self.sdk_configuration.retry_config is not UNSET:
1375
1104
  retries = self.sdk_configuration.retry_config
1105
+ else:
1106
+ retries = utils.RetryConfig(
1107
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
1108
+ )
1376
1109
 
1377
1110
  retry_config = None
1378
1111
  if isinstance(retries, utils.RetryConfig):
1379
- retry_config = (retries, ["429", "500", "502", "503", "504"])
1112
+ retry_config = (retries, ["429"])
1380
1113
 
1381
1114
  http_res = await self.do_request_async(
1382
1115
  hook_ctx=HookContext(
1383
1116
  config=self.sdk_configuration,
1384
1117
  base_url=base_url or "",
1385
- operation_id="updateGroupsById",
1118
+ operation_id="updateConfigGroupByProductAndId",
1386
1119
  oauth2_scopes=[],
1387
1120
  security_source=get_security_from_env(
1388
1121
  self.sdk_configuration.security, models.Security
@@ -1395,7 +1128,7 @@ class GroupsSDK(BaseSDK):
1395
1128
 
1396
1129
  response_data: Any = None
1397
1130
  if utils.match_response(http_res, "200", "application/json"):
1398
- return unmarshal_json_response(models.UpdateGroupsByIDResponse, http_res)
1131
+ return unmarshal_json_response(models.CountedConfigGroup, http_res)
1399
1132
  if utils.match_response(http_res, "500", "application/json"):
1400
1133
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
1401
1134
  raise errors.Error(response_data, http_res)
@@ -1408,29 +1141,22 @@ class GroupsSDK(BaseSDK):
1408
1141
 
1409
1142
  raise errors.APIError("Unexpected response received", http_res)
1410
1143
 
1411
- def update_groups_deploy_by_id(
1144
+ def delete(
1412
1145
  self,
1413
1146
  *,
1147
+ product: models.ProductsCore,
1414
1148
  id: str,
1415
- version: str,
1416
- lookups: Optional[
1417
- Union[
1418
- List[models.DeployRequestLookups],
1419
- List[models.DeployRequestLookupsTypedDict],
1420
- ]
1421
- ] = None,
1422
1149
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1423
1150
  server_url: Optional[str] = None,
1424
1151
  timeout_ms: Optional[int] = None,
1425
1152
  http_headers: Optional[Mapping[str, str]] = None,
1426
- ) -> models.UpdateGroupsDeployByIDResponse:
1427
- r"""Deploy commits for a Fleet or Worker Group
1153
+ ) -> models.CountedConfigGroup:
1154
+ r"""Delete a Worker Group or Edge Fleet
1428
1155
 
1429
- Deploy commits for a Fleet or Worker Group
1156
+ Delete the specified Worker Group or Edge Fleet.
1430
1157
 
1431
- :param id: Group ID
1432
- :param version:
1433
- :param lookups:
1158
+ :param product: Name of the Cribl product to get the Worker Groups or Edge Fleets for.
1159
+ :param id: The <code>id</code> of the Worker Group or Edge Fleet to delete.
1434
1160
  :param retries: Override the default retry configuration for this method
1435
1161
  :param server_url: Override the default server URL for this method
1436
1162
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1446,48 +1172,45 @@ class GroupsSDK(BaseSDK):
1446
1172
  else:
1447
1173
  base_url = self._get_url(base_url, url_variables)
1448
1174
 
1449
- request = models.UpdateGroupsDeployByIDRequest(
1175
+ request = models.DeleteConfigGroupByProductAndIDRequest(
1176
+ product=product,
1450
1177
  id=id,
1451
- deploy_request=models.DeployRequest(
1452
- lookups=utils.get_pydantic_model(
1453
- lookups, Optional[List[models.DeployRequestLookups]]
1454
- ),
1455
- version=version,
1456
- ),
1457
1178
  )
1458
1179
 
1459
1180
  req = self._build_request(
1460
- method="PATCH",
1461
- path="/master/groups/{id}/deploy",
1181
+ method="DELETE",
1182
+ path="/products/{product}/groups/{id}",
1462
1183
  base_url=base_url,
1463
1184
  url_variables=url_variables,
1464
1185
  request=request,
1465
- request_body_required=True,
1186
+ request_body_required=False,
1466
1187
  request_has_path_params=True,
1467
1188
  request_has_query_params=True,
1468
1189
  user_agent_header="user-agent",
1469
1190
  accept_header_value="application/json",
1470
1191
  http_headers=http_headers,
1471
1192
  security=self.sdk_configuration.security,
1472
- get_serialized_body=lambda: utils.serialize_request_body(
1473
- request.deploy_request, False, False, "json", models.DeployRequest
1474
- ),
1193
+ allow_empty_value=None,
1475
1194
  timeout_ms=timeout_ms,
1476
1195
  )
1477
1196
 
1478
1197
  if retries == UNSET:
1479
1198
  if self.sdk_configuration.retry_config is not UNSET:
1480
1199
  retries = self.sdk_configuration.retry_config
1200
+ else:
1201
+ retries = utils.RetryConfig(
1202
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
1203
+ )
1481
1204
 
1482
1205
  retry_config = None
1483
1206
  if isinstance(retries, utils.RetryConfig):
1484
- retry_config = (retries, ["429", "500", "502", "503", "504"])
1207
+ retry_config = (retries, ["429"])
1485
1208
 
1486
1209
  http_res = self.do_request(
1487
1210
  hook_ctx=HookContext(
1488
1211
  config=self.sdk_configuration,
1489
1212
  base_url=base_url or "",
1490
- operation_id="updateGroupsDeployById",
1213
+ operation_id="deleteConfigGroupByProductAndId",
1491
1214
  oauth2_scopes=[],
1492
1215
  security_source=get_security_from_env(
1493
1216
  self.sdk_configuration.security, models.Security
@@ -1500,9 +1223,7 @@ class GroupsSDK(BaseSDK):
1500
1223
 
1501
1224
  response_data: Any = None
1502
1225
  if utils.match_response(http_res, "200", "application/json"):
1503
- return unmarshal_json_response(
1504
- models.UpdateGroupsDeployByIDResponse, http_res
1505
- )
1226
+ return unmarshal_json_response(models.CountedConfigGroup, http_res)
1506
1227
  if utils.match_response(http_res, "500", "application/json"):
1507
1228
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
1508
1229
  raise errors.Error(response_data, http_res)
@@ -1515,29 +1236,22 @@ class GroupsSDK(BaseSDK):
1515
1236
 
1516
1237
  raise errors.APIError("Unexpected response received", http_res)
1517
1238
 
1518
- async def update_groups_deploy_by_id_async(
1239
+ async def delete_async(
1519
1240
  self,
1520
1241
  *,
1242
+ product: models.ProductsCore,
1521
1243
  id: str,
1522
- version: str,
1523
- lookups: Optional[
1524
- Union[
1525
- List[models.DeployRequestLookups],
1526
- List[models.DeployRequestLookupsTypedDict],
1527
- ]
1528
- ] = None,
1529
1244
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1530
1245
  server_url: Optional[str] = None,
1531
1246
  timeout_ms: Optional[int] = None,
1532
1247
  http_headers: Optional[Mapping[str, str]] = None,
1533
- ) -> models.UpdateGroupsDeployByIDResponse:
1534
- r"""Deploy commits for a Fleet or Worker Group
1248
+ ) -> models.CountedConfigGroup:
1249
+ r"""Delete a Worker Group or Edge Fleet
1535
1250
 
1536
- Deploy commits for a Fleet or Worker Group
1251
+ Delete the specified Worker Group or Edge Fleet.
1537
1252
 
1538
- :param id: Group ID
1539
- :param version:
1540
- :param lookups:
1253
+ :param product: Name of the Cribl product to get the Worker Groups or Edge Fleets for.
1254
+ :param id: The <code>id</code> of the Worker Group or Edge Fleet to delete.
1541
1255
  :param retries: Override the default retry configuration for this method
1542
1256
  :param server_url: Override the default server URL for this method
1543
1257
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1553,48 +1267,45 @@ class GroupsSDK(BaseSDK):
1553
1267
  else:
1554
1268
  base_url = self._get_url(base_url, url_variables)
1555
1269
 
1556
- request = models.UpdateGroupsDeployByIDRequest(
1270
+ request = models.DeleteConfigGroupByProductAndIDRequest(
1271
+ product=product,
1557
1272
  id=id,
1558
- deploy_request=models.DeployRequest(
1559
- lookups=utils.get_pydantic_model(
1560
- lookups, Optional[List[models.DeployRequestLookups]]
1561
- ),
1562
- version=version,
1563
- ),
1564
1273
  )
1565
1274
 
1566
1275
  req = self._build_request_async(
1567
- method="PATCH",
1568
- path="/master/groups/{id}/deploy",
1276
+ method="DELETE",
1277
+ path="/products/{product}/groups/{id}",
1569
1278
  base_url=base_url,
1570
1279
  url_variables=url_variables,
1571
1280
  request=request,
1572
- request_body_required=True,
1281
+ request_body_required=False,
1573
1282
  request_has_path_params=True,
1574
1283
  request_has_query_params=True,
1575
1284
  user_agent_header="user-agent",
1576
1285
  accept_header_value="application/json",
1577
1286
  http_headers=http_headers,
1578
1287
  security=self.sdk_configuration.security,
1579
- get_serialized_body=lambda: utils.serialize_request_body(
1580
- request.deploy_request, False, False, "json", models.DeployRequest
1581
- ),
1288
+ allow_empty_value=None,
1582
1289
  timeout_ms=timeout_ms,
1583
1290
  )
1584
1291
 
1585
1292
  if retries == UNSET:
1586
1293
  if self.sdk_configuration.retry_config is not UNSET:
1587
1294
  retries = self.sdk_configuration.retry_config
1295
+ else:
1296
+ retries = utils.RetryConfig(
1297
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
1298
+ )
1588
1299
 
1589
1300
  retry_config = None
1590
1301
  if isinstance(retries, utils.RetryConfig):
1591
- retry_config = (retries, ["429", "500", "502", "503", "504"])
1302
+ retry_config = (retries, ["429"])
1592
1303
 
1593
1304
  http_res = await self.do_request_async(
1594
1305
  hook_ctx=HookContext(
1595
1306
  config=self.sdk_configuration,
1596
1307
  base_url=base_url or "",
1597
- operation_id="updateGroupsDeployById",
1308
+ operation_id="deleteConfigGroupByProductAndId",
1598
1309
  oauth2_scopes=[],
1599
1310
  security_source=get_security_from_env(
1600
1311
  self.sdk_configuration.security, models.Security
@@ -1607,9 +1318,7 @@ class GroupsSDK(BaseSDK):
1607
1318
 
1608
1319
  response_data: Any = None
1609
1320
  if utils.match_response(http_res, "200", "application/json"):
1610
- return unmarshal_json_response(
1611
- models.UpdateGroupsDeployByIDResponse, http_res
1612
- )
1321
+ return unmarshal_json_response(models.CountedConfigGroup, http_res)
1613
1322
  if utils.match_response(http_res, "500", "application/json"):
1614
1323
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
1615
1324
  raise errors.Error(response_data, http_res)
@@ -1622,22 +1331,31 @@ class GroupsSDK(BaseSDK):
1622
1331
 
1623
1332
  raise errors.APIError("Unexpected response received", http_res)
1624
1333
 
1625
- def get_groups_acl_by_id(
1334
+ def deploy(
1626
1335
  self,
1627
1336
  *,
1337
+ product: models.ProductsCore,
1628
1338
  id: str,
1629
- type_: Optional[models.GetGroupsACLByIDType] = None,
1339
+ version: str,
1340
+ lookups: Optional[
1341
+ Union[
1342
+ List[models.DeployRequestLookups],
1343
+ List[models.DeployRequestLookupsTypedDict],
1344
+ ]
1345
+ ] = None,
1630
1346
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1631
1347
  server_url: Optional[str] = None,
1632
1348
  timeout_ms: Optional[int] = None,
1633
1349
  http_headers: Optional[Mapping[str, str]] = None,
1634
- ) -> models.GetGroupsACLByIDResponse:
1635
- r"""ACL of members with permissions for resources in this Group
1350
+ ) -> models.CountedConfigGroup:
1351
+ r"""Deploy commits to a Worker Group or Edge Fleet
1636
1352
 
1637
- ACL of members with permissions for resources in this Group
1353
+ Deploy commits to the specified Worker Group or Edge Fleet.
1638
1354
 
1639
- :param id: Group id
1640
- :param type: resource type by which to filter access levels
1355
+ :param product: Name of the Cribl product to get the Worker Groups or Edge Fleets for.
1356
+ :param id: The <code>id</code> of the target Worker Group or Edge Fleet for commit deployment.
1357
+ :param version:
1358
+ :param lookups:
1641
1359
  :param retries: Override the default retry configuration for this method
1642
1360
  :param server_url: Override the default server URL for this method
1643
1361
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1653,40 +1371,54 @@ class GroupsSDK(BaseSDK):
1653
1371
  else:
1654
1372
  base_url = self._get_url(base_url, url_variables)
1655
1373
 
1656
- request = models.GetGroupsACLByIDRequest(
1374
+ request = models.UpdateConfigGroupDeployByProductAndIDRequest(
1375
+ product=product,
1657
1376
  id=id,
1658
- type=type_,
1377
+ deploy_request=models.DeployRequest(
1378
+ lookups=utils.get_pydantic_model(
1379
+ lookups, Optional[List[models.DeployRequestLookups]]
1380
+ ),
1381
+ version=version,
1382
+ ),
1659
1383
  )
1660
1384
 
1661
1385
  req = self._build_request(
1662
- method="GET",
1663
- path="/master/groups/{id}/acl",
1386
+ method="PATCH",
1387
+ path="/products/{product}/groups/{id}/deploy",
1664
1388
  base_url=base_url,
1665
1389
  url_variables=url_variables,
1666
1390
  request=request,
1667
- request_body_required=False,
1391
+ request_body_required=True,
1668
1392
  request_has_path_params=True,
1669
1393
  request_has_query_params=True,
1670
1394
  user_agent_header="user-agent",
1671
1395
  accept_header_value="application/json",
1672
1396
  http_headers=http_headers,
1673
1397
  security=self.sdk_configuration.security,
1398
+ get_serialized_body=lambda: utils.serialize_request_body(
1399
+ request.deploy_request, False, False, "json", models.DeployRequest
1400
+ ),
1401
+ allow_empty_value=None,
1674
1402
  timeout_ms=timeout_ms,
1675
1403
  )
1676
1404
 
1677
1405
  if retries == UNSET:
1678
1406
  if self.sdk_configuration.retry_config is not UNSET:
1679
1407
  retries = self.sdk_configuration.retry_config
1408
+ else:
1409
+ retries = utils.RetryConfig(
1410
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
1411
+ )
1680
1412
 
1681
1413
  retry_config = None
1682
1414
  if isinstance(retries, utils.RetryConfig):
1683
- retry_config = (retries, ["429", "500", "502", "503", "504"])
1415
+ retry_config = (retries, ["429"])
1684
1416
 
1685
1417
  http_res = self.do_request(
1686
1418
  hook_ctx=HookContext(
1687
1419
  config=self.sdk_configuration,
1688
1420
  base_url=base_url or "",
1689
- operation_id="getGroupsAclById",
1421
+ operation_id="updateConfigGroupDeployByProductAndId",
1690
1422
  oauth2_scopes=[],
1691
1423
  security_source=get_security_from_env(
1692
1424
  self.sdk_configuration.security, models.Security
@@ -1699,7 +1431,7 @@ class GroupsSDK(BaseSDK):
1699
1431
 
1700
1432
  response_data: Any = None
1701
1433
  if utils.match_response(http_res, "200", "application/json"):
1702
- return unmarshal_json_response(models.GetGroupsACLByIDResponse, http_res)
1434
+ return unmarshal_json_response(models.CountedConfigGroup, http_res)
1703
1435
  if utils.match_response(http_res, "500", "application/json"):
1704
1436
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
1705
1437
  raise errors.Error(response_data, http_res)
@@ -1712,22 +1444,31 @@ class GroupsSDK(BaseSDK):
1712
1444
 
1713
1445
  raise errors.APIError("Unexpected response received", http_res)
1714
1446
 
1715
- async def get_groups_acl_by_id_async(
1447
+ async def deploy_async(
1716
1448
  self,
1717
1449
  *,
1450
+ product: models.ProductsCore,
1718
1451
  id: str,
1719
- type_: Optional[models.GetGroupsACLByIDType] = None,
1452
+ version: str,
1453
+ lookups: Optional[
1454
+ Union[
1455
+ List[models.DeployRequestLookups],
1456
+ List[models.DeployRequestLookupsTypedDict],
1457
+ ]
1458
+ ] = None,
1720
1459
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1721
1460
  server_url: Optional[str] = None,
1722
1461
  timeout_ms: Optional[int] = None,
1723
1462
  http_headers: Optional[Mapping[str, str]] = None,
1724
- ) -> models.GetGroupsACLByIDResponse:
1725
- r"""ACL of members with permissions for resources in this Group
1463
+ ) -> models.CountedConfigGroup:
1464
+ r"""Deploy commits to a Worker Group or Edge Fleet
1726
1465
 
1727
- ACL of members with permissions for resources in this Group
1466
+ Deploy commits to the specified Worker Group or Edge Fleet.
1728
1467
 
1729
- :param id: Group id
1730
- :param type: resource type by which to filter access levels
1468
+ :param product: Name of the Cribl product to get the Worker Groups or Edge Fleets for.
1469
+ :param id: The <code>id</code> of the target Worker Group or Edge Fleet for commit deployment.
1470
+ :param version:
1471
+ :param lookups:
1731
1472
  :param retries: Override the default retry configuration for this method
1732
1473
  :param server_url: Override the default server URL for this method
1733
1474
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1743,40 +1484,54 @@ class GroupsSDK(BaseSDK):
1743
1484
  else:
1744
1485
  base_url = self._get_url(base_url, url_variables)
1745
1486
 
1746
- request = models.GetGroupsACLByIDRequest(
1487
+ request = models.UpdateConfigGroupDeployByProductAndIDRequest(
1488
+ product=product,
1747
1489
  id=id,
1748
- type=type_,
1490
+ deploy_request=models.DeployRequest(
1491
+ lookups=utils.get_pydantic_model(
1492
+ lookups, Optional[List[models.DeployRequestLookups]]
1493
+ ),
1494
+ version=version,
1495
+ ),
1749
1496
  )
1750
1497
 
1751
1498
  req = self._build_request_async(
1752
- method="GET",
1753
- path="/master/groups/{id}/acl",
1499
+ method="PATCH",
1500
+ path="/products/{product}/groups/{id}/deploy",
1754
1501
  base_url=base_url,
1755
1502
  url_variables=url_variables,
1756
1503
  request=request,
1757
- request_body_required=False,
1504
+ request_body_required=True,
1758
1505
  request_has_path_params=True,
1759
1506
  request_has_query_params=True,
1760
1507
  user_agent_header="user-agent",
1761
1508
  accept_header_value="application/json",
1762
1509
  http_headers=http_headers,
1763
1510
  security=self.sdk_configuration.security,
1511
+ get_serialized_body=lambda: utils.serialize_request_body(
1512
+ request.deploy_request, False, False, "json", models.DeployRequest
1513
+ ),
1514
+ allow_empty_value=None,
1764
1515
  timeout_ms=timeout_ms,
1765
1516
  )
1766
1517
 
1767
1518
  if retries == UNSET:
1768
1519
  if self.sdk_configuration.retry_config is not UNSET:
1769
1520
  retries = self.sdk_configuration.retry_config
1521
+ else:
1522
+ retries = utils.RetryConfig(
1523
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
1524
+ )
1770
1525
 
1771
1526
  retry_config = None
1772
1527
  if isinstance(retries, utils.RetryConfig):
1773
- retry_config = (retries, ["429", "500", "502", "503", "504"])
1528
+ retry_config = (retries, ["429"])
1774
1529
 
1775
1530
  http_res = await self.do_request_async(
1776
1531
  hook_ctx=HookContext(
1777
1532
  config=self.sdk_configuration,
1778
1533
  base_url=base_url or "",
1779
- operation_id="getGroupsAclById",
1534
+ operation_id="updateConfigGroupDeployByProductAndId",
1780
1535
  oauth2_scopes=[],
1781
1536
  security_source=get_security_from_env(
1782
1537
  self.sdk_configuration.security, models.Security
@@ -1789,7 +1544,7 @@ class GroupsSDK(BaseSDK):
1789
1544
 
1790
1545
  response_data: Any = None
1791
1546
  if utils.match_response(http_res, "200", "application/json"):
1792
- return unmarshal_json_response(models.GetGroupsACLByIDResponse, http_res)
1547
+ return unmarshal_json_response(models.CountedConfigGroup, http_res)
1793
1548
  if utils.match_response(http_res, "500", "application/json"):
1794
1549
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
1795
1550
  raise errors.Error(response_data, http_res)