cribl-control-plane 0.0.15__py3-none-any.whl → 0.0.17__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 (144) hide show
  1. cribl_control_plane/_version.py +3 -3
  2. cribl_control_plane/{outputs.py → destinations.py} +69 -71
  3. cribl_control_plane/errors/healthstatus_error.py +2 -8
  4. cribl_control_plane/models/__init__.py +5347 -115
  5. cribl_control_plane/models/createinputop.py +18216 -2
  6. cribl_control_plane/models/createoutputop.py +18417 -4
  7. cribl_control_plane/models/createoutputtestbyidop.py +2 -2
  8. cribl_control_plane/models/deleteoutputbyidop.py +2 -2
  9. cribl_control_plane/models/deleteoutputpqbyidop.py +2 -2
  10. cribl_control_plane/models/getoutputbyidop.py +2 -2
  11. cribl_control_plane/models/getoutputpqbyidop.py +2 -2
  12. cribl_control_plane/models/getoutputsamplesbyidop.py +2 -2
  13. cribl_control_plane/models/healthstatus.py +4 -7
  14. cribl_control_plane/models/inputappscope.py +16 -36
  15. cribl_control_plane/models/inputazureblob.py +8 -19
  16. cribl_control_plane/models/inputcollection.py +6 -15
  17. cribl_control_plane/models/inputconfluentcloud.py +22 -45
  18. cribl_control_plane/models/inputcribl.py +6 -13
  19. cribl_control_plane/models/inputcriblhttp.py +12 -27
  20. cribl_control_plane/models/inputcribllakehttp.py +14 -26
  21. cribl_control_plane/models/inputcriblmetrics.py +6 -14
  22. cribl_control_plane/models/inputcribltcp.py +12 -27
  23. cribl_control_plane/models/inputcrowdstrike.py +12 -28
  24. cribl_control_plane/models/inputdatadogagent.py +12 -28
  25. cribl_control_plane/models/inputdatagen.py +6 -13
  26. cribl_control_plane/models/inputedgeprometheus.py +33 -64
  27. cribl_control_plane/models/inputelastic.py +18 -44
  28. cribl_control_plane/models/inputeventhub.py +10 -19
  29. cribl_control_plane/models/inputexec.py +8 -16
  30. cribl_control_plane/models/inputfile.py +8 -17
  31. cribl_control_plane/models/inputfirehose.py +12 -27
  32. cribl_control_plane/models/inputgooglepubsub.py +10 -23
  33. cribl_control_plane/models/inputgrafana_union.py +39 -81
  34. cribl_control_plane/models/inputhttp.py +12 -27
  35. cribl_control_plane/models/inputhttpraw.py +12 -27
  36. cribl_control_plane/models/inputjournalfiles.py +8 -16
  37. cribl_control_plane/models/inputkafka.py +18 -45
  38. cribl_control_plane/models/inputkinesis.py +18 -42
  39. cribl_control_plane/models/inputkubeevents.py +6 -13
  40. cribl_control_plane/models/inputkubelogs.py +10 -18
  41. cribl_control_plane/models/inputkubemetrics.py +10 -18
  42. cribl_control_plane/models/inputloki.py +14 -33
  43. cribl_control_plane/models/inputmetrics.py +10 -25
  44. cribl_control_plane/models/inputmodeldriventelemetry.py +14 -33
  45. cribl_control_plane/models/inputmsk.py +20 -52
  46. cribl_control_plane/models/inputnetflow.py +8 -15
  47. cribl_control_plane/models/inputoffice365mgmt.py +18 -37
  48. cribl_control_plane/models/inputoffice365msgtrace.py +20 -41
  49. cribl_control_plane/models/inputoffice365service.py +20 -41
  50. cribl_control_plane/models/inputopentelemetry.py +20 -42
  51. cribl_control_plane/models/inputprometheus.py +22 -54
  52. cribl_control_plane/models/inputprometheusrw.py +14 -34
  53. cribl_control_plane/models/inputrawudp.py +8 -15
  54. cribl_control_plane/models/inputs3.py +10 -23
  55. cribl_control_plane/models/inputs3inventory.py +12 -28
  56. cribl_control_plane/models/inputsecuritylake.py +12 -29
  57. cribl_control_plane/models/inputsnmp.py +10 -20
  58. cribl_control_plane/models/inputsplunk.py +16 -37
  59. cribl_control_plane/models/inputsplunkhec.py +14 -33
  60. cribl_control_plane/models/inputsplunksearch.py +18 -37
  61. cribl_control_plane/models/inputsqs.py +14 -31
  62. cribl_control_plane/models/inputsyslog_union.py +29 -53
  63. cribl_control_plane/models/inputsystemmetrics.py +26 -50
  64. cribl_control_plane/models/inputsystemstate.py +10 -18
  65. cribl_control_plane/models/inputtcp.py +14 -33
  66. cribl_control_plane/models/inputtcpjson.py +14 -33
  67. cribl_control_plane/models/inputwef.py +22 -45
  68. cribl_control_plane/models/inputwindowsmetrics.py +26 -46
  69. cribl_control_plane/models/inputwineventlogs.py +12 -22
  70. cribl_control_plane/models/inputwiz.py +12 -25
  71. cribl_control_plane/models/inputzscalerhec.py +14 -33
  72. cribl_control_plane/models/listoutputop.py +2 -2
  73. cribl_control_plane/models/output.py +3 -6
  74. cribl_control_plane/models/outputazureblob.py +20 -52
  75. cribl_control_plane/models/outputazuredataexplorer.py +30 -77
  76. cribl_control_plane/models/outputazureeventhub.py +20 -44
  77. cribl_control_plane/models/outputazurelogs.py +14 -37
  78. cribl_control_plane/models/outputclickhouse.py +22 -59
  79. cribl_control_plane/models/outputcloudwatch.py +12 -33
  80. cribl_control_plane/models/outputconfluentcloud.py +32 -75
  81. cribl_control_plane/models/outputcriblhttp.py +18 -46
  82. cribl_control_plane/models/outputcribllake.py +18 -48
  83. cribl_control_plane/models/outputcribltcp.py +20 -47
  84. cribl_control_plane/models/outputcrowdstrikenextgensiem.py +16 -54
  85. cribl_control_plane/models/outputdatadog.py +22 -50
  86. cribl_control_plane/models/outputdataset.py +20 -48
  87. cribl_control_plane/models/outputdefault.py +2 -5
  88. cribl_control_plane/models/outputdevnull.py +2 -5
  89. cribl_control_plane/models/outputdiskspool.py +4 -9
  90. cribl_control_plane/models/outputdls3.py +26 -72
  91. cribl_control_plane/models/outputdynatracehttp.py +22 -57
  92. cribl_control_plane/models/outputdynatraceotlp.py +24 -59
  93. cribl_control_plane/models/outputelastic.py +20 -45
  94. cribl_control_plane/models/outputelasticcloud.py +14 -40
  95. cribl_control_plane/models/outputexabeam.py +12 -33
  96. cribl_control_plane/models/outputfilesystem.py +16 -41
  97. cribl_control_plane/models/outputgooglechronicle.py +18 -54
  98. cribl_control_plane/models/outputgooglecloudlogging.py +16 -46
  99. cribl_control_plane/models/outputgooglecloudstorage.py +26 -71
  100. cribl_control_plane/models/outputgooglepubsub.py +16 -39
  101. cribl_control_plane/models/{outputgrafanacloud_union.py → outputgrafanacloud.py} +49 -110
  102. cribl_control_plane/models/outputgraphite.py +16 -35
  103. cribl_control_plane/models/outputhoneycomb.py +14 -37
  104. cribl_control_plane/models/outputhumiohec.py +18 -47
  105. cribl_control_plane/models/outputinfluxdb.py +18 -44
  106. cribl_control_plane/models/outputkafka.py +28 -73
  107. cribl_control_plane/models/outputkinesis.py +18 -44
  108. cribl_control_plane/models/outputloki.py +18 -43
  109. cribl_control_plane/models/outputminio.py +26 -69
  110. cribl_control_plane/models/outputmsk.py +30 -81
  111. cribl_control_plane/models/outputnetflow.py +2 -5
  112. cribl_control_plane/models/outputnewrelic.py +20 -45
  113. cribl_control_plane/models/outputnewrelicevents.py +16 -45
  114. cribl_control_plane/models/outputopentelemetry.py +28 -69
  115. cribl_control_plane/models/outputprometheus.py +14 -37
  116. cribl_control_plane/models/outputring.py +10 -21
  117. cribl_control_plane/models/outputrouter.py +2 -5
  118. cribl_control_plane/models/outputs3.py +28 -72
  119. cribl_control_plane/models/outputsecuritylake.py +20 -56
  120. cribl_control_plane/models/outputsentinel.py +20 -49
  121. cribl_control_plane/models/outputsentineloneaisiem.py +20 -54
  122. cribl_control_plane/models/outputservicenow.py +26 -64
  123. cribl_control_plane/models/outputsignalfx.py +16 -39
  124. cribl_control_plane/models/outputsnmp.py +2 -5
  125. cribl_control_plane/models/outputsns.py +16 -40
  126. cribl_control_plane/models/outputsplunk.py +26 -64
  127. cribl_control_plane/models/outputsplunkhec.py +14 -37
  128. cribl_control_plane/models/outputsplunklb.py +36 -83
  129. cribl_control_plane/models/outputsqs.py +18 -45
  130. cribl_control_plane/models/outputstatsd.py +16 -34
  131. cribl_control_plane/models/outputstatsdext.py +14 -33
  132. cribl_control_plane/models/outputsumologic.py +14 -37
  133. cribl_control_plane/models/outputsyslog.py +26 -60
  134. cribl_control_plane/models/outputtcpjson.py +22 -54
  135. cribl_control_plane/models/outputwavefront.py +14 -37
  136. cribl_control_plane/models/outputwebhook.py +24 -60
  137. cribl_control_plane/models/outputxsiam.py +16 -37
  138. cribl_control_plane/models/updateoutputbyidop.py +4 -4
  139. cribl_control_plane/sdk.py +3 -5
  140. cribl_control_plane/sources.py +8 -10
  141. {cribl_control_plane-0.0.15.dist-info → cribl_control_plane-0.0.17.dist-info}/METADATA +13 -13
  142. cribl_control_plane-0.0.17.dist-info/RECORD +215 -0
  143. cribl_control_plane-0.0.15.dist-info/RECORD +0 -215
  144. {cribl_control_plane-0.0.15.dist-info → cribl_control_plane-0.0.17.dist-info}/WHEEL +0 -0
