cribl-control-plane 0.2.1rc4__py3-none-any.whl → 0.2.1rc11__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.
Potentially problematic release.
This version of cribl-control-plane might be problematic. Click here for more details.
- cribl_control_plane/_version.py +4 -4
- cribl_control_plane/acl.py +4 -4
- cribl_control_plane/branches.py +4 -4
- cribl_control_plane/commits.py +28 -28
- cribl_control_plane/commits_files.py +8 -8
- cribl_control_plane/configs_versions.py +4 -8
- cribl_control_plane/destinations.py +20 -20
- cribl_control_plane/destinations_pq.py +8 -8
- cribl_control_plane/groups_sdk.py +26 -50
- cribl_control_plane/hectokens.py +8 -16
- cribl_control_plane/lakedatasets.py +48 -40
- cribl_control_plane/models/__init__.py +260 -393
- cribl_control_plane/models/cacheconnection.py +20 -0
- cribl_control_plane/models/configgroup.py +20 -1
- cribl_control_plane/models/configgroupcloud.py +11 -1
- cribl_control_plane/models/{getversionbranchop.py → countedlistbranchinfo.py} +2 -6
- cribl_control_plane/models/countedlistconfiggroup.py +20 -0
- cribl_control_plane/models/countedlistcribllakedataset.py +20 -0
- cribl_control_plane/models/countedlistdistributedsummary.py +20 -0
- cribl_control_plane/models/countedlistgitcommitsummary.py +20 -0
- cribl_control_plane/models/countedlistgitcountresult.py +20 -0
- cribl_control_plane/models/{createinputop.py → countedlistgitdiffresult.py} +5 -9
- cribl_control_plane/models/countedlistgitfilesresponse.py +20 -0
- cribl_control_plane/models/{getversioninfoop.py → countedlistgitinfo.py} +2 -6
- cribl_control_plane/models/countedlistgitlogresult.py +20 -0
- cribl_control_plane/models/countedlistgitrevertresult.py +20 -0
- cribl_control_plane/models/countedlistgitshowresult.py +20 -0
- cribl_control_plane/models/countedlistgitstatusresult.py +20 -0
- cribl_control_plane/models/{listinputop.py → countedlistinput.py} +2 -6
- cribl_control_plane/models/countedlistinputsplunkhec.py +20 -0
- cribl_control_plane/models/countedlistjobinfo.py +20 -0
- cribl_control_plane/models/countedlistmasterworkerentry.py +20 -0
- cribl_control_plane/models/countedlistnumber.py +19 -0
- cribl_control_plane/models/countedlistobject.py +19 -0
- cribl_control_plane/models/{listoutputop.py → countedlistoutput.py} +2 -6
- cribl_control_plane/models/{createoutputop.py → countedlistoutputsamplesresponse.py} +5 -9
- cribl_control_plane/models/countedlistoutputtestresponse.py +20 -0
- cribl_control_plane/models/countedlistpackinfo.py +20 -0
- cribl_control_plane/models/{createpacksop.py → countedlistpackinstallinfo.py} +2 -6
- cribl_control_plane/models/{listpipelineop.py → countedlistpipeline.py} +2 -6
- cribl_control_plane/models/{listroutesop.py → countedlistroutes.py} +2 -6
- cribl_control_plane/models/{createversionpushop.py → countedliststring.py} +2 -6
- cribl_control_plane/models/{createpipelineop.py → countedlistteamaccesscontrollist.py} +5 -9
- cribl_control_plane/models/countedlistuseraccesscontrollist.py +20 -0
- cribl_control_plane/models/createconfiggroupbyproductop.py +13 -21
- cribl_control_plane/models/createcribllakedatasetbylakeidop.py +1 -19
- cribl_control_plane/models/createinputhectokenbyidop.py +1 -20
- cribl_control_plane/models/createoutputtestbyidop.py +1 -20
- cribl_control_plane/models/createroutesappendbyidop.py +2 -20
- cribl_control_plane/models/createversioncommitop.py +1 -19
- cribl_control_plane/models/createversionrevertop.py +1 -19
- cribl_control_plane/models/createversionundoop.py +1 -18
- cribl_control_plane/models/cribllakedataset.py +15 -1
- cribl_control_plane/models/cribllakedatasetupdate.py +15 -1
- cribl_control_plane/models/datasetmetadata.py +11 -1
- cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +11 -19
- 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 +1 -20
- cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +20 -18
- cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +20 -18
- cribl_control_plane/models/getconfiggroupbyproductandidop.py +11 -18
- cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +11 -18
- cribl_control_plane/models/getcribllakedatasetbylakeidandidop.py +1 -20
- cribl_control_plane/models/getcribllakedatasetbylakeidop.py +1 -20
- 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 -20
- 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 +1 -20
- cribl_control_plane/models/getroutesbyidop.py +1 -20
- cribl_control_plane/models/getsummaryop.py +11 -18
- cribl_control_plane/models/getversioncountop.py +1 -19
- cribl_control_plane/models/getversiondiffop.py +1 -19
- cribl_control_plane/models/getversionfilesop.py +1 -19
- cribl_control_plane/models/getversionop.py +1 -19
- cribl_control_plane/models/getversionshowop.py +1 -19
- cribl_control_plane/models/getversionstatusop.py +1 -19
- cribl_control_plane/models/groupcreaterequest.py +20 -1
- cribl_control_plane/models/hbcriblinfo.py +11 -1
- cribl_control_plane/models/healthserverstatus.py +20 -1
- cribl_control_plane/models/input.py +2 -2
- cribl_control_plane/models/inputappscope.py +56 -1
- cribl_control_plane/models/inputazureblob.py +29 -1
- cribl_control_plane/models/inputcollection.py +20 -1
- cribl_control_plane/models/inputconfluentcloud.py +78 -1
- cribl_control_plane/models/inputcribl.py +20 -1
- cribl_control_plane/models/inputcriblhttp.py +62 -7
- cribl_control_plane/models/inputcribllakehttp.py +38 -1
- cribl_control_plane/models/inputcriblmetrics.py +20 -1
- cribl_control_plane/models/inputcribltcp.py +63 -1
- cribl_control_plane/models/inputcrowdstrike.py +47 -1
- cribl_control_plane/models/inputdatadogagent.py +38 -1
- cribl_control_plane/models/inputdatagen.py +20 -1
- cribl_control_plane/models/inputedgeprometheus.py +94 -1
- cribl_control_plane/models/inputelastic.py +65 -1
- cribl_control_plane/models/inputeventhub.py +58 -1
- cribl_control_plane/models/inputexec.py +29 -1
- cribl_control_plane/models/inputfile.py +40 -7
- cribl_control_plane/models/inputfirehose.py +38 -1
- cribl_control_plane/models/inputgooglepubsub.py +29 -1
- cribl_control_plane/models/inputgrafana.py +110 -1
- cribl_control_plane/models/inputhttp.py +38 -1
- cribl_control_plane/models/inputhttpraw.py +38 -1
- cribl_control_plane/models/inputjournalfiles.py +20 -1
- cribl_control_plane/models/inputkafka.py +74 -1
- cribl_control_plane/models/inputkinesis.py +65 -1
- cribl_control_plane/models/inputkubeevents.py +20 -1
- cribl_control_plane/models/inputkubelogs.py +29 -1
- cribl_control_plane/models/inputkubemetrics.py +29 -1
- cribl_control_plane/models/inputloki.py +47 -1
- cribl_control_plane/models/inputmetrics.py +38 -1
- cribl_control_plane/models/inputmodeldriventelemetry.py +38 -1
- cribl_control_plane/models/inputmsk.py +74 -1
- cribl_control_plane/models/inputnetflow.py +20 -1
- cribl_control_plane/models/inputoffice365mgmt.py +56 -1
- cribl_control_plane/models/inputoffice365msgtrace.py +56 -1
- cribl_control_plane/models/inputoffice365service.py +56 -1
- cribl_control_plane/models/inputopentelemetry.py +65 -1
- cribl_control_plane/models/inputprometheus.py +87 -1
- cribl_control_plane/models/inputprometheusrw.py +47 -1
- cribl_control_plane/models/inputrawudp.py +20 -1
- cribl_control_plane/models/inputs3.py +38 -1
- cribl_control_plane/models/inputs3inventory.py +47 -1
- cribl_control_plane/models/inputsecuritylake.py +47 -1
- cribl_control_plane/models/inputsnmp.py +29 -1
- cribl_control_plane/models/inputsplunk.py +56 -1
- cribl_control_plane/models/inputsplunkhec.py +47 -1
- cribl_control_plane/models/inputsplunksearch.py +56 -1
- cribl_control_plane/models/inputsqs.py +47 -1
- cribl_control_plane/models/inputsyslog.py +74 -1
- cribl_control_plane/models/inputsystemmetrics.py +92 -1
- cribl_control_plane/models/inputsystemstate.py +29 -1
- cribl_control_plane/models/inputtcp.py +47 -1
- cribl_control_plane/models/inputtcpjson.py +47 -1
- cribl_control_plane/models/inputwef.py +65 -1
- cribl_control_plane/models/inputwindowsmetrics.py +83 -1
- cribl_control_plane/models/inputwineventlogs.py +38 -1
- cribl_control_plane/models/inputwiz.py +38 -1
- cribl_control_plane/models/inputwizwebhook.py +38 -1
- cribl_control_plane/models/inputzscalerhec.py +47 -1
- cribl_control_plane/models/jobinfo.py +10 -4
- cribl_control_plane/models/jobstatus.py +34 -3
- cribl_control_plane/models/lakedatasetmetrics.py +17 -0
- cribl_control_plane/models/listconfiggroupbyproductop.py +11 -18
- cribl_control_plane/models/listmasterworkerentryop.py +1 -19
- cribl_control_plane/models/masterworkerentry.py +11 -1
- cribl_control_plane/models/nodeupgradestatus.py +38 -0
- cribl_control_plane/models/output.py +13 -13
- cribl_control_plane/models/outputazureblob.py +83 -1
- cribl_control_plane/models/outputazuredataexplorer.py +148 -1
- cribl_control_plane/models/outputazureeventhub.py +98 -1
- cribl_control_plane/models/outputazurelogs.py +56 -1
- cribl_control_plane/models/outputchronicle.py +56 -1
- cribl_control_plane/models/outputclickhouse.py +92 -1
- cribl_control_plane/models/outputcloudwatch.py +47 -1
- cribl_control_plane/models/outputconfluentcloud.py +125 -1
- cribl_control_plane/models/outputcriblhttp.py +97 -1
- cribl_control_plane/models/outputcribllake.py +76 -1
- cribl_control_plane/models/outputcribltcp.py +99 -1
- cribl_control_plane/models/outputcrowdstrikenextgensiem.py +67 -1
- cribl_control_plane/models/outputdatabricks.py +69 -5
- cribl_control_plane/models/outputdatadog.py +83 -1
- cribl_control_plane/models/outputdataset.py +74 -1
- cribl_control_plane/models/outputdiskspool.py +11 -1
- cribl_control_plane/models/outputdls3.py +110 -1
- cribl_control_plane/models/outputdynatracehttp.py +92 -1
- cribl_control_plane/models/outputdynatraceotlp.py +92 -1
- cribl_control_plane/models/outputelastic.py +74 -1
- cribl_control_plane/models/outputelasticcloud.py +56 -1
- cribl_control_plane/models/outputexabeam.py +47 -1
- cribl_control_plane/models/outputfilesystem.py +65 -1
- cribl_control_plane/models/outputgooglechronicle.py +83 -1
- cribl_control_plane/models/outputgooglecloudlogging.py +65 -1
- cribl_control_plane/models/outputgooglecloudstorage.py +101 -1
- cribl_control_plane/models/outputgooglepubsub.py +47 -1
- cribl_control_plane/models/outputgrafanacloud.py +146 -1
- cribl_control_plane/models/outputgraphite.py +47 -1
- cribl_control_plane/models/outputhoneycomb.py +56 -1
- cribl_control_plane/models/outputhumiohec.py +65 -1
- cribl_control_plane/models/outputinfluxdb.py +65 -1
- cribl_control_plane/models/outputkafka.py +121 -1
- cribl_control_plane/models/outputkinesis.py +65 -1
- cribl_control_plane/models/outputloki.py +65 -1
- cribl_control_plane/models/outputminio.py +110 -1
- cribl_control_plane/models/outputmsk.py +121 -1
- cribl_control_plane/models/outputnewrelic.py +74 -1
- cribl_control_plane/models/outputnewrelicevents.py +65 -1
- cribl_control_plane/models/outputopentelemetry.py +110 -1
- cribl_control_plane/models/outputprometheus.py +56 -1
- cribl_control_plane/models/outputring.py +29 -1
- cribl_control_plane/models/outputs3.py +110 -1
- cribl_control_plane/models/outputsecuritylake.py +85 -1
- cribl_control_plane/models/outputsentinel.py +74 -1
- cribl_control_plane/models/outputsentineloneaisiem.py +74 -1
- cribl_control_plane/models/outputservicenow.py +101 -1
- cribl_control_plane/models/outputsignalfx.py +56 -1
- cribl_control_plane/models/outputsns.py +56 -1
- cribl_control_plane/models/outputsplunk.py +92 -1
- cribl_control_plane/models/outputsplunkhec.py +149 -1
- cribl_control_plane/models/outputsplunklb.py +121 -1
- cribl_control_plane/models/outputsqs.py +65 -1
- cribl_control_plane/models/outputstatsd.py +47 -1
- cribl_control_plane/models/outputstatsdext.py +47 -1
- cribl_control_plane/models/outputsumologic.py +56 -1
- cribl_control_plane/models/outputsyslog.py +110 -1
- cribl_control_plane/models/outputtcpjson.py +83 -1
- cribl_control_plane/models/outputwavefront.py +56 -1
- cribl_control_plane/models/outputwebhook.py +92 -1
- cribl_control_plane/models/outputxsiam.py +56 -1
- cribl_control_plane/models/resourcepolicy.py +11 -0
- cribl_control_plane/models/runnablejobcollection.py +64 -1
- cribl_control_plane/models/runnablejobexecutor.py +24 -1
- cribl_control_plane/models/runnablejobscheduledsearch.py +15 -1
- cribl_control_plane/models/updateconfiggroupbyproductandidop.py +11 -18
- cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +11 -19
- cribl_control_plane/models/updatecribllakedatasetbylakeidandidop.py +1 -20
- cribl_control_plane/models/updateinputbyidop.py +1 -19
- cribl_control_plane/models/updateinputhectokenbyidandtokenop.py +1 -20
- cribl_control_plane/models/updateoutputbyidop.py +1 -19
- cribl_control_plane/models/updatepacksbyidop.py +1 -20
- cribl_control_plane/models/updatepipelinebyidop.py +1 -19
- cribl_control_plane/models/updateroutesbyidop.py +1 -19
- cribl_control_plane/nodes.py +8 -12
- cribl_control_plane/packs.py +20 -20
- cribl_control_plane/pipelines.py +20 -20
- cribl_control_plane/routes_sdk.py +16 -20
- cribl_control_plane/samples.py +8 -8
- cribl_control_plane/sdk.py +2 -2
- cribl_control_plane/sources.py +20 -20
- cribl_control_plane/statuses.py +4 -4
- cribl_control_plane/summaries.py +8 -4
- cribl_control_plane/teams.py +4 -4
- cribl_control_plane/versions_configs.py +4 -4
- {cribl_control_plane-0.2.1rc4.dist-info → cribl_control_plane-0.2.1rc11.dist-info}/METADATA +25 -7
- cribl_control_plane-0.2.1rc11.dist-info/RECORD +350 -0
- cribl_control_plane-0.2.1rc4.dist-info/RECORD +0 -331
- {cribl_control_plane-0.2.1rc4.dist-info → cribl_control_plane-0.2.1rc11.dist-info}/WHEEL +0 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from cribl_control_plane import utils
|
|
4
|
+
from cribl_control_plane import models, utils
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import validate_open_enum
|
|
7
7
|
from enum import Enum
|
|
8
8
|
import pydantic
|
|
9
|
+
from pydantic import field_serializer
|
|
9
10
|
from pydantic.functional_validators import PlainValidator
|
|
10
11
|
from typing import List, Optional
|
|
11
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -106,6 +107,24 @@ class OutputSplunkTLSSettingsClientSide(BaseModel):
|
|
|
106
107
|
pydantic.Field(alias="maxVersion"),
|
|
107
108
|
] = None
|
|
108
109
|
|
|
110
|
+
@field_serializer("min_version")
|
|
111
|
+
def serialize_min_version(self, value):
|
|
112
|
+
if isinstance(value, str):
|
|
113
|
+
try:
|
|
114
|
+
return models.OutputSplunkMinimumTLSVersion(value)
|
|
115
|
+
except ValueError:
|
|
116
|
+
return value
|
|
117
|
+
return value
|
|
118
|
+
|
|
119
|
+
@field_serializer("max_version")
|
|
120
|
+
def serialize_max_version(self, value):
|
|
121
|
+
if isinstance(value, str):
|
|
122
|
+
try:
|
|
123
|
+
return models.OutputSplunkMaximumTLSVersion(value)
|
|
124
|
+
except ValueError:
|
|
125
|
+
return value
|
|
126
|
+
return value
|
|
127
|
+
|
|
109
128
|
|
|
110
129
|
class OutputSplunkMaxS2SVersion(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
111
130
|
r"""The highest S2S protocol version to advertise during handshake"""
|
|
@@ -422,3 +441,75 @@ class OutputSplunk(BaseModel):
|
|
|
422
441
|
|
|
423
442
|
text_secret: Annotated[Optional[str], pydantic.Field(alias="textSecret")] = None
|
|
424
443
|
r"""Select or create a stored text secret"""
|
|
444
|
+
|
|
445
|
+
@field_serializer("nested_fields")
|
|
446
|
+
def serialize_nested_fields(self, value):
|
|
447
|
+
if isinstance(value, str):
|
|
448
|
+
try:
|
|
449
|
+
return models.OutputSplunkNestedFieldSerialization(value)
|
|
450
|
+
except ValueError:
|
|
451
|
+
return value
|
|
452
|
+
return value
|
|
453
|
+
|
|
454
|
+
@field_serializer("max_s2_sversion")
|
|
455
|
+
def serialize_max_s2_sversion(self, value):
|
|
456
|
+
if isinstance(value, str):
|
|
457
|
+
try:
|
|
458
|
+
return models.OutputSplunkMaxS2SVersion(value)
|
|
459
|
+
except ValueError:
|
|
460
|
+
return value
|
|
461
|
+
return value
|
|
462
|
+
|
|
463
|
+
@field_serializer("on_backpressure")
|
|
464
|
+
def serialize_on_backpressure(self, value):
|
|
465
|
+
if isinstance(value, str):
|
|
466
|
+
try:
|
|
467
|
+
return models.OutputSplunkBackpressureBehavior(value)
|
|
468
|
+
except ValueError:
|
|
469
|
+
return value
|
|
470
|
+
return value
|
|
471
|
+
|
|
472
|
+
@field_serializer("auth_type")
|
|
473
|
+
def serialize_auth_type(self, value):
|
|
474
|
+
if isinstance(value, str):
|
|
475
|
+
try:
|
|
476
|
+
return models.OutputSplunkAuthenticationMethod(value)
|
|
477
|
+
except ValueError:
|
|
478
|
+
return value
|
|
479
|
+
return value
|
|
480
|
+
|
|
481
|
+
@field_serializer("compress")
|
|
482
|
+
def serialize_compress(self, value):
|
|
483
|
+
if isinstance(value, str):
|
|
484
|
+
try:
|
|
485
|
+
return models.OutputSplunkCompressCompression(value)
|
|
486
|
+
except ValueError:
|
|
487
|
+
return value
|
|
488
|
+
return value
|
|
489
|
+
|
|
490
|
+
@field_serializer("pq_mode")
|
|
491
|
+
def serialize_pq_mode(self, value):
|
|
492
|
+
if isinstance(value, str):
|
|
493
|
+
try:
|
|
494
|
+
return models.OutputSplunkMode(value)
|
|
495
|
+
except ValueError:
|
|
496
|
+
return value
|
|
497
|
+
return value
|
|
498
|
+
|
|
499
|
+
@field_serializer("pq_compress")
|
|
500
|
+
def serialize_pq_compress(self, value):
|
|
501
|
+
if isinstance(value, str):
|
|
502
|
+
try:
|
|
503
|
+
return models.OutputSplunkPqCompressCompression(value)
|
|
504
|
+
except ValueError:
|
|
505
|
+
return value
|
|
506
|
+
return value
|
|
507
|
+
|
|
508
|
+
@field_serializer("pq_on_backpressure")
|
|
509
|
+
def serialize_pq_on_backpressure(self, value):
|
|
510
|
+
if isinstance(value, str):
|
|
511
|
+
try:
|
|
512
|
+
return models.OutputSplunkQueueFullBehavior(value)
|
|
513
|
+
except ValueError:
|
|
514
|
+
return value
|
|
515
|
+
return value
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from cribl_control_plane import utils
|
|
4
|
+
from cribl_control_plane import models, utils
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import validate_open_enum
|
|
7
7
|
from enum import Enum
|
|
8
8
|
import pydantic
|
|
9
|
+
from pydantic import field_serializer
|
|
9
10
|
from pydantic.functional_validators import PlainValidator
|
|
10
11
|
from typing import List, Optional
|
|
11
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -15,6 +16,96 @@ class OutputSplunkHecType(str, Enum):
|
|
|
15
16
|
SPLUNK_HEC = "splunk_hec"
|
|
16
17
|
|
|
17
18
|
|
|
19
|
+
class OutputSplunkHecMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
20
|
+
TL_SV1 = "TLSv1"
|
|
21
|
+
TL_SV1_1 = "TLSv1.1"
|
|
22
|
+
TL_SV1_2 = "TLSv1.2"
|
|
23
|
+
TL_SV1_3 = "TLSv1.3"
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class OutputSplunkHecMaximumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
27
|
+
TL_SV1 = "TLSv1"
|
|
28
|
+
TL_SV1_1 = "TLSv1.1"
|
|
29
|
+
TL_SV1_2 = "TLSv1.2"
|
|
30
|
+
TL_SV1_3 = "TLSv1.3"
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class OutputSplunkHecTLSSettingsClientSideTypedDict(TypedDict):
|
|
34
|
+
disabled: NotRequired[bool]
|
|
35
|
+
servername: NotRequired[str]
|
|
36
|
+
r"""Server name for the SNI (Server Name Indication) TLS extension. It must be a host name, and not an IP address."""
|
|
37
|
+
certificate_name: NotRequired[str]
|
|
38
|
+
r"""The name of the predefined certificate"""
|
|
39
|
+
ca_path: NotRequired[str]
|
|
40
|
+
r"""Path on client in which to find CA certificates to verify the server's cert. PEM format. Can reference $ENV_VARS."""
|
|
41
|
+
priv_key_path: NotRequired[str]
|
|
42
|
+
r"""Path on client in which to find the private key to use. PEM format. Can reference $ENV_VARS."""
|
|
43
|
+
cert_path: NotRequired[str]
|
|
44
|
+
r"""Path on client in which to find certificates to use. PEM format. Can reference $ENV_VARS."""
|
|
45
|
+
passphrase: NotRequired[str]
|
|
46
|
+
r"""Passphrase to use to decrypt private key"""
|
|
47
|
+
min_version: NotRequired[OutputSplunkHecMinimumTLSVersion]
|
|
48
|
+
max_version: NotRequired[OutputSplunkHecMaximumTLSVersion]
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class OutputSplunkHecTLSSettingsClientSide(BaseModel):
|
|
52
|
+
disabled: Optional[bool] = True
|
|
53
|
+
|
|
54
|
+
servername: Optional[str] = None
|
|
55
|
+
r"""Server name for the SNI (Server Name Indication) TLS extension. It must be a host name, and not an IP address."""
|
|
56
|
+
|
|
57
|
+
certificate_name: Annotated[
|
|
58
|
+
Optional[str], pydantic.Field(alias="certificateName")
|
|
59
|
+
] = None
|
|
60
|
+
r"""The name of the predefined certificate"""
|
|
61
|
+
|
|
62
|
+
ca_path: Annotated[Optional[str], pydantic.Field(alias="caPath")] = None
|
|
63
|
+
r"""Path on client in which to find CA certificates to verify the server's cert. PEM format. Can reference $ENV_VARS."""
|
|
64
|
+
|
|
65
|
+
priv_key_path: Annotated[Optional[str], pydantic.Field(alias="privKeyPath")] = None
|
|
66
|
+
r"""Path on client in which to find the private key to use. PEM format. Can reference $ENV_VARS."""
|
|
67
|
+
|
|
68
|
+
cert_path: Annotated[Optional[str], pydantic.Field(alias="certPath")] = None
|
|
69
|
+
r"""Path on client in which to find certificates to use. PEM format. Can reference $ENV_VARS."""
|
|
70
|
+
|
|
71
|
+
passphrase: Optional[str] = None
|
|
72
|
+
r"""Passphrase to use to decrypt private key"""
|
|
73
|
+
|
|
74
|
+
min_version: Annotated[
|
|
75
|
+
Annotated[
|
|
76
|
+
Optional[OutputSplunkHecMinimumTLSVersion],
|
|
77
|
+
PlainValidator(validate_open_enum(False)),
|
|
78
|
+
],
|
|
79
|
+
pydantic.Field(alias="minVersion"),
|
|
80
|
+
] = None
|
|
81
|
+
|
|
82
|
+
max_version: Annotated[
|
|
83
|
+
Annotated[
|
|
84
|
+
Optional[OutputSplunkHecMaximumTLSVersion],
|
|
85
|
+
PlainValidator(validate_open_enum(False)),
|
|
86
|
+
],
|
|
87
|
+
pydantic.Field(alias="maxVersion"),
|
|
88
|
+
] = None
|
|
89
|
+
|
|
90
|
+
@field_serializer("min_version")
|
|
91
|
+
def serialize_min_version(self, value):
|
|
92
|
+
if isinstance(value, str):
|
|
93
|
+
try:
|
|
94
|
+
return models.OutputSplunkHecMinimumTLSVersion(value)
|
|
95
|
+
except ValueError:
|
|
96
|
+
return value
|
|
97
|
+
return value
|
|
98
|
+
|
|
99
|
+
@field_serializer("max_version")
|
|
100
|
+
def serialize_max_version(self, value):
|
|
101
|
+
if isinstance(value, str):
|
|
102
|
+
try:
|
|
103
|
+
return models.OutputSplunkHecMaximumTLSVersion(value)
|
|
104
|
+
except ValueError:
|
|
105
|
+
return value
|
|
106
|
+
return value
|
|
107
|
+
|
|
108
|
+
|
|
18
109
|
class OutputSplunkHecExtraHTTPHeaderTypedDict(TypedDict):
|
|
19
110
|
value: str
|
|
20
111
|
name: NotRequired[str]
|
|
@@ -179,6 +270,7 @@ class OutputSplunkHecTypedDict(TypedDict):
|
|
|
179
270
|
r"""In the Splunk app, define which Splunk processing queue to send the events after HEC processing."""
|
|
180
271
|
tcp_routing: NotRequired[str]
|
|
181
272
|
r"""In the Splunk app, set the value of _TCP_ROUTING for events that do not have _ctrl._TCP_ROUTING set."""
|
|
273
|
+
tls: NotRequired[OutputSplunkHecTLSSettingsClientSideTypedDict]
|
|
182
274
|
concurrency: NotRequired[float]
|
|
183
275
|
r"""Maximum number of ongoing requests before blocking"""
|
|
184
276
|
max_payload_size_kb: NotRequired[float]
|
|
@@ -289,6 +381,8 @@ class OutputSplunkHec(BaseModel):
|
|
|
289
381
|
)
|
|
290
382
|
r"""In the Splunk app, set the value of _TCP_ROUTING for events that do not have _ctrl._TCP_ROUTING set."""
|
|
291
383
|
|
|
384
|
+
tls: Optional[OutputSplunkHecTLSSettingsClientSide] = None
|
|
385
|
+
|
|
292
386
|
concurrency: Optional[float] = 5
|
|
293
387
|
r"""Maximum number of ongoing requests before blocking"""
|
|
294
388
|
|
|
@@ -473,3 +567,57 @@ class OutputSplunkHec(BaseModel):
|
|
|
473
567
|
pq_controls: Annotated[
|
|
474
568
|
Optional[OutputSplunkHecPqControls], pydantic.Field(alias="pqControls")
|
|
475
569
|
] = None
|
|
570
|
+
|
|
571
|
+
@field_serializer("failed_request_logging_mode")
|
|
572
|
+
def serialize_failed_request_logging_mode(self, value):
|
|
573
|
+
if isinstance(value, str):
|
|
574
|
+
try:
|
|
575
|
+
return models.OutputSplunkHecFailedRequestLoggingMode(value)
|
|
576
|
+
except ValueError:
|
|
577
|
+
return value
|
|
578
|
+
return value
|
|
579
|
+
|
|
580
|
+
@field_serializer("auth_type")
|
|
581
|
+
def serialize_auth_type(self, value):
|
|
582
|
+
if isinstance(value, str):
|
|
583
|
+
try:
|
|
584
|
+
return models.OutputSplunkHecAuthenticationMethod(value)
|
|
585
|
+
except ValueError:
|
|
586
|
+
return value
|
|
587
|
+
return value
|
|
588
|
+
|
|
589
|
+
@field_serializer("on_backpressure")
|
|
590
|
+
def serialize_on_backpressure(self, value):
|
|
591
|
+
if isinstance(value, str):
|
|
592
|
+
try:
|
|
593
|
+
return models.OutputSplunkHecBackpressureBehavior(value)
|
|
594
|
+
except ValueError:
|
|
595
|
+
return value
|
|
596
|
+
return value
|
|
597
|
+
|
|
598
|
+
@field_serializer("pq_mode")
|
|
599
|
+
def serialize_pq_mode(self, value):
|
|
600
|
+
if isinstance(value, str):
|
|
601
|
+
try:
|
|
602
|
+
return models.OutputSplunkHecMode(value)
|
|
603
|
+
except ValueError:
|
|
604
|
+
return value
|
|
605
|
+
return value
|
|
606
|
+
|
|
607
|
+
@field_serializer("pq_compress")
|
|
608
|
+
def serialize_pq_compress(self, value):
|
|
609
|
+
if isinstance(value, str):
|
|
610
|
+
try:
|
|
611
|
+
return models.OutputSplunkHecCompression(value)
|
|
612
|
+
except ValueError:
|
|
613
|
+
return value
|
|
614
|
+
return value
|
|
615
|
+
|
|
616
|
+
@field_serializer("pq_on_backpressure")
|
|
617
|
+
def serialize_pq_on_backpressure(self, value):
|
|
618
|
+
if isinstance(value, str):
|
|
619
|
+
try:
|
|
620
|
+
return models.OutputSplunkHecQueueFullBehavior(value)
|
|
621
|
+
except ValueError:
|
|
622
|
+
return value
|
|
623
|
+
return value
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from cribl_control_plane import utils
|
|
4
|
+
from cribl_control_plane import models, utils
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import validate_open_enum
|
|
7
7
|
from enum import Enum
|
|
8
8
|
import pydantic
|
|
9
|
+
from pydantic import field_serializer
|
|
9
10
|
from pydantic.functional_validators import PlainValidator
|
|
10
11
|
from typing import List, Optional
|
|
11
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -106,6 +107,24 @@ class OutputSplunkLbTLSSettingsClientSide(BaseModel):
|
|
|
106
107
|
pydantic.Field(alias="maxVersion"),
|
|
107
108
|
] = None
|
|
108
109
|
|
|
110
|
+
@field_serializer("min_version")
|
|
111
|
+
def serialize_min_version(self, value):
|
|
112
|
+
if isinstance(value, str):
|
|
113
|
+
try:
|
|
114
|
+
return models.OutputSplunkLbMinimumTLSVersion(value)
|
|
115
|
+
except ValueError:
|
|
116
|
+
return value
|
|
117
|
+
return value
|
|
118
|
+
|
|
119
|
+
@field_serializer("max_version")
|
|
120
|
+
def serialize_max_version(self, value):
|
|
121
|
+
if isinstance(value, str):
|
|
122
|
+
try:
|
|
123
|
+
return models.OutputSplunkLbMaximumTLSVersion(value)
|
|
124
|
+
except ValueError:
|
|
125
|
+
return value
|
|
126
|
+
return value
|
|
127
|
+
|
|
109
128
|
|
|
110
129
|
class OutputSplunkLbMaxS2SVersion(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
111
130
|
r"""The highest S2S protocol version to advertise during handshake"""
|
|
@@ -167,6 +186,17 @@ class OutputSplunkLbAuthToken(BaseModel):
|
|
|
167
186
|
] = IndexerDiscoveryConfigsAuthTokenAuthenticationMethod.MANUAL
|
|
168
187
|
r"""Select Manual to enter an auth token directly, or select Secret to use a text secret to authenticate"""
|
|
169
188
|
|
|
189
|
+
@field_serializer("auth_type")
|
|
190
|
+
def serialize_auth_type(self, value):
|
|
191
|
+
if isinstance(value, str):
|
|
192
|
+
try:
|
|
193
|
+
return models.IndexerDiscoveryConfigsAuthTokenAuthenticationMethod(
|
|
194
|
+
value
|
|
195
|
+
)
|
|
196
|
+
except ValueError:
|
|
197
|
+
return value
|
|
198
|
+
return value
|
|
199
|
+
|
|
170
200
|
|
|
171
201
|
class IndexerDiscoveryConfigsAuthenticationMethod(
|
|
172
202
|
str, Enum, metaclass=utils.OpenEnumMeta
|
|
@@ -237,6 +267,15 @@ class IndexerDiscoveryConfigs(BaseModel):
|
|
|
237
267
|
text_secret: Annotated[Optional[str], pydantic.Field(alias="textSecret")] = None
|
|
238
268
|
r"""Select or create a stored text secret"""
|
|
239
269
|
|
|
270
|
+
@field_serializer("auth_type")
|
|
271
|
+
def serialize_auth_type(self, value):
|
|
272
|
+
if isinstance(value, str):
|
|
273
|
+
try:
|
|
274
|
+
return models.IndexerDiscoveryConfigsAuthenticationMethod(value)
|
|
275
|
+
except ValueError:
|
|
276
|
+
return value
|
|
277
|
+
return value
|
|
278
|
+
|
|
240
279
|
|
|
241
280
|
class OutputSplunkLbTLS(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
242
281
|
r"""Whether to inherit TLS configs from group setting or disable TLS"""
|
|
@@ -276,6 +315,15 @@ class OutputSplunkLbHost(BaseModel):
|
|
|
276
315
|
weight: Optional[float] = 1
|
|
277
316
|
r"""Assign a weight (>0) to each endpoint to indicate its traffic-handling capability"""
|
|
278
317
|
|
|
318
|
+
@field_serializer("tls")
|
|
319
|
+
def serialize_tls(self, value):
|
|
320
|
+
if isinstance(value, str):
|
|
321
|
+
try:
|
|
322
|
+
return models.OutputSplunkLbTLS(value)
|
|
323
|
+
except ValueError:
|
|
324
|
+
return value
|
|
325
|
+
return value
|
|
326
|
+
|
|
279
327
|
|
|
280
328
|
class OutputSplunkLbMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
281
329
|
r"""In Error mode, PQ writes events to the filesystem if the Destination is unavailable. In Backpressure mode, PQ writes events to the filesystem when it detects backpressure from the Destination. In Always On mode, PQ always writes events to the filesystem."""
|
|
@@ -599,3 +647,75 @@ class OutputSplunkLb(BaseModel):
|
|
|
599
647
|
|
|
600
648
|
text_secret: Annotated[Optional[str], pydantic.Field(alias="textSecret")] = None
|
|
601
649
|
r"""Select or create a stored text secret"""
|
|
650
|
+
|
|
651
|
+
@field_serializer("nested_fields")
|
|
652
|
+
def serialize_nested_fields(self, value):
|
|
653
|
+
if isinstance(value, str):
|
|
654
|
+
try:
|
|
655
|
+
return models.OutputSplunkLbNestedFieldSerialization(value)
|
|
656
|
+
except ValueError:
|
|
657
|
+
return value
|
|
658
|
+
return value
|
|
659
|
+
|
|
660
|
+
@field_serializer("max_s2_sversion")
|
|
661
|
+
def serialize_max_s2_sversion(self, value):
|
|
662
|
+
if isinstance(value, str):
|
|
663
|
+
try:
|
|
664
|
+
return models.OutputSplunkLbMaxS2SVersion(value)
|
|
665
|
+
except ValueError:
|
|
666
|
+
return value
|
|
667
|
+
return value
|
|
668
|
+
|
|
669
|
+
@field_serializer("on_backpressure")
|
|
670
|
+
def serialize_on_backpressure(self, value):
|
|
671
|
+
if isinstance(value, str):
|
|
672
|
+
try:
|
|
673
|
+
return models.OutputSplunkLbBackpressureBehavior(value)
|
|
674
|
+
except ValueError:
|
|
675
|
+
return value
|
|
676
|
+
return value
|
|
677
|
+
|
|
678
|
+
@field_serializer("auth_type")
|
|
679
|
+
def serialize_auth_type(self, value):
|
|
680
|
+
if isinstance(value, str):
|
|
681
|
+
try:
|
|
682
|
+
return models.OutputSplunkLbAuthenticationMethod(value)
|
|
683
|
+
except ValueError:
|
|
684
|
+
return value
|
|
685
|
+
return value
|
|
686
|
+
|
|
687
|
+
@field_serializer("compress")
|
|
688
|
+
def serialize_compress(self, value):
|
|
689
|
+
if isinstance(value, str):
|
|
690
|
+
try:
|
|
691
|
+
return models.OutputSplunkLbCompressCompression(value)
|
|
692
|
+
except ValueError:
|
|
693
|
+
return value
|
|
694
|
+
return value
|
|
695
|
+
|
|
696
|
+
@field_serializer("pq_mode")
|
|
697
|
+
def serialize_pq_mode(self, value):
|
|
698
|
+
if isinstance(value, str):
|
|
699
|
+
try:
|
|
700
|
+
return models.OutputSplunkLbMode(value)
|
|
701
|
+
except ValueError:
|
|
702
|
+
return value
|
|
703
|
+
return value
|
|
704
|
+
|
|
705
|
+
@field_serializer("pq_compress")
|
|
706
|
+
def serialize_pq_compress(self, value):
|
|
707
|
+
if isinstance(value, str):
|
|
708
|
+
try:
|
|
709
|
+
return models.OutputSplunkLbPqCompressCompression(value)
|
|
710
|
+
except ValueError:
|
|
711
|
+
return value
|
|
712
|
+
return value
|
|
713
|
+
|
|
714
|
+
@field_serializer("pq_on_backpressure")
|
|
715
|
+
def serialize_pq_on_backpressure(self, value):
|
|
716
|
+
if isinstance(value, str):
|
|
717
|
+
try:
|
|
718
|
+
return models.OutputSplunkLbQueueFullBehavior(value)
|
|
719
|
+
except ValueError:
|
|
720
|
+
return value
|
|
721
|
+
return value
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from cribl_control_plane import utils
|
|
4
|
+
from cribl_control_plane import models, utils
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import validate_open_enum
|
|
7
7
|
from enum import Enum
|
|
8
8
|
import pydantic
|
|
9
|
+
from pydantic import field_serializer
|
|
9
10
|
from pydantic.functional_validators import PlainValidator
|
|
10
11
|
from typing import List, Optional
|
|
11
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -365,3 +366,66 @@ class OutputSqs(BaseModel):
|
|
|
365
366
|
pq_controls: Annotated[
|
|
366
367
|
Optional[OutputSqsPqControls], pydantic.Field(alias="pqControls")
|
|
367
368
|
] = None
|
|
369
|
+
|
|
370
|
+
@field_serializer("queue_type")
|
|
371
|
+
def serialize_queue_type(self, value):
|
|
372
|
+
if isinstance(value, str):
|
|
373
|
+
try:
|
|
374
|
+
return models.OutputSqsQueueType(value)
|
|
375
|
+
except ValueError:
|
|
376
|
+
return value
|
|
377
|
+
return value
|
|
378
|
+
|
|
379
|
+
@field_serializer("aws_authentication_method")
|
|
380
|
+
def serialize_aws_authentication_method(self, value):
|
|
381
|
+
if isinstance(value, str):
|
|
382
|
+
try:
|
|
383
|
+
return models.OutputSqsAuthenticationMethod(value)
|
|
384
|
+
except ValueError:
|
|
385
|
+
return value
|
|
386
|
+
return value
|
|
387
|
+
|
|
388
|
+
@field_serializer("signature_version")
|
|
389
|
+
def serialize_signature_version(self, value):
|
|
390
|
+
if isinstance(value, str):
|
|
391
|
+
try:
|
|
392
|
+
return models.OutputSqsSignatureVersion(value)
|
|
393
|
+
except ValueError:
|
|
394
|
+
return value
|
|
395
|
+
return value
|
|
396
|
+
|
|
397
|
+
@field_serializer("on_backpressure")
|
|
398
|
+
def serialize_on_backpressure(self, value):
|
|
399
|
+
if isinstance(value, str):
|
|
400
|
+
try:
|
|
401
|
+
return models.OutputSqsBackpressureBehavior(value)
|
|
402
|
+
except ValueError:
|
|
403
|
+
return value
|
|
404
|
+
return value
|
|
405
|
+
|
|
406
|
+
@field_serializer("pq_mode")
|
|
407
|
+
def serialize_pq_mode(self, value):
|
|
408
|
+
if isinstance(value, str):
|
|
409
|
+
try:
|
|
410
|
+
return models.OutputSqsMode(value)
|
|
411
|
+
except ValueError:
|
|
412
|
+
return value
|
|
413
|
+
return value
|
|
414
|
+
|
|
415
|
+
@field_serializer("pq_compress")
|
|
416
|
+
def serialize_pq_compress(self, value):
|
|
417
|
+
if isinstance(value, str):
|
|
418
|
+
try:
|
|
419
|
+
return models.OutputSqsCompression(value)
|
|
420
|
+
except ValueError:
|
|
421
|
+
return value
|
|
422
|
+
return value
|
|
423
|
+
|
|
424
|
+
@field_serializer("pq_on_backpressure")
|
|
425
|
+
def serialize_pq_on_backpressure(self, value):
|
|
426
|
+
if isinstance(value, str):
|
|
427
|
+
try:
|
|
428
|
+
return models.OutputSqsQueueFullBehavior(value)
|
|
429
|
+
except ValueError:
|
|
430
|
+
return value
|
|
431
|
+
return value
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from cribl_control_plane import utils
|
|
4
|
+
from cribl_control_plane import models, utils
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import validate_open_enum
|
|
7
7
|
from enum import Enum
|
|
8
8
|
import pydantic
|
|
9
|
+
from pydantic import field_serializer
|
|
9
10
|
from pydantic.functional_validators import PlainValidator
|
|
10
11
|
from typing import List, Optional
|
|
11
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -260,3 +261,48 @@ class OutputStatsd(BaseModel):
|
|
|
260
261
|
pq_controls: Annotated[
|
|
261
262
|
Optional[OutputStatsdPqControls], pydantic.Field(alias="pqControls")
|
|
262
263
|
] = None
|
|
264
|
+
|
|
265
|
+
@field_serializer("protocol")
|
|
266
|
+
def serialize_protocol(self, value):
|
|
267
|
+
if isinstance(value, str):
|
|
268
|
+
try:
|
|
269
|
+
return models.OutputStatsdDestinationProtocol(value)
|
|
270
|
+
except ValueError:
|
|
271
|
+
return value
|
|
272
|
+
return value
|
|
273
|
+
|
|
274
|
+
@field_serializer("on_backpressure")
|
|
275
|
+
def serialize_on_backpressure(self, value):
|
|
276
|
+
if isinstance(value, str):
|
|
277
|
+
try:
|
|
278
|
+
return models.OutputStatsdBackpressureBehavior(value)
|
|
279
|
+
except ValueError:
|
|
280
|
+
return value
|
|
281
|
+
return value
|
|
282
|
+
|
|
283
|
+
@field_serializer("pq_mode")
|
|
284
|
+
def serialize_pq_mode(self, value):
|
|
285
|
+
if isinstance(value, str):
|
|
286
|
+
try:
|
|
287
|
+
return models.OutputStatsdMode(value)
|
|
288
|
+
except ValueError:
|
|
289
|
+
return value
|
|
290
|
+
return value
|
|
291
|
+
|
|
292
|
+
@field_serializer("pq_compress")
|
|
293
|
+
def serialize_pq_compress(self, value):
|
|
294
|
+
if isinstance(value, str):
|
|
295
|
+
try:
|
|
296
|
+
return models.OutputStatsdCompression(value)
|
|
297
|
+
except ValueError:
|
|
298
|
+
return value
|
|
299
|
+
return value
|
|
300
|
+
|
|
301
|
+
@field_serializer("pq_on_backpressure")
|
|
302
|
+
def serialize_pq_on_backpressure(self, value):
|
|
303
|
+
if isinstance(value, str):
|
|
304
|
+
try:
|
|
305
|
+
return models.OutputStatsdQueueFullBehavior(value)
|
|
306
|
+
except ValueError:
|
|
307
|
+
return value
|
|
308
|
+
return value
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from cribl_control_plane import utils
|
|
4
|
+
from cribl_control_plane import models, utils
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import validate_open_enum
|
|
7
7
|
from enum import Enum
|
|
8
8
|
import pydantic
|
|
9
|
+
from pydantic import field_serializer
|
|
9
10
|
from pydantic.functional_validators import PlainValidator
|
|
10
11
|
from typing import List, Optional
|
|
11
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -261,3 +262,48 @@ class OutputStatsdExt(BaseModel):
|
|
|
261
262
|
pq_controls: Annotated[
|
|
262
263
|
Optional[OutputStatsdExtPqControls], pydantic.Field(alias="pqControls")
|
|
263
264
|
] = None
|
|
265
|
+
|
|
266
|
+
@field_serializer("protocol")
|
|
267
|
+
def serialize_protocol(self, value):
|
|
268
|
+
if isinstance(value, str):
|
|
269
|
+
try:
|
|
270
|
+
return models.OutputStatsdExtDestinationProtocol(value)
|
|
271
|
+
except ValueError:
|
|
272
|
+
return value
|
|
273
|
+
return value
|
|
274
|
+
|
|
275
|
+
@field_serializer("on_backpressure")
|
|
276
|
+
def serialize_on_backpressure(self, value):
|
|
277
|
+
if isinstance(value, str):
|
|
278
|
+
try:
|
|
279
|
+
return models.OutputStatsdExtBackpressureBehavior(value)
|
|
280
|
+
except ValueError:
|
|
281
|
+
return value
|
|
282
|
+
return value
|
|
283
|
+
|
|
284
|
+
@field_serializer("pq_mode")
|
|
285
|
+
def serialize_pq_mode(self, value):
|
|
286
|
+
if isinstance(value, str):
|
|
287
|
+
try:
|
|
288
|
+
return models.OutputStatsdExtMode(value)
|
|
289
|
+
except ValueError:
|
|
290
|
+
return value
|
|
291
|
+
return value
|
|
292
|
+
|
|
293
|
+
@field_serializer("pq_compress")
|
|
294
|
+
def serialize_pq_compress(self, value):
|
|
295
|
+
if isinstance(value, str):
|
|
296
|
+
try:
|
|
297
|
+
return models.OutputStatsdExtCompression(value)
|
|
298
|
+
except ValueError:
|
|
299
|
+
return value
|
|
300
|
+
return value
|
|
301
|
+
|
|
302
|
+
@field_serializer("pq_on_backpressure")
|
|
303
|
+
def serialize_pq_on_backpressure(self, value):
|
|
304
|
+
if isinstance(value, str):
|
|
305
|
+
try:
|
|
306
|
+
return models.OutputStatsdExtQueueFullBehavior(value)
|
|
307
|
+
except ValueError:
|
|
308
|
+
return value
|
|
309
|
+
return value
|