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.

Files changed (149) hide show
  1. cribl_control_plane/_version.py +3 -3
  2. cribl_control_plane/models/cacheconnection.py +20 -0
  3. cribl_control_plane/models/configgroup.py +20 -1
  4. cribl_control_plane/models/configgroupcloud.py +11 -1
  5. cribl_control_plane/models/createconfiggroupbyproductop.py +11 -0
  6. cribl_control_plane/models/cribllakedataset.py +11 -1
  7. cribl_control_plane/models/cribllakedatasetupdate.py +11 -1
  8. cribl_control_plane/models/datasetmetadata.py +11 -1
  9. cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +11 -0
  10. cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +20 -0
  11. cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +20 -0
  12. cribl_control_plane/models/getconfiggroupbyproductandidop.py +11 -0
  13. cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +11 -0
  14. cribl_control_plane/models/getsummaryop.py +11 -0
  15. cribl_control_plane/models/groupcreaterequest.py +20 -1
  16. cribl_control_plane/models/hbcriblinfo.py +11 -1
  17. cribl_control_plane/models/healthserverstatus.py +20 -1
  18. cribl_control_plane/models/inputappscope.py +56 -1
  19. cribl_control_plane/models/inputazureblob.py +29 -1
  20. cribl_control_plane/models/inputcollection.py +20 -1
  21. cribl_control_plane/models/inputconfluentcloud.py +78 -1
  22. cribl_control_plane/models/inputcribl.py +20 -1
  23. cribl_control_plane/models/inputcriblhttp.py +38 -1
  24. cribl_control_plane/models/inputcribllakehttp.py +38 -1
  25. cribl_control_plane/models/inputcriblmetrics.py +20 -1
  26. cribl_control_plane/models/inputcribltcp.py +38 -1
  27. cribl_control_plane/models/inputcrowdstrike.py +47 -1
  28. cribl_control_plane/models/inputdatadogagent.py +38 -1
  29. cribl_control_plane/models/inputdatagen.py +20 -1
  30. cribl_control_plane/models/inputedgeprometheus.py +94 -1
  31. cribl_control_plane/models/inputelastic.py +65 -1
  32. cribl_control_plane/models/inputeventhub.py +58 -1
  33. cribl_control_plane/models/inputexec.py +29 -1
  34. cribl_control_plane/models/inputfile.py +29 -1
  35. cribl_control_plane/models/inputfirehose.py +38 -1
  36. cribl_control_plane/models/inputgooglepubsub.py +29 -1
  37. cribl_control_plane/models/inputgrafana.py +110 -1
  38. cribl_control_plane/models/inputhttp.py +38 -1
  39. cribl_control_plane/models/inputhttpraw.py +38 -1
  40. cribl_control_plane/models/inputjournalfiles.py +20 -1
  41. cribl_control_plane/models/inputkafka.py +74 -1
  42. cribl_control_plane/models/inputkinesis.py +65 -1
  43. cribl_control_plane/models/inputkubeevents.py +20 -1
  44. cribl_control_plane/models/inputkubelogs.py +29 -1
  45. cribl_control_plane/models/inputkubemetrics.py +29 -1
  46. cribl_control_plane/models/inputloki.py +47 -1
  47. cribl_control_plane/models/inputmetrics.py +38 -1
  48. cribl_control_plane/models/inputmodeldriventelemetry.py +38 -1
  49. cribl_control_plane/models/inputmsk.py +74 -1
  50. cribl_control_plane/models/inputnetflow.py +20 -1
  51. cribl_control_plane/models/inputoffice365mgmt.py +56 -1
  52. cribl_control_plane/models/inputoffice365msgtrace.py +56 -1
  53. cribl_control_plane/models/inputoffice365service.py +56 -1
  54. cribl_control_plane/models/inputopentelemetry.py +65 -1
  55. cribl_control_plane/models/inputprometheus.py +87 -1
  56. cribl_control_plane/models/inputprometheusrw.py +47 -1
  57. cribl_control_plane/models/inputrawudp.py +20 -1
  58. cribl_control_plane/models/inputs3.py +38 -1
  59. cribl_control_plane/models/inputs3inventory.py +47 -1
  60. cribl_control_plane/models/inputsecuritylake.py +47 -1
  61. cribl_control_plane/models/inputsnmp.py +29 -1
  62. cribl_control_plane/models/inputsplunk.py +56 -1
  63. cribl_control_plane/models/inputsplunkhec.py +47 -1
  64. cribl_control_plane/models/inputsplunksearch.py +56 -1
  65. cribl_control_plane/models/inputsqs.py +47 -1
  66. cribl_control_plane/models/inputsyslog.py +74 -1
  67. cribl_control_plane/models/inputsystemmetrics.py +92 -1
  68. cribl_control_plane/models/inputsystemstate.py +29 -1
  69. cribl_control_plane/models/inputtcp.py +47 -1
  70. cribl_control_plane/models/inputtcpjson.py +47 -1
  71. cribl_control_plane/models/inputwef.py +65 -1
  72. cribl_control_plane/models/inputwindowsmetrics.py +83 -1
  73. cribl_control_plane/models/inputwineventlogs.py +38 -1
  74. cribl_control_plane/models/inputwiz.py +38 -1
  75. cribl_control_plane/models/inputwizwebhook.py +38 -1
  76. cribl_control_plane/models/inputzscalerhec.py +47 -1
  77. cribl_control_plane/models/listconfiggroupbyproductop.py +11 -0
  78. cribl_control_plane/models/masterworkerentry.py +11 -1
  79. cribl_control_plane/models/nodeupgradestatus.py +38 -0
  80. cribl_control_plane/models/outputazureblob.py +83 -1
  81. cribl_control_plane/models/outputazuredataexplorer.py +148 -1
  82. cribl_control_plane/models/outputazureeventhub.py +98 -1
  83. cribl_control_plane/models/outputazurelogs.py +56 -1
  84. cribl_control_plane/models/outputchronicle.py +56 -1
  85. cribl_control_plane/models/outputclickhouse.py +92 -1
  86. cribl_control_plane/models/outputcloudwatch.py +47 -1
  87. cribl_control_plane/models/outputconfluentcloud.py +123 -1
  88. cribl_control_plane/models/outputcriblhttp.py +74 -1
  89. cribl_control_plane/models/outputcribllake.py +76 -1
  90. cribl_control_plane/models/outputcribltcp.py +74 -1
  91. cribl_control_plane/models/outputcrowdstrikenextgensiem.py +67 -1
  92. cribl_control_plane/models/outputdatabricks.py +65 -1
  93. cribl_control_plane/models/outputdatadog.py +83 -1
  94. cribl_control_plane/models/outputdataset.py +74 -1
  95. cribl_control_plane/models/outputdiskspool.py +11 -1
  96. cribl_control_plane/models/outputdls3.py +110 -1
  97. cribl_control_plane/models/outputdynatracehttp.py +92 -1
  98. cribl_control_plane/models/outputdynatraceotlp.py +92 -1
  99. cribl_control_plane/models/outputelastic.py +74 -1
  100. cribl_control_plane/models/outputelasticcloud.py +56 -1
  101. cribl_control_plane/models/outputexabeam.py +47 -1
  102. cribl_control_plane/models/outputfilesystem.py +65 -1
  103. cribl_control_plane/models/outputgooglechronicle.py +83 -1
  104. cribl_control_plane/models/outputgooglecloudlogging.py +65 -1
  105. cribl_control_plane/models/outputgooglecloudstorage.py +101 -1
  106. cribl_control_plane/models/outputgooglepubsub.py +47 -1
  107. cribl_control_plane/models/outputgrafanacloud.py +146 -1
  108. cribl_control_plane/models/outputgraphite.py +47 -1
  109. cribl_control_plane/models/outputhoneycomb.py +56 -1
  110. cribl_control_plane/models/outputhumiohec.py +65 -1
  111. cribl_control_plane/models/outputinfluxdb.py +65 -1
  112. cribl_control_plane/models/outputkafka.py +119 -1
  113. cribl_control_plane/models/outputkinesis.py +65 -1
  114. cribl_control_plane/models/outputloki.py +65 -1
  115. cribl_control_plane/models/outputminio.py +110 -1
  116. cribl_control_plane/models/outputmsk.py +119 -1
  117. cribl_control_plane/models/outputnewrelic.py +74 -1
  118. cribl_control_plane/models/outputnewrelicevents.py +65 -1
  119. cribl_control_plane/models/outputopentelemetry.py +110 -1
  120. cribl_control_plane/models/outputprometheus.py +56 -1
  121. cribl_control_plane/models/outputring.py +29 -1
  122. cribl_control_plane/models/outputs3.py +110 -1
  123. cribl_control_plane/models/outputsecuritylake.py +85 -1
  124. cribl_control_plane/models/outputsentinel.py +74 -1
  125. cribl_control_plane/models/outputsentineloneaisiem.py +74 -1
  126. cribl_control_plane/models/outputservicenow.py +101 -1
  127. cribl_control_plane/models/outputsignalfx.py +56 -1
  128. cribl_control_plane/models/outputsns.py +56 -1
  129. cribl_control_plane/models/outputsplunk.py +92 -1
  130. cribl_control_plane/models/outputsplunkhec.py +74 -1
  131. cribl_control_plane/models/outputsplunklb.py +121 -1
  132. cribl_control_plane/models/outputsqs.py +65 -1
  133. cribl_control_plane/models/outputstatsd.py +47 -1
  134. cribl_control_plane/models/outputstatsdext.py +47 -1
  135. cribl_control_plane/models/outputsumologic.py +56 -1
  136. cribl_control_plane/models/outputsyslog.py +110 -1
  137. cribl_control_plane/models/outputtcpjson.py +83 -1
  138. cribl_control_plane/models/outputwavefront.py +56 -1
  139. cribl_control_plane/models/outputwebhook.py +92 -1
  140. cribl_control_plane/models/outputxsiam.py +56 -1
  141. cribl_control_plane/models/resourcepolicy.py +11 -0
  142. cribl_control_plane/models/runnablejobcollection.py +56 -1
  143. cribl_control_plane/models/runnablejobexecutor.py +20 -1
  144. cribl_control_plane/models/runnablejobscheduledsearch.py +11 -1
  145. cribl_control_plane/models/updateconfiggroupbyproductandidop.py +11 -0
  146. cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +11 -0
  147. {cribl_control_plane-0.3.0b4.dist-info → cribl_control_plane-0.3.0b5.dist-info}/METADATA +1 -1
  148. {cribl_control_plane-0.3.0b4.dist-info → cribl_control_plane-0.3.0b5.dist-info}/RECORD +149 -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, Union