@@ -1,17 +1,14 @@
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
5
4
  from cribl_control_plane.types import BaseModel
6
- from cribl_control_plane.utils import validate_open_enum
7
5
  from enum import Enum
8
6
  import pydantic
9
- from pydantic.functional_validators import PlainValidator
10
7
  from typing import Any, List, Optional, Union
11
8
  from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
12
9
 
13
10
 
14
- class InputGrafanaType2(str, Enum, metaclass=utils.OpenEnumMeta):
11
+ class InputGrafanaType2(str, Enum):
15
12
  GRAFANA = "grafana"
16
13
 
17
14
 
@@ -26,14 +23,14 @@ class InputGrafanaConnection2(BaseModel):
26
23
  pipeline: Optional[str] = None
27
24
 
28
25
 
29
- class InputGrafanaMode2(str, Enum, metaclass=utils.OpenEnumMeta):
26
+ class InputGrafanaMode2(str, Enum):
30
27
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
31
28
 
32
29
  SMART = "smart"
33
30
  ALWAYS = "always"
34
31
 
35
32
 
36
- class InputGrafanaCompression2(str, Enum, metaclass=utils.OpenEnumMeta):
33
+ class InputGrafanaCompression2(str, Enum):
37
34
  r"""Codec to use to compress the persisted data"""
