cribl-control-plane 0.2.1rc7__py3-none-any.whl → 0.3.0a1__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/errors/__init__.py +5 -8
- cribl_control_plane/errors/{healthserverstatus_error.py → healthstatus_error.py} +9 -10
- cribl_control_plane/groups_sdk.py +28 -52
- cribl_control_plane/health.py +16 -22
- cribl_control_plane/models/__init__.py +54 -217
- cribl_control_plane/models/appmode.py +14 -0
- cribl_control_plane/models/authtoken.py +1 -5
- cribl_control_plane/models/cacheconnection.py +0 -20
- cribl_control_plane/models/configgroup.py +7 -55
- cribl_control_plane/models/configgroupcloud.py +1 -11
- cribl_control_plane/models/createconfiggroupbyproductop.py +5 -17
- cribl_control_plane/models/createroutesappendbyidop.py +2 -2
- cribl_control_plane/models/createversionundoop.py +3 -3
- cribl_control_plane/models/cribllakedataset.py +1 -11
- cribl_control_plane/models/cribllakedatasetupdate.py +1 -11
- cribl_control_plane/models/datasetmetadata.py +1 -11
- cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +0 -11
- cribl_control_plane/models/deleteoutputpqbyidop.py +2 -2
- cribl_control_plane/models/distributedsummary.py +0 -6
- cribl_control_plane/models/error.py +16 -0
- cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +0 -20
- cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +0 -20
- cribl_control_plane/models/getconfiggroupbyproductandidop.py +0 -11
- cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +0 -11
- cribl_control_plane/models/gethealthinfoop.py +17 -0
- cribl_control_plane/models/getsummaryop.py +0 -11
- cribl_control_plane/models/hbcriblinfo.py +3 -24
- cribl_control_plane/models/{healthserverstatus.py → healthstatus.py} +8 -27
- cribl_control_plane/models/heartbeatmetadata.py +0 -3
- cribl_control_plane/models/input.py +78 -80
- cribl_control_plane/models/inputappscope.py +17 -80
- cribl_control_plane/models/inputazureblob.py +1 -33
- cribl_control_plane/models/inputcollection.py +1 -24
- cribl_control_plane/models/inputconfluentcloud.py +18 -195
- cribl_control_plane/models/inputcribl.py +1 -24
- cribl_control_plane/models/inputcriblhttp.py +17 -62
- cribl_control_plane/models/inputcribllakehttp.py +17 -62
- cribl_control_plane/models/inputcriblmetrics.py +1 -24
- cribl_control_plane/models/inputcribltcp.py +17 -62
- cribl_control_plane/models/inputcrowdstrike.py +1 -54
- cribl_control_plane/models/inputdatadogagent.py +17 -62
- cribl_control_plane/models/inputdatagen.py +1 -24
- cribl_control_plane/models/inputedgeprometheus.py +34 -147
- cribl_control_plane/models/inputelastic.py +27 -119
- cribl_control_plane/models/inputeventhub.py +1 -182
- cribl_control_plane/models/inputexec.py +1 -33
- cribl_control_plane/models/inputfile.py +3 -42
- cribl_control_plane/models/inputfirehose.py +17 -62
- cribl_control_plane/models/inputgooglepubsub.py +1 -36
- cribl_control_plane/models/inputgrafana.py +32 -157
- cribl_control_plane/models/inputhttp.py +17 -62
- cribl_control_plane/models/inputhttpraw.py +17 -62
- cribl_control_plane/models/inputjournalfiles.py +1 -24
- cribl_control_plane/models/inputkafka.py +17 -189
- cribl_control_plane/models/inputkinesis.py +1 -80
- cribl_control_plane/models/inputkubeevents.py +1 -24
- cribl_control_plane/models/inputkubelogs.py +1 -33
- cribl_control_plane/models/inputkubemetrics.py +1 -33
- cribl_control_plane/models/inputloki.py +17 -71
- cribl_control_plane/models/inputmetrics.py +17 -62
- cribl_control_plane/models/inputmodeldriventelemetry.py +17 -62
- cribl_control_plane/models/inputmsk.py +18 -81
- cribl_control_plane/models/inputnetflow.py +1 -24
- cribl_control_plane/models/inputoffice365mgmt.py +1 -67
- cribl_control_plane/models/inputoffice365msgtrace.py +1 -67
- cribl_control_plane/models/inputoffice365service.py +1 -67
- cribl_control_plane/models/inputopentelemetry.py +16 -92
- cribl_control_plane/models/inputprometheus.py +34 -138
- cribl_control_plane/models/inputprometheusrw.py +17 -71
- cribl_control_plane/models/inputrawudp.py +1 -24
- cribl_control_plane/models/inputs3.py +1 -45
- cribl_control_plane/models/inputs3inventory.py +1 -54
- cribl_control_plane/models/inputsecuritylake.py +1 -54
- cribl_control_plane/models/inputsnmp.py +1 -40
- cribl_control_plane/models/inputsplunk.py +17 -85
- cribl_control_plane/models/inputsplunkhec.py +16 -70
- cribl_control_plane/models/inputsplunksearch.py +1 -63
- cribl_control_plane/models/inputsqs.py +1 -56
- cribl_control_plane/models/inputsyslog.py +32 -121
- cribl_control_plane/models/inputsystemmetrics.py +9 -142
- cribl_control_plane/models/inputsystemstate.py +1 -33
- cribl_control_plane/models/inputtcp.py +17 -81
- cribl_control_plane/models/inputtcpjson.py +17 -71
- cribl_control_plane/models/inputwef.py +1 -71
- cribl_control_plane/models/inputwindowsmetrics.py +9 -129
- cribl_control_plane/models/inputwineventlogs.py +1 -60
- cribl_control_plane/models/inputwiz.py +1 -45
- cribl_control_plane/models/inputwizwebhook.py +17 -62
- cribl_control_plane/models/inputzscalerhec.py +16 -70
- cribl_control_plane/models/jobinfo.py +1 -4
- cribl_control_plane/models/jobstatus.py +3 -34
- cribl_control_plane/models/listconfiggroupbyproductop.py +0 -11
- cribl_control_plane/models/logininfo.py +3 -3
- cribl_control_plane/models/masterworkerentry.py +1 -11
- cribl_control_plane/models/nodeprovidedinfo.py +1 -11
- cribl_control_plane/models/nodeupgradestatus.py +0 -38
- cribl_control_plane/models/output.py +88 -93
- cribl_control_plane/models/outputazureblob.py +1 -110
- cribl_control_plane/models/outputazuredataexplorer.py +87 -452
- cribl_control_plane/models/outputazureeventhub.py +19 -281
- cribl_control_plane/models/outputazurelogs.py +19 -115
- cribl_control_plane/models/outputchronicle.py +19 -115
- cribl_control_plane/models/outputclickhouse.py +19 -155
- cribl_control_plane/models/outputcloudwatch.py +19 -106
- cribl_control_plane/models/outputconfluentcloud.py +38 -311
- cribl_control_plane/models/outputcriblhttp.py +19 -135
- cribl_control_plane/models/outputcribllake.py +1 -97
- cribl_control_plane/models/outputcribltcp.py +19 -132
- cribl_control_plane/models/outputcrowdstrikenextgensiem.py +20 -129
- cribl_control_plane/models/outputdatadog.py +19 -159
- cribl_control_plane/models/outputdataset.py +19 -143
- cribl_control_plane/models/outputdiskspool.py +1 -11
- cribl_control_plane/models/outputdls3.py +1 -152
- cribl_control_plane/models/outputdynatracehttp.py +19 -160
- cribl_control_plane/models/outputdynatraceotlp.py +19 -160
- cribl_control_plane/models/outputelastic.py +19 -163
- cribl_control_plane/models/outputelasticcloud.py +19 -140
- cribl_control_plane/models/outputexabeam.py +1 -61
- cribl_control_plane/models/outputfilesystem.py +1 -87
- cribl_control_plane/models/outputgooglechronicle.py +20 -166
- cribl_control_plane/models/outputgooglecloudlogging.py +20 -131
- cribl_control_plane/models/outputgooglecloudstorage.py +1 -136
- cribl_control_plane/models/outputgooglepubsub.py +19 -106
- cribl_control_plane/models/outputgrafanacloud.py +37 -288
- cribl_control_plane/models/outputgraphite.py +19 -105
- cribl_control_plane/models/outputhoneycomb.py +19 -115
- cribl_control_plane/models/outputhumiohec.py +19 -126
- cribl_control_plane/models/outputinfluxdb.py +19 -130
- cribl_control_plane/models/outputkafka.py +34 -302
- cribl_control_plane/models/outputkinesis.py +19 -133
- cribl_control_plane/models/outputloki.py +17 -129
- cribl_control_plane/models/outputminio.py +1 -145
- cribl_control_plane/models/outputmsk.py +34 -193
- cribl_control_plane/models/outputnewrelic.py +19 -136
- cribl_control_plane/models/outputnewrelicevents.py +20 -128
- cribl_control_plane/models/outputopentelemetry.py +19 -178
- cribl_control_plane/models/outputprometheus.py +19 -115
- cribl_control_plane/models/outputring.py +1 -31
- cribl_control_plane/models/outputs3.py +1 -152
- cribl_control_plane/models/outputsecuritylake.py +1 -114
- cribl_control_plane/models/outputsentinel.py +19 -135
- cribl_control_plane/models/outputsentineloneaisiem.py +20 -134
- cribl_control_plane/models/outputservicenow.py +19 -168
- cribl_control_plane/models/outputsignalfx.py +19 -115
- cribl_control_plane/models/outputsns.py +17 -113
- cribl_control_plane/models/outputsplunk.py +19 -153
- cribl_control_plane/models/outputsplunkhec.py +19 -208
- cribl_control_plane/models/outputsplunklb.py +19 -182
- cribl_control_plane/models/outputsqs.py +17 -124
- cribl_control_plane/models/outputstatsd.py +19 -105
- cribl_control_plane/models/outputstatsdext.py +19 -105
- cribl_control_plane/models/outputsumologic.py +19 -117
- cribl_control_plane/models/outputsyslog.py +96 -259
- cribl_control_plane/models/outputtcpjson.py +19 -141
- cribl_control_plane/models/outputwavefront.py +19 -115
- cribl_control_plane/models/outputwebhook.py +19 -161
- cribl_control_plane/models/outputxsiam.py +17 -113
- cribl_control_plane/models/packinfo.py +5 -8
- cribl_control_plane/models/packinstallinfo.py +5 -8
- cribl_control_plane/models/resourcepolicy.py +0 -11
- cribl_control_plane/models/{uploadpackresponse.py → routecloneconf.py} +4 -4
- cribl_control_plane/models/routeconf.py +4 -3
- cribl_control_plane/models/runnablejobcollection.py +9 -72
- cribl_control_plane/models/runnablejobexecutor.py +9 -32
- cribl_control_plane/models/runnablejobscheduledsearch.py +9 -23
- cribl_control_plane/models/updateconfiggroupbyproductandidop.py +0 -11
- cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +0 -11
- cribl_control_plane/packs.py +7 -202
- cribl_control_plane/routes_sdk.py +6 -6
- cribl_control_plane/tokens.py +15 -23
- {cribl_control_plane-0.2.1rc7.dist-info → cribl_control_plane-0.3.0a1.dist-info}/METADATA +9 -50
- cribl_control_plane-0.3.0a1.dist-info/RECORD +330 -0
- cribl_control_plane/models/groupcreaterequest.py +0 -171
- cribl_control_plane/models/outpostnodeinfo.py +0 -16
- cribl_control_plane/models/outputdatabricks.py +0 -482
- cribl_control_plane/models/updatepacksop.py +0 -25
- cribl_control_plane-0.2.1rc7.dist-info/RECORD +0 -331
- {cribl_control_plane-0.2.1rc7.dist-info → cribl_control_plane-0.3.0a1.dist-info}/WHEEL +0 -0
|
@@ -1,12 +1,11 @@
|
|
|
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
|
|
4
|
+
from cribl_control_plane import 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
|
|
10
9
|
from pydantic.functional_validators import PlainValidator
|
|
11
10
|
from typing import List, Optional
|
|
12
11
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -19,9 +18,7 @@ class OutputSumoLogicType(str, Enum):
|
|
|
19
18
|
class OutputSumoLogicDataFormat(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
20
19
|
r"""Preserve the raw event format instead of JSONifying it"""
|
|
21
20
|
|
|
22
|
-
# JSON
|
|
23
21
|
JSON = "json"
|
|
24
|
-
# Raw
|
|
25
22
|
RAW = "raw"
|
|
26
23
|
|
|
27
24
|
|
|
@@ -39,11 +36,8 @@ class OutputSumoLogicExtraHTTPHeader(BaseModel):
|
|
|
39
36
|
class OutputSumoLogicFailedRequestLoggingMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
40
37
|
r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
|
|
41
38
|
|
|
42
|
-
# Payload
|
|
43
39
|
PAYLOAD = "payload"
|
|
44
|
-
# Payload + Headers
|
|
45
40
|
PAYLOAD_AND_HEADERS = "payloadAndHeaders"
|
|
46
|
-
# None
|
|
47
41
|
NONE = "none"
|
|
48
42
|
|
|
49
43
|
|
|
@@ -104,43 +98,33 @@ class OutputSumoLogicTimeoutRetrySettings(BaseModel):
|
|
|
104
98
|
class OutputSumoLogicBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
105
99
|
r"""How to handle events when all receivers are exerting backpressure"""
|
|
106
100
|
|
|
107
|
-
# Block
|
|
108
101
|
BLOCK = "block"
|
|
109
|
-
# Drop
|
|
110
102
|
DROP = "drop"
|
|
111
|
-
# Persistent Queue
|
|
112
103
|
QUEUE = "queue"
|
|
113
104
|
|
|
114
105
|
|
|
115
|
-
class OutputSumoLogicMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
116
|
-
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."""
|
|
117
|
-
|
|
118
|
-
# Error
|
|
119
|
-
ERROR = "error"
|
|
120
|
-
# Backpressure
|
|
121
|
-
ALWAYS = "always"
|
|
122
|
-
# Always On
|
|
123
|
-
BACKPRESSURE = "backpressure"
|
|
124
|
-
|
|
125
|
-
|
|
126
106
|
class OutputSumoLogicCompression(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
127
107
|
r"""Codec to use to compress the persisted data"""
|
|
128
108
|
|
|
129
|
-
# None
|
|
130
109
|
NONE = "none"
|
|
131
|
-
# Gzip
|
|
132
110
|
GZIP = "gzip"
|
|
133
111
|
|
|
134
112
|
|
|
135
113
|
class OutputSumoLogicQueueFullBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
136
114
|
r"""How to handle events when the queue is exerting backpressure (full capacity or low disk). 'Block' is the same behavior as non-PQ blocking. 'Drop new data' throws away incoming data, while leaving the contents of the PQ unchanged."""
|
|
137
115
|
|
|
138
|
-
# Block
|
|
139
116
|
BLOCK = "block"
|
|
140
|
-
# Drop new data
|
|
141
117
|
DROP = "drop"
|
|
142
118
|
|
|
143
119
|
|
|
120
|
+
class OutputSumoLogicMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
121
|
+
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."""
|
|
122
|
+
|
|
123
|
+
ERROR = "error"
|
|
124
|
+
BACKPRESSURE = "backpressure"
|
|
125
|
+
ALWAYS = "always"
|
|
126
|
+
|
|
127
|
+
|
|
144
128
|
class OutputSumoLogicPqControlsTypedDict(TypedDict):
|
|
145
129
|
pass
|
|
146
130
|
|
|
@@ -206,16 +190,6 @@ class OutputSumoLogicTypedDict(TypedDict):
|
|
|
206
190
|
total_memory_limit_kb: NotRequired[float]
|
|
207
191
|
r"""Maximum total size of the batches waiting to be sent. If left blank, defaults to 5 times the max body size (if set). If 0, no limit is enforced."""
|
|
208
192
|
description: NotRequired[str]
|
|
209
|
-
pq_strict_ordering: NotRequired[bool]
|
|
210
|
-
r"""Use FIFO (first in, first out) processing. Disable to forward new events to receivers before queue is flushed."""
|
|
211
|
-
pq_rate_per_sec: NotRequired[float]
|
|
212
|
-
r"""Throttling rate (in events per second) to impose while writing to Destinations from PQ. Defaults to 0, which disables throttling."""
|
|
213
|
-
pq_mode: NotRequired[OutputSumoLogicMode]
|
|
214
|
-
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."""
|
|
215
|
-
pq_max_buffer_size: NotRequired[float]
|
|
216
|
-
r"""The maximum number of events to hold in memory before writing the events to disk"""
|
|
217
|
-
pq_max_backpressure_sec: NotRequired[float]
|
|
218
|
-
r"""How long (in seconds) to wait for backpressure to resolve before engaging the queue"""
|
|
219
193
|
pq_max_file_size: NotRequired[str]
|
|
220
194
|
r"""The maximum size to store in each queue file before closing and optionally compressing (KB, MB, etc.)"""
|
|
221
195
|
pq_max_size: NotRequired[str]
|
|
@@ -226,6 +200,8 @@ class OutputSumoLogicTypedDict(TypedDict):
|
|
|
226
200
|
r"""Codec to use to compress the persisted data"""
|
|
227
201
|
pq_on_backpressure: NotRequired[OutputSumoLogicQueueFullBehavior]
|
|
228
202
|
r"""How to handle events when the queue is exerting backpressure (full capacity or low disk). 'Block' is the same behavior as non-PQ blocking. 'Drop new data' throws away incoming data, while leaving the contents of the PQ unchanged."""
|
|
203
|
+
pq_mode: NotRequired[OutputSumoLogicMode]
|
|
204
|
+
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."""
|
|
229
205
|
pq_controls: NotRequired[OutputSumoLogicPqControlsTypedDict]
|
|
230
206
|
|
|
231
207
|
|
|
@@ -358,34 +334,6 @@ class OutputSumoLogic(BaseModel):
|
|
|
358
334
|
|
|
359
335
|
description: Optional[str] = None
|
|
360
336
|
|
|
361
|
-
pq_strict_ordering: Annotated[
|
|
362
|
-
Optional[bool], pydantic.Field(alias="pqStrictOrdering")
|
|
363
|
-
] = True
|
|
364
|
-
r"""Use FIFO (first in, first out) processing. Disable to forward new events to receivers before queue is flushed."""
|
|
365
|
-
|
|
366
|
-
pq_rate_per_sec: Annotated[
|
|
367
|
-
Optional[float], pydantic.Field(alias="pqRatePerSec")
|
|
368
|
-
] = 0
|
|
369
|
-
r"""Throttling rate (in events per second) to impose while writing to Destinations from PQ. Defaults to 0, which disables throttling."""
|
|
370
|
-
|
|
371
|
-
pq_mode: Annotated[
|
|
372
|
-
Annotated[
|
|
373
|
-
Optional[OutputSumoLogicMode], PlainValidator(validate_open_enum(False))
|
|
374
|
-
],
|
|
375
|
-
pydantic.Field(alias="pqMode"),
|
|
376
|
-
] = OutputSumoLogicMode.ERROR
|
|
377
|
-
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."""
|
|
378
|
-
|
|
379
|
-
pq_max_buffer_size: Annotated[
|
|
380
|
-
Optional[float], pydantic.Field(alias="pqMaxBufferSize")
|
|
381
|
-
] = 42
|
|
382
|
-
r"""The maximum number of events to hold in memory before writing the events to disk"""
|
|
383
|
-
|
|
384
|
-
pq_max_backpressure_sec: Annotated[
|
|
385
|
-
Optional[float], pydantic.Field(alias="pqMaxBackpressureSec")
|
|
386
|
-
] = 30
|
|
387
|
-
r"""How long (in seconds) to wait for backpressure to resolve before engaging the queue"""
|
|
388
|
-
|
|
389
337
|
pq_max_file_size: Annotated[
|
|
390
338
|
Optional[str], pydantic.Field(alias="pqMaxFileSize")
|
|
391
339
|
] = "1 MB"
|
|
@@ -417,60 +365,14 @@ class OutputSumoLogic(BaseModel):
|
|
|
417
365
|
] = OutputSumoLogicQueueFullBehavior.BLOCK
|
|
418
366
|
r"""How to handle events when the queue is exerting backpressure (full capacity or low disk). 'Block' is the same behavior as non-PQ blocking. 'Drop new data' throws away incoming data, while leaving the contents of the PQ unchanged."""
|
|
419
367
|
|
|
368
|
+
pq_mode: Annotated[
|
|
369
|
+
Annotated[
|
|
370
|
+
Optional[OutputSumoLogicMode], PlainValidator(validate_open_enum(False))
|
|
371
|
+
],
|
|
372
|
+
pydantic.Field(alias="pqMode"),
|
|
373
|
+
] = OutputSumoLogicMode.ERROR
|
|
374
|
+
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."""
|
|
375
|
+
|
|
420
376
|
pq_controls: Annotated[
|
|
421
377
|
Optional[OutputSumoLogicPqControls], pydantic.Field(alias="pqControls")
|
|
422
378
|
] = None
|
|
423
|
-
|
|
424
|
-
@field_serializer("format_")
|
|
425
|
-
def serialize_format_(self, value):
|
|
426
|
-
if isinstance(value, str):
|
|
427
|
-
try:
|
|
428
|
-
return models.OutputSumoLogicDataFormat(value)
|
|
429
|
-
except ValueError:
|
|
430
|
-
return value
|
|
431
|
-
return value
|
|
432
|
-
|
|
433
|
-
@field_serializer("failed_request_logging_mode")
|
|
434
|
-
def serialize_failed_request_logging_mode(self, value):
|
|
435
|
-
if isinstance(value, str):
|
|
436
|
-
try:
|
|
437
|
-
return models.OutputSumoLogicFailedRequestLoggingMode(value)
|
|
438
|
-
except ValueError:
|
|
439
|
-
return value
|
|
440
|
-
return value
|
|
441
|
-
|
|
442
|
-
@field_serializer("on_backpressure")
|
|
443
|
-
def serialize_on_backpressure(self, value):
|
|
444
|
-
if isinstance(value, str):
|
|
445
|
-
try:
|
|
446
|
-
return models.OutputSumoLogicBackpressureBehavior(value)
|
|
447
|
-
except ValueError:
|
|
448
|
-
return value
|
|
449
|
-
return value
|
|
450
|
-
|
|
451
|
-
@field_serializer("pq_mode")
|
|
452
|
-
def serialize_pq_mode(self, value):
|
|
453
|
-
if isinstance(value, str):
|
|
454
|
-
try:
|
|
455
|
-
return models.OutputSumoLogicMode(value)
|
|
456
|
-
except ValueError:
|
|
457
|
-
return value
|
|
458
|
-
return value
|
|
459
|
-
|
|
460
|
-
@field_serializer("pq_compress")
|
|
461
|
-
def serialize_pq_compress(self, value):
|
|
462
|
-
if isinstance(value, str):
|
|
463
|
-
try:
|
|
464
|
-
return models.OutputSumoLogicCompression(value)
|
|
465
|
-
except ValueError:
|
|
466
|
-
return value
|
|
467
|
-
return value
|
|
468
|
-
|
|
469
|
-
@field_serializer("pq_on_backpressure")
|
|
470
|
-
def serialize_pq_on_backpressure(self, value):
|
|
471
|
-
if isinstance(value, str):
|
|
472
|
-
try:
|
|
473
|
-
return models.OutputSumoLogicQueueFullBehavior(value)
|
|
474
|
-
except ValueError:
|
|
475
|
-
return value
|
|
476
|
-
return value
|