11
12
  from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
@@ -90,6 +91,15 @@ class OutputGrafanaCloudPrometheusAuth2(BaseModel):
90
91
  ] = None
91
92
  r"""Select or create a secret that references your credentials"""
92
93
 
94
+ @field_serializer("auth_type")
95
+ def serialize_auth_type(self, value):
96
+ if isinstance(value, str):
97
+ try:
98
+ return models.OutputGrafanaCloudPrometheusAuthAuthenticationType2(value)
99
+ except ValueError:
100
+ return value
101
+ return value
102
+
93
103
 
94
104
  class OutputGrafanaCloudLokiAuthAuthenticationType2(
95
105
  str, Enum, metaclass=utils.OpenEnumMeta
@@ -146,6 +156,15 @@ class OutputGrafanaCloudLokiAuth2(BaseModel):
146
156
  ] = None
147
157
  r"""Select or create a secret that references your credentials"""
148
158
 
159
+ @field_serializer("auth_type")
160
+ def serialize_auth_type(self, value):
161
+ if isinstance(value, str):
162
+ try:
163
+ return models.OutputGrafanaCloudLokiAuthAuthenticationType2(value)
164
+ except ValueError:
165
+ return value
166
+ return value
167
+
149
168
 
150
169
  class OutputGrafanaCloudExtraHTTPHeader2TypedDict(TypedDict):