38
35
 
39
36
  NONE = "none"
@@ -58,9 +55,7 @@ class InputGrafanaPq2TypedDict(TypedDict):
58
55
 
59
56
 
60
57
  class InputGrafanaPq2(BaseModel):
61
- mode: Annotated[
62
- Optional[InputGrafanaMode2], PlainValidator(validate_open_enum(False))
63
- ] = InputGrafanaMode2.ALWAYS
58
+ mode: Optional[InputGrafanaMode2] = InputGrafanaMode2.ALWAYS
64
59
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
65
60
 
66
61
  max_buffer_size: Annotated[
@@ -84,20 +79,18 @@ class InputGrafanaPq2(BaseModel):
84
79
  path: Optional[str] = "$CRIBL_HOME/state/queues"
85
80
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
86
81
 
87
- compress: Annotated[
88
- Optional[InputGrafanaCompression2], PlainValidator(validate_open_enum(False))
89
- ] = InputGrafanaCompression2.NONE
82
+ compress: Optional[InputGrafanaCompression2] = InputGrafanaCompression2.NONE
90
83
  r"""Codec to use to compress the persisted data"""
91
84
 
92
85
 
93
- class InputGrafanaMinimumTLSVersion2(str, Enum, metaclass=utils.OpenEnumMeta):
86
+ class InputGrafanaMinimumTLSVersion2(str, Enum):
94
87
  TL_SV1 = "TLSv1"
95
88
  TL_SV1_1 = "TLSv1.1"
96
89
  TL_SV1_2 = "TLSv1.2"
97
90
  TL_SV1_3 = "TLSv1.3"
98
91
 
99
92
 
100
- class InputGrafanaMaximumTLSVersion2(str, Enum, metaclass=utils.OpenEnumMeta):
93
+ class InputGrafanaMaximumTLSVersion2(str, Enum):
101
94
  TL_SV1 = "TLSv1"
102
95
  TL_SV1_1 = "TLSv1.1"
103
96
  TL_SV1_2 = "TLSv1.2"
@@ -156,25 +149,15 @@ class InputGrafanaTLSSettingsServerSide2(BaseModel):
156
149
  ] = None
157
150
 
158
151
  min_version: Annotated[
159
- Annotated[
160
- Optional[InputGrafanaMinimumTLSVersion2],
161
- PlainValidator(validate_open_enum(False)),
162
- ],
163
- pydantic.Field(alias="minVersion"),
152
+ Optional[InputGrafanaMinimumTLSVersion2], pydantic.Field(alias="minVersion")
164
153
  ] = None
165
154
 
166
155
  max_version: Annotated[
167
- Annotated[
168
- Optional[InputGrafanaMaximumTLSVersion2],
169
- PlainValidator(validate_open_enum(False)),
170
- ],
171
- pydantic.Field(alias="maxVersion"),
156
+ Optional[InputGrafanaMaximumTLSVersion2], pydantic.Field(alias="maxVersion")
172
157
  ] = None
173
158
 
174
159
 
175
- class InputGrafanaPrometheusAuthAuthenticationType2(
176
- str, Enum, metaclass=utils.OpenEnumMeta
177
- ):
160
+ class InputGrafanaPrometheusAuthAuthenticationType2(str, Enum):
178
161
  r"""Remote Write authentication type"""
179
162
 
180
163
  NONE = "none"
@@ -246,10 +229,7 @@ class InputGrafanaPrometheusAuth2TypedDict(TypedDict):
246
229
 
247
230
  class InputGrafanaPrometheusAuth2(BaseModel):
248
231
  auth_type: Annotated[
249
- Annotated[
250
- Optional[InputGrafanaPrometheusAuthAuthenticationType2],
251
- PlainValidator(validate_open_enum(False)),
252
- ],
232
+ Optional[InputGrafanaPrometheusAuthAuthenticationType2],
253
233
  pydantic.Field(alias="authType"),
254
234
  ] = InputGrafanaPrometheusAuthAuthenticationType2.NONE
