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
|
|
@@ -594,3 +595,111 @@ class OutputS3(BaseModel):
|
|
|
594
595
|
|
|
595
596
|
max_retry_num: Annotated[Optional[float], pydantic.Field(alias="maxRetryNum")] = 20
|
|
596
597
|
r"""The maximum number of times a file will attempt to move to its final destination before being dead-lettered"""
|
|
598
|
+
|
|
599
|
+
@field_serializer("aws_authentication_method")
|
|
600
|
+
def serialize_aws_authentication_method(self, value):
|
|
601
|
+
if isinstance(value, str):
|
|
602
|
+
try:
|
|
603
|
+
return models.OutputS3AuthenticationMethod(value)
|
|
604
|
+
except ValueError:
|
|
605
|
+
return value
|
|
606
|
+
return value
|
|
607
|
+
|
|
608
|
+
@field_serializer("signature_version")
|
|
609
|
+
def serialize_signature_version(self, value):
|
|
610
|
+
if isinstance(value, str):
|
|
611
|
+
try:
|
|
612
|
+
return models.OutputS3SignatureVersion(value)
|
|
613
|
+
except ValueError:
|
|
614
|
+
return value
|
|
615
|
+
return value
|
|
616
|
+
|
|
617
|
+
@field_serializer("object_acl")
|
|
618
|
+
def serialize_object_acl(self, value):
|
|
619
|
+
if isinstance(value, str):
|
|
620
|
+
try:
|
|
621
|
+
return models.OutputS3ObjectACL(value)
|
|
622
|
+
except ValueError:
|
|
623
|
+
return value
|
|
624
|
+
return value
|
|
625
|
+
|
|
626
|
+
@field_serializer("storage_class")
|
|
627
|
+
def serialize_storage_class(self, value):
|
|
628
|
+
if isinstance(value, str):
|
|
629
|
+
try:
|
|
630
|
+
return models.OutputS3StorageClass(value)
|
|
631
|
+
except ValueError:
|
|
632
|
+
return value
|
|
633
|
+
return value
|
|
634
|
+
|
|
635
|
+
@field_serializer("server_side_encryption")
|
|
636
|
+
def serialize_server_side_encryption(self, value):
|
|
637
|
+
if isinstance(value, str):
|
|
638
|
+
try:
|
|
639
|
+
return models.OutputS3ServerSideEncryptionForUploadedObjects(value)
|
|
640
|
+
except ValueError:
|
|
641
|
+
return value
|
|
642
|
+
return value
|
|
643
|
+
|
|
644
|
+
@field_serializer("format_")
|
|
645
|
+
def serialize_format_(self, value):
|
|
646
|
+
if isinstance(value, str):
|
|
647
|
+
try:
|
|
648
|
+
return models.OutputS3DataFormat(value)
|
|
649
|
+
except ValueError:
|
|
650
|
+
return value
|
|
651
|
+
return value
|
|
652
|
+
|
|
653
|
+
@field_serializer("on_backpressure")
|
|
654
|
+
def serialize_on_backpressure(self, value):
|
|
655
|
+
if isinstance(value, str):
|
|
656
|
+
try:
|
|
657
|
+
return models.OutputS3BackpressureBehavior(value)
|
|
658
|
+
except ValueError:
|
|
659
|
+
return value
|
|
660
|
+
return value
|
|
661
|
+
|
|
662
|
+
@field_serializer("on_disk_full_backpressure")
|
|
663
|
+
def serialize_on_disk_full_backpressure(self, value):
|
|
664
|
+
if isinstance(value, str):
|
|
665
|
+
try:
|
|
666
|
+
return models.OutputS3DiskSpaceProtection(value)
|
|
667
|
+
except ValueError:
|
|
668
|
+
return value
|
|
669
|
+
return value
|
|
670
|
+
|
|
671
|
+
@field_serializer("compress")
|
|
672
|
+
def serialize_compress(self, value):
|
|
673
|
+
if isinstance(value, str):
|
|
674
|
+
try:
|
|
675
|
+
return models.OutputS3Compression(value)
|
|
676
|
+
except ValueError:
|
|
677
|
+
return value
|
|
678
|
+
return value
|
|
679
|
+
|
|
680
|
+
@field_serializer("compression_level")
|
|
681
|
+
def serialize_compression_level(self, value):
|
|
682
|
+
if isinstance(value, str):
|
|
683
|
+
try:
|
|
684
|
+
return models.OutputS3CompressionLevel(value)
|
|
685
|
+
except ValueError:
|
|
686
|
+
return value
|
|
687
|
+
return value
|
|
688
|
+
|
|
689
|
+
@field_serializer("parquet_version")
|
|
690
|
+
def serialize_parquet_version(self, value):
|
|
691
|
+
if isinstance(value, str):
|
|
692
|
+
try:
|
|
693
|
+
return models.OutputS3ParquetVersion(value)
|
|
694
|
+
except ValueError:
|
|
695
|
+
return value
|
|
696
|
+
return value
|
|
697
|
+
|
|
698
|
+
@field_serializer("parquet_data_page_version")
|
|
699
|
+
def serialize_parquet_data_page_version(self, value):
|
|
700
|
+
if isinstance(value, str):
|
|
701
|
+
try:
|
|
702
|
+
return models.OutputS3DataPageVersion(value)
|
|
703
|
+
except ValueError:
|
|
704
|
+
return value
|
|
705
|
+
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
|
|
@@ -530,3 +531,86 @@ class OutputSecurityLake(BaseModel):
|
|
|
530
531
|
|
|
531
532
|
max_retry_num: Annotated[Optional[float], pydantic.Field(alias="maxRetryNum")] = 20
|
|
532
533
|
r"""The maximum number of times a file will attempt to move to its final destination before being dead-lettered"""
|
|
534
|
+
|
|
535
|
+
@field_serializer("aws_authentication_method")
|
|
536
|
+
def serialize_aws_authentication_method(self, value):
|
|
537
|
+
if isinstance(value, str):
|
|
538
|
+
try:
|
|
539
|
+
return models.OutputSecurityLakeAuthenticationMethod(value)
|
|
540
|
+
except ValueError:
|
|
541
|
+
return value
|
|
542
|
+
return value
|
|
543
|
+
|
|
544
|
+
@field_serializer("signature_version")
|
|
545
|
+
def serialize_signature_version(self, value):
|
|
546
|
+
if isinstance(value, str):
|
|
547
|
+
try:
|
|
548
|
+
return models.OutputSecurityLakeSignatureVersion(value)
|
|
549
|
+
except ValueError:
|
|
550
|
+
return value
|
|
551
|
+
return value
|
|
552
|
+
|
|
553
|
+
@field_serializer("object_acl")
|
|
554
|
+
def serialize_object_acl(self, value):
|
|
555
|
+
if isinstance(value, str):
|
|
556
|
+
try:
|
|
557
|
+
return models.OutputSecurityLakeObjectACL(value)
|
|
558
|
+
except ValueError:
|
|
559
|
+
return value
|
|
560
|
+
return value
|
|
561
|
+
|
|
562
|
+
@field_serializer("storage_class")
|
|
563
|
+
def serialize_storage_class(self, value):
|
|
564
|
+
if isinstance(value, str):
|
|
565
|
+
try:
|
|
566
|
+
return models.OutputSecurityLakeStorageClass(value)
|
|
567
|
+
except ValueError:
|
|
568
|
+
return value
|
|
569
|
+
return value
|
|
570
|
+
|
|
571
|
+
@field_serializer("server_side_encryption")
|
|
572
|
+
def serialize_server_side_encryption(self, value):
|
|
573
|
+
if isinstance(value, str):
|
|
574
|
+
try:
|
|
575
|
+
return models.OutputSecurityLakeServerSideEncryptionForUploadedObjects(
|
|
576
|
+
value
|
|
577
|
+
)
|
|
578
|
+
except ValueError:
|
|
579
|
+
return value
|
|
580
|
+
return value
|
|
581
|
+
|
|
582
|
+
@field_serializer("on_backpressure")
|
|
583
|
+
def serialize_on_backpressure(self, value):
|
|
584
|
+
if isinstance(value, str):
|
|
585
|
+
try:
|
|
586
|
+
return models.OutputSecurityLakeBackpressureBehavior(value)
|
|
587
|
+
except ValueError:
|
|
588
|
+
return value
|
|
589
|
+
return value
|
|
590
|
+
|
|
591
|
+
@field_serializer("on_disk_full_backpressure")
|
|
592
|
+
def serialize_on_disk_full_backpressure(self, value):
|
|
593
|
+
if isinstance(value, str):
|
|
594
|
+
try:
|
|
595
|
+
return models.OutputSecurityLakeDiskSpaceProtection(value)
|
|
596
|
+
except ValueError:
|
|
597
|
+
return value
|
|
598
|
+
return value
|
|
599
|
+
|
|
600
|
+
@field_serializer("parquet_version")
|
|
601
|
+
def serialize_parquet_version(self, value):
|
|
602
|
+
if isinstance(value, str):
|
|
603
|
+
try:
|
|
604
|
+
return models.OutputSecurityLakeParquetVersion(value)
|
|
605
|
+
except ValueError:
|
|
606
|
+
return value
|
|
607
|
+
return value
|
|
608
|
+
|
|
609
|
+
@field_serializer("parquet_data_page_version")
|
|
610
|
+
def serialize_parquet_data_page_version(self, value):
|
|
611
|
+
if isinstance(value, str):
|
|
612
|
+
try:
|
|
613
|
+
return models.OutputSecurityLakeDataPageVersion(value)
|
|
614
|
+
except ValueError:
|
|
615
|
+
return value
|
|
616
|
+
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
|
|
@@ -527,3 +528,75 @@ class OutputSentinel(BaseModel):
|
|
|
527
528
|
|
|
528
529
|
stream_name: Annotated[Optional[str], pydantic.Field(alias="streamName")] = None
|
|
529
530
|
r"""The name of the stream (Sentinel table) in which to store the events"""
|
|
531
|
+
|
|
532
|
+
@field_serializer("failed_request_logging_mode")
|
|
533
|
+
def serialize_failed_request_logging_mode(self, value):
|
|
534
|
+
if isinstance(value, str):
|
|
535
|
+
try:
|
|
536
|
+
return models.OutputSentinelFailedRequestLoggingMode(value)
|
|
537
|
+
except ValueError:
|
|
538
|
+
return value
|
|
539
|
+
return value
|
|
540
|
+
|
|
541
|
+
@field_serializer("on_backpressure")
|
|
542
|
+
def serialize_on_backpressure(self, value):
|
|
543
|
+
if isinstance(value, str):
|
|
544
|
+
try:
|
|
545
|
+
return models.OutputSentinelBackpressureBehavior(value)
|
|
546
|
+
except ValueError:
|
|
547
|
+
return value
|
|
548
|
+
return value
|
|
549
|
+
|
|
550
|
+
@field_serializer("auth_type")
|
|
551
|
+
def serialize_auth_type(self, value):
|
|
552
|
+
if isinstance(value, str):
|
|
553
|
+
try:
|
|
554
|
+
return models.AuthType(value)
|
|
555
|
+
except ValueError:
|
|
556
|
+
return value
|
|
557
|
+
return value
|
|
558
|
+
|
|
559
|
+
@field_serializer("endpoint_url_configuration")
|
|
560
|
+
def serialize_endpoint_url_configuration(self, value):
|
|
561
|
+
if isinstance(value, str):
|
|
562
|
+
try:
|
|
563
|
+
return models.EndpointConfiguration(value)
|
|
564
|
+
except ValueError:
|
|
565
|
+
return value
|
|
566
|
+
return value
|
|
567
|
+
|
|
568
|
+
@field_serializer("format_")
|
|
569
|
+
def serialize_format_(self, value):
|
|
570
|
+
if isinstance(value, str):
|
|
571
|
+
try:
|
|
572
|
+
return models.OutputSentinelFormat(value)
|
|
573
|
+
except ValueError:
|
|
574
|
+
return value
|
|
575
|
+
return value
|
|
576
|
+
|
|
577
|
+
@field_serializer("pq_mode")
|
|
578
|
+
def serialize_pq_mode(self, value):
|
|
579
|
+
if isinstance(value, str):
|
|
580
|
+
try:
|
|
581
|
+
return models.OutputSentinelMode(value)
|
|
582
|
+
except ValueError:
|
|
583
|
+
return value
|
|
584
|
+
return value
|
|
585
|
+
|
|
586
|
+
@field_serializer("pq_compress")
|
|
587
|
+
def serialize_pq_compress(self, value):
|
|
588
|
+
if isinstance(value, str):
|
|
589
|
+
try:
|
|
590
|
+
return models.OutputSentinelCompression(value)
|
|
591
|
+
except ValueError:
|
|
592
|
+
return value
|
|
593
|
+
return value
|
|
594
|
+
|
|
595
|
+
@field_serializer("pq_on_backpressure")
|
|
596
|
+
def serialize_pq_on_backpressure(self, value):
|
|
597
|
+
if isinstance(value, str):
|
|
598
|
+
try:
|
|
599
|
+
return models.OutputSentinelQueueFullBehavior(value)
|
|
600
|
+
except ValueError:
|
|
601
|
+
return value
|
|
602
|
+
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
|
|
@@ -542,3 +543,75 @@ class OutputSentinelOneAiSiem(BaseModel):
|
|
|
542
543
|
pq_controls: Annotated[
|
|
543
544
|
Optional[OutputSentinelOneAiSiemPqControls], pydantic.Field(alias="pqControls")
|
|
544
545
|
] = None
|
|
546
|
+
|
|
547
|
+
@field_serializer("region")
|
|
548
|
+
def serialize_region(self, value):
|
|
549
|
+
if isinstance(value, str):
|
|
550
|
+
try:
|
|
551
|
+
return models.OutputSentinelOneAiSiemRegion(value)
|
|
552
|
+
except ValueError:
|
|
553
|
+
return value
|
|
554
|
+
return value
|
|
555
|
+
|
|
556
|
+
@field_serializer("endpoint")
|
|
557
|
+
def serialize_endpoint(self, value):
|
|
558
|
+
if isinstance(value, str):
|
|
559
|
+
try:
|
|
560
|
+
return models.AISIEMEndpointPath(value)
|
|
561
|
+
except ValueError:
|
|
562
|
+
return value
|
|
563
|
+
return value
|
|
564
|
+
|
|
565
|
+
@field_serializer("failed_request_logging_mode")
|
|
566
|
+
def serialize_failed_request_logging_mode(self, value):
|
|
567
|
+
if isinstance(value, str):
|
|
568
|
+
try:
|
|
569
|
+
return models.OutputSentinelOneAiSiemFailedRequestLoggingMode(value)
|
|
570
|
+
except ValueError:
|
|
571
|
+
return value
|
|
572
|
+
return value
|
|
573
|
+
|
|
574
|
+
@field_serializer("auth_type")
|
|
575
|
+
def serialize_auth_type(self, value):
|
|
576
|
+
if isinstance(value, str):
|
|
577
|
+
try:
|
|
578
|
+
return models.OutputSentinelOneAiSiemAuthenticationMethod(value)
|
|
579
|
+
except ValueError:
|
|
580
|
+
return value
|
|
581
|
+
return value
|
|
582
|
+
|
|
583
|
+
@field_serializer("on_backpressure")
|
|
584
|
+
def serialize_on_backpressure(self, value):
|
|
585
|
+
if isinstance(value, str):
|
|
586
|
+
try:
|
|
587
|
+
return models.OutputSentinelOneAiSiemBackpressureBehavior(value)
|
|
588
|
+
except ValueError:
|
|
589
|
+
return value
|
|
590
|
+
return value
|
|
591
|
+
|
|
592
|
+
@field_serializer("pq_mode")
|
|
593
|
+
def serialize_pq_mode(self, value):
|
|
594
|
+
if isinstance(value, str):
|
|
595
|
+
try:
|
|
596
|
+
return models.OutputSentinelOneAiSiemMode(value)
|
|
597
|
+
except ValueError:
|
|
598
|
+
return value
|
|
599
|
+
return value
|
|
600
|
+
|
|
601
|
+
@field_serializer("pq_compress")
|
|
602
|
+
def serialize_pq_compress(self, value):
|
|
603
|
+
if isinstance(value, str):
|
|
604
|
+
try:
|
|
605
|
+
return models.OutputSentinelOneAiSiemCompression(value)
|
|
606
|
+
except ValueError:
|
|
607
|
+
return value
|
|
608
|
+
return value
|
|
609
|
+
|
|
610
|
+
@field_serializer("pq_on_backpressure")
|
|
611
|
+
def serialize_pq_on_backpressure(self, value):
|
|
612
|
+
if isinstance(value, str):
|
|
613
|
+
try:
|
|
614
|
+
return models.OutputSentinelOneAiSiemQueueFullBehavior(value)
|
|
615
|
+
except ValueError:
|
|
616
|
+
return value
|
|
617
|
+
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
|
|
@@ -226,6 +227,24 @@ class OutputServiceNowTLSSettingsClientSide(BaseModel):
|
|
|
226
227
|
pydantic.Field(alias="maxVersion"),
|
|
227
228
|
] = None
|
|
228
229
|
|
|
230
|
+
@field_serializer("min_version")
|
|
231
|
+
def serialize_min_version(self, value):
|
|
232
|
+
if isinstance(value, str):
|
|
233
|
+
try:
|
|
234
|
+
return models.OutputServiceNowMinimumTLSVersion(value)
|
|
235
|
+
except ValueError:
|
|
236
|
+
return value
|
|
237
|
+
return value
|
|
238
|
+
|
|
239
|
+
@field_serializer("max_version")
|
|
240
|
+
def serialize_max_version(self, value):
|
|
241
|
+
if isinstance(value, str):
|
|
242
|
+
try:
|
|
243
|
+
return models.OutputServiceNowMaximumTLSVersion(value)
|
|
244
|
+
except ValueError:
|
|
245
|
+
return value
|
|
246
|
+
return value
|
|
247
|
+
|
|
229
248
|
|
|
230
249
|
class OutputServiceNowMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
231
250
|
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."""
|
|
@@ -588,3 +607,84 @@ class OutputServiceNow(BaseModel):
|
|
|
588
607
|
pq_controls: Annotated[
|
|
589
608
|
Optional[OutputServiceNowPqControls], pydantic.Field(alias="pqControls")
|
|
590
609
|
] = None
|
|
610
|
+
|
|
611
|
+
@field_serializer("otlp_version")
|
|
612
|
+
def serialize_otlp_version(self, value):
|
|
613
|
+
if isinstance(value, str):
|
|
614
|
+
try:
|
|
615
|
+
return models.OutputServiceNowOTLPVersion(value)
|
|
616
|
+
except ValueError:
|
|
617
|
+
return value
|
|
618
|
+
return value
|
|
619
|
+
|
|
620
|
+
@field_serializer("protocol")
|
|
621
|
+
def serialize_protocol(self, value):
|
|
622
|
+
if isinstance(value, str):
|
|
623
|
+
try:
|
|
624
|
+
return models.OutputServiceNowProtocol(value)
|
|
625
|
+
except ValueError:
|
|
626
|
+
return value
|
|
627
|
+
return value
|
|
628
|
+
|
|
629
|
+
@field_serializer("compress")
|
|
630
|
+
def serialize_compress(self, value):
|
|
631
|
+
if isinstance(value, str):
|
|
632
|
+
try:
|
|
633
|
+
return models.OutputServiceNowCompressCompression(value)
|
|
634
|
+
except ValueError:
|
|
635
|
+
return value
|
|
636
|
+
return value
|
|
637
|
+
|
|
638
|
+
@field_serializer("http_compress")
|
|
639
|
+
def serialize_http_compress(self, value):
|
|
640
|
+
if isinstance(value, str):
|
|
641
|
+
try:
|
|
642
|
+
return models.OutputServiceNowHTTPCompressCompression(value)
|
|
643
|
+
except ValueError:
|
|
644
|
+
return value
|
|
645
|
+
return value
|
|
646
|
+
|
|
647
|
+
@field_serializer("failed_request_logging_mode")
|
|
648
|
+
def serialize_failed_request_logging_mode(self, value):
|
|
649
|
+
if isinstance(value, str):
|
|
650
|
+
try:
|
|
651
|
+
return models.OutputServiceNowFailedRequestLoggingMode(value)
|
|
652
|
+
except ValueError:
|
|
653
|
+
return value
|
|
654
|
+
return value
|
|
655
|
+
|
|
656
|
+
@field_serializer("on_backpressure")
|
|
657
|
+
def serialize_on_backpressure(self, value):
|
|
658
|
+
if isinstance(value, str):
|
|
659
|
+
try:
|
|
660
|
+
return models.OutputServiceNowBackpressureBehavior(value)
|
|
661
|
+
except ValueError:
|
|
662
|
+
return value
|
|
663
|
+
return value
|
|
664
|
+
|
|
665
|
+
@field_serializer("pq_mode")
|
|
666
|
+
def serialize_pq_mode(self, value):
|
|
667
|
+
if isinstance(value, str):
|
|
668
|
+
try:
|
|
669
|
+
return models.OutputServiceNowMode(value)
|
|
670
|
+
except ValueError:
|
|
671
|
+
return value
|
|
672
|
+
return value
|
|
673
|
+
|
|
674
|
+
@field_serializer("pq_compress")
|
|
675
|
+
def serialize_pq_compress(self, value):
|
|
676
|
+
if isinstance(value, str):
|
|
677
|
+
try:
|
|
678
|
+
return models.OutputServiceNowPqCompressCompression(value)
|
|
679
|
+
except ValueError:
|
|
680
|
+
return value
|
|
681
|
+
return value
|
|
682
|
+
|
|
683
|
+
@field_serializer("pq_on_backpressure")
|
|
684
|
+
def serialize_pq_on_backpressure(self, value):
|
|
685
|
+
if isinstance(value, str):
|
|
686
|
+
try:
|
|
687
|
+
return models.OutputServiceNowQueueFullBehavior(value)
|
|
688
|
+
except ValueError:
|
|
689
|
+
return value
|
|
690
|
+
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
|
|
@@ -408,3 +409,57 @@ class OutputSignalfx(BaseModel):
|
|
|
408
409
|
pq_controls: Annotated[
|
|
409
410
|
Optional[OutputSignalfxPqControls], pydantic.Field(alias="pqControls")
|
|
410
411
|
] = None
|
|
412
|
+
|
|
413
|
+
@field_serializer("auth_type")
|
|
414
|
+
def serialize_auth_type(self, value):
|
|
415
|
+
if isinstance(value, str):
|
|
416
|
+
try:
|
|
417
|
+
return models.OutputSignalfxAuthenticationMethod(value)
|
|
418
|
+
except ValueError:
|
|
419
|
+
return value
|
|
420
|
+
return value
|
|
421
|
+
|
|
422
|
+
@field_serializer("failed_request_logging_mode")
|
|
423
|
+
def serialize_failed_request_logging_mode(self, value):
|
|
424
|
+
if isinstance(value, str):
|
|
425
|
+
try:
|
|
426
|
+
return models.OutputSignalfxFailedRequestLoggingMode(value)
|
|
427
|
+
except ValueError:
|
|
428
|
+
return value
|
|
429
|
+
return value
|
|
430
|
+
|
|
431
|
+
@field_serializer("on_backpressure")
|
|
432
|
+
def serialize_on_backpressure(self, value):
|
|
433
|
+
if isinstance(value, str):
|
|
434
|
+
try:
|
|
435
|
+
return models.OutputSignalfxBackpressureBehavior(value)
|
|
436
|
+
except ValueError:
|
|
437
|
+
return value
|
|
438
|
+
return value
|
|
439
|
+
|
|
440
|
+
@field_serializer("pq_mode")
|
|
441
|
+
def serialize_pq_mode(self, value):
|
|
442
|
+
if isinstance(value, str):
|
|
443
|
+
try:
|
|
444
|
+
return models.OutputSignalfxMode(value)
|
|
445
|
+
except ValueError:
|
|
446
|
+
return value
|
|
447
|
+
return value
|
|
448
|
+
|
|
449
|
+
@field_serializer("pq_compress")
|
|
450
|
+
def serialize_pq_compress(self, value):
|
|
451
|
+
if isinstance(value, str):
|
|
452
|
+
try:
|
|
453
|
+
return models.OutputSignalfxCompression(value)
|
|
454
|
+
except ValueError:
|
|
455
|
+
return value
|
|
456
|
+
return value
|
|
457
|
+
|
|
458
|
+
@field_serializer("pq_on_backpressure")
|
|
459
|
+
def serialize_pq_on_backpressure(self, value):
|
|
460
|
+
if isinstance(value, str):
|
|
461
|
+
try:
|
|
462
|
+
return models.OutputSignalfxQueueFullBehavior(value)
|
|
463
|
+
except ValueError:
|
|
464
|
+
return value
|
|
465
|
+
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
|
|
@@ -311,3 +312,57 @@ class OutputSns(BaseModel):
|
|
|
311
312
|
pq_controls: Annotated[
|
|
312
313
|
Optional[OutputSnsPqControls], pydantic.Field(alias="pqControls")
|
|
313
314
|
] = None
|
|
315
|
+
|
|
316
|
+
@field_serializer("aws_authentication_method")
|
|
317
|
+
def serialize_aws_authentication_method(self, value):
|
|
318
|
+
if isinstance(value, str):
|
|
319
|
+
try:
|
|
320
|
+
return models.OutputSnsAuthenticationMethod(value)
|
|
321
|
+
except ValueError:
|
|
322
|
+
return value
|
|
323
|
+
return value
|
|
324
|
+
|
|
325
|
+
@field_serializer("signature_version")
|
|
326
|
+
def serialize_signature_version(self, value):
|
|
327
|
+
if isinstance(value, str):
|
|
328
|
+
try:
|
|
329
|
+
return models.OutputSnsSignatureVersion(value)
|
|
330
|
+
except ValueError:
|
|
331
|
+
return value
|
|
332
|
+
return value
|
|
333
|
+
|
|
334
|
+
@field_serializer("on_backpressure")
|
|
335
|
+
def serialize_on_backpressure(self, value):
|
|
336
|
+
if isinstance(value, str):
|
|
337
|
+
try:
|
|
338
|
+
return models.OutputSnsBackpressureBehavior(value)
|
|
339
|
+
except ValueError:
|
|
340
|
+
return value
|
|
341
|
+
return value
|
|
342
|
+
|
|
343
|
+
@field_serializer("pq_mode")
|
|
344
|
+
def serialize_pq_mode(self, value):
|
|
345
|
+
if isinstance(value, str):
|
|
346
|
+
try:
|
|
347
|
+
return models.OutputSnsMode(value)
|
|
348
|
+
except ValueError:
|
|
349
|
+
return value
|
|
350
|
+
return value
|
|
351
|
+
|
|
352
|
+
@field_serializer("pq_compress")
|
|
353
|
+
def serialize_pq_compress(self, value):
|
|
354
|
+
if isinstance(value, str):
|
|
355
|
+
try:
|
|
356
|
+
return models.OutputSnsCompression(value)
|
|
357
|
+
except ValueError:
|
|
358
|
+
return value
|
|
359
|
+
return value
|
|
360
|
+
|
|
361
|
+
@field_serializer("pq_on_backpressure")
|
|
362
|
+
def serialize_pq_on_backpressure(self, value):
|
|
363
|
+
if isinstance(value, str):
|
|
364
|
+
try:
|
|
365
|
+
return models.OutputSnsQueueFullBehavior(value)
|
|
366
|
+
except ValueError:
|
|
367
|
+
return value
|
|
368
|
+
return value
|