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