255
235
  r"""Remote Write authentication type"""
@@ -306,7 +286,7 @@ class InputGrafanaPrometheusAuth2(BaseModel):
306
286
  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."""
307
287
 
308
288
 
309
- class InputGrafanaLokiAuthAuthenticationType2(str, Enum, metaclass=utils.OpenEnumMeta):
289
+ class InputGrafanaLokiAuthAuthenticationType2(str, Enum):
310
290
  r"""Loki logs authentication type"""
311
291
 
312
292
  NONE = "none"
@@ -378,10 +358,7 @@ class InputGrafanaLokiAuth2TypedDict(TypedDict):
378
358
 
379
359
  class InputGrafanaLokiAuth2(BaseModel):
380
360
  auth_type: Annotated[
381
- Annotated[
382
- Optional[InputGrafanaLokiAuthAuthenticationType2],
383
- PlainValidator(validate_open_enum(False)),
384
- ],
361
+ Optional[InputGrafanaLokiAuthAuthenticationType2],
385
362
  pydantic.Field(alias="authType"),
386
363
  ] = InputGrafanaLokiAuthAuthenticationType2.NONE
387
364
  r"""Loki logs authentication type"""
@@ -451,12 +428,12 @@ class InputGrafanaMetadatum2(BaseModel):
451
428
  r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
452
429
 
453
430
 
454
- class InputGrafana2TypedDict(TypedDict):
455
- type: InputGrafanaType2
431
+ class InputGrafanaGrafana2TypedDict(TypedDict):
456
432
  port: float
457
433
  r"""Port to listen on"""
458
434
  id: NotRequired[str]
459
435
  r"""Unique ID for this input"""
436
+ type: NotRequired[InputGrafanaType2]
460
437
  disabled: NotRequired[bool]
461
438
  pipeline: NotRequired[str]
462
439
  r"""Pipeline to process data from this Source before sending it through the Routes"""
@@ -507,15 +484,15 @@ class InputGrafana2TypedDict(TypedDict):
507
484
  description: NotRequired[str]
508
485
 
509
486
 
510
- class InputGrafana2(BaseModel):
511
- type: Annotated[InputGrafanaType2, PlainValidator(validate_open_enum(False))]
512
-
487
+ class InputGrafanaGrafana2(BaseModel):
513
488
  port: float
514
489
  r"""Port to listen on"""
515
490
 
516
491
  id: Optional[str] = None
517
492
  r"""Unique ID for this input"""
518
493
 
494
+ type: Optional[InputGrafanaType2] = None
495
+
519
496
  disabled: Optional[bool] = False
520
497
 
521
498
  pipeline: Optional[str] = None
@@ -624,7 +601,7 @@ class InputGrafana2(BaseModel):
624
601
  description: Optional[str] = None
625
602
 
626
603
 
627
- class InputGrafanaType1(str, Enum, metaclass=utils.OpenEnumMeta):
604
+ class InputGrafanaType1(str, Enum):
628
605
  GRAFANA = "grafana"
629
606
 
630
607
 
@@ -639,14 +616,14 @@ class InputGrafanaConnection1(BaseModel):
639
616
  pipeline: Optional[str] = None
640
617
 
641
618
 
642
- class InputGrafanaMode1(str, Enum, metaclass=utils.OpenEnumMeta):
619
+ class InputGrafanaMode1(str, Enum):
643
620
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
644
621
 
645
622
  SMART = "smart"
646
623
  ALWAYS = "always"
647
624
 
648
625
 
649
- class InputGrafanaCompression1(str, Enum, metaclass=utils.OpenEnumMeta):
626
+ class InputGrafanaCompression1(str, Enum):
650
627
  r"""Codec to use to compress the persisted data"""
651
628
 
652
629
  NONE = "none"
@@ -671,9 +648,7 @@ class InputGrafanaPq1TypedDict(TypedDict):
671
648
 
672
649
 
673
650
  class InputGrafanaPq1(BaseModel):
674
- mode: Annotated[
675
- Optional[InputGrafanaMode1], PlainValidator(validate_open_enum(False))
676
- ] = InputGrafanaMode1.ALWAYS
651
+ mode: Optional[InputGrafanaMode1] = InputGrafanaMode1.ALWAYS
677
652
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
678
653
 
679
654
  max_buffer_size: Annotated[
@@ -697,20 +672,18 @@ class InputGrafanaPq1(BaseModel):
697
672
  path: Optional[str] = "$CRIBL_HOME/state/queues"
698
673
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
699
674
 
700
- compress: Annotated[
701
- Optional[InputGrafanaCompression1], PlainValidator(validate_open_enum(False))
702
- ] = InputGrafanaCompression1.NONE
675
+ compress: Optional[InputGrafanaCompression1] = InputGrafanaCompression1.NONE
703
676
  r"""Codec to use to compress the persisted data"""
704
677
 
705
678
 
706
- class InputGrafanaMinimumTLSVersion1(str, Enum, metaclass=utils.OpenEnumMeta):
679
+ class InputGrafanaMinimumTLSVersion1(str, Enum):
707
680
  TL_SV1 = "TLSv1"
708
681
  TL_SV1_1 = "TLSv1.1"
709
682
  TL_SV1_2 = "TLSv1.2"
710
683
  TL_SV1_3 = "TLSv1.3"
711
684
 
712
685
 
713
- class InputGrafanaMaximumTLSVersion1(str, Enum, metaclass=utils.OpenEnumMeta):
686
+ class InputGrafanaMaximumTLSVersion1(str, Enum):
714
687
  TL_SV1 = "TLSv1"
715
688
  TL_SV1_1 = "TLSv1.1"
716
689
  TL_SV1_2 = "TLSv1.2"
@@ -769,25 +742,15 @@ class InputGrafanaTLSSettingsServerSide1(BaseModel):
769
742
  ] = None
770
743
 
771
744
  min_version: Annotated[
772
- Annotated[
773
- Optional[InputGrafanaMinimumTLSVersion1],
774
- PlainValidator(validate_open_enum(False)),
775
- ],
776
- pydantic.Field(alias="minVersion"),
745
+ Optional[InputGrafanaMinimumTLSVersion1], pydantic.Field(alias="minVersion")
777
746
  ] = None
778
747
 
779
748
  max_version: Annotated[
780
- Annotated[
781
- Optional[InputGrafanaMaximumTLSVersion1],
782
- PlainValidator(validate_open_enum(False)),
783
- ],
784
- pydantic.Field(alias="maxVersion"),
749
+ Optional[InputGrafanaMaximumTLSVersion1], pydantic.Field(alias="maxVersion")
785
750
  ] = None
786
751
 
787
752
 
788
- class InputGrafanaPrometheusAuthAuthenticationType1(
789
- str, Enum, metaclass=utils.OpenEnumMeta
790
- ):
753
+ class InputGrafanaPrometheusAuthAuthenticationType1(str, Enum):
791
754
  r"""Remote Write authentication type"""
792
755
 
793
756
  NONE = "none"
@@ -859,10 +822,7 @@ class InputGrafanaPrometheusAuth1TypedDict(TypedDict):
859
822
 
860
823
  class InputGrafanaPrometheusAuth1(BaseModel):
861
824
  auth_type: Annotated[
862
- Annotated[
863
- Optional[InputGrafanaPrometheusAuthAuthenticationType1],
864
- PlainValidator(validate_open_enum(False)),
865
- ],
825
+ Optional[InputGrafanaPrometheusAuthAuthenticationType1],
866
826
  pydantic.Field(alias="authType"),
867
827
  ] = InputGrafanaPrometheusAuthAuthenticationType1.NONE
868
828
  r"""Remote Write authentication type"""
@@ -919,7 +879,7 @@ class InputGrafanaPrometheusAuth1(BaseModel):
919
879
  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."""
