cribl-control-plane 0.3.0b4__py3-none-any.whl → 0.3.0b6__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/groups_sdk.py +2 -2
- 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/createconfiggroupbyproductop.py +13 -2
- cribl_control_plane/models/cribllakedataset.py +11 -1
- cribl_control_plane/models/cribllakedatasetupdate.py +11 -1
- cribl_control_plane/models/datasetmetadata.py +11 -1
- cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +11 -0
- cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +20 -0
- cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +20 -0
- cribl_control_plane/models/getconfiggroupbyproductandidop.py +11 -0
- cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +11 -0
- cribl_control_plane/models/getsummaryop.py +11 -0
- 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/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 +38 -1
- cribl_control_plane/models/inputcribllakehttp.py +38 -1
- cribl_control_plane/models/inputcriblmetrics.py +20 -1
- cribl_control_plane/models/inputcribltcp.py +38 -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 +29 -1
- 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/listconfiggroupbyproductop.py +11 -0
- cribl_control_plane/models/masterworkerentry.py +11 -1
- cribl_control_plane/models/nodeupgradestatus.py +38 -0
- 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 +123 -1
- cribl_control_plane/models/outputcriblhttp.py +74 -1
- cribl_control_plane/models/outputcribllake.py +76 -1
- cribl_control_plane/models/outputcribltcp.py +74 -1
- cribl_control_plane/models/outputcrowdstrikenextgensiem.py +67 -1
- cribl_control_plane/models/outputdatabricks.py +65 -1
- 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 +119 -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 +119 -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 +74 -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 +56 -1
- cribl_control_plane/models/runnablejobexecutor.py +20 -1
- cribl_control_plane/models/runnablejobscheduledsearch.py +11 -1
- cribl_control_plane/models/updateconfiggroupbyproductandidop.py +11 -0
- cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +11 -0
- {cribl_control_plane-0.3.0b4.dist-info → cribl_control_plane-0.3.0b6.dist-info}/METADATA +1 -1
- {cribl_control_plane-0.3.0b4.dist-info → cribl_control_plane-0.3.0b6.dist-info}/RECORD +150 -150
- {cribl_control_plane-0.3.0b4.dist-info → cribl_control_plane-0.3.0b6.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
|
|
@@ -365,3 +366,66 @@ class OutputSqs(BaseModel):
|
|
|
365
366
|
pq_controls: Annotated[
|
|
366
367
|
Optional[OutputSqsPqControls], pydantic.Field(alias="pqControls")
|
|
367
368
|
] = None
|
|
369
|
+
|
|
370
|
+
@field_serializer("queue_type")
|
|
371
|
+
def serialize_queue_type(self, value):
|
|
372
|
+
if isinstance(value, str):
|
|
373
|
+
try:
|
|
374
|
+
return models.OutputSqsQueueType(value)
|
|
375
|
+
except ValueError:
|
|
376
|
+
return value
|
|
377
|
+
return value
|
|
378
|
+
|
|
379
|
+
@field_serializer("aws_authentication_method")
|
|
380
|
+
def serialize_aws_authentication_method(self, value):
|
|
381
|
+
if isinstance(value, str):
|
|
382
|
+
try:
|
|
383
|
+
return models.OutputSqsAuthenticationMethod(value)
|
|
384
|
+
except ValueError:
|
|
385
|
+
return value
|
|
386
|
+
return value
|
|
387
|
+
|
|
388
|
+
@field_serializer("signature_version")
|
|
389
|
+
def serialize_signature_version(self, value):
|
|
390
|
+
if isinstance(value, str):
|
|
391
|
+
try:
|
|
392
|
+
return models.OutputSqsSignatureVersion(value)
|
|
393
|
+
except ValueError:
|
|
394
|
+
return value
|
|
395
|
+
return value
|
|
396
|
+
|
|
397
|
+
@field_serializer("on_backpressure")
|
|
398
|
+
def serialize_on_backpressure(self, value):
|
|
399
|
+
if isinstance(value, str):
|
|
400
|
+
try:
|
|
401
|
+
return models.OutputSqsBackpressureBehavior(value)
|
|
402
|
+
except ValueError:
|
|
403
|
+
return value
|
|
404
|
+
return value
|
|
405
|
+
|
|
406
|
+
@field_serializer("pq_mode")
|
|
407
|
+
def serialize_pq_mode(self, value):
|
|
408
|
+
if isinstance(value, str):
|
|
409
|
+
try:
|
|
410
|
+
return models.OutputSqsMode(value)
|
|
411
|
+
except ValueError:
|
|
412
|
+
return value
|
|
413
|
+
return value
|
|
414
|
+
|
|
415
|
+
@field_serializer("pq_compress")
|
|
416
|
+
def serialize_pq_compress(self, value):
|
|
417
|
+
if isinstance(value, str):
|
|
418
|
+
try:
|
|
419
|
+
return models.OutputSqsCompression(value)
|
|
420
|
+
except ValueError:
|
|
421
|
+
return value
|
|
422
|
+
return value
|
|
423
|
+
|
|
424
|
+
@field_serializer("pq_on_backpressure")
|
|
425
|
+
def serialize_pq_on_backpressure(self, value):
|
|
426
|
+
if isinstance(value, str):
|
|
427
|
+
try:
|
|
428
|
+
return models.OutputSqsQueueFullBehavior(value)
|
|
429
|
+
except ValueError:
|
|
430
|
+
return value
|
|
431
|
+
return value
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from cribl_control_plane import utils
|
|
4
|
+
from cribl_control_plane import models, utils
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import validate_open_enum
|
|
7
7
|
from enum import Enum
|
|
8
8
|
import pydantic
|
|
9
|
+
from pydantic import field_serializer
|
|
9
10
|
from pydantic.functional_validators import PlainValidator
|
|
10
11
|
from typing import List, Optional
|
|
11
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -260,3 +261,48 @@ class OutputStatsd(BaseModel):
|
|
|
260
261
|
pq_controls: Annotated[
|
|
261
262
|
Optional[OutputStatsdPqControls], pydantic.Field(alias="pqControls")
|
|
262
263
|
] = None
|
|
264
|
+
|
|
265
|
+
@field_serializer("protocol")
|
|
266
|
+
def serialize_protocol(self, value):
|
|
267
|
+
if isinstance(value, str):
|
|
268
|
+
try:
|
|
269
|
+
return models.OutputStatsdDestinationProtocol(value)
|
|
270
|
+
except ValueError:
|
|
271
|
+
return value
|
|
272
|
+
return value
|
|
273
|
+
|
|
274
|
+
@field_serializer("on_backpressure")
|
|
275
|
+
def serialize_on_backpressure(self, value):
|
|
276
|
+
if isinstance(value, str):
|
|
277
|
+
try:
|
|
278
|
+
return models.OutputStatsdBackpressureBehavior(value)
|
|
279
|
+
except ValueError:
|
|
280
|
+
return value
|
|
281
|
+
return value
|
|
282
|
+
|
|
283
|
+
@field_serializer("pq_mode")
|
|
284
|
+
def serialize_pq_mode(self, value):
|
|
285
|
+
if isinstance(value, str):
|
|
286
|
+
try:
|
|
287
|
+
return models.OutputStatsdMode(value)
|
|
288
|
+
except ValueError:
|
|
289
|
+
return value
|
|
290
|
+
return value
|
|
291
|
+
|
|
292
|
+
@field_serializer("pq_compress")
|
|
293
|
+
def serialize_pq_compress(self, value):
|
|
294
|
+
if isinstance(value, str):
|
|
295
|
+
try:
|
|
296
|
+
return models.OutputStatsdCompression(value)
|
|
297
|
+
except ValueError:
|
|
298
|
+
return value
|
|
299
|
+
return value
|
|
300
|
+
|
|
301
|
+
@field_serializer("pq_on_backpressure")
|
|
302
|
+
def serialize_pq_on_backpressure(self, value):
|
|
303
|
+
if isinstance(value, str):
|
|
304
|
+
try:
|
|
305
|
+
return models.OutputStatsdQueueFullBehavior(value)
|
|
306
|
+
except ValueError:
|
|
307
|
+
return value
|
|
308
|
+
return value
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from cribl_control_plane import utils
|
|
4
|
+
from cribl_control_plane import models, utils
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import validate_open_enum
|
|
7
7
|
from enum import Enum
|
|
8
8
|
import pydantic
|
|
9
|
+
from pydantic import field_serializer
|
|
9
10
|
from pydantic.functional_validators import PlainValidator
|
|
10
11
|
from typing import List, Optional
|
|
11
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -261,3 +262,48 @@ class OutputStatsdExt(BaseModel):
|
|
|
261
262
|
pq_controls: Annotated[
|
|
262
263
|
Optional[OutputStatsdExtPqControls], pydantic.Field(alias="pqControls")
|
|
263
264
|
] = None
|
|
265
|
+
|
|
266
|
+
@field_serializer("protocol")
|
|
267
|
+
def serialize_protocol(self, value):
|
|
268
|
+
if isinstance(value, str):
|
|
269
|
+
try:
|
|
270
|
+
return models.OutputStatsdExtDestinationProtocol(value)
|
|
271
|
+
except ValueError:
|
|
272
|
+
return value
|
|
273
|
+
return value
|
|
274
|
+
|
|
275
|
+
@field_serializer("on_backpressure")
|
|
276
|
+
def serialize_on_backpressure(self, value):
|
|
277
|
+
if isinstance(value, str):
|
|
278
|
+
try:
|
|
279
|
+
return models.OutputStatsdExtBackpressureBehavior(value)
|
|
280
|
+
except ValueError:
|
|
281
|
+
return value
|
|
282
|
+
return value
|
|
283
|
+
|
|
284
|
+
@field_serializer("pq_mode")
|
|
285
|
+
def serialize_pq_mode(self, value):
|
|
286
|
+
if isinstance(value, str):
|
|
287
|
+
try:
|
|
288
|
+
return models.OutputStatsdExtMode(value)
|
|
289
|
+
except ValueError:
|
|
290
|
+
return value
|
|
291
|
+
return value
|
|
292
|
+
|
|
293
|
+
@field_serializer("pq_compress")
|
|
294
|
+
def serialize_pq_compress(self, value):
|
|
295
|
+
if isinstance(value, str):
|
|
296
|
+
try:
|
|
297
|
+
return models.OutputStatsdExtCompression(value)
|
|
298
|
+
except ValueError:
|
|
299
|
+
return value
|
|
300
|
+
return value
|
|
301
|
+
|
|
302
|
+
@field_serializer("pq_on_backpressure")
|
|
303
|
+
def serialize_pq_on_backpressure(self, value):
|
|
304
|
+
if isinstance(value, str):
|
|
305
|
+
try:
|
|
306
|
+
return models.OutputStatsdExtQueueFullBehavior(value)
|
|
307
|
+
except ValueError:
|
|
308
|
+
return value
|
|
309
|
+
return value
|
|
@@ -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
|
|
@@ -419,3 +420,57 @@ class OutputSumoLogic(BaseModel):
|
|
|
419
420
|
pq_controls: Annotated[
|
|
420
421
|
Optional[OutputSumoLogicPqControls], pydantic.Field(alias="pqControls")
|
|
421
422
|
] = 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
|
|
@@ -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
|
|
@@ -128,6 +129,15 @@ class OutputSyslogHost(BaseModel):
|
|
|
128
129
|
weight: Optional[float] = 1
|
|
129
130
|
r"""Assign a weight (>0) to each endpoint to indicate its traffic-handling capability"""
|
|
130
131
|
|
|
132
|
+
@field_serializer("tls")
|
|
133
|
+
def serialize_tls(self, value):
|
|
134
|
+
if isinstance(value, str):
|
|
135
|
+
try:
|
|
136
|
+
return models.OutputSyslogTLS(value)
|
|
137
|
+
except ValueError:
|
|
138
|
+
return value
|
|
139
|
+
return value
|
|
140
|
+
|
|
131
141
|
|
|
132
142
|
class OutputSyslogMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
133
143
|
TL_SV1 = "TLSv1"
|
|
@@ -211,6 +221,24 @@ class OutputSyslogTLSSettingsClientSide(BaseModel):
|
|
|
211
221
|
pydantic.Field(alias="maxVersion"),
|
|
212
222
|
] = None
|
|
213
223
|
|
|
224
|
+
@field_serializer("min_version")
|
|
225
|
+
def serialize_min_version(self, value):
|
|
226
|
+
if isinstance(value, str):
|
|
227
|
+
try:
|
|
228
|
+
return models.OutputSyslogMinimumTLSVersion(value)
|
|
229
|
+
except ValueError:
|
|
230
|
+
return value
|
|
231
|
+
return value
|
|
232
|
+
|
|
233
|
+
@field_serializer("max_version")
|
|
234
|
+
def serialize_max_version(self, value):
|
|
235
|
+
if isinstance(value, str):
|
|
236
|
+
try:
|
|
237
|
+
return models.OutputSyslogMaximumTLSVersion(value)
|
|
238
|
+
except ValueError:
|
|
239
|
+
return value
|
|
240
|
+
return value
|
|
241
|
+
|
|
214
242
|
|
|
215
243
|
class OutputSyslogBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
216
244
|
r"""How to handle events when all receivers are exerting backpressure"""
|
|
@@ -535,3 +563,84 @@ class OutputSyslog(BaseModel):
|
|
|
535
563
|
pq_controls: Annotated[
|
|
536
564
|
Optional[OutputSyslogPqControls], pydantic.Field(alias="pqControls")
|
|
537
565
|
] = None
|
|
566
|
+
|
|
567
|
+
@field_serializer("protocol")
|
|
568
|
+
def serialize_protocol(self, value):
|
|
569
|
+
if isinstance(value, str):
|
|
570
|
+
try:
|
|
571
|
+
return models.OutputSyslogProtocol(value)
|
|
572
|
+
except ValueError:
|
|
573
|
+
return value
|
|
574
|
+
return value
|
|
575
|
+
|
|
576
|
+
@field_serializer("facility")
|
|
577
|
+
def serialize_facility(self, value):
|
|
578
|
+
if isinstance(value, str):
|
|
579
|
+
try:
|
|
580
|
+
return models.Facility(value)
|
|
581
|
+
except ValueError:
|
|
582
|
+
return value
|
|
583
|
+
return value
|
|
584
|
+
|
|
585
|
+
@field_serializer("severity")
|
|
586
|
+
def serialize_severity(self, value):
|
|
587
|
+
if isinstance(value, str):
|
|
588
|
+
try:
|
|
589
|
+
return models.OutputSyslogSeverity(value)
|
|
590
|
+
except ValueError:
|
|
591
|
+
return value
|
|
592
|
+
return value
|
|
593
|
+
|
|
594
|
+
@field_serializer("message_format")
|
|
595
|
+
def serialize_message_format(self, value):
|
|
596
|
+
if isinstance(value, str):
|
|
597
|
+
try:
|
|
598
|
+
return models.OutputSyslogMessageFormat(value)
|
|
599
|
+
except ValueError:
|
|
600
|
+
return value
|
|
601
|
+
return value
|
|
602
|
+
|
|
603
|
+
@field_serializer("timestamp_format")
|
|
604
|
+
def serialize_timestamp_format(self, value):
|
|
605
|
+
if isinstance(value, str):
|
|
606
|
+
try:
|
|
607
|
+
return models.TimestampFormat(value)
|
|
608
|
+
except ValueError:
|
|
609
|
+
return value
|
|
610
|
+
return value
|
|
611
|
+
|
|
612
|
+
@field_serializer("on_backpressure")
|
|
613
|
+
def serialize_on_backpressure(self, value):
|
|
614
|
+
if isinstance(value, str):
|
|
615
|
+
try:
|
|
616
|
+
return models.OutputSyslogBackpressureBehavior(value)
|
|
617
|
+
except ValueError:
|
|
618
|
+
return value
|
|
619
|
+
return value
|
|
620
|
+
|
|
621
|
+
@field_serializer("pq_mode")
|
|
622
|
+
def serialize_pq_mode(self, value):
|
|
623
|
+
if isinstance(value, str):
|
|
624
|
+
try:
|
|
625
|
+
return models.OutputSyslogMode(value)
|
|
626
|
+
except ValueError:
|
|
627
|
+
return value
|
|
628
|
+
return value
|
|
629
|
+
|
|
630
|
+
@field_serializer("pq_compress")
|
|
631
|
+
def serialize_pq_compress(self, value):
|
|
632
|
+
if isinstance(value, str):
|
|
633
|
+
try:
|
|
634
|
+
return models.OutputSyslogCompression(value)
|
|
635
|
+
except ValueError:
|
|
636
|
+
return value
|
|
637
|
+
return value
|
|
638
|
+
|
|
639
|
+
@field_serializer("pq_on_backpressure")
|
|
640
|
+
def serialize_pq_on_backpressure(self, value):
|
|
641
|
+
if isinstance(value, str):
|
|
642
|
+
try:
|
|
643
|
+
return models.OutputSyslogQueueFullBehavior(value)
|
|
644
|
+
except ValueError:
|
|
645
|
+
return value
|
|
646
|
+
return value
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from cribl_control_plane import utils
|
|
4
|
+
from cribl_control_plane import models, utils
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import validate_open_enum
|
|
7
7
|
from enum import Enum
|
|
8
8
|
import pydantic
|
|
9
|
+
from pydantic import field_serializer
|
|
9
10
|
from pydantic.functional_validators import PlainValidator
|
|
10
11
|
from typing import List, Optional
|
|
11
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -106,6 +107,24 @@ class OutputTcpjsonTLSSettingsClientSide(BaseModel):
|
|
|
106
107
|
pydantic.Field(alias="maxVersion"),
|
|
107
108
|
] = None
|
|
108
109
|
|
|
110
|
+
@field_serializer("min_version")
|
|
111
|
+
def serialize_min_version(self, value):
|
|
112
|
+
if isinstance(value, str):
|
|
113
|
+
try:
|
|
114
|
+
return models.OutputTcpjsonMinimumTLSVersion(value)
|
|
115
|
+
except ValueError:
|
|
116
|
+
return value
|
|
117
|
+
return value
|
|
118
|
+
|
|
119
|
+
@field_serializer("max_version")
|
|
120
|
+
def serialize_max_version(self, value):
|
|
121
|
+
if isinstance(value, str):
|
|
122
|
+
try:
|
|
123
|
+
return models.OutputTcpjsonMaximumTLSVersion(value)
|
|
124
|
+
except ValueError:
|
|
125
|
+
return value
|
|
126
|
+
return value
|
|
127
|
+
|
|
109
128
|
|
|
110
129
|
class OutputTcpjsonBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
111
130
|
r"""How to handle events when all receivers are exerting backpressure"""
|
|
@@ -163,6 +182,15 @@ class OutputTcpjsonHost(BaseModel):
|
|
|
163
182
|
weight: Optional[float] = 1
|
|
164
183
|
r"""Assign a weight (>0) to each endpoint to indicate its traffic-handling capability"""
|
|
165
184
|
|
|
185
|
+
@field_serializer("tls")
|
|
186
|
+
def serialize_tls(self, value):
|
|
187
|
+
if isinstance(value, str):
|
|
188
|
+
try:
|
|
189
|
+
return models.OutputTcpjsonTLS(value)
|
|
190
|
+
except ValueError:
|
|
191
|
+
return value
|
|
192
|
+
return value
|
|
193
|
+
|
|
166
194
|
|
|
167
195
|
class OutputTcpjsonMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
168
196
|
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."""
|
|
@@ -451,3 +479,57 @@ class OutputTcpjson(BaseModel):
|
|
|
451
479
|
|
|
452
480
|
text_secret: Annotated[Optional[str], pydantic.Field(alias="textSecret")] = None
|
|
453
481
|
r"""Select or create a stored text secret"""
|
|
482
|
+
|
|
483
|
+
@field_serializer("compression")
|
|
484
|
+
def serialize_compression(self, value):
|
|
485
|
+
if isinstance(value, str):
|
|
486
|
+
try:
|
|
487
|
+
return models.OutputTcpjsonCompression(value)
|
|
488
|
+
except ValueError:
|
|
489
|
+
return value
|
|
490
|
+
return value
|
|
491
|
+
|
|
492
|
+
@field_serializer("on_backpressure")
|
|
493
|
+
def serialize_on_backpressure(self, value):
|
|
494
|
+
if isinstance(value, str):
|
|
495
|
+
try:
|
|
496
|
+
return models.OutputTcpjsonBackpressureBehavior(value)
|
|
497
|
+
except ValueError:
|
|
498
|
+
return value
|
|
499
|
+
return value
|
|
500
|
+
|
|
501
|
+
@field_serializer("auth_type")
|
|
502
|
+
def serialize_auth_type(self, value):
|
|
503
|
+
if isinstance(value, str):
|
|
504
|
+
try:
|
|
505
|
+
return models.OutputTcpjsonAuthenticationMethod(value)
|
|
506
|
+
except ValueError:
|
|
507
|
+
return value
|
|
508
|
+
return value
|
|
509
|
+
|
|
510
|
+
@field_serializer("pq_mode")
|
|
511
|
+
def serialize_pq_mode(self, value):
|
|
512
|
+
if isinstance(value, str):
|
|
513
|
+
try:
|
|
514
|
+
return models.OutputTcpjsonMode(value)
|
|
515
|
+
except ValueError:
|
|
516
|
+
return value
|
|
517
|
+
return value
|
|
518
|
+
|
|
519
|
+
@field_serializer("pq_compress")
|
|
520
|
+
def serialize_pq_compress(self, value):
|
|
521
|
+
if isinstance(value, str):
|
|
522
|
+
try:
|
|
523
|
+
return models.OutputTcpjsonPqCompressCompression(value)
|
|
524
|
+
except ValueError:
|
|
525
|
+
return value
|
|
526
|
+
return value
|
|
527
|
+
|
|
528
|
+
@field_serializer("pq_on_backpressure")
|
|
529
|
+
def serialize_pq_on_backpressure(self, value):
|
|
530
|
+
if isinstance(value, str):
|
|
531
|
+
try:
|
|
532
|
+
return models.OutputTcpjsonQueueFullBehavior(value)
|
|
533
|
+
except ValueError:
|
|
534
|
+
return value
|
|
535
|
+
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 OutputWavefront(BaseModel):
|
|
|
408
409
|
pq_controls: Annotated[
|
|
409
410
|
Optional[OutputWavefrontPqControls], 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.OutputWavefrontAuthenticationMethod(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.OutputWavefrontFailedRequestLoggingMode(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.OutputWavefrontBackpressureBehavior(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.OutputWavefrontMode(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.OutputWavefrontCompression(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.OutputWavefrontQueueFullBehavior(value)
|
|
463
|
+
except ValueError:
|
|
464
|
+
return value
|
|
465
|
+
return value
|