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
|
|
@@ -425,3 +426,57 @@ class OutputAzureLogs(BaseModel):
|
|
|
425
426
|
None
|
|
426
427
|
)
|
|
427
428
|
r"""Select or create a stored secret that references your access key and secret key"""
|
|
429
|
+
|
|
430
|
+
@field_serializer("failed_request_logging_mode")
|
|
431
|
+
def serialize_failed_request_logging_mode(self, value):
|
|
432
|
+
if isinstance(value, str):
|
|
433
|
+
try:
|
|
434
|
+
return models.OutputAzureLogsFailedRequestLoggingMode(value)
|
|
435
|
+
except ValueError:
|
|
436
|
+
return value
|
|
437
|
+
return value
|
|
438
|
+
|
|
439
|
+
@field_serializer("on_backpressure")
|
|
440
|
+
def serialize_on_backpressure(self, value):
|
|
441
|
+
if isinstance(value, str):
|
|
442
|
+
try:
|
|
443
|
+
return models.OutputAzureLogsBackpressureBehavior(value)
|
|
444
|
+
except ValueError:
|
|
445
|
+
return value
|
|
446
|
+
return value
|
|
447
|
+
|
|
448
|
+
@field_serializer("auth_type")
|
|
449
|
+
def serialize_auth_type(self, value):
|
|
450
|
+
if isinstance(value, str):
|
|
451
|
+
try:
|
|
452
|
+
return models.OutputAzureLogsAuthenticationMethod(value)
|
|
453
|
+
except ValueError:
|
|
454
|
+
return value
|
|
455
|
+
return value
|
|
456
|
+
|
|
457
|
+
@field_serializer("pq_mode")
|
|
458
|
+
def serialize_pq_mode(self, value):
|
|
459
|
+
if isinstance(value, str):
|
|
460
|
+
try:
|
|
461
|
+
return models.OutputAzureLogsMode(value)
|
|
462
|
+
except ValueError:
|
|
463
|
+
return value
|
|
464
|
+
return value
|
|
465
|
+
|
|
466
|
+
@field_serializer("pq_compress")
|
|
467
|
+
def serialize_pq_compress(self, value):
|
|
468
|
+
if isinstance(value, str):
|
|
469
|
+
try:
|
|
470
|
+
return models.OutputAzureLogsCompression(value)
|
|
471
|
+
except ValueError:
|
|
472
|
+
return value
|
|
473
|
+
return value
|
|
474
|
+
|
|
475
|
+
@field_serializer("pq_on_backpressure")
|
|
476
|
+
def serialize_pq_on_backpressure(self, value):
|
|
477
|
+
if isinstance(value, str):
|
|
478
|
+
try:
|
|
479
|
+
return models.OutputAzureLogsQueueFullBehavior(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
|
|
@@ -470,3 +471,57 @@ class OutputChronicle(BaseModel):
|
|
|
470
471
|
pq_controls: Annotated[
|
|
471
472
|
Optional[OutputChroniclePqControls], pydantic.Field(alias="pqControls")
|
|
472
473
|
] = None
|
|
474
|
+
|
|
475
|
+
@field_serializer("authentication_method")
|
|
476
|
+
def serialize_authentication_method(self, value):
|
|
477
|
+
if isinstance(value, str):
|
|
478
|
+
try:
|
|
479
|
+
return models.OutputChronicleAuthenticationMethod(value)
|
|
480
|
+
except ValueError:
|
|
481
|
+
return value
|
|
482
|
+
return value
|
|
483
|
+
|
|
484
|
+
@field_serializer("failed_request_logging_mode")
|
|
485
|
+
def serialize_failed_request_logging_mode(self, value):
|
|
486
|
+
if isinstance(value, str):
|
|
487
|
+
try:
|
|
488
|
+
return models.OutputChronicleFailedRequestLoggingMode(value)
|
|
489
|
+
except ValueError:
|
|
490
|
+
return value
|
|
491
|
+
return value
|
|
492
|
+
|
|
493
|
+
@field_serializer("on_backpressure")
|
|
494
|
+
def serialize_on_backpressure(self, value):
|
|
495
|
+
if isinstance(value, str):
|
|
496
|
+
try:
|
|
497
|
+
return models.OutputChronicleBackpressureBehavior(value)
|
|
498
|
+
except ValueError:
|
|
499
|
+
return value
|
|
500
|
+
return value
|
|
501
|
+
|
|
502
|
+
@field_serializer("pq_mode")
|
|
503
|
+
def serialize_pq_mode(self, value):
|
|
504
|
+
if isinstance(value, str):
|
|
505
|
+
try:
|
|
506
|
+
return models.OutputChronicleMode(value)
|
|
507
|
+
except ValueError:
|
|
508
|
+
return value
|
|
509
|
+
return value
|
|
510
|
+
|
|
511
|
+
@field_serializer("pq_compress")
|
|
512
|
+
def serialize_pq_compress(self, value):
|
|
513
|
+
if isinstance(value, str):
|
|
514
|
+
try:
|
|
515
|
+
return models.OutputChronicleCompression(value)
|
|
516
|
+
except ValueError:
|
|
517
|
+
return value
|
|
518
|
+
return value
|
|
519
|
+
|
|
520
|
+
@field_serializer("pq_on_backpressure")
|
|
521
|
+
def serialize_pq_on_backpressure(self, value):
|
|
522
|
+
if isinstance(value, str):
|
|
523
|
+
try:
|
|
524
|
+
return models.OutputChronicleQueueFullBehavior(value)
|
|
525
|
+
except ValueError:
|
|
526
|
+
return value
|
|
527
|
+
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
|
|
@@ -114,6 +115,24 @@ class OutputClickHouseTLSSettingsClientSide(BaseModel):
|
|
|
114
115
|
pydantic.Field(alias="maxVersion"),
|
|
115
116
|
] = None
|
|
116
117
|
|
|
118
|
+
@field_serializer("min_version")
|
|
119
|
+
def serialize_min_version(self, value):
|
|
120
|
+
if isinstance(value, str):
|
|
121
|
+
try:
|
|
122
|
+
return models.OutputClickHouseMinimumTLSVersion(value)
|
|
123
|
+
except ValueError:
|
|
124
|
+
return value
|
|
125
|
+
return value
|
|
126
|
+
|
|
127
|
+
@field_serializer("max_version")
|
|
128
|
+
def serialize_max_version(self, value):
|
|
129
|
+
if isinstance(value, str):
|
|
130
|
+
try:
|
|
131
|
+
return models.OutputClickHouseMaximumTLSVersion(value)
|
|
132
|
+
except ValueError:
|
|
133
|
+
return value
|
|
134
|
+
return value
|
|
135
|
+
|
|
117
136
|
|
|
118
137
|
class OutputClickHouseExtraHTTPHeaderTypedDict(TypedDict):
|
|
119
138
|
value: str
|
|
@@ -691,3 +710,75 @@ class OutputClickHouse(BaseModel):
|
|
|
691
710
|
pq_controls: Annotated[
|
|
692
711
|
Optional[OutputClickHousePqControls], pydantic.Field(alias="pqControls")
|
|
693
712
|
] = None
|
|
713
|
+
|
|
714
|
+
@field_serializer("auth_type")
|
|
715
|
+
def serialize_auth_type(self, value):
|
|
716
|
+
if isinstance(value, str):
|
|
717
|
+
try:
|
|
718
|
+
return models.OutputClickHouseAuthenticationType(value)
|
|
719
|
+
except ValueError:
|
|
720
|
+
return value
|
|
721
|
+
return value
|
|
722
|
+
|
|
723
|
+
@field_serializer("format_")
|
|
724
|
+
def serialize_format_(self, value):
|
|
725
|
+
if isinstance(value, str):
|
|
726
|
+
try:
|
|
727
|
+
return models.OutputClickHouseFormat(value)
|
|
728
|
+
except ValueError:
|
|
729
|
+
return value
|
|
730
|
+
return value
|
|
731
|
+
|
|
732
|
+
@field_serializer("mapping_type")
|
|
733
|
+
def serialize_mapping_type(self, value):
|
|
734
|
+
if isinstance(value, str):
|
|
735
|
+
try:
|
|
736
|
+
return models.MappingType(value)
|
|
737
|
+
except ValueError:
|
|
738
|
+
return value
|
|
739
|
+
return value
|
|
740
|
+
|
|
741
|
+
@field_serializer("failed_request_logging_mode")
|
|
742
|
+
def serialize_failed_request_logging_mode(self, value):
|
|
743
|
+
if isinstance(value, str):
|
|
744
|
+
try:
|
|
745
|
+
return models.OutputClickHouseFailedRequestLoggingMode(value)
|
|
746
|
+
except ValueError:
|
|
747
|
+
return value
|
|
748
|
+
return value
|
|
749
|
+
|
|
750
|
+
@field_serializer("on_backpressure")
|
|
751
|
+
def serialize_on_backpressure(self, value):
|
|
752
|
+
if isinstance(value, str):
|
|
753
|
+
try:
|
|
754
|
+
return models.OutputClickHouseBackpressureBehavior(value)
|
|
755
|
+
except ValueError:
|
|
756
|
+
return value
|
|
757
|
+
return value
|
|
758
|
+
|
|
759
|
+
@field_serializer("pq_mode")
|
|
760
|
+
def serialize_pq_mode(self, value):
|
|
761
|
+
if isinstance(value, str):
|
|
762
|
+
try:
|
|
763
|
+
return models.OutputClickHouseMode(value)
|
|
764
|
+
except ValueError:
|
|
765
|
+
return value
|
|
766
|
+
return value
|
|
767
|
+
|
|
768
|
+
@field_serializer("pq_compress")
|
|
769
|
+
def serialize_pq_compress(self, value):
|
|
770
|
+
if isinstance(value, str):
|
|
771
|
+
try:
|
|
772
|
+
return models.OutputClickHouseCompression(value)
|
|
773
|
+
except ValueError:
|
|
774
|
+
return value
|
|
775
|
+
return value
|
|
776
|
+
|
|
777
|
+
@field_serializer("pq_on_backpressure")
|
|
778
|
+
def serialize_pq_on_backpressure(self, value):
|
|
779
|
+
if isinstance(value, str):
|
|
780
|
+
try:
|
|
781
|
+
return models.OutputClickHouseQueueFullBehavior(value)
|
|
782
|
+
except ValueError:
|
|
783
|
+
return value
|
|
784
|
+
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
|
|
@@ -310,3 +311,48 @@ class OutputCloudwatch(BaseModel):
|
|
|
310
311
|
pq_controls: Annotated[
|
|
311
312
|
Optional[OutputCloudwatchPqControls], pydantic.Field(alias="pqControls")
|
|
312
313
|
] = None
|
|
314
|
+
|
|
315
|
+
@field_serializer("aws_authentication_method")
|
|
316
|
+
def serialize_aws_authentication_method(self, value):
|
|
317
|
+
if isinstance(value, str):
|
|
318
|
+
try:
|
|
319
|
+
return models.OutputCloudwatchAuthenticationMethod(value)
|
|
320
|
+
except ValueError:
|
|
321
|
+
return value
|
|
322
|
+
return value
|
|
323
|
+
|
|
324
|
+
@field_serializer("on_backpressure")
|
|
325
|
+
def serialize_on_backpressure(self, value):
|
|
326
|
+
if isinstance(value, str):
|
|
327
|
+
try:
|
|
328
|
+
return models.OutputCloudwatchBackpressureBehavior(value)
|
|
329
|
+
except ValueError:
|
|
330
|
+
return value
|
|
331
|
+
return value
|
|
332
|
+
|
|
333
|
+
@field_serializer("pq_mode")
|
|
334
|
+
def serialize_pq_mode(self, value):
|
|
335
|
+
if isinstance(value, str):
|
|
336
|
+
try:
|
|
337
|
+
return models.OutputCloudwatchMode(value)
|
|
338
|
+
except ValueError:
|
|
339
|
+
return value
|
|
340
|
+
return value
|
|
341
|
+
|
|
342
|
+
@field_serializer("pq_compress")
|
|
343
|
+
def serialize_pq_compress(self, value):
|
|
344
|
+
if isinstance(value, str):
|
|
345
|
+
try:
|
|
346
|
+
return models.OutputCloudwatchCompression(value)
|
|
347
|
+
except ValueError:
|
|
348
|
+
return value
|
|
349
|
+
return value
|
|
350
|
+
|
|
351
|
+
@field_serializer("pq_on_backpressure")
|
|
352
|
+
def serialize_pq_on_backpressure(self, value):
|
|
353
|
+
if isinstance(value, str):
|
|
354
|
+
try:
|
|
355
|
+
return models.OutputCloudwatchQueueFullBehavior(value)
|
|
356
|
+
except ValueError:
|
|
357
|
+
return value
|
|
358
|
+
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
|
|
@@ -97,6 +98,24 @@ class OutputConfluentCloudTLSSettingsClientSide(BaseModel):
|
|
|
97
98
|
pydantic.Field(alias="maxVersion"),
|
|
98
99
|
] = None
|
|
99
100
|
|
|
101
|
+
@field_serializer("min_version")
|
|
102
|
+
def serialize_min_version(self, value):
|
|
103
|
+
if isinstance(value, str):
|
|
104
|
+
try:
|
|
105
|
+
return models.OutputConfluentCloudMinimumTLSVersion(value)
|
|
106
|
+
except ValueError:
|
|
107
|
+
return value
|
|
108
|
+
return value
|
|
109
|
+
|
|
110
|
+
@field_serializer("max_version")
|
|
111
|
+
def serialize_max_version(self, value):
|
|
112
|
+
if isinstance(value, str):
|
|
113
|
+
try:
|
|
114
|
+
return models.OutputConfluentCloudMaximumTLSVersion(value)
|
|
115
|
+
except ValueError:
|
|
116
|
+
return value
|
|
117
|
+
return value
|
|
118
|
+
|
|
100
119
|
|
|
101
120
|
class OutputConfluentCloudAcknowledgments(int, Enum, metaclass=utils.OpenEnumMeta):
|
|
102
121
|
r"""Control the number of required acknowledgments."""
|
|
@@ -131,6 +150,8 @@ class OutputConfluentCloudCompression(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
|
131
150
|
SNAPPY = "snappy"
|
|
132
151
|
# LZ4
|
|
133
152
|
LZ4 = "lz4"
|
|
153
|
+
# ZSTD
|
|
154
|
+
ZSTD = "zstd"
|
|
134
155
|
|
|
135
156
|
|
|
136
157
|
class OutputConfluentCloudAuthTypedDict(TypedDict):
|
|
@@ -238,6 +259,28 @@ class OutputConfluentCloudKafkaSchemaRegistryTLSSettingsClientSide(BaseModel):
|
|
|
238
259
|
pydantic.Field(alias="maxVersion"),
|
|
239
260
|
] = None
|
|
240
261
|
|
|
262
|
+
@field_serializer("min_version")
|
|
263
|
+
def serialize_min_version(self, value):
|
|
264
|
+
if isinstance(value, str):
|
|
265
|
+
try:
|
|
266
|
+
return models.OutputConfluentCloudKafkaSchemaRegistryMinimumTLSVersion(
|
|
267
|
+
value
|
|
268
|
+
)
|
|
269
|
+
except ValueError:
|
|
270
|
+
return value
|
|
271
|
+
return value
|
|
272
|
+
|
|
273
|
+
@field_serializer("max_version")
|
|
274
|
+
def serialize_max_version(self, value):
|
|
275
|
+
if isinstance(value, str):
|
|
276
|
+
try:
|
|
277
|
+
return models.OutputConfluentCloudKafkaSchemaRegistryMaximumTLSVersion(
|
|
278
|
+
value
|
|
279
|
+
)
|
|
280
|
+
except ValueError:
|
|
281
|
+
return value
|
|
282
|
+
return value
|
|
283
|
+
|
|
241
284
|
|
|
242
285
|
class OutputConfluentCloudKafkaSchemaRegistryAuthenticationTypedDict(TypedDict):
|
|
243
286
|
disabled: NotRequired[bool]
|
|
@@ -442,6 +485,24 @@ class OutputConfluentCloudAuthentication(BaseModel):
|
|
|
442
485
|
] = None
|
|
443
486
|
r"""Additional SASL extension fields, such as Confluent's logicalCluster or identityPoolId"""
|
|
444
487
|
|
|
488
|
+
@field_serializer("auth_type")
|
|
489
|
+
def serialize_auth_type(self, value):
|
|
490
|
+
if isinstance(value, str):
|
|
491
|
+
try:
|
|
492
|
+
return models.OutputConfluentCloudAuthenticationMethod(value)
|
|
493
|
+
except ValueError:
|
|
494
|
+
return value
|
|
495
|
+
return value
|
|
496
|
+
|
|
497
|
+
@field_serializer("mechanism")
|
|
498
|
+
def serialize_mechanism(self, value):
|
|
499
|
+
if isinstance(value, str):
|
|
500
|
+
try:
|
|
501
|
+
return models.OutputConfluentCloudSASLMechanism(value)
|
|
502
|
+
except ValueError:
|
|
503
|
+
return value
|
|
504
|
+
return value
|
|
505
|
+
|
|
445
506
|
|
|
446
507
|
class OutputConfluentCloudBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
447
508
|
r"""How to handle events when all receivers are exerting backpressure"""
|
|
@@ -763,3 +824,66 @@ class OutputConfluentCloud(BaseModel):
|
|
|
763
824
|
pq_controls: Annotated[
|
|
764
825
|
Optional[OutputConfluentCloudPqControls], pydantic.Field(alias="pqControls")
|
|
765
826
|
] = None
|
|
827
|
+
|
|
828
|
+
@field_serializer("ack")
|
|
829
|
+
def serialize_ack(self, value):
|
|
830
|
+
if isinstance(value, str):
|
|
831
|
+
try:
|
|
832
|
+
return models.OutputConfluentCloudAcknowledgments(value)
|
|
833
|
+
except ValueError:
|
|
834
|
+
return value
|
|
835
|
+
return value
|
|
836
|
+
|
|
837
|
+
@field_serializer("format_")
|
|
838
|
+
def serialize_format_(self, value):
|
|
839
|
+
if isinstance(value, str):
|
|
840
|
+
try:
|
|
841
|
+
return models.OutputConfluentCloudRecordDataFormat(value)
|
|
842
|
+
except ValueError:
|
|
843
|
+
return value
|
|
844
|
+
return value
|
|
845
|
+
|
|
846
|
+
@field_serializer("compression")
|
|
847
|
+
def serialize_compression(self, value):
|
|
848
|
+
if isinstance(value, str):
|
|
849
|
+
try:
|
|
850
|
+
return models.OutputConfluentCloudCompression(value)
|
|
851
|
+
except ValueError:
|
|
852
|
+
return value
|
|
853
|
+
return value
|
|
854
|
+
|
|
855
|
+
@field_serializer("on_backpressure")
|
|
856
|
+
def serialize_on_backpressure(self, value):
|
|
857
|
+
if isinstance(value, str):
|
|
858
|
+
try:
|
|
859
|
+
return models.OutputConfluentCloudBackpressureBehavior(value)
|
|
860
|
+
except ValueError:
|
|
861
|
+
return value
|
|
862
|
+
return value
|
|
863
|
+
|
|
864
|
+
@field_serializer("pq_mode")
|
|
865
|
+
def serialize_pq_mode(self, value):
|
|
866
|
+
if isinstance(value, str):
|
|
867
|
+
try:
|
|
868
|
+
return models.OutputConfluentCloudMode(value)
|
|
869
|
+
except ValueError:
|
|
870
|
+
return value
|
|
871
|
+
return value
|
|
872
|
+
|
|
873
|
+
@field_serializer("pq_compress")
|
|
874
|
+
def serialize_pq_compress(self, value):
|
|
875
|
+
if isinstance(value, str):
|
|
876
|
+
try:
|
|
877
|
+
return models.OutputConfluentCloudPqCompressCompression(value)
|
|
878
|
+
except ValueError:
|
|
879
|
+
return value
|
|
880
|
+
return value
|
|
881
|
+
|
|
882
|
+
@field_serializer("pq_on_backpressure")
|
|
883
|
+
def serialize_pq_on_backpressure(self, value):
|
|
884
|
+
if isinstance(value, str):
|
|
885
|
+
try:
|
|
886
|
+
return models.OutputConfluentCloudQueueFullBehavior(value)
|
|
887
|
+
except ValueError:
|
|
888
|
+
return value
|
|
889
|
+
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
|
|
@@ -97,6 +98,24 @@ class OutputCriblHTTPTLSSettingsClientSide(BaseModel):
|
|
|
97
98
|
pydantic.Field(alias="maxVersion"),
|
|
98
99
|
] = None
|
|
99
100
|
|
|
101
|
+
@field_serializer("min_version")
|
|
102
|
+
def serialize_min_version(self, value):
|
|
103
|
+
if isinstance(value, str):
|
|
104
|
+
try:
|
|
105
|
+
return models.OutputCriblHTTPMinimumTLSVersion(value)
|
|
106
|
+
except ValueError:
|
|
107
|
+
return value
|
|
108
|
+
return value
|
|
109
|
+
|
|
110
|
+
@field_serializer("max_version")
|
|
111
|
+
def serialize_max_version(self, value):
|
|
112
|
+
if isinstance(value, str):
|
|
113
|
+
try:
|
|
114
|
+
return models.OutputCriblHTTPMaximumTLSVersion(value)
|
|
115
|
+
except ValueError:
|
|
116
|
+
return value
|
|
117
|
+
return value
|
|
118
|
+
|
|
100
119
|
|
|
101
120
|
class OutputCriblHTTPCompression(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
102
121
|
r"""Codec to use to compress the data before sending"""
|
|
@@ -183,6 +202,22 @@ class OutputCriblHTTPTimeoutRetrySettings(BaseModel):
|
|
|
183
202
|
r"""The maximum backoff interval, in milliseconds, Cribl Stream should apply. Default (and minimum) is 10,000 ms (10 seconds); maximum is 180,000 ms (180 seconds)."""
|
|
184
203
|
|
|
185
204
|
|
|
205
|
+
class OutputCriblHTTPAuthTokenTypedDict(TypedDict):
|
|
206
|
+
token_secret: str
|
|
207
|
+
r"""Select or create a stored text secret"""
|
|
208
|
+
enabled: NotRequired[bool]
|
|
209
|
+
description: NotRequired[str]
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
class OutputCriblHTTPAuthToken(BaseModel):
|
|
213
|
+
token_secret: Annotated[str, pydantic.Field(alias="tokenSecret")]
|
|
214
|
+
r"""Select or create a stored text secret"""
|
|
215
|
+
|
|
216
|
+
enabled: Optional[bool] = True
|
|
217
|
+
|
|
218
|
+
description: Optional[str] = None
|
|
219
|
+
|
|
220
|
+
|
|
186
221
|
class OutputCriblHTTPBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
187
222
|
r"""How to handle events when all receivers are exerting backpressure"""
|
|
188
223
|
|
|
@@ -295,6 +330,8 @@ class OutputCriblHTTPTypedDict(TypedDict):
|
|
|
295
330
|
timeout_retry_settings: NotRequired[OutputCriblHTTPTimeoutRetrySettingsTypedDict]
|
|
296
331
|
response_honor_retry_after_header: NotRequired[bool]
|
|
297
332
|
r"""Honor any Retry-After header that specifies a delay (in seconds) no longer than 180 seconds after the retry request. @{product} limits the delay to 180 seconds, even if the Retry-After header specifies a longer delay. When enabled, takes precedence over user-configured retry options. When disabled, all Retry-After headers are ignored."""
|
|
333
|
+
auth_tokens: NotRequired[List[OutputCriblHTTPAuthTokenTypedDict]]
|
|
334
|
+
r"""Shared secrets to be used by connected environments to authorize connections. These tokens should also be installed in Cribl HTTP Source in Cribl.Cloud."""
|
|
298
335
|
on_backpressure: NotRequired[OutputCriblHTTPBackpressureBehavior]
|
|
299
336
|
r"""How to handle events when all receivers are exerting backpressure"""
|
|
300
337
|
description: NotRequired[str]
|
|
@@ -439,6 +476,11 @@ class OutputCriblHTTP(BaseModel):
|
|
|
439
476
|
] = True
|
|
440
477
|
r"""Honor any Retry-After header that specifies a delay (in seconds) no longer than 180 seconds after the retry request. @{product} limits the delay to 180 seconds, even if the Retry-After header specifies a longer delay. When enabled, takes precedence over user-configured retry options. When disabled, all Retry-After headers are ignored."""
|
|
441
478
|
|
|
479
|
+
auth_tokens: Annotated[
|
|
480
|
+
Optional[List[OutputCriblHTTPAuthToken]], pydantic.Field(alias="authTokens")
|
|
481
|
+
] = None
|
|
482
|
+
r"""Shared secrets to be used by connected environments to authorize connections. These tokens should also be installed in Cribl HTTP Source in Cribl.Cloud."""
|
|
483
|
+
|
|
442
484
|
on_backpressure: Annotated[
|
|
443
485
|
Annotated[
|
|
444
486
|
Optional[OutputCriblHTTPBackpressureBehavior],
|
|
@@ -535,3 +577,57 @@ class OutputCriblHTTP(BaseModel):
|
|
|
535
577
|
pq_controls: Annotated[
|
|
536
578
|
Optional[OutputCriblHTTPPqControls], pydantic.Field(alias="pqControls")
|
|
537
579
|
] = None
|
|
580
|
+
|
|
581
|
+
@field_serializer("compression")
|
|
582
|
+
def serialize_compression(self, value):
|
|
583
|
+
if isinstance(value, str):
|
|
584
|
+
try:
|
|
585
|
+
return models.OutputCriblHTTPCompression(value)
|
|
586
|
+
except ValueError:
|
|
587
|
+
return value
|
|
588
|
+
return value
|
|
589
|
+
|
|
590
|
+
@field_serializer("failed_request_logging_mode")
|
|
591
|
+
def serialize_failed_request_logging_mode(self, value):
|
|
592
|
+
if isinstance(value, str):
|
|
593
|
+
try:
|
|
594
|
+
return models.OutputCriblHTTPFailedRequestLoggingMode(value)
|
|
595
|
+
except ValueError:
|
|
596
|
+
return value
|
|
597
|
+
return value
|
|
598
|
+
|
|
599
|
+
@field_serializer("on_backpressure")
|
|
600
|
+
def serialize_on_backpressure(self, value):
|
|
601
|
+
if isinstance(value, str):
|
|
602
|
+
try:
|
|
603
|
+
return models.OutputCriblHTTPBackpressureBehavior(value)
|
|
604
|
+
except ValueError:
|
|
605
|
+
return value
|
|
606
|
+
return value
|
|
607
|
+
|
|
608
|
+
@field_serializer("pq_mode")
|
|
609
|
+
def serialize_pq_mode(self, value):
|
|
610
|
+
if isinstance(value, str):
|
|
611
|
+
try:
|
|
612
|
+
return models.OutputCriblHTTPMode(value)
|
|
613
|
+
except ValueError:
|
|
614
|
+
return value
|
|
615
|
+
return value
|
|
616
|
+
|
|
617
|
+
@field_serializer("pq_compress")
|
|
618
|
+
def serialize_pq_compress(self, value):
|
|
619
|
+
if isinstance(value, str):
|
|
620
|
+
try:
|
|
621
|
+
return models.OutputCriblHTTPPqCompressCompression(value)
|
|
622
|
+
except ValueError:
|
|
623
|
+
return value
|
|
624
|
+
return value
|
|
625
|
+
|
|
626
|
+
@field_serializer("pq_on_backpressure")
|
|
627
|
+
def serialize_pq_on_backpressure(self, value):
|
|
628
|
+
if isinstance(value, str):
|
|
629
|
+
try:
|
|
630
|
+
return models.OutputCriblHTTPQueueFullBehavior(value)
|
|
631
|
+
except ValueError:
|
|
632
|
+
return value
|
|
633
|
+
return value
|