151
170
  value: str
@@ -563,6 +582,60 @@ class OutputGrafanaCloudGrafanaCloud2(BaseModel):
563
582
  Optional[OutputGrafanaCloudPqControls2], pydantic.Field(alias="pqControls")
564
583
  ] = None
565
584
 
585
+ @field_serializer("message_format")
586
+ def serialize_message_format(self, value):
587
+ if isinstance(value, str):
588
+ try:
589
+ return models.OutputGrafanaCloudMessageFormat2(value)
590
+ except ValueError:
591
+ return value
592
+ return value
593
+
594
+ @field_serializer("failed_request_logging_mode")
595
+ def serialize_failed_request_logging_mode(self, value):
596
+ if isinstance(value, str):
597
+ try:
598
+ return models.OutputGrafanaCloudFailedRequestLoggingMode2(value)
599
+ except ValueError:
600
+ return value
601
+ return value
602
+
603
+ @field_serializer("on_backpressure")
604
+ def serialize_on_backpressure(self, value):
605
+ if isinstance(value, str):
606
+ try:
607
+ return models.OutputGrafanaCloudBackpressureBehavior2(value)
608
+ except ValueError:
609
+ return value
610
+ return value
611
+
612
+ @field_serializer("pq_mode")
613
+ def serialize_pq_mode(self, value):
614
+ if isinstance(value, str):
615
+ try:
616
+ return models.OutputGrafanaCloudMode2(value)
617
+ except ValueError:
618
+ return value
619
+ return value
620
+
621
+ @field_serializer("pq_compress")
622
+ def serialize_pq_compress(self, value):
623
+ if isinstance(value, str):
624
+ try:
625
+ return models.OutputGrafanaCloudCompression2(value)
626
+ except ValueError:
627
+ return value
628
+ return value
629
+
630
+ @field_serializer("pq_on_backpressure")
631
+ def serialize_pq_on_backpressure(self, value):
632
+ if isinstance(value, str):
633
+ try:
634
+ return models.OutputGrafanaCloudQueueFullBehavior2(value)
635
+ except ValueError:
636
+ return value
637
+ return value
638
+
566
639
 