920
880
 
921
881
 
922
- class InputGrafanaLokiAuthAuthenticationType1(str, Enum, metaclass=utils.OpenEnumMeta):
882
+ class InputGrafanaLokiAuthAuthenticationType1(str, Enum):
923
883
  r"""Loki logs authentication type"""
924
884
 
925
885
  NONE = "none"
@@ -991,10 +951,7 @@ class InputGrafanaLokiAuth1TypedDict(TypedDict):
991
951
 
992
952
  class InputGrafanaLokiAuth1(BaseModel):
993
953
  auth_type: Annotated[
994
- Annotated[
995
- Optional[InputGrafanaLokiAuthAuthenticationType1],
996
- PlainValidator(validate_open_enum(False)),
997
- ],
954
+ Optional[InputGrafanaLokiAuthAuthenticationType1],
998
955
  pydantic.Field(alias="authType"),
999
956
  ] = InputGrafanaLokiAuthAuthenticationType1.NONE
1000
957
  r"""Loki logs authentication type"""
@@ -1064,12 +1021,12 @@ class InputGrafanaMetadatum1(BaseModel):
1064
1021
  r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
1065
1022
 
1066
1023
 
1067
- class InputGrafana1TypedDict(TypedDict):
1068
- type: InputGrafanaType1
1024
+ class InputGrafanaGrafana1TypedDict(TypedDict):
1069
1025
  port: float
1070
1026
  r"""Port to listen on"""
1071
1027
  id: NotRequired[str]
1072
1028
  r"""Unique ID for this input"""
1029
+ type: NotRequired[InputGrafanaType1]
1073
1030
  disabled: NotRequired[bool]
1074
1031
  pipeline: NotRequired[str]
1075
1032
  r"""Pipeline to process data from this Source before sending it through the Routes"""
@@ -1120,15 +1077,15 @@ class InputGrafana1TypedDict(TypedDict):
1120
1077
  description: NotRequired[str]
1121
1078
 
1122
1079
 
1123
- class InputGrafana1(BaseModel):
1124
- type: Annotated[InputGrafanaType1, PlainValidator(validate_open_enum(False))]
1125
-
1080
+ class InputGrafanaGrafana1(BaseModel):
1126
1081
  port: float
1127
1082
  r"""Port to listen on"""
1128
1083
 
1129
1084
  id: Optional[str] = None
1130
1085
  r"""Unique ID for this input"""
1131
1086
 
1087
+ type: Optional[InputGrafanaType1] = None
1088
+
1132
1089
  disabled: Optional[bool] = False
1133
1090
 
1134
1091
  pipeline: Optional[str] = None
