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.
- cribl_control_plane/_hooks/clientcredentials.py +113 -48
- cribl_control_plane/_version.py +4 -4
- cribl_control_plane/acl.py +225 -0
- cribl_control_plane/auth_sdk.py +12 -176
- cribl_control_plane/basesdk.py +17 -1
- cribl_control_plane/branches.py +351 -0
- cribl_control_plane/commits.py +1403 -0
- cribl_control_plane/commits_files.py +391 -0
- cribl_control_plane/configs_versions.py +201 -0
- cribl_control_plane/cribl.py +495 -0
- cribl_control_plane/destinations.py +146 -805
- cribl_control_plane/destinations_pq.py +379 -0
- cribl_control_plane/errors/__init__.py +26 -10
- cribl_control_plane/errors/apierror.py +2 -0
- cribl_control_plane/errors/criblcontrolplaneerror.py +11 -7
- cribl_control_plane/errors/error.py +4 -2
- cribl_control_plane/errors/healthserverstatus_error.py +41 -0
- cribl_control_plane/errors/no_response_error.py +5 -1
- cribl_control_plane/errors/responsevalidationerror.py +2 -0
- cribl_control_plane/functions.py +367 -0
- cribl_control_plane/groups_configs.py +22 -0
- cribl_control_plane/groups_sdk.py +333 -578
- cribl_control_plane/health.py +38 -18
- cribl_control_plane/hectokens.py +503 -0
- cribl_control_plane/httpclient.py +0 -1
- cribl_control_plane/{lake.py → lakedatasets.py} +207 -115
- cribl_control_plane/models/__init__.py +3644 -5986
- cribl_control_plane/models/addhectokenrequest.py +7 -1
- cribl_control_plane/models/authtoken.py +5 -1
- cribl_control_plane/models/backupssettings_union.py +37 -0
- cribl_control_plane/models/{lookupversions.py → branchinfo.py} +4 -4
- cribl_control_plane/models/cacheconnection.py +30 -2
- cribl_control_plane/models/cacheconnectionbackfillstatus.py +2 -1
- cribl_control_plane/models/cloudprovider.py +2 -1
- cribl_control_plane/models/collectorazureblob.py +130 -0
- cribl_control_plane/models/collectorconf.py +56 -0
- cribl_control_plane/models/collectorcribllake.py +27 -0
- cribl_control_plane/models/collectordatabase.py +92 -0
- cribl_control_plane/models/collectorfilesystem.py +66 -0
- cribl_control_plane/models/collectorgooglecloudstorage.py +131 -0
- cribl_control_plane/models/collectorhealthcheck.py +269 -0
- cribl_control_plane/models/collectorrest.py +340 -0
- cribl_control_plane/models/collectors3.py +239 -0
- cribl_control_plane/models/collectorscript.py +59 -0
- cribl_control_plane/models/collectorsplunk.py +253 -0
- cribl_control_plane/models/configgroup.py +67 -11
- cribl_control_plane/models/configgroupcloud.py +17 -3
- cribl_control_plane/models/countedbranchinfo.py +20 -0
- cribl_control_plane/models/countedconfiggroup.py +20 -0
- cribl_control_plane/models/countedcribllakedataset.py +20 -0
- cribl_control_plane/models/counteddistributedsummary.py +20 -0
- cribl_control_plane/models/countedfunctionresponse.py +20 -0
- cribl_control_plane/models/countedgitcommitsummary.py +20 -0
- cribl_control_plane/models/countedgitcountresult.py +20 -0
- cribl_control_plane/models/countedgitdiffresult.py +20 -0
- cribl_control_plane/models/countedgitfilesresponse.py +20 -0
- cribl_control_plane/models/{getversioninfoop.py → countedgitinfo.py} +2 -6
- cribl_control_plane/models/countedgitlogresult.py +20 -0
- cribl_control_plane/models/countedgitrevertresult.py +20 -0
- cribl_control_plane/models/countedgitshowresult.py +20 -0
- cribl_control_plane/models/countedgitstatusresult.py +20 -0
- cribl_control_plane/models/{listinputop.py → countedinput.py} +2 -6
- cribl_control_plane/models/countedinputsplunkhec.py +20 -0
- cribl_control_plane/models/countedjobinfo.py +20 -0
- cribl_control_plane/models/countedmasterworkerentry.py +20 -0
- cribl_control_plane/models/countednumber.py +19 -0
- cribl_control_plane/models/{getversionbranchop.py → countedobject.py} +2 -6
- cribl_control_plane/models/{listoutputop.py → countedoutput.py} +2 -6
- cribl_control_plane/models/countedoutputsamplesresponse.py +20 -0
- cribl_control_plane/models/countedoutputtestresponse.py +20 -0
- cribl_control_plane/models/countedpackinfo.py +20 -0
- cribl_control_plane/models/{createpacksop.py → countedpackinstallinfo.py} +2 -6
- cribl_control_plane/models/{listpipelineop.py → countedpipeline.py} +2 -6
- cribl_control_plane/models/{listroutesop.py → countedroutes.py} +2 -6
- cribl_control_plane/models/countedstring.py +19 -0
- cribl_control_plane/models/countedsystemsettingsconf.py +20 -0
- cribl_control_plane/models/countedteamaccesscontrollist.py +20 -0
- cribl_control_plane/models/counteduseraccesscontrollist.py +20 -0
- cribl_control_plane/models/createauthloginop.py +18 -0
- cribl_control_plane/models/createconfiggroupbyproductop.py +46 -0
- cribl_control_plane/models/createcribllakedatasetbylakeidop.py +3 -21
- cribl_control_plane/models/createinputhectokenbyidop.py +3 -21
- cribl_control_plane/models/createoutputtestbyidop.py +3 -22
- cribl_control_plane/models/createroutesappendbyidop.py +4 -21
- cribl_control_plane/models/createversioncommitop.py +27 -20
- cribl_control_plane/models/createversionrevertop.py +7 -23
- cribl_control_plane/models/createversionundoop.py +7 -22
- cribl_control_plane/models/criblevent.py +15 -0
- cribl_control_plane/models/cribllakedataset.py +23 -3
- cribl_control_plane/models/cribllakedatasetupdate.py +95 -0
- cribl_control_plane/models/currentbranchresult.py +13 -0
- cribl_control_plane/models/datasetmetadata.py +18 -2
- cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +43 -0
- cribl_control_plane/models/deletecribllakedatasetbylakeidandidop.py +5 -24
- cribl_control_plane/models/deleteinputbyidop.py +3 -22
- cribl_control_plane/models/deleteoutputbyidop.py +3 -22
- cribl_control_plane/models/deleteoutputpqbyidop.py +3 -21
- cribl_control_plane/models/deletepacksbyidop.py +3 -22
- cribl_control_plane/models/deletepipelinebyidop.py +3 -22
- cribl_control_plane/models/difffiles.py +130 -0
- cribl_control_plane/models/diffline.py +26 -0
- cribl_control_plane/models/difflinecontext.py +28 -0
- cribl_control_plane/models/difflinedelete.py +25 -0
- cribl_control_plane/models/difflineinsert.py +25 -0
- cribl_control_plane/models/distributedsummary.py +6 -0
- cribl_control_plane/models/functionaggregatemetrics.py +206 -0
- cribl_control_plane/models/functionaggregation.py +172 -0
- cribl_control_plane/models/functionautotimestamp.py +173 -0
- cribl_control_plane/models/functioncef.py +111 -0
- cribl_control_plane/models/functionchain.py +75 -0
- cribl_control_plane/models/functionclone.py +75 -0
- cribl_control_plane/models/functioncode.py +96 -0
- cribl_control_plane/models/functioncomment.py +75 -0
- cribl_control_plane/models/functiondistinct.py +99 -0
- cribl_control_plane/models/functiondnslookup.py +250 -0
- cribl_control_plane/models/functiondrop.py +73 -0
- cribl_control_plane/models/functiondropdimensions.py +87 -0
- cribl_control_plane/models/functiondynamicsampling.py +121 -0
- cribl_control_plane/models/functioneval.py +103 -0
- cribl_control_plane/models/functioneventbreaker.py +103 -0
- cribl_control_plane/models/functioneventstats.py +92 -0
- cribl_control_plane/models/functionexternaldata.py +73 -0
- cribl_control_plane/models/functionflatten.py +90 -0
- cribl_control_plane/models/functionfoldkeys.py +89 -0
- cribl_control_plane/models/functiongenstats.py +73 -0
- cribl_control_plane/models/functiongeoip.py +120 -0
- cribl_control_plane/models/functiongrok.py +95 -0
- cribl_control_plane/models/functionhandlebar.py +112 -0
- cribl_control_plane/models/functionjoin.py +112 -0
- cribl_control_plane/models/functionjsonunroll.py +80 -0
- cribl_control_plane/models/functionlakeexport.py +102 -0
- cribl_control_plane/models/functionlimit.py +75 -0
- cribl_control_plane/models/functionlocalsearchdatatypeparser.py +76 -0
- cribl_control_plane/models/functionlocalsearchrulesetrunner.py +97 -0
- cribl_control_plane/models/functionlookup.py +148 -0
- cribl_control_plane/models/functionmask.py +121 -0
- cribl_control_plane/models/functionmvexpand.py +128 -0
- cribl_control_plane/models/functionmvpull.py +99 -0
- cribl_control_plane/models/functionnotificationpolicies.py +186 -0
- cribl_control_plane/models/functionnotifications.py +85 -0
- cribl_control_plane/models/functionnotify.py +196 -0
- cribl_control_plane/models/functionnumerify.py +119 -0
- cribl_control_plane/models/functionotlplogs.py +82 -0
- cribl_control_plane/models/functionotlpmetrics.py +118 -0
- cribl_control_plane/models/functionotlptraces.py +111 -0
- cribl_control_plane/models/functionpack.py +80 -0
- cribl_control_plane/models/functionpivot.py +85 -0
- cribl_control_plane/models/functionpublishmetrics.py +153 -0
- cribl_control_plane/models/functionredis.py +173 -0
- cribl_control_plane/models/functionregexextract.py +112 -0
- cribl_control_plane/models/functionregexfilter.py +95 -0
- cribl_control_plane/models/functionrename.py +107 -0
- cribl_control_plane/models/functionresponse.py +242 -0
- cribl_control_plane/models/functionrollupmetrics.py +114 -0
- cribl_control_plane/models/functionsampling.py +90 -0
- cribl_control_plane/models/functionsend.py +141 -0
- cribl_control_plane/models/functionsensitivedatascanner.py +128 -0
- cribl_control_plane/models/functionserde.py +161 -0
- cribl_control_plane/models/functionserialize.py +134 -0
- cribl_control_plane/models/functionsidlookup.py +93 -0
- cribl_control_plane/models/functionsnmptrapserialize.py +144 -0
- cribl_control_plane/models/functionsort.py +97 -0
- cribl_control_plane/models/functionstore.py +132 -0
- cribl_control_plane/models/functionsuppress.py +115 -0
- cribl_control_plane/models/functiontee.py +90 -0
- cribl_control_plane/models/functiontrimtimestamp.py +75 -0
- cribl_control_plane/models/functionunion.py +80 -0
- cribl_control_plane/models/functionunroll.py +80 -0
- cribl_control_plane/models/functionwindow.py +96 -0
- cribl_control_plane/models/functionxmlunroll.py +92 -0
- cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +63 -0
- cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +63 -0
- cribl_control_plane/models/getconfiggroupbyproductandidop.py +53 -0
- cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +43 -0
- cribl_control_plane/models/getcribllakedatasetbylakeidandidop.py +5 -24
- cribl_control_plane/models/getcribllakedatasetbylakeidop.py +56 -16
- cribl_control_plane/models/getfunctionsbyidop.py +18 -0
- cribl_control_plane/models/getinputbyidop.py +3 -22
- cribl_control_plane/models/getmasterworkerentryop.py +22 -0
- cribl_control_plane/models/getoutputbyidop.py +3 -22
- cribl_control_plane/models/getoutputpqbyidop.py +3 -21
- cribl_control_plane/models/getoutputsamplesbyidop.py +3 -22
- cribl_control_plane/models/getpacksbyidop.py +18 -0
- cribl_control_plane/models/getpacksop.py +3 -21
- cribl_control_plane/models/getpipelinebyidop.py +3 -22
- cribl_control_plane/models/getroutesbyidop.py +3 -22
- cribl_control_plane/models/getsummaryop.py +23 -32
- cribl_control_plane/models/getversioncountop.py +10 -27
- cribl_control_plane/models/getversiondiffop.py +12 -28
- cribl_control_plane/models/getversionfilesop.py +10 -28
- cribl_control_plane/models/getversionop.py +30 -0
- cribl_control_plane/models/getversionshowop.py +12 -28
- cribl_control_plane/models/getversionstatusop.py +7 -23
- cribl_control_plane/models/gitcommitsummary.py +3 -3
- cribl_control_plane/models/{routecloneconf.py → gitcountresult.py} +4 -4
- cribl_control_plane/models/gitdiffresult.py +16 -0
- cribl_control_plane/models/gitfilesresponse.py +7 -5
- cribl_control_plane/models/gitinfo.py +14 -3
- cribl_control_plane/models/gitlogresult.py +33 -0
- cribl_control_plane/models/gitrevertparams.py +3 -3
- cribl_control_plane/models/gitrevertresult.py +5 -5
- cribl_control_plane/models/gitshowresult.py +19 -0
- cribl_control_plane/models/gitstatusresult.py +0 -3
- cribl_control_plane/models/groupcreaterequest.py +172 -0
- cribl_control_plane/models/hbcriblinfo.py +42 -7
- cribl_control_plane/models/healthserverstatus.py +55 -0
- cribl_control_plane/models/heartbeatmetadata.py +6 -11
- cribl_control_plane/models/input.py +89 -81
- cribl_control_plane/models/inputappscope.py +131 -35
- cribl_control_plane/models/inputazureblob.py +62 -6
- cribl_control_plane/models/inputcloudflarehec.py +518 -0
- cribl_control_plane/models/inputcollection.py +49 -6
- cribl_control_plane/models/inputconfluentcloud.py +262 -22
- cribl_control_plane/models/inputcribl.py +52 -9
- cribl_control_plane/models/inputcriblhttp.py +124 -33
- cribl_control_plane/models/inputcribllakehttp.py +199 -29
- cribl_control_plane/models/inputcriblmetrics.py +53 -9
- cribl_control_plane/models/inputcribltcp.py +125 -27
- cribl_control_plane/models/inputcrowdstrike.py +99 -10
- cribl_control_plane/models/inputdatadogagent.py +101 -27
- cribl_control_plane/models/inputdatagen.py +47 -4
- cribl_control_plane/models/inputedgeprometheus.py +215 -58
- cribl_control_plane/models/inputelastic.py +170 -39
- cribl_control_plane/models/inputeventhub.py +212 -9
- cribl_control_plane/models/inputexec.py +59 -6
- cribl_control_plane/models/inputfile.py +83 -15
- cribl_control_plane/models/inputfirehose.py +100 -27
- cribl_control_plane/models/inputgooglepubsub.py +83 -15
- cribl_control_plane/models/{inputgrafana_union.py → inputgrafana.py} +261 -67
- cribl_control_plane/models/inputhttp.py +100 -27
- cribl_control_plane/models/inputhttpraw.py +100 -27
- cribl_control_plane/models/inputjournalfiles.py +51 -7
- cribl_control_plane/models/inputkafka.py +257 -19
- cribl_control_plane/models/inputkinesis.py +133 -17
- cribl_control_plane/models/inputkubeevents.py +52 -9
- cribl_control_plane/models/inputkubelogs.py +66 -13
- cribl_control_plane/models/inputkubemetrics.py +66 -13
- cribl_control_plane/models/inputloki.py +116 -30
- cribl_control_plane/models/inputmetrics.py +97 -24
- cribl_control_plane/models/inputmodeldriventelemetry.py +110 -29
- cribl_control_plane/models/inputmsk.py +148 -21
- cribl_control_plane/models/inputnetflow.py +50 -7
- cribl_control_plane/models/inputoffice365mgmt.py +115 -17
- cribl_control_plane/models/inputoffice365msgtrace.py +117 -19
- cribl_control_plane/models/inputoffice365service.py +117 -19
- cribl_control_plane/models/inputopentelemetry.py +146 -35
- cribl_control_plane/models/inputprometheus.py +196 -47
- cribl_control_plane/models/inputprometheusrw.py +117 -30
- cribl_control_plane/models/inputrawudp.py +50 -7
- cribl_control_plane/models/inputs3.py +85 -8
- cribl_control_plane/models/inputs3inventory.py +99 -10
- cribl_control_plane/models/inputsecuritylake.py +100 -10
- cribl_control_plane/models/inputsnmp.py +115 -24
- cribl_control_plane/models/inputsplunk.py +133 -31
- cribl_control_plane/models/inputsplunkhec.py +122 -32
- cribl_control_plane/models/inputsplunksearch.py +115 -18
- cribl_control_plane/models/inputsqs.py +102 -19
- cribl_control_plane/models/{inputsyslog_union.py → inputsyslog.py} +193 -51
- cribl_control_plane/models/inputsystemmetrics.py +207 -37
- cribl_control_plane/models/inputsystemstate.py +66 -13
- cribl_control_plane/models/inputtcp.py +125 -29
- cribl_control_plane/models/inputtcpjson.py +115 -29
- cribl_control_plane/models/inputwef.py +151 -22
- cribl_control_plane/models/inputwindowsmetrics.py +191 -38
- cribl_control_plane/models/inputwineventlogs.py +93 -11
- cribl_control_plane/models/inputwiz.py +176 -11
- cribl_control_plane/models/inputwizwebhook.py +466 -0
- cribl_control_plane/models/inputzscalerhec.py +122 -32
- cribl_control_plane/models/jobinfo.py +34 -0
- cribl_control_plane/models/jobstatus.py +48 -0
- cribl_control_plane/models/lakedatasetmetrics.py +17 -0
- cribl_control_plane/models/lakehouseconnectiontype.py +2 -1
- cribl_control_plane/models/listconfiggroupbyproductop.py +46 -0
- cribl_control_plane/models/listmasterworkerentryop.py +64 -0
- cribl_control_plane/models/logininfo.py +3 -3
- cribl_control_plane/models/masterworkerentry.py +20 -13
- cribl_control_plane/models/nodeactiveupgradestatus.py +2 -1
- cribl_control_plane/models/nodefailedupgradestatus.py +2 -1
- cribl_control_plane/models/nodeprovidedinfo.py +13 -11
- cribl_control_plane/models/nodeskippedupgradestatus.py +2 -1
- cribl_control_plane/models/nodeupgradestate.py +2 -1
- cribl_control_plane/models/nodeupgradestatus.py +51 -5
- cribl_control_plane/models/outpostnodeinfo.py +16 -0
- cribl_control_plane/models/output.py +103 -89
- cribl_control_plane/models/outputazureblob.py +174 -21
- cribl_control_plane/models/outputazuredataexplorer.py +517 -93
- cribl_control_plane/models/outputazureeventhub.py +318 -34
- cribl_control_plane/models/outputazurelogs.py +145 -26
- cribl_control_plane/models/outputchronicle.py +532 -0
- cribl_control_plane/models/outputclickhouse.py +208 -37
- cribl_control_plane/models/outputcloudflarer2.py +632 -0
- cribl_control_plane/models/outputcloudwatch.py +132 -26
- cribl_control_plane/models/outputconfluentcloud.py +387 -46
- cribl_control_plane/models/outputcriblhttp.py +203 -36
- cribl_control_plane/models/outputcribllake.py +161 -21
- cribl_control_plane/models/outputcribltcp.py +199 -34
- cribl_control_plane/models/outputcrowdstrikenextgensiem.py +176 -32
- cribl_control_plane/models/outputdatabricks.py +501 -0
- cribl_control_plane/models/outputdatadog.py +204 -36
- cribl_control_plane/models/outputdataset.py +186 -34
- cribl_control_plane/models/outputdevnull.py +5 -5
- cribl_control_plane/models/outputdiskspool.py +22 -7
- cribl_control_plane/models/outputdls3.py +238 -29
- cribl_control_plane/models/outputdynatracehttp.py +211 -37
- cribl_control_plane/models/outputdynatraceotlp.py +213 -39
- cribl_control_plane/models/outputelastic.py +199 -30
- cribl_control_plane/models/outputelasticcloud.py +174 -29
- cribl_control_plane/models/outputexabeam.py +99 -13
- cribl_control_plane/models/outputfilesystem.py +139 -14
- cribl_control_plane/models/outputgooglechronicle.py +216 -35
- cribl_control_plane/models/outputgooglecloudlogging.py +177 -34
- cribl_control_plane/models/outputgooglecloudstorage.py +220 -29
- cribl_control_plane/models/outputgooglepubsub.py +138 -51
- cribl_control_plane/models/outputgrafanacloud.py +386 -70
- cribl_control_plane/models/outputgraphite.py +131 -28
- cribl_control_plane/models/outputhoneycomb.py +145 -26
- cribl_control_plane/models/outputhumiohec.py +165 -31
- cribl_control_plane/models/outputinfluxdb.py +165 -28
- cribl_control_plane/models/outputkafka.py +378 -41
- cribl_control_plane/models/outputkinesis.py +168 -30
- cribl_control_plane/models/outputloki.py +171 -27
- cribl_control_plane/models/outputmicrosoftfabric.py +540 -0
- cribl_control_plane/models/outputminio.py +228 -28
- cribl_control_plane/models/outputmsk.py +270 -43
- cribl_control_plane/models/outputnewrelic.py +176 -34
- cribl_control_plane/models/outputnewrelicevents.py +166 -31
- cribl_control_plane/models/outputopentelemetry.py +240 -40
- cribl_control_plane/models/outputprometheus.py +145 -26
- cribl_control_plane/models/outputring.py +54 -13
- cribl_control_plane/models/outputs3.py +238 -31
- cribl_control_plane/models/outputsecuritylake.py +182 -21
- cribl_control_plane/models/outputsentinel.py +175 -32
- cribl_control_plane/models/outputsentineloneaisiem.py +184 -38
- cribl_control_plane/models/outputservicenow.py +226 -41
- cribl_control_plane/models/outputsignalfx.py +145 -26
- cribl_control_plane/models/outputsns.py +146 -28
- cribl_control_plane/models/outputsplunk.py +209 -39
- cribl_control_plane/models/outputsplunkhec.py +243 -31
- cribl_control_plane/models/outputsplunklb.py +266 -46
- cribl_control_plane/models/outputsqs.py +166 -36
- cribl_control_plane/models/outputstatsd.py +130 -28
- cribl_control_plane/models/outputstatsdext.py +131 -28
- cribl_control_plane/models/outputsumologic.py +146 -25
- cribl_control_plane/models/outputsyslog.py +323 -51
- cribl_control_plane/models/outputtcpjson.py +191 -37
- cribl_control_plane/models/outputwavefront.py +145 -26
- cribl_control_plane/models/outputwebhook.py +216 -38
- cribl_control_plane/models/outputxsiam.py +148 -31
- cribl_control_plane/models/packinfo.py +11 -8
- cribl_control_plane/models/packinstallinfo.py +14 -11
- cribl_control_plane/models/packrequestbody_union.py +140 -0
- cribl_control_plane/models/packupgraderequest.py +26 -0
- cribl_control_plane/models/piisettings_union.py +31 -0
- cribl_control_plane/models/productscore.py +10 -0
- cribl_control_plane/models/rbacresource.py +2 -1
- cribl_control_plane/models/resourcepolicy.py +15 -2
- cribl_control_plane/models/rollbacksettings_union.py +44 -0
- cribl_control_plane/models/routeconf.py +3 -4
- cribl_control_plane/models/routes.py +0 -24
- cribl_control_plane/models/runnablejob.py +27 -0
- cribl_control_plane/models/runnablejobcollection.py +628 -0
- cribl_control_plane/models/runnablejobexecutor.py +360 -0
- cribl_control_plane/models/runnablejobscheduledsearch.py +279 -0
- cribl_control_plane/models/schemeclientoauth.py +5 -0
- cribl_control_plane/models/snisettings_union.py +31 -0
- cribl_control_plane/models/systemsettingsconf.py +291 -0
- cribl_control_plane/models/tlssettings_union.py +43 -0
- cribl_control_plane/models/updateconfiggroupbyproductandidop.py +56 -0
- cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +53 -0
- cribl_control_plane/models/updatecribllakedatasetbylakeidandidop.py +14 -29
- cribl_control_plane/models/updatehectokenrequest.py +7 -1
- cribl_control_plane/models/updateinputbyidop.py +5 -23
- cribl_control_plane/models/updateinputhectokenbyidandtokenop.py +5 -23
- cribl_control_plane/models/updateoutputbyidop.py +5 -23
- cribl_control_plane/models/updatepacksbyidop.py +12 -50
- cribl_control_plane/models/updatepacksop.py +12 -24
- cribl_control_plane/models/updatepipelinebyidop.py +5 -23
- cribl_control_plane/models/updateroutesbyidop.py +8 -27
- cribl_control_plane/models/upgradegroupsettings_union.py +43 -0
- cribl_control_plane/models/upgradepackageurls.py +20 -0
- cribl_control_plane/models/upgradesettings.py +38 -0
- cribl_control_plane/models/uploadpackresponse.py +13 -0
- cribl_control_plane/models/{appmode.py → workertypes.py} +2 -5
- cribl_control_plane/{workers_sdk.py → nodes.py} +102 -234
- cribl_control_plane/packs.py +385 -184
- cribl_control_plane/pipelines.py +116 -66
- cribl_control_plane/routes_sdk.py +102 -70
- cribl_control_plane/samples.py +407 -0
- cribl_control_plane/sdk.py +35 -25
- cribl_control_plane/settings.py +20 -0
- cribl_control_plane/sources.py +143 -545
- cribl_control_plane/statuses.py +195 -0
- cribl_control_plane/summaries.py +195 -0
- cribl_control_plane/system_sdk.py +20 -0
- cribl_control_plane/teams.py +36 -28
- cribl_control_plane/tokens.py +210 -0
- cribl_control_plane/utils/__init__.py +18 -5
- cribl_control_plane/utils/annotations.py +32 -8
- cribl_control_plane/utils/eventstreaming.py +10 -0
- cribl_control_plane/utils/forms.py +21 -10
- cribl_control_plane/utils/queryparams.py +14 -2
- cribl_control_plane/utils/retries.py +69 -5
- cribl_control_plane/utils/security.py +5 -0
- cribl_control_plane/utils/unmarshal_json_response.py +15 -1
- cribl_control_plane/versions.py +31 -0
- cribl_control_plane/{distributed.py → versions_configs.py} +29 -35
- cribl_control_plane-0.4.0b23.dist-info/METADATA +855 -0
- cribl_control_plane-0.4.0b23.dist-info/RECORD +450 -0
- {cribl_control_plane-0.0.21.dist-info → cribl_control_plane-0.4.0b23.dist-info}/WHEEL +1 -1
- cribl_control_plane-0.4.0b23.dist-info/licenses/LICENSE +201 -0
- cribl_control_plane/errors/healthstatus_error.py +0 -32
- cribl_control_plane/models/createinputop.py +0 -18238
- cribl_control_plane/models/createoutputop.py +0 -18437
- cribl_control_plane/models/createpipelineop.py +0 -24
- cribl_control_plane/models/createproductsgroupsbyproductop.py +0 -54
- cribl_control_plane/models/createversionpushop.py +0 -23
- cribl_control_plane/models/createversionsyncop.py +0 -23
- cribl_control_plane/models/deletegroupsbyidop.py +0 -37
- cribl_control_plane/models/getgroupsaclbyidop.py +0 -63
- cribl_control_plane/models/getgroupsbyidop.py +0 -49
- cribl_control_plane/models/getgroupsconfigversionbyidop.py +0 -36
- cribl_control_plane/models/getproductsgroupsaclteamsbyproductandidop.py +0 -78
- cribl_control_plane/models/getproductsgroupsbyproductop.py +0 -58
- cribl_control_plane/models/getsummaryworkersop.py +0 -39
- cribl_control_plane/models/getversioncurrentbranchop.py +0 -23
- cribl_control_plane/models/getworkersop.py +0 -82
- cribl_control_plane/models/healthstatus.py +0 -33
- cribl_control_plane/models/packrequestbody.py +0 -75
- cribl_control_plane/models/restartresponse.py +0 -26
- cribl_control_plane/models/routesroute_input.py +0 -67
- cribl_control_plane/models/updategroupsbyidop.py +0 -48
- cribl_control_plane/models/updategroupsdeploybyidop.py +0 -46
- cribl_control_plane/models/updateworkersrestartop.py +0 -24
- cribl_control_plane/versioning.py +0 -2309
- cribl_control_plane-0.0.21.dist-info/METADATA +0 -561
- 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
|
-
|
|
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
|
-
|
|
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.
|
|
24
|
-
r"""
|
|
41
|
+
) -> models.CountedConfigGroup:
|
|
42
|
+
r"""List all Worker Groups or Edge Fleets for the specified Cribl product
|
|
25
43
|
|
|
26
|
-
Get
|
|
44
|
+
Get a list of all Worker Groups or Edge Fleets for the specified Cribl product.
|
|
27
45
|
|
|
28
|
-
:param
|
|
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.
|
|
45
|
-
|
|
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="/
|
|
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"
|
|
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="
|
|
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
|
|
127
|
+
async def list_async(
|
|
105
128
|
self,
|
|
106
129
|
*,
|
|
107
|
-
|
|
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.
|
|
113
|
-
r"""
|
|
136
|
+
) -> models.CountedConfigGroup:
|
|
137
|
+
r"""List all Worker Groups or Edge Fleets for the specified Cribl product
|
|
114
138
|
|
|
115
|
-
Get
|
|
139
|
+
Get a list of all Worker Groups or Edge Fleets for the specified Cribl product.
|
|
116
140
|
|
|
117
|
-
:param
|
|
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.
|
|
134
|
-
|
|
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="/
|
|
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"
|
|
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="
|
|
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
|
|
222
|
+
def create(
|
|
194
223
|
self,
|
|
195
224
|
*,
|
|
196
|
-
product: models.
|
|
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[
|
|
205
|
-
|
|
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.
|
|
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.
|
|
231
|
-
r"""Create a
|
|
263
|
+
) -> models.CountedConfigGroup:
|
|
264
|
+
r"""Create a Worker Group or Edge Fleet for the specified Cribl product
|
|
232
265
|
|
|
233
|
-
Create a
|
|
266
|
+
Create a new Worker Group or Edge Fleet for the specified Cribl product.
|
|
234
267
|
|
|
235
|
-
:param product: Cribl
|
|
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.
|
|
306
|
+
request = models.CreateConfigGroupByProductRequest(
|
|
274
307
|
product=product,
|
|
275
|
-
|
|
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(
|
|
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.
|
|
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"
|
|
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="
|
|
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
|
|
406
|
+
async def create_async(
|
|
365
407
|
self,
|
|
366
408
|
*,
|
|
367
|
-
product: models.
|
|
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[
|
|
376
|
-
|
|
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.
|
|
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.
|
|
402
|
-
r"""Create a
|
|
447
|
+
) -> models.CountedConfigGroup:
|
|
448
|
+
r"""Create a Worker Group or Edge Fleet for the specified Cribl product
|
|
403
449
|
|
|
404
|
-
Create a
|
|
450
|
+
Create a new Worker Group or Edge Fleet for the specified Cribl product.
|
|
405
451
|
|
|
406
|
-
:param product: Cribl
|
|
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.
|
|
490
|
+
request = models.CreateConfigGroupByProductRequest(
|
|
445
491
|
product=product,
|
|
446
|
-
|
|
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(
|
|
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.
|
|
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"
|
|
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="
|
|
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
|
|
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.
|
|
903
|
-
r"""Get a
|
|
600
|
+
) -> models.CountedConfigGroup:
|
|
601
|
+
r"""Get a Worker Group or Edge Fleet
|
|
904
602
|
|
|
905
|
-
Get
|
|
603
|
+
Get the specified Worker Group or Edge Fleet.
|
|
906
604
|
|
|
907
|
-
:param
|
|
908
|
-
:param
|
|
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.
|
|
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="/
|
|
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"
|
|
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="
|
|
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.
|
|
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
|
|
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.
|
|
993
|
-
r"""Get a
|
|
698
|
+
) -> models.CountedConfigGroup:
|
|
699
|
+
r"""Get a Worker Group or Edge Fleet
|
|
994
700
|
|
|
995
|
-
Get
|
|
701
|
+
Get the specified Worker Group or Edge Fleet.
|
|
996
702
|
|
|
997
|
-
:param
|
|
998
|
-
:param
|
|
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.
|
|
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="/
|
|
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"
|
|
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="
|
|
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.
|
|
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
|
|
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[
|
|
1085
|
-
git: Optional[
|
|
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.
|
|
1111
|
-
r"""Update a
|
|
826
|
+
) -> models.CountedConfigGroup:
|
|
827
|
+
r"""Update a Worker Group or Edge Fleet
|
|
1112
828
|
|
|
1113
|
-
Update
|
|
829
|
+
Update the specified Worker Group or Edge Fleet.
|
|
1114
830
|
|
|
1115
|
-
:param
|
|
1116
|
-
:param
|
|
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.
|
|
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.
|
|
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="/
|
|
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"
|
|
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="
|
|
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.
|
|
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
|
|
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[
|
|
1254
|
-
git: Optional[
|
|
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.
|
|
1280
|
-
r"""Update a
|
|
1005
|
+
) -> models.CountedConfigGroup:
|
|
1006
|
+
r"""Update a Worker Group or Edge Fleet
|
|
1281
1007
|
|
|
1282
|
-
Update
|
|
1008
|
+
Update the specified Worker Group or Edge Fleet.
|
|
1283
1009
|
|
|
1284
|
-
:param
|
|
1285
|
-
:param
|
|
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.
|
|
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.
|
|
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="/
|
|
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"
|
|
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="
|
|
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.
|
|
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
|
|
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.
|
|
1427
|
-
r"""
|
|
1153
|
+
) -> models.CountedConfigGroup:
|
|
1154
|
+
r"""Delete a Worker Group or Edge Fleet
|
|
1428
1155
|
|
|
1429
|
-
|
|
1156
|
+
Delete the specified Worker Group or Edge Fleet.
|
|
1430
1157
|
|
|
1431
|
-
:param
|
|
1432
|
-
:param
|
|
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.
|
|
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="
|
|
1461
|
-
path="/
|
|
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=
|
|
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
|
-
|
|
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"
|
|
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="
|
|
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
|
|
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.
|
|
1534
|
-
r"""
|
|
1248
|
+
) -> models.CountedConfigGroup:
|
|
1249
|
+
r"""Delete a Worker Group or Edge Fleet
|
|
1535
1250
|
|
|
1536
|
-
|
|
1251
|
+
Delete the specified Worker Group or Edge Fleet.
|
|
1537
1252
|
|
|
1538
|
-
:param
|
|
1539
|
-
:param
|
|
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.
|
|
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="
|
|
1568
|
-
path="/
|
|
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=
|
|
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
|
-
|
|
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"
|
|
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="
|
|
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
|
|
1334
|
+
def deploy(
|
|
1626
1335
|
self,
|
|
1627
1336
|
*,
|
|
1337
|
+
product: models.ProductsCore,
|
|
1628
1338
|
id: str,
|
|
1629
|
-
|
|
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.
|
|
1635
|
-
r"""
|
|
1350
|
+
) -> models.CountedConfigGroup:
|
|
1351
|
+
r"""Deploy commits to a Worker Group or Edge Fleet
|
|
1636
1352
|
|
|
1637
|
-
|
|
1353
|
+
Deploy commits to the specified Worker Group or Edge Fleet.
|
|
1638
1354
|
|
|
1639
|
-
:param
|
|
1640
|
-
:param
|
|
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.
|
|
1374
|
+
request = models.UpdateConfigGroupDeployByProductAndIDRequest(
|
|
1375
|
+
product=product,
|
|
1657
1376
|
id=id,
|
|
1658
|
-
|
|
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="
|
|
1663
|
-
path="/
|
|
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=
|
|
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"
|
|
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="
|
|
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.
|
|
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
|
|
1447
|
+
async def deploy_async(
|
|
1716
1448
|
self,
|
|
1717
1449
|
*,
|
|
1450
|
+
product: models.ProductsCore,
|
|
1718
1451
|
id: str,
|
|
1719
|
-
|
|
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.
|
|
1725
|
-
r"""
|
|
1463
|
+
) -> models.CountedConfigGroup:
|
|
1464
|
+
r"""Deploy commits to a Worker Group or Edge Fleet
|
|
1726
1465
|
|
|
1727
|
-
|
|
1466
|
+
Deploy commits to the specified Worker Group or Edge Fleet.
|
|
1728
1467
|
|
|
1729
|
-
:param
|
|
1730
|
-
:param
|
|
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.
|
|
1487
|
+
request = models.UpdateConfigGroupDeployByProductAndIDRequest(
|
|
1488
|
+
product=product,
|
|
1747
1489
|
id=id,
|
|
1748
|
-
|
|
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="
|
|
1753
|
-
path="/
|
|
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=
|
|
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"
|
|
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="
|
|
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.
|
|
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)
|