cribl-control-plane 0.3.0b4__py3-none-any.whl → 0.3.0b5__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 +3 -3
- 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 +11 -0
- 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.0b5.dist-info}/METADATA +1 -1
- {cribl_control_plane-0.3.0b4.dist-info → cribl_control_plane-0.3.0b5.dist-info}/RECORD +149 -149
- {cribl_control_plane-0.3.0b4.dist-info → cribl_control_plane-0.3.0b5.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
|
|
@@ -358,3 +359,66 @@ class OutputKinesis(BaseModel):
|
|
|
358
359
|
pq_controls: Annotated[
|
|
359
360
|
Optional[OutputKinesisPqControls], pydantic.Field(alias="pqControls")
|
|
360
361
|
] = None
|
|
362
|
+
|
|
363
|
+
@field_serializer("aws_authentication_method")
|
|
364
|
+
def serialize_aws_authentication_method(self, value):
|
|
365
|
+
if isinstance(value, str):
|
|
366
|
+
try:
|
|
367
|
+
return models.OutputKinesisAuthenticationMethod(value)
|
|
368
|
+
except ValueError:
|
|
369
|
+
return value
|
|
370
|
+
return value
|
|
371
|
+
|
|
372
|
+
@field_serializer("signature_version")
|
|
373
|
+
def serialize_signature_version(self, value):
|
|
374
|
+
if isinstance(value, str):
|
|
375
|
+
try:
|
|
376
|
+
return models.OutputKinesisSignatureVersion(value)
|
|
377
|
+
except ValueError:
|
|
378
|
+
return value
|
|
379
|
+
return value
|
|
380
|
+
|
|
381
|
+
@field_serializer("compression")
|
|
382
|
+
def serialize_compression(self, value):
|
|
383
|
+
if isinstance(value, str):
|
|
384
|
+
try:
|
|
385
|
+
return models.OutputKinesisCompression(value)
|
|
386
|
+
except ValueError:
|
|
387
|
+
return value
|
|
388
|
+
return value
|
|
389
|
+
|
|
390
|
+
@field_serializer("on_backpressure")
|
|
391
|
+
def serialize_on_backpressure(self, value):
|
|
392
|
+
if isinstance(value, str):
|
|
393
|
+
try:
|
|
394
|
+
return models.OutputKinesisBackpressureBehavior(value)
|
|
395
|
+
except ValueError:
|
|
396
|
+
return value
|
|
397
|
+
return value
|
|
398
|
+
|
|
399
|
+
@field_serializer("pq_mode")
|
|
400
|
+
def serialize_pq_mode(self, value):
|
|
401
|
+
if isinstance(value, str):
|
|
402
|
+
try:
|
|
403
|
+
return models.OutputKinesisMode(value)
|
|
404
|
+
except ValueError:
|
|
405
|
+
return value
|
|
406
|
+
return value
|
|
407
|
+
|
|
408
|
+
@field_serializer("pq_compress")
|
|
409
|
+
def serialize_pq_compress(self, value):
|
|
410
|
+
if isinstance(value, str):
|
|
411
|
+
try:
|
|
412
|
+
return models.OutputKinesisPqCompressCompression(value)
|
|
413
|
+
except ValueError:
|
|
414
|
+
return value
|
|
415
|
+
return value
|
|
416
|
+
|
|
417
|
+
@field_serializer("pq_on_backpressure")
|
|
418
|
+
def serialize_pq_on_backpressure(self, value):
|
|
419
|
+
if isinstance(value, str):
|
|
420
|
+
try:
|
|
421
|
+
return models.OutputKinesisQueueFullBehavior(value)
|
|
422
|
+
except ValueError:
|
|
423
|
+
return value
|
|
424
|
+
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
|
|
@@ -478,3 +479,66 @@ class OutputLoki(BaseModel):
|
|
|
478
479
|
pq_controls: Annotated[
|
|
479
480
|
Optional[OutputLokiPqControls], pydantic.Field(alias="pqControls")
|
|
480
481
|
] = None
|
|
482
|
+
|
|
483
|
+
@field_serializer("message_format")
|
|
484
|
+
def serialize_message_format(self, value):
|
|
485
|
+
if isinstance(value, str):
|
|
486
|
+
try:
|
|
487
|
+
return models.OutputLokiMessageFormat(value)
|
|
488
|
+
except ValueError:
|
|
489
|
+
return value
|
|
490
|
+
return value
|
|
491
|
+
|
|
492
|
+
@field_serializer("auth_type")
|
|
493
|
+
def serialize_auth_type(self, value):
|
|
494
|
+
if isinstance(value, str):
|
|
495
|
+
try:
|
|
496
|
+
return models.OutputLokiAuthenticationType(value)
|
|
497
|
+
except ValueError:
|
|
498
|
+
return value
|
|
499
|
+
return value
|
|
500
|
+
|
|
501
|
+
@field_serializer("failed_request_logging_mode")
|
|
502
|
+
def serialize_failed_request_logging_mode(self, value):
|
|
503
|
+
if isinstance(value, str):
|
|
504
|
+
try:
|
|
505
|
+
return models.OutputLokiFailedRequestLoggingMode(value)
|
|
506
|
+
except ValueError:
|
|
507
|
+
return value
|
|
508
|
+
return value
|
|
509
|
+
|
|
510
|
+
@field_serializer("on_backpressure")
|
|
511
|
+
def serialize_on_backpressure(self, value):
|
|
512
|
+
if isinstance(value, str):
|
|
513
|
+
try:
|
|
514
|
+
return models.OutputLokiBackpressureBehavior(value)
|
|
515
|
+
except ValueError:
|
|
516
|
+
return value
|
|
517
|
+
return value
|
|
518
|
+
|
|
519
|
+
@field_serializer("pq_mode")
|
|
520
|
+
def serialize_pq_mode(self, value):
|
|
521
|
+
if isinstance(value, str):
|
|
522
|
+
try:
|
|
523
|
+
return models.OutputLokiMode(value)
|
|
524
|
+
except ValueError:
|
|
525
|
+
return value
|
|
526
|
+
return value
|
|
527
|
+
|
|
528
|
+
@field_serializer("pq_compress")
|
|
529
|
+
def serialize_pq_compress(self, value):
|
|
530
|
+
if isinstance(value, str):
|
|
531
|
+
try:
|
|
532
|
+
return models.OutputLokiCompression(value)
|
|
533
|
+
except ValueError:
|
|
534
|
+
return value
|
|
535
|
+
return value
|
|
536
|
+
|
|
537
|
+
@field_serializer("pq_on_backpressure")
|
|
538
|
+
def serialize_pq_on_backpressure(self, value):
|
|
539
|
+
if isinstance(value, str):
|
|
540
|
+
try:
|
|
541
|
+
return models.OutputLokiQueueFullBehavior(value)
|
|
542
|
+
except ValueError:
|
|
543
|
+
return value
|
|
544
|
+
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
|
|
@@ -543,3 +544,111 @@ class OutputMinio(BaseModel):
|
|
|
543
544
|
|
|
544
545
|
max_retry_num: Annotated[Optional[float], pydantic.Field(alias="maxRetryNum")] = 20
|
|
545
546
|
r"""The maximum number of times a file will attempt to move to its final destination before being dead-lettered"""
|
|
547
|
+
|
|
548
|
+
@field_serializer("aws_authentication_method")
|
|
549
|
+
def serialize_aws_authentication_method(self, value):
|
|
550
|
+
if isinstance(value, str):
|
|
551
|
+
try:
|
|
552
|
+
return models.OutputMinioAuthenticationMethod(value)
|
|
553
|
+
except ValueError:
|
|
554
|
+
return value
|
|
555
|
+
return value
|
|
556
|
+
|
|
557
|
+
@field_serializer("signature_version")
|
|
558
|
+
def serialize_signature_version(self, value):
|
|
559
|
+
if isinstance(value, str):
|
|
560
|
+
try:
|
|
561
|
+
return models.OutputMinioSignatureVersion(value)
|
|
562
|
+
except ValueError:
|
|
563
|
+
return value
|
|
564
|
+
return value
|
|
565
|
+
|
|
566
|
+
@field_serializer("object_acl")
|
|
567
|
+
def serialize_object_acl(self, value):
|
|
568
|
+
if isinstance(value, str):
|
|
569
|
+
try:
|
|
570
|
+
return models.OutputMinioObjectACL(value)
|
|
571
|
+
except ValueError:
|
|
572
|
+
return value
|
|
573
|
+
return value
|
|
574
|
+
|
|
575
|
+
@field_serializer("storage_class")
|
|
576
|
+
def serialize_storage_class(self, value):
|
|
577
|
+
if isinstance(value, str):
|
|
578
|
+
try:
|
|
579
|
+
return models.OutputMinioStorageClass(value)
|
|
580
|
+
except ValueError:
|
|
581
|
+
return value
|
|
582
|
+
return value
|
|
583
|
+
|
|
584
|
+
@field_serializer("server_side_encryption")
|
|
585
|
+
def serialize_server_side_encryption(self, value):
|
|
586
|
+
if isinstance(value, str):
|
|
587
|
+
try:
|
|
588
|
+
return models.ServerSideEncryption(value)
|
|
589
|
+
except ValueError:
|
|
590
|
+
return value
|
|
591
|
+
return value
|
|
592
|
+
|
|
593
|
+
@field_serializer("format_")
|
|
594
|
+
def serialize_format_(self, value):
|
|
595
|
+
if isinstance(value, str):
|
|
596
|
+
try:
|
|
597
|
+
return models.OutputMinioDataFormat(value)
|
|
598
|
+
except ValueError:
|
|
599
|
+
return value
|
|
600
|
+
return value
|
|
601
|
+
|
|
602
|
+
@field_serializer("on_backpressure")
|
|
603
|
+
def serialize_on_backpressure(self, value):
|
|
604
|
+
if isinstance(value, str):
|
|
605
|
+
try:
|
|
606
|
+
return models.OutputMinioBackpressureBehavior(value)
|
|
607
|
+
except ValueError:
|
|
608
|
+
return value
|
|
609
|
+
return value
|
|
610
|
+
|
|
611
|
+
@field_serializer("on_disk_full_backpressure")
|
|
612
|
+
def serialize_on_disk_full_backpressure(self, value):
|
|
613
|
+
if isinstance(value, str):
|
|
614
|
+
try:
|
|
615
|
+
return models.OutputMinioDiskSpaceProtection(value)
|
|
616
|
+
except ValueError:
|
|
617
|
+
return value
|
|
618
|
+
return value
|
|
619
|
+
|
|
620
|
+
@field_serializer("compress")
|
|
621
|
+
def serialize_compress(self, value):
|
|
622
|
+
if isinstance(value, str):
|
|
623
|
+
try:
|
|
624
|
+
return models.OutputMinioCompression(value)
|
|
625
|
+
except ValueError:
|
|
626
|
+
return value
|
|
627
|
+
return value
|
|
628
|
+
|
|
629
|
+
@field_serializer("compression_level")
|
|
630
|
+
def serialize_compression_level(self, value):
|
|
631
|
+
if isinstance(value, str):
|
|
632
|
+
try:
|
|
633
|
+
return models.OutputMinioCompressionLevel(value)
|
|
634
|
+
except ValueError:
|
|
635
|
+
return value
|
|
636
|
+
return value
|
|
637
|
+
|
|
638
|
+
@field_serializer("parquet_version")
|
|
639
|
+
def serialize_parquet_version(self, value):
|
|
640
|
+
if isinstance(value, str):
|
|
641
|
+
try:
|
|
642
|
+
return models.OutputMinioParquetVersion(value)
|
|
643
|
+
except ValueError:
|
|
644
|
+
return value
|
|
645
|
+
return value
|
|
646
|
+
|
|
647
|
+
@field_serializer("parquet_data_page_version")
|
|
648
|
+
def serialize_parquet_data_page_version(self, value):
|
|
649
|
+
if isinstance(value, str):
|
|
650
|
+
try:
|
|
651
|
+
return models.OutputMinioDataPageVersion(value)
|
|
652
|
+
except ValueError:
|
|
653
|
+
return value
|
|
654
|
+
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
|
|
@@ -155,6 +156,24 @@ class OutputMskKafkaSchemaRegistryTLSSettingsClientSide(BaseModel):
|
|
|
155
156
|
pydantic.Field(alias="maxVersion"),
|
|
156
157
|
] = None
|
|
157
158
|
|
|
159
|
+
@field_serializer("min_version")
|
|
160
|
+
def serialize_min_version(self, value):
|
|
161
|
+
if isinstance(value, str):
|
|
162
|
+
try:
|
|
163
|
+
return models.OutputMskKafkaSchemaRegistryMinimumTLSVersion(value)
|
|
164
|
+
except ValueError:
|
|
165
|
+
return value
|
|
166
|
+
return value
|
|
167
|
+
|
|
168
|
+
@field_serializer("max_version")
|
|
169
|
+
def serialize_max_version(self, value):
|
|
170
|
+
if isinstance(value, str):
|
|
171
|
+
try:
|
|
172
|
+
return models.OutputMskKafkaSchemaRegistryMaximumTLSVersion(value)
|
|
173
|
+
except ValueError:
|
|
174
|
+
return value
|
|
175
|
+
return value
|
|
176
|
+
|
|
158
177
|
|
|
159
178
|
class OutputMskKafkaSchemaRegistryAuthenticationTypedDict(TypedDict):
|
|
160
179
|
disabled: NotRequired[bool]
|
|
@@ -312,6 +331,24 @@ class OutputMskTLSSettingsClientSide(BaseModel):
|
|
|
312
331
|
pydantic.Field(alias="maxVersion"),
|
|
313
332
|
] = None
|
|
314
333
|
|
|
334
|
+
@field_serializer("min_version")
|
|
335
|
+
def serialize_min_version(self, value):
|
|
336
|
+
if isinstance(value, str):
|
|
337
|
+
try:
|
|
338
|
+
return models.OutputMskMinimumTLSVersion(value)
|
|
339
|
+
except ValueError:
|
|
340
|
+
return value
|
|
341
|
+
return value
|
|
342
|
+
|
|
343
|
+
@field_serializer("max_version")
|
|
344
|
+
def serialize_max_version(self, value):
|
|
345
|
+
if isinstance(value, str):
|
|
346
|
+
try:
|
|
347
|
+
return models.OutputMskMaximumTLSVersion(value)
|
|
348
|
+
except ValueError:
|
|
349
|
+
return value
|
|
350
|
+
return value
|
|
351
|
+
|
|
315
352
|
|
|
316
353
|
class OutputMskBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
317
354
|
r"""How to handle events when all receivers are exerting backpressure"""
|
|
@@ -708,3 +745,84 @@ class OutputMsk(BaseModel):
|
|
|
708
745
|
pq_controls: Annotated[
|
|
709
746
|
Optional[OutputMskPqControls], pydantic.Field(alias="pqControls")
|
|
710
747
|
] = None
|
|
748
|
+
|
|
749
|
+
@field_serializer("ack")
|
|
750
|
+
def serialize_ack(self, value):
|
|
751
|
+
if isinstance(value, str):
|
|
752
|
+
try:
|
|
753
|
+
return models.OutputMskAcknowledgments(value)
|
|
754
|
+
except ValueError:
|
|
755
|
+
return value
|
|
756
|
+
return value
|
|
757
|
+
|
|
758
|
+
@field_serializer("format_")
|
|
759
|
+
def serialize_format_(self, value):
|
|
760
|
+
if isinstance(value, str):
|
|
761
|
+
try:
|
|
762
|
+
return models.OutputMskRecordDataFormat(value)
|
|
763
|
+
except ValueError:
|
|
764
|
+
return value
|
|
765
|
+
return value
|
|
766
|
+
|
|
767
|
+
@field_serializer("compression")
|
|
768
|
+
def serialize_compression(self, value):
|
|
769
|
+
if isinstance(value, str):
|
|
770
|
+
try:
|
|
771
|
+
return models.OutputMskCompression(value)
|
|
772
|
+
except ValueError:
|
|
773
|
+
return value
|
|
774
|
+
return value
|
|
775
|
+
|
|
776
|
+
@field_serializer("aws_authentication_method")
|
|
777
|
+
def serialize_aws_authentication_method(self, value):
|
|
778
|
+
if isinstance(value, str):
|
|
779
|
+
try:
|
|
780
|
+
return models.OutputMskAuthenticationMethod(value)
|
|
781
|
+
except ValueError:
|
|
782
|
+
return value
|
|
783
|
+
return value
|
|
784
|
+
|
|
785
|
+
@field_serializer("signature_version")
|
|
786
|
+
def serialize_signature_version(self, value):
|
|
787
|
+
if isinstance(value, str):
|
|
788
|
+
try:
|
|
789
|
+
return models.OutputMskSignatureVersion(value)
|
|
790
|
+
except ValueError:
|
|
791
|
+
return value
|
|
792
|
+
return value
|
|
793
|
+
|
|
794
|
+
@field_serializer("on_backpressure")
|
|
795
|
+
def serialize_on_backpressure(self, value):
|
|
796
|
+
if isinstance(value, str):
|
|
797
|
+
try:
|
|
798
|
+
return models.OutputMskBackpressureBehavior(value)
|
|
799
|
+
except ValueError:
|
|
800
|
+
return value
|
|
801
|
+
return value
|
|
802
|
+
|
|
803
|
+
@field_serializer("pq_mode")
|
|
804
|
+
def serialize_pq_mode(self, value):
|
|
805
|
+
if isinstance(value, str):
|
|
806
|
+
try:
|
|
807
|
+
return models.OutputMskMode(value)
|
|
808
|
+
except ValueError:
|
|
809
|
+
return value
|
|
810
|
+
return value
|
|
811
|
+
|
|
812
|
+
@field_serializer("pq_compress")
|
|
813
|
+
def serialize_pq_compress(self, value):
|
|
814
|
+
if isinstance(value, str):
|
|
815
|
+
try:
|
|
816
|
+
return models.OutputMskPqCompressCompression(value)
|
|
817
|
+
except ValueError:
|
|
818
|
+
return value
|
|
819
|
+
return value
|
|
820
|
+
|
|
821
|
+
@field_serializer("pq_on_backpressure")
|
|
822
|
+
def serialize_pq_on_backpressure(self, value):
|
|
823
|
+
if isinstance(value, str):
|
|
824
|
+
try:
|
|
825
|
+
return models.OutputMskQueueFullBehavior(value)
|
|
826
|
+
except ValueError:
|
|
827
|
+
return value
|
|
828
|
+
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
|
|
@@ -45,6 +46,15 @@ class OutputNewrelicMetadatum(BaseModel):
|
|
|
45
46
|
value: str
|
|
46
47
|
r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
|
|
47
48
|
|
|
49
|
+
@field_serializer("name")
|
|
50
|
+
def serialize_name(self, value):
|
|
51
|
+
if isinstance(value, str):
|
|
52
|
+
try:
|
|
53
|
+
return models.FieldName(value)
|
|
54
|
+
except ValueError:
|
|
55
|
+
return value
|
|
56
|
+
return value
|
|
57
|
+
|
|
48
58
|
|
|
49
59
|
class OutputNewrelicExtraHTTPHeaderTypedDict(TypedDict):
|
|
50
60
|
value: str
|
|
@@ -466,3 +476,66 @@ class OutputNewrelic(BaseModel):
|
|
|
466
476
|
|
|
467
477
|
text_secret: Annotated[Optional[str], pydantic.Field(alias="textSecret")] = None
|
|
468
478
|
r"""Select or create a stored text secret"""
|
|
479
|
+
|
|
480
|
+
@field_serializer("region")
|
|
481
|
+
def serialize_region(self, value):
|
|
482
|
+
if isinstance(value, str):
|
|
483
|
+
try:
|
|
484
|
+
return models.OutputNewrelicRegion(value)
|
|
485
|
+
except ValueError:
|
|
486
|
+
return value
|
|
487
|
+
return value
|
|
488
|
+
|
|
489
|
+
@field_serializer("failed_request_logging_mode")
|
|
490
|
+
def serialize_failed_request_logging_mode(self, value):
|
|
491
|
+
if isinstance(value, str):
|
|
492
|
+
try:
|
|
493
|
+
return models.OutputNewrelicFailedRequestLoggingMode(value)
|
|
494
|
+
except ValueError:
|
|
495
|
+
return value
|
|
496
|
+
return value
|
|
497
|
+
|
|
498
|
+
@field_serializer("on_backpressure")
|
|
499
|
+
def serialize_on_backpressure(self, value):
|
|
500
|
+
if isinstance(value, str):
|
|
501
|
+
try:
|
|
502
|
+
return models.OutputNewrelicBackpressureBehavior(value)
|
|
503
|
+
except ValueError:
|
|
504
|
+
return value
|
|
505
|
+
return value
|
|
506
|
+
|
|
507
|
+
@field_serializer("auth_type")
|
|
508
|
+
def serialize_auth_type(self, value):
|
|
509
|
+
if isinstance(value, str):
|
|
510
|
+
try:
|
|
511
|
+
return models.OutputNewrelicAuthenticationMethod(value)
|
|
512
|
+
except ValueError:
|
|
513
|
+
return value
|
|
514
|
+
return value
|
|
515
|
+
|
|
516
|
+
@field_serializer("pq_mode")
|
|
517
|
+
def serialize_pq_mode(self, value):
|
|
518
|
+
if isinstance(value, str):
|
|
519
|
+
try:
|
|
520
|
+
return models.OutputNewrelicMode(value)
|
|
521
|
+
except ValueError:
|
|
522
|
+
return value
|
|
523
|
+
return value
|
|
524
|
+
|
|
525
|
+
@field_serializer("pq_compress")
|
|
526
|
+
def serialize_pq_compress(self, value):
|
|
527
|
+
if isinstance(value, str):
|
|
528
|
+
try:
|
|
529
|
+
return models.OutputNewrelicCompression(value)
|
|
530
|
+
except ValueError:
|
|
531
|
+
return value
|
|
532
|
+
return value
|
|
533
|
+
|
|
534
|
+
@field_serializer("pq_on_backpressure")
|
|
535
|
+
def serialize_pq_on_backpressure(self, value):
|
|
536
|
+
if isinstance(value, str):
|
|
537
|
+
try:
|
|
538
|
+
return models.OutputNewrelicQueueFullBehavior(value)
|
|
539
|
+
except ValueError:
|
|
540
|
+
return value
|
|
541
|
+
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
|
|
@@ -441,3 +442,66 @@ class OutputNewrelicEvents(BaseModel):
|
|
|
441
442
|
|
|
442
443
|
text_secret: Annotated[Optional[str], pydantic.Field(alias="textSecret")] = None
|
|
443
444
|
r"""Select or create a stored text secret"""
|
|
445
|
+
|
|
446
|
+
@field_serializer("region")
|
|
447
|
+
def serialize_region(self, value):
|
|
448
|
+
if isinstance(value, str):
|
|
449
|
+
try:
|
|
450
|
+
return models.OutputNewrelicEventsRegion(value)
|
|
451
|
+
except ValueError:
|
|
452
|
+
return value
|
|
453
|
+
return value
|
|
454
|
+
|
|
455
|
+
@field_serializer("failed_request_logging_mode")
|
|
456
|
+
def serialize_failed_request_logging_mode(self, value):
|
|
457
|
+
if isinstance(value, str):
|
|
458
|
+
try:
|
|
459
|
+
return models.OutputNewrelicEventsFailedRequestLoggingMode(value)
|
|
460
|
+
except ValueError:
|
|
461
|
+
return value
|
|
462
|
+
return value
|
|
463
|
+
|
|
464
|
+
@field_serializer("on_backpressure")
|
|
465
|
+
def serialize_on_backpressure(self, value):
|
|
466
|
+
if isinstance(value, str):
|
|
467
|
+
try:
|
|
468
|
+
return models.OutputNewrelicEventsBackpressureBehavior(value)
|
|
469
|
+
except ValueError:
|
|
470
|
+
return value
|
|
471
|
+
return value
|
|
472
|
+
|
|
473
|
+
@field_serializer("auth_type")
|
|
474
|
+
def serialize_auth_type(self, value):
|
|
475
|
+
if isinstance(value, str):
|
|
476
|
+
try:
|
|
477
|
+
return models.OutputNewrelicEventsAuthenticationMethod(value)
|
|
478
|
+
except ValueError:
|
|
479
|
+
return value
|
|
480
|
+
return value
|
|
481
|
+
|
|
482
|
+
@field_serializer("pq_mode")
|
|
483
|
+
def serialize_pq_mode(self, value):
|
|
484
|
+
if isinstance(value, str):
|
|
485
|
+
try:
|
|
486
|
+
return models.OutputNewrelicEventsMode(value)
|
|
487
|
+
except ValueError:
|
|
488
|
+
return value
|
|
489
|
+
return value
|
|
490
|
+
|
|
491
|
+
@field_serializer("pq_compress")
|
|
492
|
+
def serialize_pq_compress(self, value):
|
|
493
|
+
if isinstance(value, str):
|
|
494
|
+
try:
|
|
495
|
+
return models.OutputNewrelicEventsCompression(value)
|
|
496
|
+
except ValueError:
|
|
497
|
+
return value
|
|
498
|
+
return value
|
|
499
|
+
|
|
500
|
+
@field_serializer("pq_on_backpressure")
|
|
501
|
+
def serialize_pq_on_backpressure(self, value):
|
|
502
|
+
if isinstance(value, str):
|
|
503
|
+
try:
|
|
504
|
+
return models.OutputNewrelicEventsQueueFullBehavior(value)
|
|
505
|
+
except ValueError:
|
|
506
|
+
return value
|
|
507
|
+
return value
|