@@ -1238,10 +1195,11 @@ class InputGrafana1(BaseModel):
1238
1195
 
1239
1196
 
1240
1197
  InputGrafanaUnionTypedDict = TypeAliasType(
1241
- "InputGrafanaUnionTypedDict", Union[InputGrafana1TypedDict, InputGrafana2TypedDict]
1198
+ "InputGrafanaUnionTypedDict",
1199
+ Union[InputGrafanaGrafana1TypedDict, InputGrafanaGrafana2TypedDict],
1242
1200
  )
1243
1201
 
1244
1202
 
1245
1203
  InputGrafanaUnion = TypeAliasType(
1246
- "InputGrafanaUnion", Union[InputGrafana1, InputGrafana2]
1204
+ "InputGrafanaUnion", Union[InputGrafanaGrafana1, InputGrafanaGrafana2]
1247
1205
  )
@@ -1,17 +1,14 @@
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
5
4
  from cribl_control_plane.types import BaseModel
6
- from cribl_control_plane.utils import validate_open_enum
7
5
  from enum import Enum
8
6
  import pydantic
9
- from pydantic.functional_validators import PlainValidator
10
7
  from typing import Any, List, Optional
11
8
  from typing_extensions import Annotated, NotRequired, TypedDict
12
9
 
13
10
 
14
- class InputHTTPType(str, Enum, metaclass=utils.OpenEnumMeta):
11
+ class InputHTTPType(str, Enum):
15
12
  HTTP = "http"
16
13
 
17
14
 
@@ -26,14 +23,14 @@ class InputHTTPConnection(BaseModel):
26
23
  pipeline: Optional[str] = None
27
24
 
28
25
 
29
- class InputHTTPMode(str, Enum, metaclass=utils.OpenEnumMeta):
26
+ class InputHTTPMode(str, Enum):
30
27
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
31
28
 
32
29
  SMART = "smart"
33
30
  ALWAYS = "always"
34
31
 
35
32
 
36
- class InputHTTPCompression(str, Enum, metaclass=utils.OpenEnumMeta):
33
+ class InputHTTPCompression(str, Enum):
37
34
  r"""Codec to use to compress the persisted data"""
38
35
 
39
36
  NONE = "none"
@@ -58,9 +55,7 @@ class InputHTTPPqTypedDict(TypedDict):
58
55
 
59
56
 
60
57
  class InputHTTPPq(BaseModel):
61
- mode: Annotated[
62
- Optional[InputHTTPMode], PlainValidator(validate_open_enum(False))
63
- ] = InputHTTPMode.ALWAYS
58
+ mode: Optional[InputHTTPMode] = InputHTTPMode.ALWAYS
64
59
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
65
60
 
66
61
  max_buffer_size: Annotated[
@@ -84,20 +79,18 @@ class InputHTTPPq(BaseModel):
84
79
  path: Optional[str] = "$CRIBL_HOME/state/queues"
85
80
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
86
81
 
87
- compress: Annotated[
88
- Optional[InputHTTPCompression], PlainValidator(validate_open_enum(False))
89
- ] = InputHTTPCompression.NONE
82
+ compress: Optional[InputHTTPCompression] = InputHTTPCompression.NONE
90
83
  r"""Codec to use to compress the persisted data"""
91
84
 
92
85
 
93
- class InputHTTPMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
86
+ class InputHTTPMinimumTLSVersion(str, Enum):
94
87
  TL_SV1 = "TLSv1"
95
88
  TL_SV1_1 = "TLSv1.1"
96
89
  TL_SV1_2 = "TLSv1.2"
97
90
  TL_SV1_3 = "TLSv1.3"
98
91
 
99
92
 
100
- class InputHTTPMaximumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
93
+ class InputHTTPMaximumTLSVersion(str, Enum):
101
94
  TL_SV1 = "TLSv1"
102
95
  TL_SV1_1 = "TLSv1.1"
103
96
  TL_SV1_2 = "TLSv1.2"
@@ -156,19 +149,11 @@ class InputHTTPTLSSettingsServerSide(BaseModel):
156
149
  ] = None
157
150
 
158
151
  min_version: Annotated[
159
- Annotated[
160
- Optional[InputHTTPMinimumTLSVersion],
161
- PlainValidator(validate_open_enum(False)),
162
- ],
163
- pydantic.Field(alias="minVersion"),
152
+ Optional[InputHTTPMinimumTLSVersion], pydantic.Field(alias="minVersion")
164
153
  ] = None
165
154
 
166
155
  max_version: Annotated[
167
- Annotated[
168
- Optional[InputHTTPMaximumTLSVersion],
169
- PlainValidator(validate_open_enum(False)),
170
- ],
171
- pydantic.Field(alias="maxVersion"),
156
+ Optional[InputHTTPMaximumTLSVersion], pydantic.Field(alias="maxVersion")
172
157
  ] = None
173
158
 
174
159
 
@@ -217,11 +202,11 @@ class InputHTTPAuthTokensExt(BaseModel):
217
202
 
218
203
 
219
204
  class InputHTTPTypedDict(TypedDict):
220
- type: InputHTTPType
221
205
  port: float
222
206
  r"""Port to listen on"""
223
207
  id: NotRequired[str]
224
208
  r"""Unique ID for this input"""
