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
|
|
@@ -415,3 +416,77 @@ class OutputCriblLake(BaseModel):
|
|
|
415
416
|
|
|
416
417
|
max_retry_num: Annotated[Optional[float], pydantic.Field(alias="maxRetryNum")] = 20
|
|
417
418
|
r"""The maximum number of times a file will attempt to move to its final destination before being dead-lettered"""
|
|
419
|
+
|
|
420
|
+
@field_serializer("signature_version")
|
|
421
|
+
def serialize_signature_version(self, value):
|
|
422
|
+
if isinstance(value, str):
|
|
423
|
+
try:
|
|
424
|
+
return models.OutputCriblLakeSignatureVersion(value)
|
|
425
|
+
except ValueError:
|
|
426
|
+
return value
|
|
427
|
+
return value
|
|
428
|
+
|
|
429
|
+
@field_serializer("object_acl")
|
|
430
|
+
def serialize_object_acl(self, value):
|
|
431
|
+
if isinstance(value, str):
|
|
432
|
+
try:
|
|
433
|
+
return models.OutputCriblLakeObjectACL(value)
|
|
434
|
+
except ValueError:
|
|
435
|
+
return value
|
|
436
|
+
return value
|
|
437
|
+
|
|
438
|
+
@field_serializer("storage_class")
|
|
439
|
+
def serialize_storage_class(self, value):
|
|
440
|
+
if isinstance(value, str):
|
|
441
|
+
try:
|
|
442
|
+
return models.OutputCriblLakeStorageClass(value)
|
|
443
|
+
except ValueError:
|
|
444
|
+
return value
|
|
445
|
+
return value
|
|
446
|
+
|
|
447
|
+
@field_serializer("server_side_encryption")
|
|
448
|
+
def serialize_server_side_encryption(self, value):
|
|
449
|
+
if isinstance(value, str):
|
|
450
|
+
try:
|
|
451
|
+
return models.OutputCriblLakeServerSideEncryptionForUploadedObjects(
|
|
452
|
+
value
|
|
453
|
+
)
|
|
454
|
+
except ValueError:
|
|
455
|
+
return value
|
|
456
|
+
return value
|
|
457
|
+
|
|
458
|
+
@field_serializer("on_backpressure")
|
|
459
|
+
def serialize_on_backpressure(self, value):
|
|
460
|
+
if isinstance(value, str):
|
|
461
|
+
try:
|
|
462
|
+
return models.OutputCriblLakeBackpressureBehavior(value)
|
|
463
|
+
except ValueError:
|
|
464
|
+
return value
|
|
465
|
+
return value
|
|
466
|
+
|
|
467
|
+
@field_serializer("on_disk_full_backpressure")
|
|
468
|
+
def serialize_on_disk_full_backpressure(self, value):
|
|
469
|
+
if isinstance(value, str):
|
|
470
|
+
try:
|
|
471
|
+
return models.OutputCriblLakeDiskSpaceProtection(value)
|
|
472
|
+
except ValueError:
|
|
473
|
+
return value
|
|
474
|
+
return value
|
|
475
|
+
|
|
476
|
+
@field_serializer("aws_authentication_method")
|
|
477
|
+
def serialize_aws_authentication_method(self, value):
|
|
478
|
+
if isinstance(value, str):
|
|
479
|
+
try:
|
|
480
|
+
return models.AwsAuthenticationMethod(value)
|
|
481
|
+
except ValueError:
|
|
482
|
+
return value
|
|
483
|
+
return value
|
|
484
|
+
|
|
485
|
+
@field_serializer("format_")
|
|
486
|
+
def serialize_format_(self, value):
|
|
487
|
+
if isinstance(value, str):
|
|
488
|
+
try:
|
|
489
|
+
return models.OutputCriblLakeFormat(value)
|
|
490
|
+
except ValueError:
|
|
491
|
+
return value
|
|
492
|
+
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,42 @@ class OutputCriblTCPTLSSettingsClientSide(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.OutputCriblTCPMinimumTLSVersion(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.OutputCriblTCPMaximumTLSVersion(value)
|
|
124
|
+
except ValueError:
|
|
125
|
+
return value
|
|
126
|
+
return value
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
class OutputCriblTCPAuthTokenTypedDict(TypedDict):
|
|
130
|
+
token_secret: str
|
|
131
|
+
r"""Select or create a stored text secret"""
|
|
132
|
+
enabled: NotRequired[bool]
|
|
133
|
+
description: NotRequired[str]
|
|
134
|
+
r"""Optional token description"""
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
class OutputCriblTCPAuthToken(BaseModel):
|
|
138
|
+
token_secret: Annotated[str, pydantic.Field(alias="tokenSecret")]
|
|
139
|
+
r"""Select or create a stored text secret"""
|
|
140
|
+
|
|
141
|
+
enabled: Optional[bool] = True
|
|
142
|
+
|
|
143
|
+
description: Optional[str] = None
|
|
144
|
+
r"""Optional token description"""
|
|
145
|
+
|
|
109
146
|
|
|
110
147
|
class OutputCriblTCPBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
111
148
|
r"""How to handle events when all receivers are exerting backpressure"""
|
|
@@ -156,6 +193,15 @@ class OutputCriblTCPHost(BaseModel):
|
|
|
156
193
|
weight: Optional[float] = 1
|
|
157
194
|
r"""Assign a weight (>0) to each endpoint to indicate its traffic-handling capability"""
|
|
158
195
|
|
|
196
|
+
@field_serializer("tls")
|
|
197
|
+
def serialize_tls(self, value):
|
|
198
|
+
if isinstance(value, str):
|
|
199
|
+
try:
|
|
200
|
+
return models.OutputCriblTCPTLS(value)
|
|
201
|
+
except ValueError:
|
|
202
|
+
return value
|
|
203
|
+
return value
|
|
204
|
+
|
|
159
205
|
|
|
160
206
|
class OutputCriblTCPMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
161
207
|
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."""
|
|
@@ -221,6 +267,8 @@ class OutputCriblTCPTypedDict(TypedDict):
|
|
|
221
267
|
r"""Amount of time (milliseconds) to wait for a write to complete before assuming connection is dead"""
|
|
222
268
|
token_ttl_minutes: NotRequired[float]
|
|
223
269
|
r"""The number of minutes before the internally generated authentication token expires, valid values between 1 and 60"""
|
|
270
|
+
auth_tokens: NotRequired[List[OutputCriblTCPAuthTokenTypedDict]]
|
|
271
|
+
r"""Shared secrets to be used by connected environments to authorize connections. These tokens should also be installed in Cribl TCP Source in Cribl.Cloud."""
|
|
224
272
|
exclude_fields: NotRequired[List[str]]
|
|
225
273
|
r"""Fields to exclude from the event. By default, all internal fields except `__output` are sent. Example: `cribl_pipe`, `c*`. Wildcards supported."""
|
|
226
274
|
on_backpressure: NotRequired[OutputCriblTCPBackpressureBehavior]
|
|
@@ -320,6 +368,11 @@ class OutputCriblTCP(BaseModel):
|
|
|
320
368
|
] = 60
|
|
321
369
|
r"""The number of minutes before the internally generated authentication token expires, valid values between 1 and 60"""
|
|
322
370
|
|
|
371
|
+
auth_tokens: Annotated[
|
|
372
|
+
Optional[List[OutputCriblTCPAuthToken]], pydantic.Field(alias="authTokens")
|
|
373
|
+
] = None
|
|
374
|
+
r"""Shared secrets to be used by connected environments to authorize connections. These tokens should also be installed in Cribl TCP Source in Cribl.Cloud."""
|
|
375
|
+
|
|
323
376
|
exclude_fields: Annotated[
|
|
324
377
|
Optional[List[str]], pydantic.Field(alias="excludeFields")
|
|
325
378
|
] = None
|
|
@@ -425,3 +478,48 @@ class OutputCriblTCP(BaseModel):
|
|
|
425
478
|
pq_controls: Annotated[
|
|
426
479
|
Optional[OutputCriblTCPPqControls], pydantic.Field(alias="pqControls")
|
|
427
480
|
] = None
|
|
481
|
+
|
|
482
|
+
@field_serializer("compression")
|
|
483
|
+
def serialize_compression(self, value):
|
|
484
|
+
if isinstance(value, str):
|
|
485
|
+
try:
|
|
486
|
+
return models.OutputCriblTCPCompression(value)
|
|
487
|
+
except ValueError:
|
|
488
|
+
return value
|
|
489
|
+
return value
|
|
490
|
+
|
|
491
|
+
@field_serializer("on_backpressure")
|
|
492
|
+
def serialize_on_backpressure(self, value):
|
|
493
|
+
if isinstance(value, str):
|
|
494
|
+
try:
|
|
495
|
+
return models.OutputCriblTCPBackpressureBehavior(value)
|
|
496
|
+
except ValueError:
|
|
497
|
+
return value
|
|
498
|
+
return value
|
|
499
|
+
|
|
500
|
+
@field_serializer("pq_mode")
|
|
501
|
+
def serialize_pq_mode(self, value):
|
|
502
|
+
if isinstance(value, str):
|
|
503
|
+
try:
|
|
504
|
+
return models.OutputCriblTCPMode(value)
|
|
505
|
+
except ValueError:
|
|
506
|
+
return value
|
|
507
|
+
return value
|
|
508
|
+
|
|
509
|
+
@field_serializer("pq_compress")
|
|
510
|
+
def serialize_pq_compress(self, value):
|
|
511
|
+
if isinstance(value, str):
|
|
512
|
+
try:
|
|
513
|
+
return models.OutputCriblTCPPqCompressCompression(value)
|
|
514
|
+
except ValueError:
|
|
515
|
+
return value
|
|
516
|
+
return value
|
|
517
|
+
|
|
518
|
+
@field_serializer("pq_on_backpressure")
|
|
519
|
+
def serialize_pq_on_backpressure(self, value):
|
|
520
|
+
if isinstance(value, str):
|
|
521
|
+
try:
|
|
522
|
+
return models.OutputCriblTCPQueueFullBehavior(value)
|
|
523
|
+
except ValueError:
|
|
524
|
+
return value
|
|
525
|
+
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
|
|
@@ -448,3 +449,68 @@ class OutputCrowdstrikeNextGenSiem(BaseModel):
|
|
|
448
449
|
Optional[OutputCrowdstrikeNextGenSiemPqControls],
|
|
449
450
|
pydantic.Field(alias="pqControls"),
|
|
450
451
|
] = None
|
|
452
|
+
|
|
453
|
+
@field_serializer("failed_request_logging_mode")
|
|
454
|
+
def serialize_failed_request_logging_mode(self, value):
|
|
455
|
+
if isinstance(value, str):
|
|
456
|
+
try:
|
|
457
|
+
return models.OutputCrowdstrikeNextGenSiemFailedRequestLoggingMode(
|
|
458
|
+
value
|
|
459
|
+
)
|
|
460
|
+
except ValueError:
|
|
461
|
+
return value
|
|
462
|
+
return value
|
|
463
|
+
|
|
464
|
+
@field_serializer("format_")
|
|
465
|
+
def serialize_format_(self, value):
|
|
466
|
+
if isinstance(value, str):
|
|
467
|
+
try:
|
|
468
|
+
return models.OutputCrowdstrikeNextGenSiemRequestFormat(value)
|
|
469
|
+
except ValueError:
|
|
470
|
+
return value
|
|
471
|
+
return value
|
|
472
|
+
|
|
473
|
+
@field_serializer("auth_type")
|
|
474
|
+
def serialize_auth_type(self, value):
|
|
475
|
+
if isinstance(value, str):
|
|
476
|
+
try:
|
|
477
|
+
return models.OutputCrowdstrikeNextGenSiemAuthenticationMethod(value)
|
|
478
|
+
except ValueError:
|
|
479
|
+
return value
|
|
480
|
+
return value
|
|
481
|
+
|
|
482
|
+
@field_serializer("on_backpressure")
|
|
483
|
+
def serialize_on_backpressure(self, value):
|
|
484
|
+
if isinstance(value, str):
|
|
485
|
+
try:
|
|
486
|
+
return models.OutputCrowdstrikeNextGenSiemBackpressureBehavior(value)
|
|
487
|
+
except ValueError:
|
|
488
|
+
return value
|
|
489
|
+
return value
|
|
490
|
+
|
|
491
|
+
@field_serializer("pq_mode")
|
|
492
|
+
def serialize_pq_mode(self, value):
|
|
493
|
+
if isinstance(value, str):
|
|
494
|
+
try:
|
|
495
|
+
return models.OutputCrowdstrikeNextGenSiemMode(value)
|
|
496
|
+
except ValueError:
|
|
497
|
+
return value
|
|
498
|
+
return value
|
|
499
|
+
|
|
500
|
+
@field_serializer("pq_compress")
|
|
501
|
+
def serialize_pq_compress(self, value):
|
|
502
|
+
if isinstance(value, str):
|
|
503
|
+
try:
|
|
504
|
+
return models.OutputCrowdstrikeNextGenSiemCompression(value)
|
|
505
|
+
except ValueError:
|
|
506
|
+
return value
|
|
507
|
+
return value
|
|
508
|
+
|
|
509
|
+
@field_serializer("pq_on_backpressure")
|
|
510
|
+
def serialize_pq_on_backpressure(self, value):
|
|
511
|
+
if isinstance(value, str):
|
|
512
|
+
try:
|
|
513
|
+
return models.OutputCrowdstrikeNextGenSiemQueueFullBehavior(value)
|
|
514
|
+
except ValueError:
|
|
515
|
+
return value
|
|
516
|
+
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
|
|
@@ -99,7 +100,7 @@ class OutputDatabricksTypedDict(TypedDict):
|
|
|
99
100
|
r"""Databricks workspace ID"""
|
|
100
101
|
client_id: str
|
|
101
102
|
r"""OAuth client ID for Unity Catalog authentication"""
|
|
102
|
-
|
|
103
|
+
client_text_secret: str
|
|
103
104
|
r"""OAuth client secret for Unity Catalog authentication"""
|
|
104
105
|
id: NotRequired[str]
|
|
105
106
|
r"""Unique ID for this output"""
|
|
@@ -112,7 +113,7 @@ class OutputDatabricksTypedDict(TypedDict):
|
|
|
112
113
|
streamtags: NotRequired[List[str]]
|
|
113
114
|
r"""Tags for filtering and grouping in @{product}"""
|
|
114
115
|
dest_path: NotRequired[str]
|
|
115
|
-
r"""Optional path to prepend to files before uploading.
|
|
116
|
+
r"""Optional path to prepend to files before uploading."""
|
|
116
117
|
stage_path: NotRequired[str]
|
|
117
118
|
r"""Filesystem location in which to buffer files before compressing and moving to final destination. Use performant, stable storage."""
|
|
118
119
|
add_id_to_stage_path: NotRequired[bool]
|
|
@@ -197,7 +198,7 @@ class OutputDatabricks(BaseModel):
|
|
|
197
198
|
client_id: Annotated[str, pydantic.Field(alias="clientId")]
|
|
198
199
|
r"""OAuth client ID for Unity Catalog authentication"""
|
|
199
200
|
|
|
200
|
-
|
|
201
|
+
client_text_secret: Annotated[str, pydantic.Field(alias="clientTextSecret")]
|
|
201
202
|
r"""OAuth client secret for Unity Catalog authentication"""
|
|
202
203
|
|
|
203
204
|
id: Optional[str] = None
|
|
@@ -218,7 +219,7 @@ class OutputDatabricks(BaseModel):
|
|
|
218
219
|
r"""Tags for filtering and grouping in @{product}"""
|
|
219
220
|
|
|
220
221
|
dest_path: Annotated[Optional[str], pydantic.Field(alias="destPath")] = ""
|
|
221
|
-
r"""Optional path to prepend to files before uploading.
|
|
222
|
+
r"""Optional path to prepend to files before uploading."""
|
|
222
223
|
|
|
223
224
|
stage_path: Annotated[Optional[str], pydantic.Field(alias="stagePath")] = (
|
|
224
225
|
"$CRIBL_HOME/state/outputs/staging"
|
|
@@ -416,3 +417,66 @@ class OutputDatabricks(BaseModel):
|
|
|
416
417
|
|
|
417
418
|
max_retry_num: Annotated[Optional[float], pydantic.Field(alias="maxRetryNum")] = 20
|
|
418
419
|
r"""The maximum number of times a file will attempt to move to its final destination before being dead-lettered"""
|
|
420
|
+
|
|
421
|
+
@field_serializer("format_")
|
|
422
|
+
def serialize_format_(self, value):
|
|
423
|
+
if isinstance(value, str):
|
|
424
|
+
try:
|
|
425
|
+
return models.OutputDatabricksDataFormat(value)
|
|
426
|
+
except ValueError:
|
|
427
|
+
return value
|
|
428
|
+
return value
|
|
429
|
+
|
|
430
|
+
@field_serializer("on_backpressure")
|
|
431
|
+
def serialize_on_backpressure(self, value):
|
|
432
|
+
if isinstance(value, str):
|
|
433
|
+
try:
|
|
434
|
+
return models.OutputDatabricksBackpressureBehavior(value)
|
|
435
|
+
except ValueError:
|
|
436
|
+
return value
|
|
437
|
+
return value
|
|
438
|
+
|
|
439
|
+
@field_serializer("on_disk_full_backpressure")
|
|
440
|
+
def serialize_on_disk_full_backpressure(self, value):
|
|
441
|
+
if isinstance(value, str):
|
|
442
|
+
try:
|
|
443
|
+
return models.OutputDatabricksDiskSpaceProtection(value)
|
|
444
|
+
except ValueError:
|
|
445
|
+
return value
|
|
446
|
+
return value
|
|
447
|
+
|
|
448
|
+
@field_serializer("compress")
|
|
449
|
+
def serialize_compress(self, value):
|
|
450
|
+
if isinstance(value, str):
|
|
451
|
+
try:
|
|
452
|
+
return models.OutputDatabricksCompression(value)
|
|
453
|
+
except ValueError:
|
|
454
|
+
return value
|
|
455
|
+
return value
|
|
456
|
+
|
|
457
|
+
@field_serializer("compression_level")
|
|
458
|
+
def serialize_compression_level(self, value):
|
|
459
|
+
if isinstance(value, str):
|
|
460
|
+
try:
|
|
461
|
+
return models.OutputDatabricksCompressionLevel(value)
|
|
462
|
+
except ValueError:
|
|
463
|
+
return value
|
|
464
|
+
return value
|
|
465
|
+
|
|
466
|
+
@field_serializer("parquet_version")
|
|
467
|
+
def serialize_parquet_version(self, value):
|
|
468
|
+
if isinstance(value, str):
|
|
469
|
+
try:
|
|
470
|
+
return models.OutputDatabricksParquetVersion(value)
|
|
471
|
+
except ValueError:
|
|
472
|
+
return value
|
|
473
|
+
return value
|
|
474
|
+
|
|
475
|
+
@field_serializer("parquet_data_page_version")
|
|
476
|
+
def serialize_parquet_data_page_version(self, value):
|
|
477
|
+
if isinstance(value, str):
|
|
478
|
+
try:
|
|
479
|
+
return models.OutputDatabricksDataPageVersion(value)
|
|
480
|
+
except ValueError:
|
|
481
|
+
return value
|
|
482
|
+
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
|
|
@@ -528,3 +529,84 @@ class OutputDatadog(BaseModel):
|
|
|
528
529
|
|
|
529
530
|
text_secret: Annotated[Optional[str], pydantic.Field(alias="textSecret")] = None
|
|
530
531
|
r"""Select or create a stored text secret"""
|
|
532
|
+
|
|
533
|
+
@field_serializer("content_type")
|
|
534
|
+
def serialize_content_type(self, value):
|
|
535
|
+
if isinstance(value, str):
|
|
536
|
+
try:
|
|
537
|
+
return models.SendLogsAs(value)
|
|
538
|
+
except ValueError:
|
|
539
|
+
return value
|
|
540
|
+
return value
|
|
541
|
+
|
|
542
|
+
@field_serializer("severity")
|
|
543
|
+
def serialize_severity(self, value):
|
|
544
|
+
if isinstance(value, str):
|
|
545
|
+
try:
|
|
546
|
+
return models.OutputDatadogSeverity(value)
|
|
547
|
+
except ValueError:
|
|
548
|
+
return value
|
|
549
|
+
return value
|
|
550
|
+
|
|
551
|
+
@field_serializer("site")
|
|
552
|
+
def serialize_site(self, value):
|
|
553
|
+
if isinstance(value, str):
|
|
554
|
+
try:
|
|
555
|
+
return models.DatadogSite(value)
|
|
556
|
+
except ValueError:
|
|
557
|
+
return value
|
|
558
|
+
return value
|
|
559
|
+
|
|
560
|
+
@field_serializer("failed_request_logging_mode")
|
|
561
|
+
def serialize_failed_request_logging_mode(self, value):
|
|
562
|
+
if isinstance(value, str):
|
|
563
|
+
try:
|
|
564
|
+
return models.OutputDatadogFailedRequestLoggingMode(value)
|
|
565
|
+
except ValueError:
|
|
566
|
+
return value
|
|
567
|
+
return value
|
|
568
|
+
|
|
569
|
+
@field_serializer("on_backpressure")
|
|
570
|
+
def serialize_on_backpressure(self, value):
|
|
571
|
+
if isinstance(value, str):
|
|
572
|
+
try:
|
|
573
|
+
return models.OutputDatadogBackpressureBehavior(value)
|
|
574
|
+
except ValueError:
|
|
575
|
+
return value
|
|
576
|
+
return value
|
|
577
|
+
|
|
578
|
+
@field_serializer("auth_type")
|
|
579
|
+
def serialize_auth_type(self, value):
|
|
580
|
+
if isinstance(value, str):
|
|
581
|
+
try:
|
|
582
|
+
return models.OutputDatadogAuthenticationMethod(value)
|
|
583
|
+
except ValueError:
|
|
584
|
+
return value
|
|
585
|
+
return value
|
|
586
|
+
|
|
587
|
+
@field_serializer("pq_mode")
|
|
588
|
+
def serialize_pq_mode(self, value):
|
|
589
|
+
if isinstance(value, str):
|
|
590
|
+
try:
|
|
591
|
+
return models.OutputDatadogMode(value)
|
|
592
|
+
except ValueError:
|
|
593
|
+
return value
|
|
594
|
+
return value
|
|
595
|
+
|
|
596
|
+
@field_serializer("pq_compress")
|
|
597
|
+
def serialize_pq_compress(self, value):
|
|
598
|
+
if isinstance(value, str):
|
|
599
|
+
try:
|
|
600
|
+
return models.OutputDatadogCompression(value)
|
|
601
|
+
except ValueError:
|
|
602
|
+
return value
|
|
603
|
+
return value
|
|
604
|
+
|
|
605
|
+
@field_serializer("pq_on_backpressure")
|
|
606
|
+
def serialize_pq_on_backpressure(self, value):
|
|
607
|
+
if isinstance(value, str):
|
|
608
|
+
try:
|
|
609
|
+
return models.OutputDatadogQueueFullBehavior(value)
|
|
610
|
+
except ValueError:
|
|
611
|
+
return value
|
|
612
|
+
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
|
|
@@ -486,3 +487,75 @@ class OutputDataset(BaseModel):
|
|
|
486
487
|
|
|
487
488
|
text_secret: Annotated[Optional[str], pydantic.Field(alias="textSecret")] = None
|
|
488
489
|
r"""Select or create a stored text secret"""
|
|
490
|
+
|
|
491
|
+
@field_serializer("default_severity")
|
|
492
|
+
def serialize_default_severity(self, value):
|
|
493
|
+
if isinstance(value, str):
|
|
494
|
+
try:
|
|
495
|
+
return models.OutputDatasetSeverity(value)
|
|
496
|
+
except ValueError:
|
|
497
|
+
return value
|
|
498
|
+
return value
|
|
499
|
+
|
|
500
|
+
@field_serializer("site")
|
|
501
|
+
def serialize_site(self, value):
|
|
502
|
+
if isinstance(value, str):
|
|
503
|
+
try:
|
|
504
|
+
return models.DataSetSite(value)
|
|
505
|
+
except ValueError:
|
|
506
|
+
return value
|
|
507
|
+
return value
|
|
508
|
+
|
|
509
|
+
@field_serializer("failed_request_logging_mode")
|
|
510
|
+
def serialize_failed_request_logging_mode(self, value):
|
|
511
|
+
if isinstance(value, str):
|
|
512
|
+
try:
|
|
513
|
+
return models.OutputDatasetFailedRequestLoggingMode(value)
|
|
514
|
+
except ValueError:
|
|
515
|
+
return value
|
|
516
|
+
return value
|
|
517
|
+
|
|
518
|
+
@field_serializer("on_backpressure")
|
|
519
|
+
def serialize_on_backpressure(self, value):
|
|
520
|
+
if isinstance(value, str):
|
|
521
|
+
try:
|
|
522
|
+
return models.OutputDatasetBackpressureBehavior(value)
|
|
523
|
+
except ValueError:
|
|
524
|
+
return value
|
|
525
|
+
return value
|
|
526
|
+
|
|
527
|
+
@field_serializer("auth_type")
|
|
528
|
+
def serialize_auth_type(self, value):
|
|
529
|
+
if isinstance(value, str):
|
|
530
|
+
try:
|
|
531
|
+
return models.OutputDatasetAuthenticationMethod(value)
|
|
532
|
+
except ValueError:
|
|
533
|
+
return value
|
|
534
|
+
return value
|
|
535
|
+
|
|
536
|
+
@field_serializer("pq_mode")
|
|
537
|
+
def serialize_pq_mode(self, value):
|
|
538
|
+
if isinstance(value, str):
|
|
539
|
+
try:
|
|
540
|
+
return models.OutputDatasetMode(value)
|
|
541
|
+
except ValueError:
|
|
542
|
+
return value
|
|
543
|
+
return value
|
|
544
|
+
|
|
545
|
+
@field_serializer("pq_compress")
|
|
546
|
+
def serialize_pq_compress(self, value):
|
|
547
|
+
if isinstance(value, str):
|
|
548
|
+
try:
|
|
549
|
+
return models.OutputDatasetCompression(value)
|
|
550
|
+
except ValueError:
|
|
551
|
+
return value
|
|
552
|
+
return value
|
|
553
|
+
|
|
554
|
+
@field_serializer("pq_on_backpressure")
|
|
555
|
+
def serialize_pq_on_backpressure(self, value):
|
|
556
|
+
if isinstance(value, str):
|
|
557
|
+
try:
|
|
558
|
+
return models.OutputDatasetQueueFullBehavior(value)
|
|
559
|
+
except ValueError:
|
|
560
|
+
return value
|
|
561
|
+
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
|
|
@@ -87,3 +88,12 @@ class OutputDiskSpool(BaseModel):
|
|
|
87
88
|
r"""JavaScript expression defining how files are partitioned and organized within the time-buckets. If blank, the event's __partition property is used and otherwise, events go directly into the time-bucket directory."""
|
|
88
89
|
|
|
89
90
|
description: Optional[str] = None
|
|
91
|
+
|
|
92
|
+
@field_serializer("compress")
|
|
93
|
+
def serialize_compress(self, value):
|
|
94
|
+
if isinstance(value, str):
|
|
95
|
+
try:
|
|
96
|
+
return models.OutputDiskSpoolCompression(value)
|
|
97
|
+
except ValueError:
|
|
98
|
+
return value
|
|
99
|
+
return value
|