567
640
  class OutputGrafanaCloudType1(str, Enum):
568
641
  GRAFANA_CLOUD = "grafana_cloud"
@@ -643,6 +716,15 @@ class OutputGrafanaCloudPrometheusAuth1(BaseModel):
643
716
  ] = None
644
717
  r"""Select or create a secret that references your credentials"""
645
718
 
719
+ @field_serializer("auth_type")
720
+ def serialize_auth_type(self, value):
721
+ if isinstance(value, str):
722
+ try:
723
+ return models.OutputGrafanaCloudPrometheusAuthAuthenticationType1(value)
724
+ except ValueError:
725
+ return value
726
+ return value
727
+
646
728
 
647
729
  class OutputGrafanaCloudLokiAuthAuthenticationType1(
648
730
  str, Enum, metaclass=utils.OpenEnumMeta
@@ -699,6 +781,15 @@ class OutputGrafanaCloudLokiAuth1(BaseModel):
699
781
  ] = None
700
782
  r"""Select or create a secret that references your credentials"""
701
783
 
784
+ @field_serializer("auth_type")
785
+ def serialize_auth_type(self, value):
786
+ if isinstance(value, str):
787
+ try:
788
+ return models.OutputGrafanaCloudLokiAuthAuthenticationType1(value)
789
+ except ValueError:
790
+ return value
791
+ return value
792
+
702
793
 
703
794
  class OutputGrafanaCloudExtraHTTPHeader1TypedDict(TypedDict):
704
795
  value: str
@@ -1118,6 +1209,60 @@ class OutputGrafanaCloudGrafanaCloud1(BaseModel):
1118
1209
  Optional[OutputGrafanaCloudPqControls1], pydantic.Field(alias="pqControls")
1119
1210
  ] = None
1120
1211
 