209
+ type: NotRequired[InputHTTPType]
225
210
  disabled: NotRequired[bool]
226
211
  pipeline: NotRequired[str]
227
212
  r"""Pipeline to process data from this Source before sending it through the Routes"""
@@ -278,14 +263,14 @@ class InputHTTPTypedDict(TypedDict):
278
263
 
279
264
 
280
265
  class InputHTTP(BaseModel):
281
- type: Annotated[InputHTTPType, PlainValidator(validate_open_enum(False))]
282
-
283
266
  port: float
284
267
  r"""Port to listen on"""
285
268
 
286
269
  id: Optional[str] = None
287
270
  r"""Unique ID for this input"""
288
271
 
272
+ type: Optional[InputHTTPType] = None
273
+
289
274
  disabled: Optional[bool] = False
290
275
 
291
276
  pipeline: Optional[str] = None
@@ -1,17 +1,14 @@
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
5
4
  from cribl_control_plane.types import BaseModel
6
- from cribl_control_plane.utils import validate_open_enum
7
5
  from enum import Enum
8
6
  import pydantic
9
- from pydantic.functional_validators import PlainValidator
10
7
  from typing import Any, List, Optional
11
8
  from typing_extensions import Annotated, NotRequired, TypedDict
12
9
 
13
10
 
14
- class InputHTTPRawType(str, Enum, metaclass=utils.OpenEnumMeta):
11
+ class InputHTTPRawType(str, Enum):
15
12
  HTTP_RAW = "http_raw"
16
13
 
17
14
 
@@ -26,14 +23,14 @@ class InputHTTPRawConnection(BaseModel):
26
23
  pipeline: Optional[str] = None
27
24
 
28
25
 
29
- class InputHTTPRawMode(str, Enum, metaclass=utils.OpenEnumMeta):
26
+ class InputHTTPRawMode(str, Enum):
30
27
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
31
28
 
32
29
  SMART = "smart"
33
30
  ALWAYS = "always"
34
31
 
35
32
 
36
- class InputHTTPRawCompression(str, Enum, metaclass=utils.OpenEnumMeta):
33
+ class InputHTTPRawCompression(str, Enum):
37
34
  r"""Codec to use to compress the persisted data"""
38
35
 
39
36
  NONE = "none"
@@ -58,9 +55,7 @@ class InputHTTPRawPqTypedDict(TypedDict):
58
55
 
59
56
 
60
57
  class InputHTTPRawPq(BaseModel):
61
- mode: Annotated[
62
- Optional[InputHTTPRawMode], PlainValidator(validate_open_enum(False))
63
- ] = InputHTTPRawMode.ALWAYS
58
+ mode: Optional[InputHTTPRawMode] = InputHTTPRawMode.ALWAYS
64
59
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
65
60
 
66
61
  max_buffer_size: Annotated[
@@ -84,20 +79,18 @@ class InputHTTPRawPq(BaseModel):
84
79
  path: Optional[str] = "$CRIBL_HOME/state/queues"
85
80
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
86
81
 
87
- compress: Annotated[
88
- Optional[InputHTTPRawCompression], PlainValidator(validate_open_enum(False))
89
- ] = InputHTTPRawCompression.NONE
82
+ compress: Optional[InputHTTPRawCompression] = InputHTTPRawCompression.NONE
90
83
  r"""Codec to use to compress the persisted data"""
91
84
 
92
85
 
93
- class InputHTTPRawMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
86
+ class InputHTTPRawMinimumTLSVersion(str, Enum):
94
87
  TL_SV1 = "TLSv1"
95
88
  TL_SV1_1 = "TLSv1.1"
96
89
  TL_SV1_2 = "TLSv1.2"
97
90
  TL_SV1_3 = "TLSv1.3"
98
91
 
99
92
 
100
- class InputHTTPRawMaximumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
93
+ class InputHTTPRawMaximumTLSVersion(str, Enum):
101
94
  TL_SV1 = "TLSv1"
102
95
  TL_SV1_1 = "TLSv1.1"
103
96
  TL_SV1_2 = "TLSv1.2"
@@ -156,19 +149,11 @@ class InputHTTPRawTLSSettingsServerSide(BaseModel):
156
149
  ] = None
157
150
 
158
151
  min_version: Annotated[
159
- Annotated[
160
- Optional[InputHTTPRawMinimumTLSVersion],
161
- PlainValidator(validate_open_enum(False)),
162
- ],
163
- pydantic.Field(alias="minVersion"),
152
+ Optional[InputHTTPRawMinimumTLSVersion], pydantic.Field(alias="minVersion")
164
153
  ] = None
165
154
 
166
155
  max_version: Annotated[
167
- Annotated[
168
- Optional[InputHTTPRawMaximumTLSVersion],
169
- PlainValidator(validate_open_enum(False)),
170
- ],
171
- pydantic.Field(alias="maxVersion"),
156
+ Optional[InputHTTPRawMaximumTLSVersion], pydantic.Field(alias="maxVersion")
172
157
  ] = None
173
158
 
174
159
 
@@ -217,11 +202,11 @@ class InputHTTPRawAuthTokensExt(BaseModel):
217
202
 
218
203
 
219
204
  class InputHTTPRawTypedDict(TypedDict):
220
- type: InputHTTPRawType
221
205
  port: float
