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
cribl_control_plane/sources.py
CHANGED
|
@@ -1,26 +1,42 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from .basesdk import BaseSDK
|
|
4
|
+
from .sdkconfiguration import SDKConfiguration
|
|
4
5
|
from cribl_control_plane import errors, models, utils
|
|
5
6
|
from cribl_control_plane._hooks import HookContext
|
|
7
|
+
from cribl_control_plane.hectokens import HecTokens
|
|
6
8
|
from cribl_control_plane.types import BaseModel, OptionalNullable, UNSET
|
|
7
9
|
from cribl_control_plane.utils import get_security_from_env
|
|
8
10
|
from cribl_control_plane.utils.unmarshal_json_response import unmarshal_json_response
|
|
9
|
-
from typing import Any,
|
|
11
|
+
from typing import Any, Mapping, Optional, Union, cast
|
|
10
12
|
|
|
11
13
|
|
|
12
14
|
class Sources(BaseSDK):
|
|
13
|
-
|
|
15
|
+
r"""Actions related to Sources"""
|
|
16
|
+
|
|
17
|
+
hec_tokens: HecTokens
|
|
18
|
+
|
|
19
|
+
def __init__(
|
|
20
|
+
self, sdk_config: SDKConfiguration, parent_ref: Optional[object] = None
|
|
21
|
+
) -> None:
|
|
22
|
+
BaseSDK.__init__(self, sdk_config, parent_ref=parent_ref)
|
|
23
|
+
self.sdk_configuration = sdk_config
|
|
24
|
+
self._init_sdks()
|
|
25
|
+
|
|
26
|
+
def _init_sdks(self):
|
|
27
|
+
self.hec_tokens = HecTokens(self.sdk_configuration, parent_ref=self.parent_ref)
|
|
28
|
+
|
|
29
|
+
def list(
|
|
14
30
|
self,
|
|
15
31
|
*,
|
|
16
32
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
17
33
|
server_url: Optional[str] = None,
|
|
18
34
|
timeout_ms: Optional[int] = None,
|
|
19
35
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
20
|
-
) -> models.
|
|
21
|
-
r"""
|
|
36
|
+
) -> models.CountedInput:
|
|
37
|
+
r"""List all Sources
|
|
22
38
|
|
|
23
|
-
Get a list of
|
|
39
|
+
Get a list of all Sources.
|
|
24
40
|
|
|
25
41
|
:param retries: Override the default retry configuration for this method
|
|
26
42
|
:param server_url: Override the default server URL for this method
|
|
@@ -49,16 +65,21 @@ class Sources(BaseSDK):
|
|
|
49
65
|
accept_header_value="application/json",
|
|
50
66
|
http_headers=http_headers,
|
|
51
67
|
security=self.sdk_configuration.security,
|
|
68
|
+
allow_empty_value=None,
|
|
52
69
|
timeout_ms=timeout_ms,
|
|
53
70
|
)
|
|
54
71
|
|
|
55
72
|
if retries == UNSET:
|
|
56
73
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
57
74
|
retries = self.sdk_configuration.retry_config
|
|
75
|
+
else:
|
|
76
|
+
retries = utils.RetryConfig(
|
|
77
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
78
|
+
)
|
|
58
79
|
|
|
59
80
|
retry_config = None
|
|
60
81
|
if isinstance(retries, utils.RetryConfig):
|
|
61
|
-
retry_config = (retries, ["429"
|
|
82
|
+
retry_config = (retries, ["429"])
|
|
62
83
|
|
|
63
84
|
http_res = self.do_request(
|
|
64
85
|
hook_ctx=HookContext(
|
|
@@ -77,7 +98,7 @@ class Sources(BaseSDK):
|
|
|
77
98
|
|
|
78
99
|
response_data: Any = None
|
|
79
100
|
if utils.match_response(http_res, "200", "application/json"):
|
|
80
|
-
return unmarshal_json_response(models.
|
|
101
|
+
return unmarshal_json_response(models.CountedInput, http_res)
|
|
81
102
|
if utils.match_response(http_res, "500", "application/json"):
|
|
82
103
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
83
104
|
raise errors.Error(response_data, http_res)
|
|
@@ -90,17 +111,17 @@ class Sources(BaseSDK):
|
|
|
90
111
|
|
|
91
112
|
raise errors.APIError("Unexpected response received", http_res)
|
|
92
113
|
|
|
93
|
-
async def
|
|
114
|
+
async def list_async(
|
|
94
115
|
self,
|
|
95
116
|
*,
|
|
96
117
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
97
118
|
server_url: Optional[str] = None,
|
|
98
119
|
timeout_ms: Optional[int] = None,
|
|
99
120
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
100
|
-
) -> models.
|
|
101
|
-
r"""
|
|
121
|
+
) -> models.CountedInput:
|
|
122
|
+
r"""List all Sources
|
|
102
123
|
|
|
103
|
-
Get a list of
|
|
124
|
+
Get a list of all Sources.
|
|
104
125
|
|
|
105
126
|
:param retries: Override the default retry configuration for this method
|
|
106
127
|
:param server_url: Override the default server URL for this method
|
|
@@ -129,16 +150,21 @@ class Sources(BaseSDK):
|
|
|
129
150
|
accept_header_value="application/json",
|
|
130
151
|
http_headers=http_headers,
|
|
131
152
|
security=self.sdk_configuration.security,
|
|
153
|
+
allow_empty_value=None,
|
|
132
154
|
timeout_ms=timeout_ms,
|
|
133
155
|
)
|
|
134
156
|
|
|
135
157
|
if retries == UNSET:
|
|
136
158
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
137
159
|
retries = self.sdk_configuration.retry_config
|
|
160
|
+
else:
|
|
161
|
+
retries = utils.RetryConfig(
|
|
162
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
163
|
+
)
|
|
138
164
|
|
|
139
165
|
retry_config = None
|
|
140
166
|
if isinstance(retries, utils.RetryConfig):
|
|
141
|
-
retry_config = (retries, ["429"
|
|
167
|
+
retry_config = (retries, ["429"])
|
|
142
168
|
|
|
143
169
|
http_res = await self.do_request_async(
|
|
144
170
|
hook_ctx=HookContext(
|
|
@@ -157,7 +183,7 @@ class Sources(BaseSDK):
|
|
|
157
183
|
|
|
158
184
|
response_data: Any = None
|
|
159
185
|
if utils.match_response(http_res, "200", "application/json"):
|
|
160
|
-
return unmarshal_json_response(models.
|
|
186
|
+
return unmarshal_json_response(models.CountedInput, http_res)
|
|
161
187
|
if utils.match_response(http_res, "500", "application/json"):
|
|
162
188
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
163
189
|
raise errors.Error(response_data, http_res)
|
|
@@ -170,18 +196,18 @@ class Sources(BaseSDK):
|
|
|
170
196
|
|
|
171
197
|
raise errors.APIError("Unexpected response received", http_res)
|
|
172
198
|
|
|
173
|
-
def
|
|
199
|
+
def create(
|
|
174
200
|
self,
|
|
175
201
|
*,
|
|
176
|
-
request: Union[models.
|
|
202
|
+
request: Union[models.Input, models.InputTypedDict],
|
|
177
203
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
178
204
|
server_url: Optional[str] = None,
|
|
179
205
|
timeout_ms: Optional[int] = None,
|
|
180
206
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
181
|
-
) -> models.
|
|
182
|
-
r"""Create Source
|
|
207
|
+
) -> models.CountedInput:
|
|
208
|
+
r"""Create a Source
|
|
183
209
|
|
|
184
|
-
Create Source
|
|
210
|
+
Create a new Source.
|
|
185
211
|
|
|
186
212
|
:param request: The request object to send.
|
|
187
213
|
:param retries: Override the default retry configuration for this method
|
|
@@ -200,8 +226,8 @@ class Sources(BaseSDK):
|
|
|
200
226
|
base_url = self._get_url(base_url, url_variables)
|
|
201
227
|
|
|
202
228
|
if not isinstance(request, BaseModel):
|
|
203
|
-
request = utils.unmarshal(request, models.
|
|
204
|
-
request = cast(models.
|
|
229
|
+
request = utils.unmarshal(request, models.Input)
|
|
230
|
+
request = cast(models.Input, request)
|
|
205
231
|
|
|
206
232
|
req = self._build_request(
|
|
207
233
|
method="POST",
|
|
@@ -217,18 +243,23 @@ class Sources(BaseSDK):
|
|
|
217
243
|
http_headers=http_headers,
|
|
218
244
|
security=self.sdk_configuration.security,
|
|
219
245
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
220
|
-
request, False, False, "json", models.
|
|
246
|
+
request, False, False, "json", models.Input
|
|
221
247
|
),
|
|
248
|
+
allow_empty_value=None,
|
|
222
249
|
timeout_ms=timeout_ms,
|
|
223
250
|
)
|
|
224
251
|
|
|
225
252
|
if retries == UNSET:
|
|
226
253
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
227
254
|
retries = self.sdk_configuration.retry_config
|
|
255
|
+
else:
|
|
256
|
+
retries = utils.RetryConfig(
|
|
257
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
258
|
+
)
|
|
228
259
|
|
|
229
260
|
retry_config = None
|
|
230
261
|
if isinstance(retries, utils.RetryConfig):
|
|
231
|
-
retry_config = (retries, ["429"
|
|
262
|
+
retry_config = (retries, ["429"])
|
|
232
263
|
|
|
233
264
|
http_res = self.do_request(
|
|
234
265
|
hook_ctx=HookContext(
|
|
@@ -247,7 +278,7 @@ class Sources(BaseSDK):
|
|
|
247
278
|
|
|
248
279
|
response_data: Any = None
|
|
249
280
|
if utils.match_response(http_res, "200", "application/json"):
|
|
250
|
-
return unmarshal_json_response(models.
|
|
281
|
+
return unmarshal_json_response(models.CountedInput, http_res)
|
|
251
282
|
if utils.match_response(http_res, "500", "application/json"):
|
|
252
283
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
253
284
|
raise errors.Error(response_data, http_res)
|
|
@@ -260,18 +291,18 @@ class Sources(BaseSDK):
|
|
|
260
291
|
|
|
261
292
|
raise errors.APIError("Unexpected response received", http_res)
|
|
262
293
|
|
|
263
|
-
async def
|
|
294
|
+
async def create_async(
|
|
264
295
|
self,
|
|
265
296
|
*,
|
|
266
|
-
request: Union[models.
|
|
297
|
+
request: Union[models.Input, models.InputTypedDict],
|
|
267
298
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
268
299
|
server_url: Optional[str] = None,
|
|
269
300
|
timeout_ms: Optional[int] = None,
|
|
270
301
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
271
|
-
) -> models.
|
|
272
|
-
r"""Create Source
|
|
302
|
+
) -> models.CountedInput:
|
|
303
|
+
r"""Create a Source
|
|
273
304
|
|
|
274
|
-
Create Source
|
|
305
|
+
Create a new Source.
|
|
275
306
|
|
|
276
307
|
:param request: The request object to send.
|
|
277
308
|
:param retries: Override the default retry configuration for this method
|
|
@@ -290,8 +321,8 @@ class Sources(BaseSDK):
|
|
|
290
321
|
base_url = self._get_url(base_url, url_variables)
|
|
291
322
|
|
|
292
323
|
if not isinstance(request, BaseModel):
|
|
293
|
-
request = utils.unmarshal(request, models.
|
|
294
|
-
request = cast(models.
|
|
324
|
+
request = utils.unmarshal(request, models.Input)
|
|
325
|
+
request = cast(models.Input, request)
|
|
295
326
|
|
|
296
327
|
req = self._build_request_async(
|
|
297
328
|
method="POST",
|
|
@@ -307,18 +338,23 @@ class Sources(BaseSDK):
|
|
|
307
338
|
http_headers=http_headers,
|
|
308
339
|
security=self.sdk_configuration.security,
|
|
309
340
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
310
|
-
request, False, False, "json", models.
|
|
341
|
+
request, False, False, "json", models.Input
|
|
311
342
|
),
|
|
343
|
+
allow_empty_value=None,
|
|
312
344
|
timeout_ms=timeout_ms,
|
|
313
345
|
)
|
|
314
346
|
|
|
315
347
|
if retries == UNSET:
|
|
316
348
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
317
349
|
retries = self.sdk_configuration.retry_config
|
|
350
|
+
else:
|
|
351
|
+
retries = utils.RetryConfig(
|
|
352
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
353
|
+
)
|
|
318
354
|
|
|
319
355
|
retry_config = None
|
|
320
356
|
if isinstance(retries, utils.RetryConfig):
|
|
321
|
-
retry_config = (retries, ["429"
|
|
357
|
+
retry_config = (retries, ["429"])
|
|
322
358
|
|
|
323
359
|
http_res = await self.do_request_async(
|
|
324
360
|
hook_ctx=HookContext(
|
|
@@ -337,7 +373,7 @@ class Sources(BaseSDK):
|
|
|
337
373
|
|
|
338
374
|
response_data: Any = None
|
|
339
375
|
if utils.match_response(http_res, "200", "application/json"):
|
|
340
|
-
return unmarshal_json_response(models.
|
|
376
|
+
return unmarshal_json_response(models.CountedInput, http_res)
|
|
341
377
|
if utils.match_response(http_res, "500", "application/json"):
|
|
342
378
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
343
379
|
raise errors.Error(response_data, http_res)
|
|
@@ -350,7 +386,7 @@ class Sources(BaseSDK):
|
|
|
350
386
|
|
|
351
387
|
raise errors.APIError("Unexpected response received", http_res)
|
|
352
388
|
|
|
353
|
-
def
|
|
389
|
+
def get(
|
|
354
390
|
self,
|
|
355
391
|
*,
|
|
356
392
|
id: str,
|
|
@@ -358,12 +394,12 @@ class Sources(BaseSDK):
|
|
|
358
394
|
server_url: Optional[str] = None,
|
|
359
395
|
timeout_ms: Optional[int] = None,
|
|
360
396
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
361
|
-
) -> models.
|
|
362
|
-
r"""Get Source
|
|
397
|
+
) -> models.CountedInput:
|
|
398
|
+
r"""Get a Source
|
|
363
399
|
|
|
364
|
-
Get
|
|
400
|
+
Get the specified Source.
|
|
365
401
|
|
|
366
|
-
:param id:
|
|
402
|
+
:param id: The <code>id</code> of the Source to get.
|
|
367
403
|
:param retries: Override the default retry configuration for this method
|
|
368
404
|
:param server_url: Override the default server URL for this method
|
|
369
405
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -396,16 +432,21 @@ class Sources(BaseSDK):
|
|
|
396
432
|
accept_header_value="application/json",
|
|
397
433
|
http_headers=http_headers,
|
|
398
434
|
security=self.sdk_configuration.security,
|
|
435
|
+
allow_empty_value=None,
|
|
399
436
|
timeout_ms=timeout_ms,
|
|
400
437
|
)
|
|
401
438
|
|
|
402
439
|
if retries == UNSET:
|
|
403
440
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
404
441
|
retries = self.sdk_configuration.retry_config
|
|
442
|
+
else:
|
|
443
|
+
retries = utils.RetryConfig(
|
|
444
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
445
|
+
)
|
|
405
446
|
|
|
406
447
|
retry_config = None
|
|
407
448
|
if isinstance(retries, utils.RetryConfig):
|
|
408
|
-
retry_config = (retries, ["429"
|
|
449
|
+
retry_config = (retries, ["429"])
|
|
409
450
|
|
|
410
451
|
http_res = self.do_request(
|
|
411
452
|
hook_ctx=HookContext(
|
|
@@ -424,7 +465,7 @@ class Sources(BaseSDK):
|
|
|
424
465
|
|
|
425
466
|
response_data: Any = None
|
|
426
467
|
if utils.match_response(http_res, "200", "application/json"):
|
|
427
|
-
return unmarshal_json_response(models.
|
|
468
|
+
return unmarshal_json_response(models.CountedInput, http_res)
|
|
428
469
|
if utils.match_response(http_res, "500", "application/json"):
|
|
429
470
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
430
471
|
raise errors.Error(response_data, http_res)
|
|
@@ -437,7 +478,7 @@ class Sources(BaseSDK):
|
|
|
437
478
|
|
|
438
479
|
raise errors.APIError("Unexpected response received", http_res)
|
|
439
480
|
|
|
440
|
-
async def
|
|
481
|
+
async def get_async(
|
|
441
482
|
self,
|
|
442
483
|
*,
|
|
443
484
|
id: str,
|
|
@@ -445,12 +486,12 @@ class Sources(BaseSDK):
|
|
|
445
486
|
server_url: Optional[str] = None,
|
|
446
487
|
timeout_ms: Optional[int] = None,
|
|
447
488
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
448
|
-
) -> models.
|
|
449
|
-
r"""Get Source
|
|
489
|
+
) -> models.CountedInput:
|
|
490
|
+
r"""Get a Source
|
|
450
491
|
|
|
451
|
-
Get
|
|
492
|
+
Get the specified Source.
|
|
452
493
|
|
|
453
|
-
:param id:
|
|
494
|
+
:param id: The <code>id</code> of the Source to get.
|
|
454
495
|
:param retries: Override the default retry configuration for this method
|
|
455
496
|
:param server_url: Override the default server URL for this method
|
|
456
497
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -483,16 +524,21 @@ class Sources(BaseSDK):
|
|
|
483
524
|
accept_header_value="application/json",
|
|
484
525
|
http_headers=http_headers,
|
|
485
526
|
security=self.sdk_configuration.security,
|
|
527
|
+
allow_empty_value=None,
|
|
486
528
|
timeout_ms=timeout_ms,
|
|
487
529
|
)
|
|
488
530
|
|
|
489
531
|
if retries == UNSET:
|
|
490
532
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
491
533
|
retries = self.sdk_configuration.retry_config
|
|
534
|
+
else:
|
|
535
|
+
retries = utils.RetryConfig(
|
|
536
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
537
|
+
)
|
|
492
538
|
|
|
493
539
|
retry_config = None
|
|
494
540
|
if isinstance(retries, utils.RetryConfig):
|
|
495
|
-
retry_config = (retries, ["429"
|
|
541
|
+
retry_config = (retries, ["429"])
|
|
496
542
|
|
|
497
543
|
http_res = await self.do_request_async(
|
|
498
544
|
hook_ctx=HookContext(
|
|
@@ -511,7 +557,7 @@ class Sources(BaseSDK):
|
|
|
511
557
|
|
|
512
558
|
response_data: Any = None
|
|
513
559
|
if utils.match_response(http_res, "200", "application/json"):
|
|
514
|
-
return unmarshal_json_response(models.
|
|
560
|
+
return unmarshal_json_response(models.CountedInput, http_res)
|
|
515
561
|
if utils.match_response(http_res, "500", "application/json"):
|
|
516
562
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
517
563
|
raise errors.Error(response_data, http_res)
|
|
@@ -524,7 +570,7 @@ class Sources(BaseSDK):
|
|
|
524
570
|
|
|
525
571
|
raise errors.APIError("Unexpected response received", http_res)
|
|
526
572
|
|
|
527
|
-
def
|
|
573
|
+
def update(
|
|
528
574
|
self,
|
|
529
575
|
*,
|
|
530
576
|
id: str,
|
|
@@ -533,13 +579,13 @@ class Sources(BaseSDK):
|
|
|
533
579
|
server_url: Optional[str] = None,
|
|
534
580
|
timeout_ms: Optional[int] = None,
|
|
535
581
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
536
|
-
) -> models.
|
|
537
|
-
r"""Update Source
|
|
582
|
+
) -> models.CountedInput:
|
|
583
|
+
r"""Update a Source
|
|
538
584
|
|
|
539
|
-
Update Source
|
|
585
|
+
Update the specified Source.</br></br>Provide a complete representation of the Source that you want to update in the request body. This endpoint does not support partial updates. Cribl removes any omitted fields when updating the Source.</br></br>Confirm that the configuration in your request body is correct before sending the request. If the configuration is incorrect, the updated Source might not function as expected.
|
|
540
586
|
|
|
541
|
-
:param id:
|
|
542
|
-
:param input:
|
|
587
|
+
:param id: The <code>id</code> of the Source to update.
|
|
588
|
+
:param input: Input object
|
|
543
589
|
:param retries: Override the default retry configuration for this method
|
|
544
590
|
:param server_url: Override the default server URL for this method
|
|
545
591
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -576,16 +622,21 @@ class Sources(BaseSDK):
|
|
|
576
622
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
577
623
|
request.input, False, False, "json", models.Input
|
|
578
624
|
),
|
|
625
|
+
allow_empty_value=None,
|
|
579
626
|
timeout_ms=timeout_ms,
|
|
580
627
|
)
|
|
581
628
|
|
|
582
629
|
if retries == UNSET:
|
|
583
630
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
584
631
|
retries = self.sdk_configuration.retry_config
|
|
632
|
+
else:
|
|
633
|
+
retries = utils.RetryConfig(
|
|
634
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
635
|
+
)
|
|
585
636
|
|
|
586
637
|
retry_config = None
|
|
587
638
|
if isinstance(retries, utils.RetryConfig):
|
|
588
|
-
retry_config = (retries, ["429"
|
|
639
|
+
retry_config = (retries, ["429"])
|
|
589
640
|
|
|
590
641
|
http_res = self.do_request(
|
|
591
642
|
hook_ctx=HookContext(
|
|
@@ -604,7 +655,7 @@ class Sources(BaseSDK):
|
|
|
604
655
|
|
|
605
656
|
response_data: Any = None
|
|
606
657
|
if utils.match_response(http_res, "200", "application/json"):
|
|
607
|
-
return unmarshal_json_response(models.
|
|
658
|
+
return unmarshal_json_response(models.CountedInput, http_res)
|
|
608
659
|
if utils.match_response(http_res, "500", "application/json"):
|
|
609
660
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
610
661
|
raise errors.Error(response_data, http_res)
|
|
@@ -617,7 +668,7 @@ class Sources(BaseSDK):
|
|
|
617
668
|
|
|
618
669
|
raise errors.APIError("Unexpected response received", http_res)
|
|
619
670
|
|
|
620
|
-
async def
|
|
671
|
+
async def update_async(
|
|
621
672
|
self,
|
|
622
673
|
*,
|
|
623
674
|
id: str,
|
|
@@ -626,13 +677,13 @@ class Sources(BaseSDK):
|
|
|
626
677
|
server_url: Optional[str] = None,
|
|
627
678
|
timeout_ms: Optional[int] = None,
|
|
628
679
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
629
|
-
) -> models.
|
|
630
|
-
r"""Update Source
|
|
680
|
+
) -> models.CountedInput:
|
|
681
|
+
r"""Update a Source
|
|
631
682
|
|
|
632
|
-
Update Source
|
|
683
|
+
Update the specified Source.</br></br>Provide a complete representation of the Source that you want to update in the request body. This endpoint does not support partial updates. Cribl removes any omitted fields when updating the Source.</br></br>Confirm that the configuration in your request body is correct before sending the request. If the configuration is incorrect, the updated Source might not function as expected.
|
|
633
684
|
|
|
634
|
-
:param id:
|
|
635
|
-
:param input:
|
|
685
|
+
:param id: The <code>id</code> of the Source to update.
|
|
686
|
+
:param input: Input object
|
|
636
687
|
:param retries: Override the default retry configuration for this method
|
|
637
688
|
:param server_url: Override the default server URL for this method
|
|
638
689
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -669,16 +720,21 @@ class Sources(BaseSDK):
|
|
|
669
720
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
670
721
|
request.input, False, False, "json", models.Input
|
|
671
722
|
),
|
|
723
|
+
allow_empty_value=None,
|
|
672
724
|
timeout_ms=timeout_ms,
|
|
673
725
|
)
|
|
674
726
|
|
|
675
727
|
if retries == UNSET:
|
|
676
728
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
677
729
|
retries = self.sdk_configuration.retry_config
|
|
730
|
+
else:
|
|
731
|
+
retries = utils.RetryConfig(
|
|
732
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
733
|
+
)
|
|
678
734
|
|
|
679
735
|
retry_config = None
|
|
680
736
|
if isinstance(retries, utils.RetryConfig):
|
|
681
|
-
retry_config = (retries, ["429"
|
|
737
|
+
retry_config = (retries, ["429"])
|
|
682
738
|
|
|
683
739
|
http_res = await self.do_request_async(
|
|
684
740
|
hook_ctx=HookContext(
|
|
@@ -697,7 +753,7 @@ class Sources(BaseSDK):
|
|
|
697
753
|
|
|
698
754
|
response_data: Any = None
|
|
699
755
|
if utils.match_response(http_res, "200", "application/json"):
|
|
700
|
-
return unmarshal_json_response(models.
|
|
756
|
+
return unmarshal_json_response(models.CountedInput, http_res)
|
|
701
757
|
if utils.match_response(http_res, "500", "application/json"):
|
|
702
758
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
703
759
|
raise errors.Error(response_data, http_res)
|
|
@@ -710,7 +766,7 @@ class Sources(BaseSDK):
|
|
|
710
766
|
|
|
711
767
|
raise errors.APIError("Unexpected response received", http_res)
|
|
712
768
|
|
|
713
|
-
def
|
|
769
|
+
def delete(
|
|
714
770
|
self,
|
|
715
771
|
*,
|
|
716
772
|
id: str,
|
|
@@ -718,12 +774,12 @@ class Sources(BaseSDK):
|
|
|
718
774
|
server_url: Optional[str] = None,
|
|
719
775
|
timeout_ms: Optional[int] = None,
|
|
720
776
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
721
|
-
) -> models.
|
|
722
|
-
r"""Delete Source
|
|
777
|
+
) -> models.CountedInput:
|
|
778
|
+
r"""Delete a Source
|
|
723
779
|
|
|
724
|
-
Delete Source
|
|
780
|
+
Delete the specified Source.
|
|
725
781
|
|
|
726
|
-
:param id:
|
|
782
|
+
:param id: The <code>id</code> of the Source to delete.
|
|
727
783
|
:param retries: Override the default retry configuration for this method
|
|
728
784
|
:param server_url: Override the default server URL for this method
|
|
729
785
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -756,16 +812,21 @@ class Sources(BaseSDK):
|
|
|
756
812
|
accept_header_value="application/json",
|
|
757
813
|
http_headers=http_headers,
|
|
758
814
|
security=self.sdk_configuration.security,
|
|
815
|
+
allow_empty_value=None,
|
|
759
816
|
timeout_ms=timeout_ms,
|
|
760
817
|
)
|
|
761
818
|
|
|
762
819
|
if retries == UNSET:
|
|
763
820
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
764
821
|
retries = self.sdk_configuration.retry_config
|
|
822
|
+
else:
|
|
823
|
+
retries = utils.RetryConfig(
|
|
824
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
825
|
+
)
|
|
765
826
|
|
|
766
827
|
retry_config = None
|
|
767
828
|
if isinstance(retries, utils.RetryConfig):
|
|
768
|
-
retry_config = (retries, ["429"
|
|
829
|
+
retry_config = (retries, ["429"])
|
|
769
830
|
|
|
770
831
|
http_res = self.do_request(
|
|
771
832
|
hook_ctx=HookContext(
|
|
@@ -784,7 +845,7 @@ class Sources(BaseSDK):
|
|
|
784
845
|
|
|
785
846
|
response_data: Any = None
|
|
786
847
|
if utils.match_response(http_res, "200", "application/json"):
|
|
787
|
-
return unmarshal_json_response(models.
|
|
848
|
+
return unmarshal_json_response(models.CountedInput, http_res)
|
|
788
849
|
if utils.match_response(http_res, "500", "application/json"):
|
|
789
850
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
790
851
|
raise errors.Error(response_data, http_res)
|
|
@@ -797,7 +858,7 @@ class Sources(BaseSDK):
|
|
|
797
858
|
|
|
798
859
|
raise errors.APIError("Unexpected response received", http_res)
|
|
799
860
|
|
|
800
|
-
async def
|
|
861
|
+
async def delete_async(
|
|
801
862
|
self,
|
|
802
863
|
*,
|
|
803
864
|
id: str,
|
|
@@ -805,12 +866,12 @@ class Sources(BaseSDK):
|
|
|
805
866
|
server_url: Optional[str] = None,
|
|
806
867
|
timeout_ms: Optional[int] = None,
|
|
807
868
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
808
|
-
) -> models.
|
|
809
|
-
r"""Delete Source
|
|
869
|
+
) -> models.CountedInput:
|
|
870
|
+
r"""Delete a Source
|
|
810
871
|
|
|
811
|
-
Delete Source
|
|
872
|
+
Delete the specified Source.
|
|
812
873
|
|
|
813
|
-
:param id:
|
|
874
|
+
:param id: The <code>id</code> of the Source to delete.
|
|
814
875
|
:param retries: Override the default retry configuration for this method
|
|
815
876
|
:param server_url: Override the default server URL for this method
|
|
816
877
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -843,16 +904,21 @@ class Sources(BaseSDK):
|
|
|
843
904
|
accept_header_value="application/json",
|
|
844
905
|
http_headers=http_headers,
|
|
845
906
|
security=self.sdk_configuration.security,
|
|
907
|
+
allow_empty_value=None,
|
|
846
908
|
timeout_ms=timeout_ms,
|
|
847
909
|
)
|
|
848
910
|
|
|
849
911
|
if retries == UNSET:
|
|
850
912
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
851
913
|
retries = self.sdk_configuration.retry_config
|
|
914
|
+
else:
|
|
915
|
+
retries = utils.RetryConfig(
|
|
916
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
917
|
+
)
|
|
852
918
|
|
|
853
919
|
retry_config = None
|
|
854
920
|
if isinstance(retries, utils.RetryConfig):
|
|
855
|
-
retry_config = (retries, ["429"
|
|
921
|
+
retry_config = (retries, ["429"])
|
|
856
922
|
|
|
857
923
|
http_res = await self.do_request_async(
|
|
858
924
|
hook_ctx=HookContext(
|
|
@@ -871,475 +937,7 @@ class Sources(BaseSDK):
|
|
|
871
937
|
|
|
872
938
|
response_data: Any = None
|
|
873
939
|
if utils.match_response(http_res, "200", "application/json"):
|
|
874
|
-
return unmarshal_json_response(models.
|
|
875
|
-
if utils.match_response(http_res, "500", "application/json"):
|
|
876
|
-
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
877
|
-
raise errors.Error(response_data, http_res)
|
|
878
|
-
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
879
|
-
http_res_text = await utils.stream_to_text_async(http_res)
|
|
880
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
881
|
-
if utils.match_response(http_res, "5XX", "*"):
|
|
882
|
-
http_res_text = await utils.stream_to_text_async(http_res)
|
|
883
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
884
|
-
|
|
885
|
-
raise errors.APIError("Unexpected response received", http_res)
|
|
886
|
-
|
|
887
|
-
def create_source_hec_token_by_id(
|
|
888
|
-
self,
|
|
889
|
-
*,
|
|
890
|
-
id: str,
|
|
891
|
-
token: str,
|
|
892
|
-
description: Optional[str] = None,
|
|
893
|
-
enabled: Optional[bool] = None,
|
|
894
|
-
metadata: Optional[
|
|
895
|
-
Union[
|
|
896
|
-
List[models.AddHecTokenRequestMetadatum],
|
|
897
|
-
List[models.AddHecTokenRequestMetadatumTypedDict],
|
|
898
|
-
]
|
|
899
|
-
] = None,
|
|
900
|
-
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
901
|
-
server_url: Optional[str] = None,
|
|
902
|
-
timeout_ms: Optional[int] = None,
|
|
903
|
-
http_headers: Optional[Mapping[str, str]] = None,
|
|
904
|
-
) -> models.CreateInputHecTokenByIDResponse:
|
|
905
|
-
r"""Add token and optional metadata to an existing HEC Source
|
|
906
|
-
|
|
907
|
-
Add token and optional metadata to an existing HEC Source
|
|
908
|
-
|
|
909
|
-
:param id: HEC Source id
|
|
910
|
-
:param token:
|
|
911
|
-
:param description:
|
|
912
|
-
:param enabled:
|
|
913
|
-
:param metadata:
|
|
914
|
-
:param retries: Override the default retry configuration for this method
|
|
915
|
-
:param server_url: Override the default server URL for this method
|
|
916
|
-
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
917
|
-
:param http_headers: Additional headers to set or replace on requests.
|
|
918
|
-
"""
|
|
919
|
-
base_url = None
|
|
920
|
-
url_variables = None
|
|
921
|
-
if timeout_ms is None:
|
|
922
|
-
timeout_ms = self.sdk_configuration.timeout_ms
|
|
923
|
-
|
|
924
|
-
if server_url is not None:
|
|
925
|
-
base_url = server_url
|
|
926
|
-
else:
|
|
927
|
-
base_url = self._get_url(base_url, url_variables)
|
|
928
|
-
|
|
929
|
-
request = models.CreateInputHecTokenByIDRequest(
|
|
930
|
-
id=id,
|
|
931
|
-
add_hec_token_request=models.AddHecTokenRequest(
|
|
932
|
-
description=description,
|
|
933
|
-
enabled=enabled,
|
|
934
|
-
metadata=utils.get_pydantic_model(
|
|
935
|
-
metadata, Optional[List[models.AddHecTokenRequestMetadatum]]
|
|
936
|
-
),
|
|
937
|
-
token=token,
|
|
938
|
-
),
|
|
939
|
-
)
|
|
940
|
-
|
|
941
|
-
req = self._build_request(
|
|
942
|
-
method="POST",
|
|
943
|
-
path="/system/inputs/{id}/hectoken",
|
|
944
|
-
base_url=base_url,
|
|
945
|
-
url_variables=url_variables,
|
|
946
|
-
request=request,
|
|
947
|
-
request_body_required=True,
|
|
948
|
-
request_has_path_params=True,
|
|
949
|
-
request_has_query_params=True,
|
|
950
|
-
user_agent_header="user-agent",
|
|
951
|
-
accept_header_value="application/json",
|
|
952
|
-
http_headers=http_headers,
|
|
953
|
-
security=self.sdk_configuration.security,
|
|
954
|
-
get_serialized_body=lambda: utils.serialize_request_body(
|
|
955
|
-
request.add_hec_token_request,
|
|
956
|
-
False,
|
|
957
|
-
False,
|
|
958
|
-
"json",
|
|
959
|
-
models.AddHecTokenRequest,
|
|
960
|
-
),
|
|
961
|
-
timeout_ms=timeout_ms,
|
|
962
|
-
)
|
|
963
|
-
|
|
964
|
-
if retries == UNSET:
|
|
965
|
-
if self.sdk_configuration.retry_config is not UNSET:
|
|
966
|
-
retries = self.sdk_configuration.retry_config
|
|
967
|
-
|
|
968
|
-
retry_config = None
|
|
969
|
-
if isinstance(retries, utils.RetryConfig):
|
|
970
|
-
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
971
|
-
|
|
972
|
-
http_res = self.do_request(
|
|
973
|
-
hook_ctx=HookContext(
|
|
974
|
-
config=self.sdk_configuration,
|
|
975
|
-
base_url=base_url or "",
|
|
976
|
-
operation_id="createInputHecTokenById",
|
|
977
|
-
oauth2_scopes=[],
|
|
978
|
-
security_source=get_security_from_env(
|
|
979
|
-
self.sdk_configuration.security, models.Security
|
|
980
|
-
),
|
|
981
|
-
),
|
|
982
|
-
request=req,
|
|
983
|
-
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
984
|
-
retry_config=retry_config,
|
|
985
|
-
)
|
|
986
|
-
|
|
987
|
-
response_data: Any = None
|
|
988
|
-
if utils.match_response(http_res, "200", "application/json"):
|
|
989
|
-
return unmarshal_json_response(
|
|
990
|
-
models.CreateInputHecTokenByIDResponse, http_res
|
|
991
|
-
)
|
|
992
|
-
if utils.match_response(http_res, "500", "application/json"):
|
|
993
|
-
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
994
|
-
raise errors.Error(response_data, http_res)
|
|
995
|
-
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
996
|
-
http_res_text = utils.stream_to_text(http_res)
|
|
997
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
998
|
-
if utils.match_response(http_res, "5XX", "*"):
|
|
999
|
-
http_res_text = utils.stream_to_text(http_res)
|
|
1000
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
1001
|
-
|
|
1002
|
-
raise errors.APIError("Unexpected response received", http_res)
|
|
1003
|
-
|
|
1004
|
-
async def create_source_hec_token_by_id_async(
|
|
1005
|
-
self,
|
|
1006
|
-
*,
|
|
1007
|
-
id: str,
|
|
1008
|
-
token: str,
|
|
1009
|
-
description: Optional[str] = None,
|
|
1010
|
-
enabled: Optional[bool] = None,
|
|
1011
|
-
metadata: Optional[
|
|
1012
|
-
Union[
|
|
1013
|
-
List[models.AddHecTokenRequestMetadatum],
|
|
1014
|
-
List[models.AddHecTokenRequestMetadatumTypedDict],
|
|
1015
|
-
]
|
|
1016
|
-
] = None,
|
|
1017
|
-
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1018
|
-
server_url: Optional[str] = None,
|
|
1019
|
-
timeout_ms: Optional[int] = None,
|
|
1020
|
-
http_headers: Optional[Mapping[str, str]] = None,
|
|
1021
|
-
) -> models.CreateInputHecTokenByIDResponse:
|
|
1022
|
-
r"""Add token and optional metadata to an existing HEC Source
|
|
1023
|
-
|
|
1024
|
-
Add token and optional metadata to an existing HEC Source
|
|
1025
|
-
|
|
1026
|
-
:param id: HEC Source id
|
|
1027
|
-
:param token:
|
|
1028
|
-
:param description:
|
|
1029
|
-
:param enabled:
|
|
1030
|
-
:param metadata:
|
|
1031
|
-
:param retries: Override the default retry configuration for this method
|
|
1032
|
-
:param server_url: Override the default server URL for this method
|
|
1033
|
-
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
1034
|
-
:param http_headers: Additional headers to set or replace on requests.
|
|
1035
|
-
"""
|
|
1036
|
-
base_url = None
|
|
1037
|
-
url_variables = None
|
|
1038
|
-
if timeout_ms is None:
|
|
1039
|
-
timeout_ms = self.sdk_configuration.timeout_ms
|
|
1040
|
-
|
|
1041
|
-
if server_url is not None:
|
|
1042
|
-
base_url = server_url
|
|
1043
|
-
else:
|
|
1044
|
-
base_url = self._get_url(base_url, url_variables)
|
|
1045
|
-
|
|
1046
|
-
request = models.CreateInputHecTokenByIDRequest(
|
|
1047
|
-
id=id,
|
|
1048
|
-
add_hec_token_request=models.AddHecTokenRequest(
|
|
1049
|
-
description=description,
|
|
1050
|
-
enabled=enabled,
|
|
1051
|
-
metadata=utils.get_pydantic_model(
|
|
1052
|
-
metadata, Optional[List[models.AddHecTokenRequestMetadatum]]
|
|
1053
|
-
),
|
|
1054
|
-
token=token,
|
|
1055
|
-
),
|
|
1056
|
-
)
|
|
1057
|
-
|
|
1058
|
-
req = self._build_request_async(
|
|
1059
|
-
method="POST",
|
|
1060
|
-
path="/system/inputs/{id}/hectoken",
|
|
1061
|
-
base_url=base_url,
|
|
1062
|
-
url_variables=url_variables,
|
|
1063
|
-
request=request,
|
|
1064
|
-
request_body_required=True,
|
|
1065
|
-
request_has_path_params=True,
|
|
1066
|
-
request_has_query_params=True,
|
|
1067
|
-
user_agent_header="user-agent",
|
|
1068
|
-
accept_header_value="application/json",
|
|
1069
|
-
http_headers=http_headers,
|
|
1070
|
-
security=self.sdk_configuration.security,
|
|
1071
|
-
get_serialized_body=lambda: utils.serialize_request_body(
|
|
1072
|
-
request.add_hec_token_request,
|
|
1073
|
-
False,
|
|
1074
|
-
False,
|
|
1075
|
-
"json",
|
|
1076
|
-
models.AddHecTokenRequest,
|
|
1077
|
-
),
|
|
1078
|
-
timeout_ms=timeout_ms,
|
|
1079
|
-
)
|
|
1080
|
-
|
|
1081
|
-
if retries == UNSET:
|
|
1082
|
-
if self.sdk_configuration.retry_config is not UNSET:
|
|
1083
|
-
retries = self.sdk_configuration.retry_config
|
|
1084
|
-
|
|
1085
|
-
retry_config = None
|
|
1086
|
-
if isinstance(retries, utils.RetryConfig):
|
|
1087
|
-
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
1088
|
-
|
|
1089
|
-
http_res = await self.do_request_async(
|
|
1090
|
-
hook_ctx=HookContext(
|
|
1091
|
-
config=self.sdk_configuration,
|
|
1092
|
-
base_url=base_url or "",
|
|
1093
|
-
operation_id="createInputHecTokenById",
|
|
1094
|
-
oauth2_scopes=[],
|
|
1095
|
-
security_source=get_security_from_env(
|
|
1096
|
-
self.sdk_configuration.security, models.Security
|
|
1097
|
-
),
|
|
1098
|
-
),
|
|
1099
|
-
request=req,
|
|
1100
|
-
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
1101
|
-
retry_config=retry_config,
|
|
1102
|
-
)
|
|
1103
|
-
|
|
1104
|
-
response_data: Any = None
|
|
1105
|
-
if utils.match_response(http_res, "200", "application/json"):
|
|
1106
|
-
return unmarshal_json_response(
|
|
1107
|
-
models.CreateInputHecTokenByIDResponse, http_res
|
|
1108
|
-
)
|
|
1109
|
-
if utils.match_response(http_res, "500", "application/json"):
|
|
1110
|
-
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1111
|
-
raise errors.Error(response_data, http_res)
|
|
1112
|
-
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
1113
|
-
http_res_text = await utils.stream_to_text_async(http_res)
|
|
1114
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
1115
|
-
if utils.match_response(http_res, "5XX", "*"):
|
|
1116
|
-
http_res_text = await utils.stream_to_text_async(http_res)
|
|
1117
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
1118
|
-
|
|
1119
|
-
raise errors.APIError("Unexpected response received", http_res)
|
|
1120
|
-
|
|
1121
|
-
def update_source_hec_token_by_id_and_token(
|
|
1122
|
-
self,
|
|
1123
|
-
*,
|
|
1124
|
-
id: str,
|
|
1125
|
-
token: str,
|
|
1126
|
-
description: Optional[str] = None,
|
|
1127
|
-
enabled: Optional[bool] = None,
|
|
1128
|
-
metadata: Optional[
|
|
1129
|
-
Union[
|
|
1130
|
-
List[models.UpdateHecTokenRequestMetadatum],
|
|
1131
|
-
List[models.UpdateHecTokenRequestMetadatumTypedDict],
|
|
1132
|
-
]
|
|
1133
|
-
] = None,
|
|
1134
|
-
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1135
|
-
server_url: Optional[str] = None,
|
|
1136
|
-
timeout_ms: Optional[int] = None,
|
|
1137
|
-
http_headers: Optional[Mapping[str, str]] = None,
|
|
1138
|
-
) -> models.UpdateInputHecTokenByIDAndTokenResponse:
|
|
1139
|
-
r"""Update token metadata on existing HEC Source
|
|
1140
|
-
|
|
1141
|
-
Update token metadata on existing HEC Source
|
|
1142
|
-
|
|
1143
|
-
:param id: HEC Source id
|
|
1144
|
-
:param token: token to update
|
|
1145
|
-
:param description:
|
|
1146
|
-
:param enabled:
|
|
1147
|
-
:param metadata:
|
|
1148
|
-
:param retries: Override the default retry configuration for this method
|
|
1149
|
-
:param server_url: Override the default server URL for this method
|
|
1150
|
-
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
1151
|
-
:param http_headers: Additional headers to set or replace on requests.
|
|
1152
|
-
"""
|
|
1153
|
-
base_url = None
|
|
1154
|
-
url_variables = None
|
|
1155
|
-
if timeout_ms is None:
|
|
1156
|
-
timeout_ms = self.sdk_configuration.timeout_ms
|
|
1157
|
-
|
|
1158
|
-
if server_url is not None:
|
|
1159
|
-
base_url = server_url
|
|
1160
|
-
else:
|
|
1161
|
-
base_url = self._get_url(base_url, url_variables)
|
|
1162
|
-
|
|
1163
|
-
request = models.UpdateInputHecTokenByIDAndTokenRequest(
|
|
1164
|
-
id=id,
|
|
1165
|
-
token=token,
|
|
1166
|
-
update_hec_token_request=models.UpdateHecTokenRequest(
|
|
1167
|
-
description=description,
|
|
1168
|
-
enabled=enabled,
|
|
1169
|
-
metadata=utils.get_pydantic_model(
|
|
1170
|
-
metadata, Optional[List[models.UpdateHecTokenRequestMetadatum]]
|
|
1171
|
-
),
|
|
1172
|
-
),
|
|
1173
|
-
)
|
|
1174
|
-
|
|
1175
|
-
req = self._build_request(
|
|
1176
|
-
method="PATCH",
|
|
1177
|
-
path="/system/inputs/{id}/hectoken/{token}",
|
|
1178
|
-
base_url=base_url,
|
|
1179
|
-
url_variables=url_variables,
|
|
1180
|
-
request=request,
|
|
1181
|
-
request_body_required=True,
|
|
1182
|
-
request_has_path_params=True,
|
|
1183
|
-
request_has_query_params=True,
|
|
1184
|
-
user_agent_header="user-agent",
|
|
1185
|
-
accept_header_value="application/json",
|
|
1186
|
-
http_headers=http_headers,
|
|
1187
|
-
security=self.sdk_configuration.security,
|
|
1188
|
-
get_serialized_body=lambda: utils.serialize_request_body(
|
|
1189
|
-
request.update_hec_token_request,
|
|
1190
|
-
False,
|
|
1191
|
-
False,
|
|
1192
|
-
"json",
|
|
1193
|
-
models.UpdateHecTokenRequest,
|
|
1194
|
-
),
|
|
1195
|
-
timeout_ms=timeout_ms,
|
|
1196
|
-
)
|
|
1197
|
-
|
|
1198
|
-
if retries == UNSET:
|
|
1199
|
-
if self.sdk_configuration.retry_config is not UNSET:
|
|
1200
|
-
retries = self.sdk_configuration.retry_config
|
|
1201
|
-
|
|
1202
|
-
retry_config = None
|
|
1203
|
-
if isinstance(retries, utils.RetryConfig):
|
|
1204
|
-
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
1205
|
-
|
|
1206
|
-
http_res = self.do_request(
|
|
1207
|
-
hook_ctx=HookContext(
|
|
1208
|
-
config=self.sdk_configuration,
|
|
1209
|
-
base_url=base_url or "",
|
|
1210
|
-
operation_id="updateInputHecTokenByIdAndToken",
|
|
1211
|
-
oauth2_scopes=[],
|
|
1212
|
-
security_source=get_security_from_env(
|
|
1213
|
-
self.sdk_configuration.security, models.Security
|
|
1214
|
-
),
|
|
1215
|
-
),
|
|
1216
|
-
request=req,
|
|
1217
|
-
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
1218
|
-
retry_config=retry_config,
|
|
1219
|
-
)
|
|
1220
|
-
|
|
1221
|
-
response_data: Any = None
|
|
1222
|
-
if utils.match_response(http_res, "200", "application/json"):
|
|
1223
|
-
return unmarshal_json_response(
|
|
1224
|
-
models.UpdateInputHecTokenByIDAndTokenResponse, http_res
|
|
1225
|
-
)
|
|
1226
|
-
if utils.match_response(http_res, "500", "application/json"):
|
|
1227
|
-
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1228
|
-
raise errors.Error(response_data, http_res)
|
|
1229
|
-
if utils.match_response(http_res, ["401", "4XX"], "*"):
|
|
1230
|
-
http_res_text = utils.stream_to_text(http_res)
|
|
1231
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
1232
|
-
if utils.match_response(http_res, "5XX", "*"):
|
|
1233
|
-
http_res_text = utils.stream_to_text(http_res)
|
|
1234
|
-
raise errors.APIError("API error occurred", http_res, http_res_text)
|
|
1235
|
-
|
|
1236
|
-
raise errors.APIError("Unexpected response received", http_res)
|
|
1237
|
-
|
|
1238
|
-
async def update_source_hec_token_by_id_and_token_async(
|
|
1239
|
-
self,
|
|
1240
|
-
*,
|
|
1241
|
-
id: str,
|
|
1242
|
-
token: str,
|
|
1243
|
-
description: Optional[str] = None,
|
|
1244
|
-
enabled: Optional[bool] = None,
|
|
1245
|
-
metadata: Optional[
|
|
1246
|
-
Union[
|
|
1247
|
-
List[models.UpdateHecTokenRequestMetadatum],
|
|
1248
|
-
List[models.UpdateHecTokenRequestMetadatumTypedDict],
|
|
1249
|
-
]
|
|
1250
|
-
] = None,
|
|
1251
|
-
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1252
|
-
server_url: Optional[str] = None,
|
|
1253
|
-
timeout_ms: Optional[int] = None,
|
|
1254
|
-
http_headers: Optional[Mapping[str, str]] = None,
|
|
1255
|
-
) -> models.UpdateInputHecTokenByIDAndTokenResponse:
|
|
1256
|
-
r"""Update token metadata on existing HEC Source
|
|
1257
|
-
|
|
1258
|
-
Update token metadata on existing HEC Source
|
|
1259
|
-
|
|
1260
|
-
:param id: HEC Source id
|
|
1261
|
-
:param token: token to update
|
|
1262
|
-
:param description:
|
|
1263
|
-
:param enabled:
|
|
1264
|
-
:param metadata:
|
|
1265
|
-
:param retries: Override the default retry configuration for this method
|
|
1266
|
-
:param server_url: Override the default server URL for this method
|
|
1267
|
-
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
1268
|
-
:param http_headers: Additional headers to set or replace on requests.
|
|
1269
|
-
"""
|
|
1270
|
-
base_url = None
|
|
1271
|
-
url_variables = None
|
|
1272
|
-
if timeout_ms is None:
|
|
1273
|
-
timeout_ms = self.sdk_configuration.timeout_ms
|
|
1274
|
-
|
|
1275
|
-
if server_url is not None:
|
|
1276
|
-
base_url = server_url
|
|
1277
|
-
else:
|
|
1278
|
-
base_url = self._get_url(base_url, url_variables)
|
|
1279
|
-
|
|
1280
|
-
request = models.UpdateInputHecTokenByIDAndTokenRequest(
|
|
1281
|
-
id=id,
|
|
1282
|
-
token=token,
|
|
1283
|
-
update_hec_token_request=models.UpdateHecTokenRequest(
|
|
1284
|
-
description=description,
|
|
1285
|
-
enabled=enabled,
|
|
1286
|
-
metadata=utils.get_pydantic_model(
|
|
1287
|
-
metadata, Optional[List[models.UpdateHecTokenRequestMetadatum]]
|
|
1288
|
-
),
|
|
1289
|
-
),
|
|
1290
|
-
)
|
|
1291
|
-
|
|
1292
|
-
req = self._build_request_async(
|
|
1293
|
-
method="PATCH",
|
|
1294
|
-
path="/system/inputs/{id}/hectoken/{token}",
|
|
1295
|
-
base_url=base_url,
|
|
1296
|
-
url_variables=url_variables,
|
|
1297
|
-
request=request,
|
|
1298
|
-
request_body_required=True,
|
|
1299
|
-
request_has_path_params=True,
|
|
1300
|
-
request_has_query_params=True,
|
|
1301
|
-
user_agent_header="user-agent",
|
|
1302
|
-
accept_header_value="application/json",
|
|
1303
|
-
http_headers=http_headers,
|
|
1304
|
-
security=self.sdk_configuration.security,
|
|
1305
|
-
get_serialized_body=lambda: utils.serialize_request_body(
|
|
1306
|
-
request.update_hec_token_request,
|
|
1307
|
-
False,
|
|
1308
|
-
False,
|
|
1309
|
-
"json",
|
|
1310
|
-
models.UpdateHecTokenRequest,
|
|
1311
|
-
),
|
|
1312
|
-
timeout_ms=timeout_ms,
|
|
1313
|
-
)
|
|
1314
|
-
|
|
1315
|
-
if retries == UNSET:
|
|
1316
|
-
if self.sdk_configuration.retry_config is not UNSET:
|
|
1317
|
-
retries = self.sdk_configuration.retry_config
|
|
1318
|
-
|
|
1319
|
-
retry_config = None
|
|
1320
|
-
if isinstance(retries, utils.RetryConfig):
|
|
1321
|
-
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
1322
|
-
|
|
1323
|
-
http_res = await self.do_request_async(
|
|
1324
|
-
hook_ctx=HookContext(
|
|
1325
|
-
config=self.sdk_configuration,
|
|
1326
|
-
base_url=base_url or "",
|
|
1327
|
-
operation_id="updateInputHecTokenByIdAndToken",
|
|
1328
|
-
oauth2_scopes=[],
|
|
1329
|
-
security_source=get_security_from_env(
|
|
1330
|
-
self.sdk_configuration.security, models.Security
|
|
1331
|
-
),
|
|
1332
|
-
),
|
|
1333
|
-
request=req,
|
|
1334
|
-
error_status_codes=["401", "4XX", "500", "5XX"],
|
|
1335
|
-
retry_config=retry_config,
|
|
1336
|
-
)
|
|
1337
|
-
|
|
1338
|
-
response_data: Any = None
|
|
1339
|
-
if utils.match_response(http_res, "200", "application/json"):
|
|
1340
|
-
return unmarshal_json_response(
|
|
1341
|
-
models.UpdateInputHecTokenByIDAndTokenResponse, http_res
|
|
1342
|
-
)
|
|
940
|
+
return unmarshal_json_response(models.CountedInput, http_res)
|
|
1343
941
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1344
942
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1345
943
|
raise errors.Error(response_data, http_res)
|