1212
+ @field_serializer("message_format")
1213
+ def serialize_message_format(self, value):
1214
+ if isinstance(value, str):
1215
+ try:
1216
+ return models.OutputGrafanaCloudMessageFormat1(value)
1217
+ except ValueError:
1218
+ return value
1219
+ return value
1220
+
1221
+ @field_serializer("failed_request_logging_mode")
1222
+ def serialize_failed_request_logging_mode(self, value):
1223
+ if isinstance(value, str):
1224
+ try:
1225
+ return models.OutputGrafanaCloudFailedRequestLoggingMode1(value)
1226
+ except ValueError:
1227
+ return value
1228
+ return value
1229
+
1230
+ @field_serializer("on_backpressure")
1231
+ def serialize_on_backpressure(self, value):
1232
+ if isinstance(value, str):
1233
+ try:
1234
+ return models.OutputGrafanaCloudBackpressureBehavior1(value)
1235
+ except ValueError:
1236
+ return value
1237
+ return value
1238
+
1239
+ @field_serializer("pq_mode")
1240
+ def serialize_pq_mode(self, value):
1241
+ if isinstance(value, str):
1242
+ try:
1243
+ return models.OutputGrafanaCloudMode1(value)
1244
+ except ValueError:
1245
+ return value
1246
+ return value
1247
+
1248
+ @field_serializer("pq_compress")
1249
+ def serialize_pq_compress(self, value):
1250
+ if isinstance(value, str):
1251
+ try:
1252
+ return models.OutputGrafanaCloudCompression1(value)
1253
+ except ValueError:
1254
+ return value
1255
+ return value
1256
+
1257
+ @field_serializer("pq_on_backpressure")
1258
+ def serialize_pq_on_backpressure(self, value):
1259
+ if isinstance(value, str):
1260
+ try:
1261
+ return models.OutputGrafanaCloudQueueFullBehavior1(value)
1262
+ except ValueError:
1263
+ return value
1264
+ return value
1265
+
1121
1266
 