222
206
  r"""Port to listen on"""
223
207
  id: NotRequired[str]
224
208
  r"""Unique ID for this input"""
209
+ type: NotRequired[InputHTTPRawType]
225
210
  disabled: NotRequired[bool]
226
211
  pipeline: NotRequired[str]
227
212
  r"""Pipeline to process data from this Source before sending it through the Routes"""
@@ -279,14 +264,14 @@ class InputHTTPRawTypedDict(TypedDict):
279
264
 
280
265
 
281
266
  class InputHTTPRaw(BaseModel):
282
- type: Annotated[InputHTTPRawType, PlainValidator(validate_open_enum(False))]
283
-
284
267
  port: float
285
268
  r"""Port to listen on"""
286
269
 
287
270
  id: Optional[str] = None
288
271
  r"""Unique ID for this input"""
289
272
 
273
+ type: Optional[InputHTTPRawType] = None
274
+
290
275
  disabled: Optional[bool] = False
291
276
 
292
277
  pipeline: Optional[str] = None
@@ -1,17 +1,14 @@
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
5
4
  from cribl_control_plane.types import BaseModel
6
- from cribl_control_plane.utils import validate_open_enum
7
5
  from enum import Enum
8
6
  import pydantic
9
- from pydantic.functional_validators import PlainValidator
10
7
  from typing import List, Optional
11
8
  from typing_extensions import Annotated, NotRequired, TypedDict
12
9
 
13
10
 
14
- class InputJournalFilesType(str, Enum, metaclass=utils.OpenEnumMeta):
11
+ class InputJournalFilesType(str, Enum):
15
12
  JOURNAL_FILES = "journal_files"
16
13
 
17
14
 
@@ -26,14 +23,14 @@ class InputJournalFilesConnection(BaseModel):
26
23
  pipeline: Optional[str] = None
27
24
 
28
25
 
29
- class InputJournalFilesMode(str, Enum, metaclass=utils.OpenEnumMeta):
26
+ class InputJournalFilesMode(str, Enum):
30
27
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
31
28
 
32
29
  SMART = "smart"
33
30
  ALWAYS = "always"
34
31
 
35
32
 
36
- class InputJournalFilesCompression(str, Enum, metaclass=utils.OpenEnumMeta):
33
+ class InputJournalFilesCompression(str, Enum):
37
34
  r"""Codec to use to compress the persisted data"""
38
35
 
39
36
  NONE = "none"
@@ -58,9 +55,7 @@ class InputJournalFilesPqTypedDict(TypedDict):
58
55
 
59
56
 
60
57
  class InputJournalFilesPq(BaseModel):
61
- mode: Annotated[
62
- Optional[InputJournalFilesMode], PlainValidator(validate_open_enum(False))
63
- ] = InputJournalFilesMode.ALWAYS
58
+ mode: Optional[InputJournalFilesMode] = InputJournalFilesMode.ALWAYS
64
59
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
65
60
 
66
61
  max_buffer_size: Annotated[
@@ -84,10 +79,7 @@ class InputJournalFilesPq(BaseModel):
84
79
  path: Optional[str] = "$CRIBL_HOME/state/queues"
85
80
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
86
81
 
87
- compress: Annotated[
88
- Optional[InputJournalFilesCompression],
89
- PlainValidator(validate_open_enum(False)),
90
- ] = InputJournalFilesCompression.NONE
82
+ compress: Optional[InputJournalFilesCompression] = InputJournalFilesCompression.NONE
91
83
  r"""Codec to use to compress the persisted data"""
92
84
 
93
85
 
@@ -120,13 +112,13 @@ class InputJournalFilesMetadatum(BaseModel):
120
112
 
121
113
 
122
114
  class InputJournalFilesTypedDict(TypedDict):
123
- type: InputJournalFilesType
124
115
  path: str
125
116
  r"""Directory path to search for journals. Environment variables will be resolved, e.g. $CRIBL_EDGE_FS_ROOT/var/log/journal/$MACHINE_ID."""
126
117
  journals: List[str]
127
118
  r"""The full path of discovered journals are matched against this wildcard list."""
128
119
  id: NotRequired[str]
129
120
  r"""Unique ID for this input"""
121
+ type: NotRequired[InputJournalFilesType]
130
122
  disabled: NotRequired[bool]
131
123
  pipeline: NotRequired[str]
132
124
  r"""Pipeline to process data from this Source before sending it through the Routes"""
@@ -155,8 +147,6 @@ class InputJournalFilesTypedDict(TypedDict):
155
147
 
156
148
 
157
149
  class InputJournalFiles(BaseModel):
158
- type: Annotated[InputJournalFilesType, PlainValidator(validate_open_enum(False))]
159
-
160
150
  path: str
161
151
  r"""Directory path to search for journals. Environment variables will be resolved, e.g. $CRIBL_EDGE_FS_ROOT/var/log/journal/$MACHINE_ID."""
162
152
 
@@ -166,6 +156,8 @@ class InputJournalFiles(BaseModel):
166
156
  id: Optional[str] = None
167
157
  r"""Unique ID for this input"""
168
158
 
159
+ type: Optional[InputJournalFilesType] = None
160
+
169
161
  disabled: Optional[bool] = False
170
162
 
171
163
  pipeline: Optional[str] = None