cribl-control-plane 0.0.39__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 +92 -42
- cribl_control_plane/_version.py +4 -4
- cribl_control_plane/acl.py +21 -9
- cribl_control_plane/auth_sdk.py +6 -3
- cribl_control_plane/basesdk.py +17 -1
- cribl_control_plane/branches.py +28 -8
- cribl_control_plane/commits.py +119 -47
- cribl_control_plane/commits_files.py +44 -24
- cribl_control_plane/configs_versions.py +16 -10
- cribl_control_plane/cribl.py +495 -0
- cribl_control_plane/destinations.py +86 -34
- cribl_control_plane/destinations_pq.py +34 -14
- cribl_control_plane/errors/__init__.py +23 -8
- 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 +8 -3
- cribl_control_plane/groups_sdk.py +156 -94
- cribl_control_plane/health.py +34 -14
- cribl_control_plane/hectokens.py +44 -20
- cribl_control_plane/httpclient.py +0 -1
- cribl_control_plane/lakedatasets.py +156 -62
- cribl_control_plane/models/__init__.py +3298 -479
- 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 +62 -8
- 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/{createinputop.py → countedgitdiffresult.py} +5 -9
- 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/{createoutputop.py → countedoutputsamplesresponse.py} +5 -9
- 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 +26 -27
- cribl_control_plane/models/createcribllakedatasetbylakeidop.py +1 -19
- cribl_control_plane/models/createinputhectokenbyidop.py +1 -19
- cribl_control_plane/models/createoutputtestbyidop.py +1 -20
- cribl_control_plane/models/createroutesappendbyidop.py +4 -22
- cribl_control_plane/models/createversioncommitop.py +1 -19
- cribl_control_plane/models/createversionrevertop.py +3 -21
- cribl_control_plane/models/createversionundoop.py +1 -18
- 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/datasetmetadata.py +18 -2
- cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +18 -21
- cribl_control_plane/models/deletecribllakedatasetbylakeidandidop.py +1 -20
- cribl_control_plane/models/deleteinputbyidop.py +1 -20
- cribl_control_plane/models/deleteoutputbyidop.py +1 -20
- cribl_control_plane/models/deleteoutputpqbyidop.py +1 -19
- cribl_control_plane/models/deletepacksbyidop.py +1 -20
- 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 +24 -20
- cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +24 -20
- cribl_control_plane/models/getconfiggroupbyproductandidop.py +14 -19
- cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +18 -20
- cribl_control_plane/models/getcribllakedatasetbylakeidandidop.py +1 -20
- cribl_control_plane/models/getcribllakedatasetbylakeidop.py +54 -14
- cribl_control_plane/models/getfunctionsbyidop.py +18 -0
- cribl_control_plane/models/getinputbyidop.py +1 -20
- cribl_control_plane/models/getmasterworkerentryop.py +1 -18
- cribl_control_plane/models/getoutputbyidop.py +1 -20
- cribl_control_plane/models/getoutputpqbyidop.py +1 -19
- cribl_control_plane/models/getoutputsamplesbyidop.py +1 -20
- cribl_control_plane/models/getpacksbyidop.py +1 -20
- cribl_control_plane/models/getpacksop.py +1 -19
- cribl_control_plane/models/getpipelinebyidop.py +3 -22
- cribl_control_plane/models/getroutesbyidop.py +3 -22
- cribl_control_plane/models/getsummaryop.py +18 -20
- cribl_control_plane/models/getversioncountop.py +3 -21
- cribl_control_plane/models/getversiondiffop.py +1 -18
- cribl_control_plane/models/getversionfilesop.py +3 -22
- cribl_control_plane/models/getversionop.py +1 -19
- cribl_control_plane/models/getversionshowop.py +1 -18
- cribl_control_plane/models/getversionstatusop.py +1 -19
- cribl_control_plane/models/{routecloneconf.py → gitcountresult.py} +4 -4
- cribl_control_plane/models/gitdiffresult.py +16 -0
- cribl_control_plane/models/gitinfo.py +14 -3
- cribl_control_plane/models/gitshowresult.py +19 -0
- 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 +83 -78
- cribl_control_plane/models/inputappscope.py +126 -30
- cribl_control_plane/models/inputazureblob.py +62 -6
- cribl_control_plane/models/inputcloudflarehec.py +518 -0
- cribl_control_plane/models/inputcollection.py +47 -4
- cribl_control_plane/models/inputconfluentcloud.py +258 -32
- cribl_control_plane/models/inputcribl.py +47 -4
- cribl_control_plane/models/inputcriblhttp.py +121 -30
- cribl_control_plane/models/inputcribllakehttp.py +136 -30
- cribl_control_plane/models/inputcriblmetrics.py +48 -4
- cribl_control_plane/models/inputcribltcp.py +122 -24
- cribl_control_plane/models/inputcrowdstrike.py +92 -10
- cribl_control_plane/models/inputdatadogagent.py +98 -24
- cribl_control_plane/models/inputdatagen.py +47 -4
- cribl_control_plane/models/inputedgeprometheus.py +210 -50
- cribl_control_plane/models/inputelastic.py +167 -36
- cribl_control_plane/models/inputeventhub.py +209 -6
- cribl_control_plane/models/inputexec.py +59 -6
- cribl_control_plane/models/inputfile.py +78 -10
- cribl_control_plane/models/inputfirehose.py +97 -24
- cribl_control_plane/models/inputgooglepubsub.py +67 -6
- cribl_control_plane/models/inputgrafana.py +251 -71
- cribl_control_plane/models/inputhttp.py +97 -24
- cribl_control_plane/models/inputhttpraw.py +97 -24
- cribl_control_plane/models/inputjournalfiles.py +48 -4
- cribl_control_plane/models/inputkafka.py +252 -28
- cribl_control_plane/models/inputkinesis.py +130 -14
- cribl_control_plane/models/inputkubeevents.py +47 -4
- cribl_control_plane/models/inputkubelogs.py +61 -8
- cribl_control_plane/models/inputkubemetrics.py +61 -8
- cribl_control_plane/models/inputloki.py +113 -34
- cribl_control_plane/models/inputmetrics.py +97 -24
- cribl_control_plane/models/inputmodeldriventelemetry.py +107 -26
- cribl_control_plane/models/inputmsk.py +145 -32
- cribl_control_plane/models/inputnetflow.py +47 -4
- cribl_control_plane/models/inputoffice365mgmt.py +112 -14
- cribl_control_plane/models/inputoffice365msgtrace.py +114 -16
- cribl_control_plane/models/inputoffice365service.py +114 -16
- cribl_control_plane/models/inputopentelemetry.py +143 -32
- cribl_control_plane/models/inputprometheus.py +193 -44
- cribl_control_plane/models/inputprometheusrw.py +114 -27
- cribl_control_plane/models/inputrawudp.py +47 -4
- cribl_control_plane/models/inputs3.py +78 -8
- cribl_control_plane/models/inputs3inventory.py +92 -10
- cribl_control_plane/models/inputsecuritylake.py +93 -10
- cribl_control_plane/models/inputsnmp.py +112 -21
- cribl_control_plane/models/inputsplunk.py +130 -28
- cribl_control_plane/models/inputsplunkhec.py +119 -29
- cribl_control_plane/models/inputsplunksearch.py +112 -15
- cribl_control_plane/models/inputsqs.py +99 -16
- cribl_control_plane/models/inputsyslog.py +189 -47
- cribl_control_plane/models/inputsystemmetrics.py +202 -32
- cribl_control_plane/models/inputsystemstate.py +61 -8
- cribl_control_plane/models/inputtcp.py +122 -26
- cribl_control_plane/models/inputtcpjson.py +112 -26
- cribl_control_plane/models/inputwef.py +144 -15
- cribl_control_plane/models/inputwindowsmetrics.py +186 -33
- cribl_control_plane/models/inputwineventlogs.py +93 -11
- cribl_control_plane/models/inputwiz.py +173 -8
- cribl_control_plane/models/inputwizwebhook.py +97 -24
- cribl_control_plane/models/inputzscalerhec.py +119 -29
- 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 +14 -19
- cribl_control_plane/models/listmasterworkerentryop.py +1 -19
- 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 +104 -90
- cribl_control_plane/models/outputazureblob.py +171 -18
- cribl_control_plane/models/outputazuredataexplorer.py +514 -90
- cribl_control_plane/models/outputazureeventhub.py +315 -31
- cribl_control_plane/models/outputazurelogs.py +145 -26
- cribl_control_plane/models/outputchronicle.py +532 -0
- cribl_control_plane/models/outputclickhouse.py +205 -34
- cribl_control_plane/models/outputcloudflarer2.py +632 -0
- cribl_control_plane/models/outputcloudwatch.py +129 -23
- cribl_control_plane/models/outputconfluentcloud.py +384 -57
- cribl_control_plane/models/outputcriblhttp.py +198 -31
- cribl_control_plane/models/outputcribllake.py +156 -16
- cribl_control_plane/models/outputcribltcp.py +194 -29
- cribl_control_plane/models/outputcrowdstrikenextgensiem.py +172 -28
- cribl_control_plane/models/outputdatabricks.py +501 -0
- cribl_control_plane/models/outputdatadog.py +199 -31
- cribl_control_plane/models/outputdataset.py +181 -29
- cribl_control_plane/models/outputdiskspool.py +17 -2
- cribl_control_plane/models/outputdls3.py +233 -24
- cribl_control_plane/models/outputdynatracehttp.py +208 -34
- cribl_control_plane/models/outputdynatraceotlp.py +210 -36
- cribl_control_plane/models/outputelastic.py +199 -30
- cribl_control_plane/models/outputelasticcloud.py +171 -26
- cribl_control_plane/models/outputexabeam.py +96 -10
- cribl_control_plane/models/outputfilesystem.py +139 -14
- cribl_control_plane/models/outputgooglechronicle.py +216 -35
- cribl_control_plane/models/outputgooglecloudlogging.py +174 -31
- cribl_control_plane/models/outputgooglecloudstorage.py +215 -24
- cribl_control_plane/models/outputgooglepubsub.py +131 -23
- cribl_control_plane/models/outputgrafanacloud.py +376 -74
- cribl_control_plane/models/outputgraphite.py +128 -25
- cribl_control_plane/models/outputhoneycomb.py +145 -26
- cribl_control_plane/models/outputhumiohec.py +162 -28
- cribl_control_plane/models/outputinfluxdb.py +165 -28
- cribl_control_plane/models/outputkafka.py +375 -52
- cribl_control_plane/models/outputkinesis.py +165 -27
- cribl_control_plane/models/outputloki.py +164 -34
- cribl_control_plane/models/outputmicrosoftfabric.py +540 -0
- cribl_control_plane/models/outputminio.py +225 -25
- cribl_control_plane/models/outputmsk.py +267 -54
- cribl_control_plane/models/outputnewrelic.py +171 -29
- cribl_control_plane/models/outputnewrelicevents.py +163 -28
- cribl_control_plane/models/outputopentelemetry.py +240 -40
- cribl_control_plane/models/outputprometheus.py +145 -26
- cribl_control_plane/models/outputring.py +49 -8
- cribl_control_plane/models/outputs3.py +233 -26
- cribl_control_plane/models/outputsecuritylake.py +179 -18
- cribl_control_plane/models/outputsentinel.py +172 -29
- cribl_control_plane/models/outputsentineloneaisiem.py +178 -32
- cribl_control_plane/models/outputservicenow.py +223 -38
- cribl_control_plane/models/outputsignalfx.py +145 -26
- cribl_control_plane/models/outputsns.py +143 -25
- cribl_control_plane/models/outputsplunk.py +206 -36
- cribl_control_plane/models/outputsplunkhec.py +238 -26
- cribl_control_plane/models/outputsplunklb.py +262 -42
- cribl_control_plane/models/outputsqs.py +163 -33
- cribl_control_plane/models/outputstatsd.py +127 -25
- cribl_control_plane/models/outputstatsdext.py +128 -25
- cribl_control_plane/models/outputsumologic.py +146 -25
- cribl_control_plane/models/outputsyslog.py +318 -46
- cribl_control_plane/models/outputtcpjson.py +186 -32
- cribl_control_plane/models/outputwavefront.py +145 -26
- cribl_control_plane/models/outputwebhook.py +211 -33
- cribl_control_plane/models/outputxsiam.py +143 -26
- cribl_control_plane/models/packinfo.py +8 -5
- cribl_control_plane/models/packinstallinfo.py +11 -8
- cribl_control_plane/models/piisettings_union.py +31 -0
- cribl_control_plane/models/productscore.py +2 -1
- 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/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/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 +19 -20
- cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +19 -21
- cribl_control_plane/models/updatecribllakedatasetbylakeidandidop.py +10 -25
- cribl_control_plane/models/updatehectokenrequest.py +7 -1
- cribl_control_plane/models/updateinputbyidop.py +1 -19
- cribl_control_plane/models/updateinputhectokenbyidandtokenop.py +1 -19
- cribl_control_plane/models/updateoutputbyidop.py +1 -19
- cribl_control_plane/models/updatepacksbyidop.py +1 -20
- cribl_control_plane/models/updatepacksop.py +25 -0
- cribl_control_plane/models/updatepipelinebyidop.py +5 -23
- cribl_control_plane/models/updateroutesbyidop.py +3 -21
- 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/workertypes.py +2 -1
- cribl_control_plane/nodes.py +37 -23
- cribl_control_plane/packs.py +292 -37
- cribl_control_plane/pipelines.py +98 -48
- cribl_control_plane/routes_sdk.py +86 -50
- cribl_control_plane/samples.py +32 -16
- cribl_control_plane/sdk.py +26 -6
- cribl_control_plane/settings.py +20 -0
- cribl_control_plane/sources.py +85 -33
- cribl_control_plane/statuses.py +16 -6
- cribl_control_plane/summaries.py +16 -6
- cribl_control_plane/system_sdk.py +20 -0
- cribl_control_plane/teams.py +16 -6
- cribl_control_plane/tokens.py +49 -21
- cribl_control_plane/utils/__init__.py +15 -3
- 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/unmarshal_json_response.py +15 -1
- cribl_control_plane/versions.py +11 -6
- cribl_control_plane/versions_configs.py +16 -6
- {cribl_control_plane-0.0.39.dist-info → cribl_control_plane-0.4.0b23.dist-info}/METADATA +99 -43
- cribl_control_plane-0.4.0b23.dist-info/RECORD +450 -0
- {cribl_control_plane-0.0.39.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/appmode.py +0 -13
- cribl_control_plane/models/createpipelineop.py +0 -24
- cribl_control_plane/models/createversionpushop.py +0 -23
- cribl_control_plane/models/healthstatus.py +0 -33
- cribl_control_plane-0.0.39.dist-info/RECORD +0 -315
cribl_control_plane/commits.py
CHANGED
|
@@ -14,13 +14,15 @@ from typing import Any, List, Mapping, Optional
|
|
|
14
14
|
class Commits(BaseSDK):
|
|
15
15
|
files: CommitsFiles
|
|
16
16
|
|
|
17
|
-
def __init__(
|
|
18
|
-
|
|
17
|
+
def __init__(
|
|
18
|
+
self, sdk_config: SDKConfiguration, parent_ref: Optional[object] = None
|
|
19
|
+
) -> None:
|
|
20
|
+
BaseSDK.__init__(self, sdk_config, parent_ref=parent_ref)
|
|
19
21
|
self.sdk_configuration = sdk_config
|
|
20
22
|
self._init_sdks()
|
|
21
23
|
|
|
22
24
|
def _init_sdks(self):
|
|
23
|
-
self.files = CommitsFiles(self.sdk_configuration)
|
|
25
|
+
self.files = CommitsFiles(self.sdk_configuration, parent_ref=self.parent_ref)
|
|
24
26
|
|
|
25
27
|
def create(
|
|
26
28
|
self,
|
|
@@ -34,7 +36,7 @@ class Commits(BaseSDK):
|
|
|
34
36
|
server_url: Optional[str] = None,
|
|
35
37
|
timeout_ms: Optional[int] = None,
|
|
36
38
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
37
|
-
) -> models.
|
|
39
|
+
) -> models.CountedGitCommitSummary:
|
|
38
40
|
r"""Create a new commit for pending changes to the Cribl configuration
|
|
39
41
|
|
|
40
42
|
Create a new commit for pending changes to the Cribl configuration. Any merge conflicts indicated in the response must be resolved using Git.</br></br>To commit only a subset of configuration changes, specify the files to include in the commit in the <code>files</code> array.
|
|
@@ -85,16 +87,21 @@ class Commits(BaseSDK):
|
|
|
85
87
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
86
88
|
request.git_commit_params, False, False, "json", models.GitCommitParams
|
|
87
89
|
),
|
|
90
|
+
allow_empty_value=None,
|
|
88
91
|
timeout_ms=timeout_ms,
|
|
89
92
|
)
|
|
90
93
|
|
|
91
94
|
if retries == UNSET:
|
|
92
95
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
93
96
|
retries = self.sdk_configuration.retry_config
|
|
97
|
+
else:
|
|
98
|
+
retries = utils.RetryConfig(
|
|
99
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
100
|
+
)
|
|
94
101
|
|
|
95
102
|
retry_config = None
|
|
96
103
|
if isinstance(retries, utils.RetryConfig):
|
|
97
|
-
retry_config = (retries, ["429"
|
|
104
|
+
retry_config = (retries, ["429"])
|
|
98
105
|
|
|
99
106
|
http_res = self.do_request(
|
|
100
107
|
hook_ctx=HookContext(
|
|
@@ -113,7 +120,7 @@ class Commits(BaseSDK):
|
|
|
113
120
|
|
|
114
121
|
response_data: Any = None
|
|
115
122
|
if utils.match_response(http_res, "200", "application/json"):
|
|
116
|
-
return unmarshal_json_response(models.
|
|
123
|
+
return unmarshal_json_response(models.CountedGitCommitSummary, http_res)
|
|
117
124
|
if utils.match_response(http_res, "500", "application/json"):
|
|
118
125
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
119
126
|
raise errors.Error(response_data, http_res)
|
|
@@ -138,7 +145,7 @@ class Commits(BaseSDK):
|
|
|
138
145
|
server_url: Optional[str] = None,
|
|
139
146
|
timeout_ms: Optional[int] = None,
|
|
140
147
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
141
|
-
) -> models.
|
|
148
|
+
) -> models.CountedGitCommitSummary:
|
|
142
149
|
r"""Create a new commit for pending changes to the Cribl configuration
|
|
143
150
|
|
|
144
151
|
Create a new commit for pending changes to the Cribl configuration. Any merge conflicts indicated in the response must be resolved using Git.</br></br>To commit only a subset of configuration changes, specify the files to include in the commit in the <code>files</code> array.
|
|
@@ -189,16 +196,21 @@ class Commits(BaseSDK):
|
|
|
189
196
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
190
197
|
request.git_commit_params, False, False, "json", models.GitCommitParams
|
|
191
198
|
),
|
|
199
|
+
allow_empty_value=None,
|
|
192
200
|
timeout_ms=timeout_ms,
|
|
193
201
|
)
|
|
194
202
|
|
|
195
203
|
if retries == UNSET:
|
|
196
204
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
197
205
|
retries = self.sdk_configuration.retry_config
|
|
206
|
+
else:
|
|
207
|
+
retries = utils.RetryConfig(
|
|
208
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
209
|
+
)
|
|
198
210
|
|
|
199
211
|
retry_config = None
|
|
200
212
|
if isinstance(retries, utils.RetryConfig):
|
|
201
|
-
retry_config = (retries, ["429"
|
|
213
|
+
retry_config = (retries, ["429"])
|
|
202
214
|
|
|
203
215
|
http_res = await self.do_request_async(
|
|
204
216
|
hook_ctx=HookContext(
|
|
@@ -217,7 +229,7 @@ class Commits(BaseSDK):
|
|
|
217
229
|
|
|
218
230
|
response_data: Any = None
|
|
219
231
|
if utils.match_response(http_res, "200", "application/json"):
|
|
220
|
-
return unmarshal_json_response(models.
|
|
232
|
+
return unmarshal_json_response(models.CountedGitCommitSummary, http_res)
|
|
221
233
|
if utils.match_response(http_res, "500", "application/json"):
|
|
222
234
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
223
235
|
raise errors.Error(response_data, http_res)
|
|
@@ -241,7 +253,7 @@ class Commits(BaseSDK):
|
|
|
241
253
|
server_url: Optional[str] = None,
|
|
242
254
|
timeout_ms: Optional[int] = None,
|
|
243
255
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
244
|
-
) -> models.
|
|
256
|
+
) -> models.CountedGitDiffResult:
|
|
245
257
|
r"""Get the diff for a commit
|
|
246
258
|
|
|
247
259
|
Get the diff for a commit. Default is the latest commit (HEAD).
|
|
@@ -285,16 +297,21 @@ class Commits(BaseSDK):
|
|
|
285
297
|
accept_header_value="application/json",
|
|
286
298
|
http_headers=http_headers,
|
|
287
299
|
security=self.sdk_configuration.security,
|
|
300
|
+
allow_empty_value=None,
|
|
288
301
|
timeout_ms=timeout_ms,
|
|
289
302
|
)
|
|
290
303
|
|
|
291
304
|
if retries == UNSET:
|
|
292
305
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
293
306
|
retries = self.sdk_configuration.retry_config
|
|
307
|
+
else:
|
|
308
|
+
retries = utils.RetryConfig(
|
|
309
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
310
|
+
)
|
|
294
311
|
|
|
295
312
|
retry_config = None
|
|
296
313
|
if isinstance(retries, utils.RetryConfig):
|
|
297
|
-
retry_config = (retries, ["429"
|
|
314
|
+
retry_config = (retries, ["429"])
|
|
298
315
|
|
|
299
316
|
http_res = self.do_request(
|
|
300
317
|
hook_ctx=HookContext(
|
|
@@ -313,7 +330,7 @@ class Commits(BaseSDK):
|
|
|
313
330
|
|
|
314
331
|
response_data: Any = None
|
|
315
332
|
if utils.match_response(http_res, "200", "application/json"):
|
|
316
|
-
return unmarshal_json_response(models.
|
|
333
|
+
return unmarshal_json_response(models.CountedGitDiffResult, http_res)
|
|
317
334
|
if utils.match_response(http_res, "500", "application/json"):
|
|
318
335
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
319
336
|
raise errors.Error(response_data, http_res)
|
|
@@ -337,7 +354,7 @@ class Commits(BaseSDK):
|
|
|
337
354
|
server_url: Optional[str] = None,
|
|
338
355
|
timeout_ms: Optional[int] = None,
|
|
339
356
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
340
|
-
) -> models.
|
|
357
|
+
) -> models.CountedGitDiffResult:
|
|
341
358
|
r"""Get the diff for a commit
|
|
342
359
|
|
|
343
360
|
Get the diff for a commit. Default is the latest commit (HEAD).
|
|
@@ -381,16 +398,21 @@ class Commits(BaseSDK):
|
|
|
381
398
|
accept_header_value="application/json",
|
|
382
399
|
http_headers=http_headers,
|
|
383
400
|
security=self.sdk_configuration.security,
|
|
401
|
+
allow_empty_value=None,
|
|
384
402
|
timeout_ms=timeout_ms,
|
|
385
403
|
)
|
|
386
404
|
|
|
387
405
|
if retries == UNSET:
|
|
388
406
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
389
407
|
retries = self.sdk_configuration.retry_config
|
|
408
|
+
else:
|
|
409
|
+
retries = utils.RetryConfig(
|
|
410
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
411
|
+
)
|
|
390
412
|
|
|
391
413
|
retry_config = None
|
|
392
414
|
if isinstance(retries, utils.RetryConfig):
|
|
393
|
-
retry_config = (retries, ["429"
|
|
415
|
+
retry_config = (retries, ["429"])
|
|
394
416
|
|
|
395
417
|
http_res = await self.do_request_async(
|
|
396
418
|
hook_ctx=HookContext(
|
|
@@ -409,7 +431,7 @@ class Commits(BaseSDK):
|
|
|
409
431
|
|
|
410
432
|
response_data: Any = None
|
|
411
433
|
if utils.match_response(http_res, "200", "application/json"):
|
|
412
|
-
return unmarshal_json_response(models.
|
|
434
|
+
return unmarshal_json_response(models.CountedGitDiffResult, http_res)
|
|
413
435
|
if utils.match_response(http_res, "500", "application/json"):
|
|
414
436
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
415
437
|
raise errors.Error(response_data, http_res)
|
|
@@ -431,7 +453,7 @@ class Commits(BaseSDK):
|
|
|
431
453
|
server_url: Optional[str] = None,
|
|
432
454
|
timeout_ms: Optional[int] = None,
|
|
433
455
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
434
|
-
) -> models.
|
|
456
|
+
) -> models.CountedGitLogResult:
|
|
435
457
|
r"""List the commit history
|
|
436
458
|
|
|
437
459
|
List the commit history.</br></br>Analogous to <code>git log</code> for the Cribl configuration, allowing you to audit and review changes over time.
|
|
@@ -471,16 +493,21 @@ class Commits(BaseSDK):
|
|
|
471
493
|
accept_header_value="application/json",
|
|
472
494
|
http_headers=http_headers,
|
|
473
495
|
security=self.sdk_configuration.security,
|
|
496
|
+
allow_empty_value=None,
|
|
474
497
|
timeout_ms=timeout_ms,
|
|
475
498
|
)
|
|
476
499
|
|
|
477
500
|
if retries == UNSET:
|
|
478
501
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
479
502
|
retries = self.sdk_configuration.retry_config
|
|
503
|
+
else:
|
|
504
|
+
retries = utils.RetryConfig(
|
|
505
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
506
|
+
)
|
|
480
507
|
|
|
481
508
|
retry_config = None
|
|
482
509
|
if isinstance(retries, utils.RetryConfig):
|
|
483
|
-
retry_config = (retries, ["429"
|
|
510
|
+
retry_config = (retries, ["429"])
|
|
484
511
|
|
|
485
512
|
http_res = self.do_request(
|
|
486
513
|
hook_ctx=HookContext(
|
|
@@ -499,7 +526,7 @@ class Commits(BaseSDK):
|
|
|
499
526
|
|
|
500
527
|
response_data: Any = None
|
|
501
528
|
if utils.match_response(http_res, "200", "application/json"):
|
|
502
|
-
return unmarshal_json_response(models.
|
|
529
|
+
return unmarshal_json_response(models.CountedGitLogResult, http_res)
|
|
503
530
|
if utils.match_response(http_res, "500", "application/json"):
|
|
504
531
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
505
532
|
raise errors.Error(response_data, http_res)
|
|
@@ -521,7 +548,7 @@ class Commits(BaseSDK):
|
|
|
521
548
|
server_url: Optional[str] = None,
|
|
522
549
|
timeout_ms: Optional[int] = None,
|
|
523
550
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
524
|
-
) -> models.
|
|
551
|
+
) -> models.CountedGitLogResult:
|
|
525
552
|
r"""List the commit history
|
|
526
553
|
|
|
527
554
|
List the commit history.</br></br>Analogous to <code>git log</code> for the Cribl configuration, allowing you to audit and review changes over time.
|
|
@@ -561,16 +588,21 @@ class Commits(BaseSDK):
|
|
|
561
588
|
accept_header_value="application/json",
|
|
562
589
|
http_headers=http_headers,
|
|
563
590
|
security=self.sdk_configuration.security,
|
|
591
|
+
allow_empty_value=None,
|
|
564
592
|
timeout_ms=timeout_ms,
|
|
565
593
|
)
|
|
566
594
|
|
|
567
595
|
if retries == UNSET:
|
|
568
596
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
569
597
|
retries = self.sdk_configuration.retry_config
|
|
598
|
+
else:
|
|
599
|
+
retries = utils.RetryConfig(
|
|
600
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
601
|
+
)
|
|
570
602
|
|
|
571
603
|
retry_config = None
|
|
572
604
|
if isinstance(retries, utils.RetryConfig):
|
|
573
|
-
retry_config = (retries, ["429"
|
|
605
|
+
retry_config = (retries, ["429"])
|
|
574
606
|
|
|
575
607
|
http_res = await self.do_request_async(
|
|
576
608
|
hook_ctx=HookContext(
|
|
@@ -589,7 +621,7 @@ class Commits(BaseSDK):
|
|
|
589
621
|
|
|
590
622
|
response_data: Any = None
|
|
591
623
|
if utils.match_response(http_res, "200", "application/json"):
|
|
592
|
-
return unmarshal_json_response(models.
|
|
624
|
+
return unmarshal_json_response(models.CountedGitLogResult, http_res)
|
|
593
625
|
if utils.match_response(http_res, "500", "application/json"):
|
|
594
626
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
595
627
|
raise errors.Error(response_data, http_res)
|
|
@@ -609,7 +641,7 @@ class Commits(BaseSDK):
|
|
|
609
641
|
server_url: Optional[str] = None,
|
|
610
642
|
timeout_ms: Optional[int] = None,
|
|
611
643
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
612
|
-
) -> models.
|
|
644
|
+
) -> models.CountedString:
|
|
613
645
|
r"""Push local commits to the remote repository
|
|
614
646
|
|
|
615
647
|
Push all local commits from the local repository to the remote repository.
|
|
@@ -641,16 +673,21 @@ class Commits(BaseSDK):
|
|
|
641
673
|
accept_header_value="application/json",
|
|
642
674
|
http_headers=http_headers,
|
|
643
675
|
security=self.sdk_configuration.security,
|
|
676
|
+
allow_empty_value=None,
|
|
644
677
|
timeout_ms=timeout_ms,
|
|
645
678
|
)
|
|
646
679
|
|
|
647
680
|
if retries == UNSET:
|
|
648
681
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
649
682
|
retries = self.sdk_configuration.retry_config
|
|
683
|
+
else:
|
|
684
|
+
retries = utils.RetryConfig(
|
|
685
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
686
|
+
)
|
|
650
687
|
|
|
651
688
|
retry_config = None
|
|
652
689
|
if isinstance(retries, utils.RetryConfig):
|
|
653
|
-
retry_config = (retries, ["429"
|
|
690
|
+
retry_config = (retries, ["429"])
|
|
654
691
|
|
|
655
692
|
http_res = self.do_request(
|
|
656
693
|
hook_ctx=HookContext(
|
|
@@ -669,7 +706,7 @@ class Commits(BaseSDK):
|
|
|
669
706
|
|
|
670
707
|
response_data: Any = None
|
|
671
708
|
if utils.match_response(http_res, "200", "application/json"):
|
|
672
|
-
return unmarshal_json_response(models.
|
|
709
|
+
return unmarshal_json_response(models.CountedString, http_res)
|
|
673
710
|
if utils.match_response(http_res, "500", "application/json"):
|
|
674
711
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
675
712
|
raise errors.Error(response_data, http_res)
|
|
@@ -689,7 +726,7 @@ class Commits(BaseSDK):
|
|
|
689
726
|
server_url: Optional[str] = None,
|
|
690
727
|
timeout_ms: Optional[int] = None,
|
|
691
728
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
692
|
-
) -> models.
|
|
729
|
+
) -> models.CountedString:
|
|
693
730
|
r"""Push local commits to the remote repository
|
|
694
731
|
|
|
695
732
|
Push all local commits from the local repository to the remote repository.
|
|
@@ -721,16 +758,21 @@ class Commits(BaseSDK):
|
|
|
721
758
|
accept_header_value="application/json",
|
|
722
759
|
http_headers=http_headers,
|
|
723
760
|
security=self.sdk_configuration.security,
|
|
761
|
+
allow_empty_value=None,
|
|
724
762
|
timeout_ms=timeout_ms,
|
|
725
763
|
)
|
|
726
764
|
|
|
727
765
|
if retries == UNSET:
|
|
728
766
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
729
767
|
retries = self.sdk_configuration.retry_config
|
|
768
|
+
else:
|
|
769
|
+
retries = utils.RetryConfig(
|
|
770
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
771
|
+
)
|
|
730
772
|
|
|
731
773
|
retry_config = None
|
|
732
774
|
if isinstance(retries, utils.RetryConfig):
|
|
733
|
-
retry_config = (retries, ["429"
|
|
775
|
+
retry_config = (retries, ["429"])
|
|
734
776
|
|
|
735
777
|
http_res = await self.do_request_async(
|
|
736
778
|
hook_ctx=HookContext(
|
|
@@ -749,7 +791,7 @@ class Commits(BaseSDK):
|
|
|
749
791
|
|
|
750
792
|
response_data: Any = None
|
|
751
793
|
if utils.match_response(http_res, "200", "application/json"):
|
|
752
|
-
return unmarshal_json_response(models.
|
|
794
|
+
return unmarshal_json_response(models.CountedString, http_res)
|
|
753
795
|
if utils.match_response(http_res, "500", "application/json"):
|
|
754
796
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
755
797
|
raise errors.Error(response_data, http_res)
|
|
@@ -773,13 +815,13 @@ class Commits(BaseSDK):
|
|
|
773
815
|
server_url: Optional[str] = None,
|
|
774
816
|
timeout_ms: Optional[int] = None,
|
|
775
817
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
776
|
-
) -> models.
|
|
818
|
+
) -> models.CountedGitRevertResult:
|
|
777
819
|
r"""Revert a commit in the local repository
|
|
778
820
|
|
|
779
821
|
Revert a commit in the local repository.
|
|
780
822
|
|
|
781
823
|
:param commit:
|
|
782
|
-
:param group_id: Group
|
|
824
|
+
:param group_id: The <code>id</code> of the Worker Group or Edge Fleet to revert the commit for. Required in Distributed deployments. Omit in Single-instance deployments.
|
|
783
825
|
:param force:
|
|
784
826
|
:param message:
|
|
785
827
|
:param retries: Override the default retry configuration for this method
|
|
@@ -822,16 +864,21 @@ class Commits(BaseSDK):
|
|
|
822
864
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
823
865
|
request.git_revert_params, False, False, "json", models.GitRevertParams
|
|
824
866
|
),
|
|
867
|
+
allow_empty_value=None,
|
|
825
868
|
timeout_ms=timeout_ms,
|
|
826
869
|
)
|
|
827
870
|
|
|
828
871
|
if retries == UNSET:
|
|
829
872
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
830
873
|
retries = self.sdk_configuration.retry_config
|
|
874
|
+
else:
|
|
875
|
+
retries = utils.RetryConfig(
|
|
876
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
877
|
+
)
|
|
831
878
|
|
|
832
879
|
retry_config = None
|
|
833
880
|
if isinstance(retries, utils.RetryConfig):
|
|
834
|
-
retry_config = (retries, ["429"
|
|
881
|
+
retry_config = (retries, ["429"])
|
|
835
882
|
|
|
836
883
|
http_res = self.do_request(
|
|
837
884
|
hook_ctx=HookContext(
|
|
@@ -850,7 +897,7 @@ class Commits(BaseSDK):
|
|
|
850
897
|
|
|
851
898
|
response_data: Any = None
|
|
852
899
|
if utils.match_response(http_res, "200", "application/json"):
|
|
853
|
-
return unmarshal_json_response(models.
|
|
900
|
+
return unmarshal_json_response(models.CountedGitRevertResult, http_res)
|
|
854
901
|
if utils.match_response(http_res, "500", "application/json"):
|
|
855
902
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
856
903
|
raise errors.Error(response_data, http_res)
|
|
@@ -874,13 +921,13 @@ class Commits(BaseSDK):
|
|
|
874
921
|
server_url: Optional[str] = None,
|
|
875
922
|
timeout_ms: Optional[int] = None,
|
|
876
923
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
877
|
-
) -> models.
|
|
924
|
+
) -> models.CountedGitRevertResult:
|
|
878
925
|
r"""Revert a commit in the local repository
|
|
879
926
|
|
|
880
927
|
Revert a commit in the local repository.
|
|
881
928
|
|
|
882
929
|
:param commit:
|
|
883
|
-
:param group_id: Group
|
|
930
|
+
:param group_id: The <code>id</code> of the Worker Group or Edge Fleet to revert the commit for. Required in Distributed deployments. Omit in Single-instance deployments.
|
|
884
931
|
:param force:
|
|
885
932
|
:param message:
|
|
886
933
|
:param retries: Override the default retry configuration for this method
|
|
@@ -923,16 +970,21 @@ class Commits(BaseSDK):
|
|
|
923
970
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
924
971
|
request.git_revert_params, False, False, "json", models.GitRevertParams
|
|
925
972
|
),
|
|
973
|
+
allow_empty_value=None,
|
|
926
974
|
timeout_ms=timeout_ms,
|
|
927
975
|
)
|
|
928
976
|
|
|
929
977
|
if retries == UNSET:
|
|
930
978
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
931
979
|
retries = self.sdk_configuration.retry_config
|
|
980
|
+
else:
|
|
981
|
+
retries = utils.RetryConfig(
|
|
982
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
983
|
+
)
|
|
932
984
|
|
|
933
985
|
retry_config = None
|
|
934
986
|
if isinstance(retries, utils.RetryConfig):
|
|
935
|
-
retry_config = (retries, ["429"
|
|
987
|
+
retry_config = (retries, ["429"])
|
|
936
988
|
|
|
937
989
|
http_res = await self.do_request_async(
|
|
938
990
|
hook_ctx=HookContext(
|
|
@@ -951,7 +1003,7 @@ class Commits(BaseSDK):
|
|
|
951
1003
|
|
|
952
1004
|
response_data: Any = None
|
|
953
1005
|
if utils.match_response(http_res, "200", "application/json"):
|
|
954
|
-
return unmarshal_json_response(models.
|
|
1006
|
+
return unmarshal_json_response(models.CountedGitRevertResult, http_res)
|
|
955
1007
|
if utils.match_response(http_res, "500", "application/json"):
|
|
956
1008
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
957
1009
|
raise errors.Error(response_data, http_res)
|
|
@@ -975,7 +1027,7 @@ class Commits(BaseSDK):
|
|
|
975
1027
|
server_url: Optional[str] = None,
|
|
976
1028
|
timeout_ms: Optional[int] = None,
|
|
977
1029
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
978
|
-
) -> models.
|
|
1030
|
+
) -> models.CountedGitShowResult:
|
|
979
1031
|
r"""Get the diff and log message for a commit
|
|
980
1032
|
|
|
981
1033
|
Get the diff and log message for a commit. Default is the latest commit (HEAD).
|
|
@@ -1019,16 +1071,21 @@ class Commits(BaseSDK):
|
|
|
1019
1071
|
accept_header_value="application/json",
|
|
1020
1072
|
http_headers=http_headers,
|
|
1021
1073
|
security=self.sdk_configuration.security,
|
|
1074
|
+
allow_empty_value=None,
|
|
1022
1075
|
timeout_ms=timeout_ms,
|
|
1023
1076
|
)
|
|
1024
1077
|
|
|
1025
1078
|
if retries == UNSET:
|
|
1026
1079
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
1027
1080
|
retries = self.sdk_configuration.retry_config
|
|
1081
|
+
else:
|
|
1082
|
+
retries = utils.RetryConfig(
|
|
1083
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
1084
|
+
)
|
|
1028
1085
|
|
|
1029
1086
|
retry_config = None
|
|
1030
1087
|
if isinstance(retries, utils.RetryConfig):
|
|
1031
|
-
retry_config = (retries, ["429"
|
|
1088
|
+
retry_config = (retries, ["429"])
|
|
1032
1089
|
|
|
1033
1090
|
http_res = self.do_request(
|
|
1034
1091
|
hook_ctx=HookContext(
|
|
@@ -1047,7 +1104,7 @@ class Commits(BaseSDK):
|
|
|
1047
1104
|
|
|
1048
1105
|
response_data: Any = None
|
|
1049
1106
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1050
|
-
return unmarshal_json_response(models.
|
|
1107
|
+
return unmarshal_json_response(models.CountedGitShowResult, http_res)
|
|
1051
1108
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1052
1109
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1053
1110
|
raise errors.Error(response_data, http_res)
|
|
@@ -1071,7 +1128,7 @@ class Commits(BaseSDK):
|
|
|
1071
1128
|
server_url: Optional[str] = None,
|
|
1072
1129
|
timeout_ms: Optional[int] = None,
|
|
1073
1130
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1074
|
-
) -> models.
|
|
1131
|
+
) -> models.CountedGitShowResult:
|
|
1075
1132
|
r"""Get the diff and log message for a commit
|
|
1076
1133
|
|
|
1077
1134
|
Get the diff and log message for a commit. Default is the latest commit (HEAD).
|
|
@@ -1115,16 +1172,21 @@ class Commits(BaseSDK):
|
|
|
1115
1172
|
accept_header_value="application/json",
|
|
1116
1173
|
http_headers=http_headers,
|
|
1117
1174
|
security=self.sdk_configuration.security,
|
|
1175
|
+
allow_empty_value=None,
|
|
1118
1176
|
timeout_ms=timeout_ms,
|
|
1119
1177
|
)
|
|
1120
1178
|
|
|
1121
1179
|
if retries == UNSET:
|
|
1122
1180
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
1123
1181
|
retries = self.sdk_configuration.retry_config
|
|
1182
|
+
else:
|
|
1183
|
+
retries = utils.RetryConfig(
|
|
1184
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
1185
|
+
)
|
|
1124
1186
|
|
|
1125
1187
|
retry_config = None
|
|
1126
1188
|
if isinstance(retries, utils.RetryConfig):
|
|
1127
|
-
retry_config = (retries, ["429"
|
|
1189
|
+
retry_config = (retries, ["429"])
|
|
1128
1190
|
|
|
1129
1191
|
http_res = await self.do_request_async(
|
|
1130
1192
|
hook_ctx=HookContext(
|
|
@@ -1143,7 +1205,7 @@ class Commits(BaseSDK):
|
|
|
1143
1205
|
|
|
1144
1206
|
response_data: Any = None
|
|
1145
1207
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1146
|
-
return unmarshal_json_response(models.
|
|
1208
|
+
return unmarshal_json_response(models.CountedGitShowResult, http_res)
|
|
1147
1209
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1148
1210
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1149
1211
|
raise errors.Error(response_data, http_res)
|
|
@@ -1164,7 +1226,7 @@ class Commits(BaseSDK):
|
|
|
1164
1226
|
server_url: Optional[str] = None,
|
|
1165
1227
|
timeout_ms: Optional[int] = None,
|
|
1166
1228
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1167
|
-
) -> models.
|
|
1229
|
+
) -> models.CountedObject:
|
|
1168
1230
|
r"""Discard uncommitted (staged) changes
|
|
1169
1231
|
|
|
1170
1232
|
Discard all uncommitted (staged) configuration changes, resetting the working directory to the last committed state. Use only if you are certain that you do not need to preserve your local changes.
|
|
@@ -1202,16 +1264,21 @@ class Commits(BaseSDK):
|
|
|
1202
1264
|
accept_header_value="application/json",
|
|
1203
1265
|
http_headers=http_headers,
|
|
1204
1266
|
security=self.sdk_configuration.security,
|
|
1267
|
+
allow_empty_value=None,
|
|
1205
1268
|
timeout_ms=timeout_ms,
|
|
1206
1269
|
)
|
|
1207
1270
|
|
|
1208
1271
|
if retries == UNSET:
|
|
1209
1272
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
1210
1273
|
retries = self.sdk_configuration.retry_config
|
|
1274
|
+
else:
|
|
1275
|
+
retries = utils.RetryConfig(
|
|
1276
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
1277
|
+
)
|
|
1211
1278
|
|
|
1212
1279
|
retry_config = None
|
|
1213
1280
|
if isinstance(retries, utils.RetryConfig):
|
|
1214
|
-
retry_config = (retries, ["429"
|
|
1281
|
+
retry_config = (retries, ["429"])
|
|
1215
1282
|
|
|
1216
1283
|
http_res = self.do_request(
|
|
1217
1284
|
hook_ctx=HookContext(
|
|
@@ -1230,7 +1297,7 @@ class Commits(BaseSDK):
|
|
|
1230
1297
|
|
|
1231
1298
|
response_data: Any = None
|
|
1232
1299
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1233
|
-
return unmarshal_json_response(models.
|
|
1300
|
+
return unmarshal_json_response(models.CountedObject, http_res)
|
|
1234
1301
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1235
1302
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1236
1303
|
raise errors.Error(response_data, http_res)
|
|
@@ -1251,7 +1318,7 @@ class Commits(BaseSDK):
|
|
|
1251
1318
|
server_url: Optional[str] = None,
|
|
1252
1319
|
timeout_ms: Optional[int] = None,
|
|
1253
1320
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1254
|
-
) -> models.
|
|
1321
|
+
) -> models.CountedObject:
|
|
1255
1322
|
r"""Discard uncommitted (staged) changes
|
|
1256
1323
|
|
|
1257
1324
|
Discard all uncommitted (staged) configuration changes, resetting the working directory to the last committed state. Use only if you are certain that you do not need to preserve your local changes.
|
|
@@ -1289,16 +1356,21 @@ class Commits(BaseSDK):
|
|
|
1289
1356
|
accept_header_value="application/json",
|
|
1290
1357
|
http_headers=http_headers,
|
|
1291
1358
|
security=self.sdk_configuration.security,
|
|
1359
|
+
allow_empty_value=None,
|
|
1292
1360
|
timeout_ms=timeout_ms,
|
|
1293
1361
|
)
|
|
1294
1362
|
|
|
1295
1363
|
if retries == UNSET:
|
|
1296
1364
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
1297
1365
|
retries = self.sdk_configuration.retry_config
|
|
1366
|
+
else:
|
|
1367
|
+
retries = utils.RetryConfig(
|
|
1368
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
1369
|
+
)
|
|
1298
1370
|
|
|
1299
1371
|
retry_config = None
|
|
1300
1372
|
if isinstance(retries, utils.RetryConfig):
|
|
1301
|
-
retry_config = (retries, ["429"
|
|
1373
|
+
retry_config = (retries, ["429"])
|
|
1302
1374
|
|
|
1303
1375
|
http_res = await self.do_request_async(
|
|
1304
1376
|
hook_ctx=HookContext(
|
|
@@ -1317,7 +1389,7 @@ class Commits(BaseSDK):
|
|
|
1317
1389
|
|
|
1318
1390
|
response_data: Any = None
|
|
1319
1391
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1320
|
-
return unmarshal_json_response(models.
|
|
1392
|
+
return unmarshal_json_response(models.CountedObject, http_res)
|
|
1321
1393
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1322
1394
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1323
1395
|
raise errors.Error(response_data, http_res)
|