1122
1267
  OutputGrafanaCloudTypedDict = TypeAliasType(
1123
1268
  "OutputGrafanaCloudTypedDict",
@@ -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 OutputGraphite(BaseModel):
261
262
  pq_controls: Annotated[
262
263
  Optional[OutputGraphitePqControls], 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.OutputGraphiteDestinationProtocol(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.OutputGraphiteBackpressureBehavior(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.OutputGraphiteMode(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.OutputGraphiteCompression(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.OutputGraphiteQueueFullBehavior(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
@@ -408,3 +409,57 @@ class OutputHoneycomb(BaseModel):
408
409
 
409
410
  text_secret: Annotated[Optional[str], pydantic.Field(alias="textSecret")] = None
410
411
  r"""Select or create a stored text secret"""
412
+
413
+ @field_serializer("failed_request_logging_mode")
414
+ def serialize_failed_request_logging_mode(self, value):
415
+ if isinstance(value, str):
416
+ try:
417
+ return models.OutputHoneycombFailedRequestLoggingMode(value)
418
+ except ValueError:
419
+ return value
420
+ return value
421
+
422
+ @field_serializer("on_backpressure")
423
+ def serialize_on_backpressure(self, value):
424
+ if isinstance(value, str):
425
+ try:
426
+ return models.OutputHoneycombBackpressureBehavior(value)
427
+ except ValueError:
428
+ return value
429
+ return value
430
+
431
+ @field_serializer("auth_type")
432
+ def serialize_auth_type(self, value):
433
+ if isinstance(value, str):
434
+ try:
435
+ return models.OutputHoneycombAuthenticationMethod(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.OutputHoneycombMode(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.OutputHoneycombCompression(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.OutputHoneycombQueueFullBehavior(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
@@ -428,3 +429,66 @@ class OutputHumioHec(BaseModel):
428
429
  pq_controls: Annotated[
429
430
  Optional[OutputHumioHecPqControls], pydantic.Field(alias="pqControls")
430
431
  ] = None
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.OutputHumioHecFailedRequestLoggingMode(value)
438
+ except ValueError:
439
+ return value
440
+ return value
441
+
442
+ @field_serializer("format_")
443
+ def serialize_format_(self, value):
444
+ if isinstance(value, str):
445
+ try:
446
+ return models.OutputHumioHecRequestFormat(value)
447
+ except ValueError:
448
+ return value
449
+ return value
450
+
451
+ @field_serializer("auth_type")
452
+ def serialize_auth_type(self, value):
453
+ if isinstance(value, str):
454
+ try:
455
+ return models.OutputHumioHecAuthenticationMethod(value)
456
+ except ValueError:
457
+ return value
458
+ return value
459
+
460
+ @field_serializer("on_backpressure")
461
+ def serialize_on_backpressure(self, value):
462
+ if isinstance(value, str):
463
+ try:
464
+ return models.OutputHumioHecBackpressureBehavior(value)
465
+ except ValueError:
466
+ return value
467
+ return value
468
+
469
+ @field_serializer("pq_mode")
470
+ def serialize_pq_mode(self, value):
471
+ if isinstance(value, str):
472
+ try:
473
+ return models.OutputHumioHecMode(value)
474
+ except ValueError:
475
+ return value
476
+ return value
477
+
478
+ @field_serializer("pq_compress")
479
+ def serialize_pq_compress(self, value):
480
+ if isinstance(value, str):
481
+ try:
482
+ return models.OutputHumioHecCompression(value)
483
+ except ValueError:
484
+ return value
485
+ return value
486
+
487
+ @field_serializer("pq_on_backpressure")
488
+ def serialize_pq_on_backpressure(self, value):
489
+ if isinstance(value, str):
490
+ try:
491
+ return models.OutputHumioHecQueueFullBehavior(value)
492
+ except ValueError:
493
+ return value
494
+ 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
@@ -568,3 +569,66 @@ class OutputInfluxdb(BaseModel):
568
569
  Optional[List[OutputInfluxdbOauthHeader]], pydantic.Field(alias="oauthHeaders")
569
570
  ] = None
570
571
  r"""Additional headers to send in the OAuth login request. @{product} will automatically add the content-type header 'application/x-www-form-urlencoded' when sending this request."""
572
+
573
+ @field_serializer("timestamp_precision")
574
+ def serialize_timestamp_precision(self, value):
575
+ if isinstance(value, str):
576
+ try:
577
+ return models.TimestampPrecision(value)
578
+ except ValueError:
579
+ return value
580
+ return value
581
+
582
+ @field_serializer("failed_request_logging_mode")
583
+ def serialize_failed_request_logging_mode(self, value):
584
+ if isinstance(value, str):
585
+ try:
586
+ return models.OutputInfluxdbFailedRequestLoggingMode(value)
587
+ except ValueError:
588
+ return value
589
+ return value
590
+
591
+ @field_serializer("on_backpressure")
592
+ def serialize_on_backpressure(self, value):
593
+ if isinstance(value, str):
594
+ try:
595
+ return models.OutputInfluxdbBackpressureBehavior(value)
596
+ except ValueError:
597
+ return value
598
+ return value
599
+
600
+ @field_serializer("auth_type")
601
+ def serialize_auth_type(self, value):
602
+ if isinstance(value, str):
603
+ try:
604
+ return models.OutputInfluxdbAuthenticationType(value)
605
+ except ValueError:
606
+ return value
607
+ return value
608
+
609
+ @field_serializer("pq_mode")
610
+ def serialize_pq_mode(self, value):
611
+ if isinstance(value, str):
612
+ try:
613
+ return models.OutputInfluxdbMode(value)
614
+ except ValueError:
615
+ return value
616
+ return value
617
+
618
+ @field_serializer("pq_compress")
619
+ def serialize_pq_compress(self, value):
620
+ if isinstance(value, str):
621
+ try:
622
+ return models.OutputInfluxdbCompression(value)
623
+ except ValueError:
624
+ return value
625
+ return value
626
+
627
+ @field_serializer("pq_on_backpressure")
628
+ def serialize_pq_on_backpressure(self, value):
629
+ if isinstance(value, str):
630
+ try:
631
+ return models.OutputInfluxdbQueueFullBehavior(value)
632
+ except ValueError:
633
+ return value
634
+ 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 OutputKafkaKafkaSchemaRegistryTLSSettingsClientSide(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.OutputKafkaKafkaSchemaRegistryMinimumTLSVersion(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.OutputKafkaKafkaSchemaRegistryMaximumTLSVersion(value)
173
+ except ValueError:
174
+ return value
175
+ return value
176
+
158
177
 
159
178
  class OutputKafkaKafkaSchemaRegistryAuthenticationTypedDict(TypedDict):
160
179
  disabled: NotRequired[bool]
@@ -354,6 +373,24 @@ class OutputKafkaAuthentication(BaseModel):
354
373
  ] = None
355
374
  r"""Additional SASL extension fields, such as Confluent's logicalCluster or identityPoolId"""
356
375
 
376
+ @field_serializer("auth_type")
377
+ def serialize_auth_type(self, value):
378
+ if isinstance(value, str):
379
+ try:
380
+ return models.OutputKafkaAuthenticationMethod(value)
381
+ except ValueError:
382
+ return value
383
+ return value
384
+
385
+ @field_serializer("mechanism")
386
+ def serialize_mechanism(self, value):
387
+ if isinstance(value, str):
388
+ try:
389
+ return models.OutputKafkaSASLMechanism(value)
390
+ except ValueError:
391
+ return value
392
+ return value
393
+
357
394
 
358
395
  class OutputKafkaMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
359
396
  TL_SV1 = "TLSv1"
@@ -437,6 +474,24 @@ class OutputKafkaTLSSettingsClientSide(BaseModel):
437
474
  pydantic.Field(alias="maxVersion"),
438
475
  ] = None
439
476
 
477
+ @field_serializer("min_version")
478
+ def serialize_min_version(self, value):
479
+ if isinstance(value, str):
480
+ try:
481
+ return models.OutputKafkaMinimumTLSVersion(value)
482
+ except ValueError:
483
+ return value
484
+ return value
485
+
486
+ @field_serializer("max_version")
487
+ def serialize_max_version(self, value):
488
+ if isinstance(value, str):
489
+ try:
490
+ return models.OutputKafkaMaximumTLSVersion(value)
491
+ except ValueError:
492
+ return value
493
+ return value
494
+
440
495
 
441
496
  class OutputKafkaBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
442
497
  r"""How to handle events when all receivers are exerting backpressure"""
@@ -751,3 +806,66 @@ class OutputKafka(BaseModel):
751
806
  pq_controls: Annotated[
752
807
  Optional[OutputKafkaPqControls], pydantic.Field(alias="pqControls")
753
808
  ] = None
809
+
810
+ @field_serializer("ack")
811
+ def serialize_ack(self, value):
812
+ if isinstance(value, str):
813
+ try:
814
+ return models.OutputKafkaAcknowledgments(value)
815
+ except ValueError:
816
+ return value
817
+ return value
818
+
819
+ @field_serializer("format_")
820
+ def serialize_format_(self, value):
821
+ if isinstance(value, str):
822
+ try:
823
+ return models.OutputKafkaRecordDataFormat(value)
824
+ except ValueError:
825
+ return value
826
+ return value
827
+
828
+ @field_serializer("compression")
829
+ def serialize_compression(self, value):
830
+ if isinstance(value, str):
831
+ try:
832
+ return models.OutputKafkaCompression(value)
833
+ except ValueError:
834
+ return value
835
+ return value
836
+
837
+ @field_serializer("on_backpressure")
838
+ def serialize_on_backpressure(self, value):
839
+ if isinstance(value, str):
840
+ try:
841
+ return models.OutputKafkaBackpressureBehavior(value)
842
+ except ValueError:
843
+ return value
844
+ return value
845
+
846
+ @field_serializer("pq_mode")
847
+ def serialize_pq_mode(self, value):
848
+ if isinstance(value, str):
849
+ try:
850
+ return models.OutputKafkaMode(value)
851
+ except ValueError:
852
+ return value
853
+ return value
854
+
855
+ @field_serializer("pq_compress")
856
+ def serialize_pq_compress(self, value):
857
+ if isinstance(value, str):
858
+ try:
859
+ return models.OutputKafkaPqCompressCompression(value)
860
+ except ValueError:
861
+ return value
862
+ return value
863
+
864
+ @field_serializer("pq_on_backpressure")
865
+ def serialize_pq_on_backpressure(self, value):
866
+ if isinstance(value, str):
867
+ try:
868
+ return models.OutputKafkaQueueFullBehavior(value)
869
+ except ValueError:
870
+ return value
871
+ return value