cribl-control-plane 0.0.48a1__py3-none-any.whl → 0.0.49__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 (164) hide show
  1. cribl_control_plane/_version.py +6 -4
  2. cribl_control_plane/errors/healthstatus_error.py +2 -8
  3. cribl_control_plane/models/__init__.py +12 -12
  4. cribl_control_plane/models/appmode.py +13 -0
  5. cribl_control_plane/models/cacheconnection.py +2 -10
  6. cribl_control_plane/models/cacheconnectionbackfillstatus.py +1 -2
  7. cribl_control_plane/models/cloudprovider.py +1 -2
  8. cribl_control_plane/models/configgroup.py +2 -7
  9. cribl_control_plane/models/configgroupcloud.py +2 -6
  10. cribl_control_plane/models/createconfiggroupbyproductop.py +2 -8
  11. cribl_control_plane/models/cribllakedataset.py +2 -8
  12. cribl_control_plane/models/datasetmetadata.py +2 -8
  13. cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +2 -7
  14. cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +2 -4
  15. cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +2 -4
  16. cribl_control_plane/models/getconfiggroupbyproductandidop.py +1 -3
  17. cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +2 -7
  18. cribl_control_plane/models/getsummaryop.py +2 -7
  19. cribl_control_plane/models/hbcriblinfo.py +3 -19
  20. cribl_control_plane/models/healthstatus.py +4 -7
  21. cribl_control_plane/models/heartbeatmetadata.py +0 -3
  22. cribl_control_plane/models/inputappscope.py +14 -34
  23. cribl_control_plane/models/inputazureblob.py +6 -17
  24. cribl_control_plane/models/inputcollection.py +4 -11
  25. cribl_control_plane/models/inputconfluentcloud.py +20 -47
  26. cribl_control_plane/models/inputcribl.py +4 -11
  27. cribl_control_plane/models/inputcriblhttp.py +8 -23
  28. cribl_control_plane/models/inputcribllakehttp.py +10 -22
  29. cribl_control_plane/models/inputcriblmetrics.py +4 -12
  30. cribl_control_plane/models/inputcribltcp.py +8 -23
  31. cribl_control_plane/models/inputcrowdstrike.py +10 -26
  32. cribl_control_plane/models/inputdatadogagent.py +8 -24
  33. cribl_control_plane/models/inputdatagen.py +4 -11
  34. cribl_control_plane/models/inputedgeprometheus.py +24 -58
  35. cribl_control_plane/models/inputelastic.py +14 -40
  36. cribl_control_plane/models/inputeventhub.py +6 -15
  37. cribl_control_plane/models/inputexec.py +6 -14
  38. cribl_control_plane/models/inputfile.py +6 -15
  39. cribl_control_plane/models/inputfirehose.py +8 -23
  40. cribl_control_plane/models/inputgooglepubsub.py +6 -19
  41. cribl_control_plane/models/inputgrafana.py +24 -67
  42. cribl_control_plane/models/inputhttp.py +8 -23
  43. cribl_control_plane/models/inputhttpraw.py +8 -23
  44. cribl_control_plane/models/inputjournalfiles.py +4 -12
  45. cribl_control_plane/models/inputkafka.py +16 -46
  46. cribl_control_plane/models/inputkinesis.py +14 -38
  47. cribl_control_plane/models/inputkubeevents.py +4 -11
  48. cribl_control_plane/models/inputkubelogs.py +8 -16
  49. cribl_control_plane/models/inputkubemetrics.py +8 -16
  50. cribl_control_plane/models/inputloki.py +10 -29
  51. cribl_control_plane/models/inputmetrics.py +8 -23
  52. cribl_control_plane/models/inputmodeldriventelemetry.py +10 -32
  53. cribl_control_plane/models/inputmsk.py +18 -53
  54. cribl_control_plane/models/inputnetflow.py +4 -11
  55. cribl_control_plane/models/inputoffice365mgmt.py +14 -33
  56. cribl_control_plane/models/inputoffice365msgtrace.py +16 -35
  57. cribl_control_plane/models/inputoffice365service.py +16 -35
  58. cribl_control_plane/models/inputopentelemetry.py +16 -38
  59. cribl_control_plane/models/inputprometheus.py +18 -50
  60. cribl_control_plane/models/inputprometheusrw.py +10 -30
  61. cribl_control_plane/models/inputrawudp.py +4 -11
  62. cribl_control_plane/models/inputs3.py +8 -21
  63. cribl_control_plane/models/inputs3inventory.py +10 -26
  64. cribl_control_plane/models/inputsecuritylake.py +10 -27
  65. cribl_control_plane/models/inputsnmp.py +6 -16
  66. cribl_control_plane/models/inputsplunk.py +12 -33
  67. cribl_control_plane/models/inputsplunkhec.py +10 -29
  68. cribl_control_plane/models/inputsplunksearch.py +14 -33
  69. cribl_control_plane/models/inputsqs.py +10 -27
  70. cribl_control_plane/models/inputsyslog.py +16 -43
  71. cribl_control_plane/models/inputsystemmetrics.py +24 -48
  72. cribl_control_plane/models/inputsystemstate.py +8 -16
  73. cribl_control_plane/models/inputtcp.py +10 -29
  74. cribl_control_plane/models/inputtcpjson.py +10 -29
  75. cribl_control_plane/models/inputwef.py +14 -37
  76. cribl_control_plane/models/inputwindowsmetrics.py +24 -44
  77. cribl_control_plane/models/inputwineventlogs.py +10 -20
  78. cribl_control_plane/models/inputwiz.py +8 -21
  79. cribl_control_plane/models/inputwizwebhook.py +8 -23
  80. cribl_control_plane/models/inputzscalerhec.py +10 -29
  81. cribl_control_plane/models/lakehouseconnectiontype.py +1 -2
  82. cribl_control_plane/models/listconfiggroupbyproductop.py +1 -3
  83. cribl_control_plane/models/masterworkerentry.py +2 -7
  84. cribl_control_plane/models/nodeactiveupgradestatus.py +1 -2
  85. cribl_control_plane/models/nodefailedupgradestatus.py +1 -2
  86. cribl_control_plane/models/nodeprovidedinfo.py +0 -3
  87. cribl_control_plane/models/nodeskippedupgradestatus.py +1 -2
  88. cribl_control_plane/models/nodeupgradestate.py +1 -2
  89. cribl_control_plane/models/nodeupgradestatus.py +5 -13
  90. cribl_control_plane/models/outputazureblob.py +18 -48
  91. cribl_control_plane/models/outputazuredataexplorer.py +28 -73
  92. cribl_control_plane/models/outputazureeventhub.py +18 -40
  93. cribl_control_plane/models/outputazurelogs.py +12 -35
  94. cribl_control_plane/models/outputclickhouse.py +20 -55
  95. cribl_control_plane/models/outputcloudwatch.py +10 -29
  96. cribl_control_plane/models/outputconfluentcloud.py +32 -77
  97. cribl_control_plane/models/outputcriblhttp.py +16 -44
  98. cribl_control_plane/models/outputcribllake.py +16 -46
  99. cribl_control_plane/models/outputcribltcp.py +18 -45
  100. cribl_control_plane/models/outputcrowdstrikenextgensiem.py +14 -49
  101. cribl_control_plane/models/outputdatadog.py +20 -48
  102. cribl_control_plane/models/outputdataset.py +18 -46
  103. cribl_control_plane/models/outputdiskspool.py +2 -7
  104. cribl_control_plane/models/outputdls3.py +24 -68
  105. cribl_control_plane/models/outputdynatracehttp.py +20 -53
  106. cribl_control_plane/models/outputdynatraceotlp.py +22 -55
  107. cribl_control_plane/models/outputelastic.py +18 -43
  108. cribl_control_plane/models/outputelasticcloud.py +12 -36
  109. cribl_control_plane/models/outputexabeam.py +10 -29
  110. cribl_control_plane/models/outputfilesystem.py +14 -39
  111. cribl_control_plane/models/outputgooglechronicle.py +16 -50
  112. cribl_control_plane/models/outputgooglecloudlogging.py +14 -41
  113. cribl_control_plane/models/outputgooglecloudstorage.py +24 -66
  114. cribl_control_plane/models/outputgooglepubsub.py +10 -31
  115. cribl_control_plane/models/outputgrafanacloud.py +32 -97
  116. cribl_control_plane/models/outputgraphite.py +14 -31
  117. cribl_control_plane/models/outputhoneycomb.py +12 -35
  118. cribl_control_plane/models/outputhumiohec.py +16 -43
  119. cribl_control_plane/models/outputinfluxdb.py +16 -42
  120. cribl_control_plane/models/outputkafka.py +28 -74
  121. cribl_control_plane/models/outputkinesis.py +16 -40
  122. cribl_control_plane/models/outputloki.py +16 -41
  123. cribl_control_plane/models/outputminio.py +24 -65
  124. cribl_control_plane/models/outputmsk.py +30 -82
  125. cribl_control_plane/models/outputnewrelic.py +18 -43
  126. cribl_control_plane/models/outputnewrelicevents.py +14 -41
  127. cribl_control_plane/models/outputopentelemetry.py +26 -67
  128. cribl_control_plane/models/outputprometheus.py +12 -35
  129. cribl_control_plane/models/outputring.py +8 -19
  130. cribl_control_plane/models/outputs3.py +26 -68
  131. cribl_control_plane/models/outputsecuritylake.py +18 -52
  132. cribl_control_plane/models/outputsentinel.py +18 -45
  133. cribl_control_plane/models/outputsentineloneaisiem.py +18 -50
  134. cribl_control_plane/models/outputservicenow.py +24 -60
  135. cribl_control_plane/models/outputsignalfx.py +14 -37
  136. cribl_control_plane/models/outputsns.py +14 -36
  137. cribl_control_plane/models/outputsplunk.py +24 -60
  138. cribl_control_plane/models/outputsplunkhec.py +12 -35
  139. cribl_control_plane/models/outputsplunklb.py +30 -77
  140. cribl_control_plane/models/outputsqs.py +16 -41
  141. cribl_control_plane/models/outputstatsd.py +14 -30
  142. cribl_control_plane/models/outputstatsdext.py +12 -29
  143. cribl_control_plane/models/outputsumologic.py +12 -35
  144. cribl_control_plane/models/outputsyslog.py +24 -58
  145. cribl_control_plane/models/outputtcpjson.py +20 -52
  146. cribl_control_plane/models/outputwavefront.py +12 -35
  147. cribl_control_plane/models/outputwebhook.py +22 -58
  148. cribl_control_plane/models/outputxsiam.py +14 -35
  149. cribl_control_plane/models/productscore.py +1 -2
  150. cribl_control_plane/models/rbacresource.py +1 -2
  151. cribl_control_plane/models/resourcepolicy.py +2 -4
  152. cribl_control_plane/models/routecloneconf.py +13 -0
  153. cribl_control_plane/models/routeconf.py +4 -3
  154. cribl_control_plane/models/runnablejobcollection.py +13 -30
  155. cribl_control_plane/models/runnablejobexecutor.py +4 -13
  156. cribl_control_plane/models/runnablejobscheduledsearch.py +2 -7
  157. cribl_control_plane/models/updateconfiggroupbyproductandidop.py +2 -8
  158. cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +2 -8
  159. cribl_control_plane/models/workertypes.py +1 -2
  160. cribl_control_plane/sdk.py +2 -2
  161. cribl_control_plane/utils/annotations.py +32 -8
  162. {cribl_control_plane-0.0.48a1.dist-info → cribl_control_plane-0.0.49.dist-info}/METADATA +2 -1
  163. {cribl_control_plane-0.0.48a1.dist-info → cribl_control_plane-0.0.49.dist-info}/RECORD +164 -162
  164. {cribl_control_plane-0.0.48a1.dist-info → cribl_control_plane-0.0.49.dist-info}/WHEEL +0 -0
@@ -1,12 +1,9 @@
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
 
@@ -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"
@@ -67,9 +64,7 @@ class InputGrafanaPq2TypedDict(TypedDict):
67
64
 
68
65
 
69
66
  class InputGrafanaPq2(BaseModel):
70
- mode: Annotated[
71
- Optional[InputGrafanaMode2], PlainValidator(validate_open_enum(False))
72
- ] = InputGrafanaMode2.ALWAYS
67
+ mode: Optional[InputGrafanaMode2] = InputGrafanaMode2.ALWAYS
73
68
  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."""
74
69
 
75
70
  max_buffer_size: Annotated[
@@ -93,9 +88,7 @@ class InputGrafanaPq2(BaseModel):
93
88
  path: Optional[str] = "$CRIBL_HOME/state/queues"
94
89
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
95
90
 
96
- compress: Annotated[
97
- Optional[InputGrafanaCompression2], PlainValidator(validate_open_enum(False))
98
- ] = InputGrafanaCompression2.NONE
91
+ compress: Optional[InputGrafanaCompression2] = InputGrafanaCompression2.NONE
99
92
  r"""Codec to use to compress the persisted data"""
100
93
 
101
94
  pq_controls: Annotated[
@@ -103,14 +96,14 @@ class InputGrafanaPq2(BaseModel):
103
96
  ] = None
104
97
 
105
98
 
106
- class InputGrafanaMinimumTLSVersion2(str, Enum, metaclass=utils.OpenEnumMeta):
99
+ class InputGrafanaMinimumTLSVersion2(str, Enum):
107
100
  TL_SV1 = "TLSv1"
108
101
  TL_SV1_1 = "TLSv1.1"
109
102
  TL_SV1_2 = "TLSv1.2"
110
103
  TL_SV1_3 = "TLSv1.3"
111
104
 
112
105
 
113
- class InputGrafanaMaximumTLSVersion2(str, Enum, metaclass=utils.OpenEnumMeta):
106
+ class InputGrafanaMaximumTLSVersion2(str, Enum):
114
107
  TL_SV1 = "TLSv1"
115
108
  TL_SV1_1 = "TLSv1.1"
116
109
  TL_SV1_2 = "TLSv1.2"
@@ -169,25 +162,15 @@ class InputGrafanaTLSSettingsServerSide2(BaseModel):
169
162
  ] = None
170
163
 
171
164
  min_version: Annotated[
172
- Annotated[
173
- Optional[InputGrafanaMinimumTLSVersion2],
174
- PlainValidator(validate_open_enum(False)),
175
- ],
176
- pydantic.Field(alias="minVersion"),
165
+ Optional[InputGrafanaMinimumTLSVersion2], pydantic.Field(alias="minVersion")
177
166
  ] = None
178
167
 
179
168
  max_version: Annotated[
180
- Annotated[
181
- Optional[InputGrafanaMaximumTLSVersion2],
182
- PlainValidator(validate_open_enum(False)),
183
- ],
184
- pydantic.Field(alias="maxVersion"),
169
+ Optional[InputGrafanaMaximumTLSVersion2], pydantic.Field(alias="maxVersion")
185
170
  ] = None
186
171
 
187
172
 
188
- class InputGrafanaPrometheusAuthAuthenticationType2(
189
- str, Enum, metaclass=utils.OpenEnumMeta
190
- ):
173
+ class InputGrafanaPrometheusAuthAuthenticationType2(str, Enum):
191
174
  r"""Remote Write authentication type"""
192
175
 
193
176
  NONE = "none"
@@ -259,10 +242,7 @@ class InputGrafanaPrometheusAuth2TypedDict(TypedDict):
259
242
 
260
243
  class InputGrafanaPrometheusAuth2(BaseModel):
261
244
  auth_type: Annotated[
262
- Annotated[
263
- Optional[InputGrafanaPrometheusAuthAuthenticationType2],
264
- PlainValidator(validate_open_enum(False)),
265
- ],
245
+ Optional[InputGrafanaPrometheusAuthAuthenticationType2],
266
246
  pydantic.Field(alias="authType"),
267
247
  ] = InputGrafanaPrometheusAuthAuthenticationType2.NONE
268
248
  r"""Remote Write authentication type"""
@@ -319,7 +299,7 @@ class InputGrafanaPrometheusAuth2(BaseModel):
319
299
  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."""
320
300
 
321
301
 
322
- class InputGrafanaLokiAuthAuthenticationType2(str, Enum, metaclass=utils.OpenEnumMeta):
302
+ class InputGrafanaLokiAuthAuthenticationType2(str, Enum):
323
303
  r"""Loki logs authentication type"""
324
304
 
325
305
  NONE = "none"
@@ -391,10 +371,7 @@ class InputGrafanaLokiAuth2TypedDict(TypedDict):
391
371
 
392
372
  class InputGrafanaLokiAuth2(BaseModel):
393
373
  auth_type: Annotated[
394
- Annotated[
395
- Optional[InputGrafanaLokiAuthAuthenticationType2],
396
- PlainValidator(validate_open_enum(False)),
397
- ],
374
+ Optional[InputGrafanaLokiAuthAuthenticationType2],
398
375
  pydantic.Field(alias="authType"),
399
376
  ] = InputGrafanaLokiAuthAuthenticationType2.NONE
400
377
  r"""Loki logs authentication type"""
@@ -652,14 +629,14 @@ class InputGrafanaConnection1(BaseModel):
652
629
  pipeline: Optional[str] = None
653
630
 
654
631
 
655
- class InputGrafanaMode1(str, Enum, metaclass=utils.OpenEnumMeta):
632
+ class InputGrafanaMode1(str, Enum):
656
633
  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."""
657
634
 
658
635
  SMART = "smart"
659
636
  ALWAYS = "always"
660
637
 
661
638
 
662
- class InputGrafanaCompression1(str, Enum, metaclass=utils.OpenEnumMeta):
639
+ class InputGrafanaCompression1(str, Enum):
663
640
  r"""Codec to use to compress the persisted data"""
664
641
 
665
642
  NONE = "none"
@@ -693,9 +670,7 @@ class InputGrafanaPq1TypedDict(TypedDict):
693
670
 
694
671
 
695
672
  class InputGrafanaPq1(BaseModel):
696
- mode: Annotated[
697
- Optional[InputGrafanaMode1], PlainValidator(validate_open_enum(False))
698
- ] = InputGrafanaMode1.ALWAYS
673
+ mode: Optional[InputGrafanaMode1] = InputGrafanaMode1.ALWAYS
699
674
  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."""
700
675
 
701
676
  max_buffer_size: Annotated[
@@ -719,9 +694,7 @@ class InputGrafanaPq1(BaseModel):
719
694
  path: Optional[str] = "$CRIBL_HOME/state/queues"
720
695
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
721
696
 
722
- compress: Annotated[
723
- Optional[InputGrafanaCompression1], PlainValidator(validate_open_enum(False))
724
- ] = InputGrafanaCompression1.NONE
697
+ compress: Optional[InputGrafanaCompression1] = InputGrafanaCompression1.NONE
725
698
  r"""Codec to use to compress the persisted data"""
726
699
 
727
700
  pq_controls: Annotated[
@@ -729,14 +702,14 @@ class InputGrafanaPq1(BaseModel):
729
702
  ] = None
730
703
 
731
704
 
732
- class InputGrafanaMinimumTLSVersion1(str, Enum, metaclass=utils.OpenEnumMeta):
705
+ class InputGrafanaMinimumTLSVersion1(str, Enum):
733
706
  TL_SV1 = "TLSv1"
734
707
  TL_SV1_1 = "TLSv1.1"
735
708
  TL_SV1_2 = "TLSv1.2"
736
709
  TL_SV1_3 = "TLSv1.3"
737
710
 
738
711
 
739
- class InputGrafanaMaximumTLSVersion1(str, Enum, metaclass=utils.OpenEnumMeta):
712
+ class InputGrafanaMaximumTLSVersion1(str, Enum):
740
713
  TL_SV1 = "TLSv1"
741
714
  TL_SV1_1 = "TLSv1.1"
742
715
  TL_SV1_2 = "TLSv1.2"
@@ -795,25 +768,15 @@ class InputGrafanaTLSSettingsServerSide1(BaseModel):
795
768
  ] = None
796
769
 
797
770
  min_version: Annotated[
798
- Annotated[
799
- Optional[InputGrafanaMinimumTLSVersion1],
800
- PlainValidator(validate_open_enum(False)),
801
- ],
802
- pydantic.Field(alias="minVersion"),
771
+ Optional[InputGrafanaMinimumTLSVersion1], pydantic.Field(alias="minVersion")
803
772
  ] = None
804
773
 
805
774
  max_version: Annotated[
806
- Annotated[
807
- Optional[InputGrafanaMaximumTLSVersion1],
808
- PlainValidator(validate_open_enum(False)),
809
- ],
810
- pydantic.Field(alias="maxVersion"),
775
+ Optional[InputGrafanaMaximumTLSVersion1], pydantic.Field(alias="maxVersion")
811
776
  ] = None
812
777
 
813
778
 
814
- class InputGrafanaPrometheusAuthAuthenticationType1(
815
- str, Enum, metaclass=utils.OpenEnumMeta
816
- ):
779
+ class InputGrafanaPrometheusAuthAuthenticationType1(str, Enum):
817
780
  r"""Remote Write authentication type"""
818
781
 
819
782
  NONE = "none"
@@ -885,10 +848,7 @@ class InputGrafanaPrometheusAuth1TypedDict(TypedDict):
885
848
 
886
849
  class InputGrafanaPrometheusAuth1(BaseModel):
887
850
  auth_type: Annotated[
888
- Annotated[
889
- Optional[InputGrafanaPrometheusAuthAuthenticationType1],
890
- PlainValidator(validate_open_enum(False)),
891
- ],
851
+ Optional[InputGrafanaPrometheusAuthAuthenticationType1],
892
852
  pydantic.Field(alias="authType"),
893
853
  ] = InputGrafanaPrometheusAuthAuthenticationType1.NONE
894
854
  r"""Remote Write authentication type"""
@@ -945,7 +905,7 @@ class InputGrafanaPrometheusAuth1(BaseModel):
945
905
  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."""
946
906
 
947
907
 
948
- class InputGrafanaLokiAuthAuthenticationType1(str, Enum, metaclass=utils.OpenEnumMeta):
908
+ class InputGrafanaLokiAuthAuthenticationType1(str, Enum):
949
909
  r"""Loki logs authentication type"""
950
910
 
951
911
  NONE = "none"
@@ -1017,10 +977,7 @@ class InputGrafanaLokiAuth1TypedDict(TypedDict):
1017
977
 
1018
978
  class InputGrafanaLokiAuth1(BaseModel):
1019
979
  auth_type: Annotated[
1020
- Annotated[
1021
- Optional[InputGrafanaLokiAuthAuthenticationType1],
1022
- PlainValidator(validate_open_enum(False)),
1023
- ],
980
+ Optional[InputGrafanaLokiAuthAuthenticationType1],
1024
981
  pydantic.Field(alias="authType"),
1025
982
  ] = InputGrafanaLokiAuthAuthenticationType1.NONE
1026
983
  r"""Loki logs authentication type"""
@@ -1,12 +1,9 @@
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
 
@@ -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"
@@ -67,9 +64,7 @@ class InputHTTPPqTypedDict(TypedDict):
67
64
 
68
65
 
69
66
  class InputHTTPPq(BaseModel):
70
- mode: Annotated[
71
- Optional[InputHTTPMode], PlainValidator(validate_open_enum(False))
72
- ] = InputHTTPMode.ALWAYS
67
+ mode: Optional[InputHTTPMode] = InputHTTPMode.ALWAYS
73
68
  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."""
74
69
 
75
70
  max_buffer_size: Annotated[
@@ -93,9 +88,7 @@ class InputHTTPPq(BaseModel):
93
88
  path: Optional[str] = "$CRIBL_HOME/state/queues"
94
89
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
95
90
 
96
- compress: Annotated[
97
- Optional[InputHTTPCompression], PlainValidator(validate_open_enum(False))
98
- ] = InputHTTPCompression.NONE
91
+ compress: Optional[InputHTTPCompression] = InputHTTPCompression.NONE
99
92
  r"""Codec to use to compress the persisted data"""
100
93
 
101
94
  pq_controls: Annotated[
@@ -103,14 +96,14 @@ class InputHTTPPq(BaseModel):
103
96
  ] = None
104
97
 
105
98
 
106
- class InputHTTPMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
99
+ class InputHTTPMinimumTLSVersion(str, Enum):
107
100
  TL_SV1 = "TLSv1"
108
101
  TL_SV1_1 = "TLSv1.1"
109
102
  TL_SV1_2 = "TLSv1.2"
110
103
  TL_SV1_3 = "TLSv1.3"
111
104
 
112
105
 
113
- class InputHTTPMaximumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
106
+ class InputHTTPMaximumTLSVersion(str, Enum):
114
107
  TL_SV1 = "TLSv1"
115
108
  TL_SV1_1 = "TLSv1.1"
116
109
  TL_SV1_2 = "TLSv1.2"
@@ -169,19 +162,11 @@ class InputHTTPTLSSettingsServerSide(BaseModel):
169
162
  ] = None
170
163
 
171
164
  min_version: Annotated[
172
- Annotated[
173
- Optional[InputHTTPMinimumTLSVersion],
174
- PlainValidator(validate_open_enum(False)),
175
- ],
176
- pydantic.Field(alias="minVersion"),
165
+ Optional[InputHTTPMinimumTLSVersion], pydantic.Field(alias="minVersion")
177
166
  ] = None
178
167
 
179
168
  max_version: Annotated[
180
- Annotated[
181
- Optional[InputHTTPMaximumTLSVersion],
182
- PlainValidator(validate_open_enum(False)),
183
- ],
184
- pydantic.Field(alias="maxVersion"),
169
+ Optional[InputHTTPMaximumTLSVersion], pydantic.Field(alias="maxVersion")
185
170
  ] = None
186
171
 
187
172
 
@@ -1,12 +1,9 @@
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
 
@@ -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"
@@ -67,9 +64,7 @@ class InputHTTPRawPqTypedDict(TypedDict):
67
64
 
68
65
 
69
66
  class InputHTTPRawPq(BaseModel):
70
- mode: Annotated[
71
- Optional[InputHTTPRawMode], PlainValidator(validate_open_enum(False))
72
- ] = InputHTTPRawMode.ALWAYS
67
+ mode: Optional[InputHTTPRawMode] = InputHTTPRawMode.ALWAYS
73
68
  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."""
74
69
 
75
70
  max_buffer_size: Annotated[
@@ -93,9 +88,7 @@ class InputHTTPRawPq(BaseModel):
93
88
  path: Optional[str] = "$CRIBL_HOME/state/queues"
94
89
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
95
90
 
96
- compress: Annotated[
97
- Optional[InputHTTPRawCompression], PlainValidator(validate_open_enum(False))
98
- ] = InputHTTPRawCompression.NONE
91
+ compress: Optional[InputHTTPRawCompression] = InputHTTPRawCompression.NONE
99
92
  r"""Codec to use to compress the persisted data"""
100
93
 
101
94
  pq_controls: Annotated[
@@ -103,14 +96,14 @@ class InputHTTPRawPq(BaseModel):
103
96
  ] = None
104
97
 
105
98
 
106
- class InputHTTPRawMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
99
+ class InputHTTPRawMinimumTLSVersion(str, Enum):
107
100
  TL_SV1 = "TLSv1"
108
101
  TL_SV1_1 = "TLSv1.1"
109
102
  TL_SV1_2 = "TLSv1.2"
110
103
  TL_SV1_3 = "TLSv1.3"
111
104
 
112
105
 
113
- class InputHTTPRawMaximumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
106
+ class InputHTTPRawMaximumTLSVersion(str, Enum):
114
107
  TL_SV1 = "TLSv1"
115
108
  TL_SV1_1 = "TLSv1.1"
116
109
  TL_SV1_2 = "TLSv1.2"
@@ -169,19 +162,11 @@ class InputHTTPRawTLSSettingsServerSide(BaseModel):
169
162
  ] = None
170
163
 
171
164
  min_version: Annotated[
172
- Annotated[
173
- Optional[InputHTTPRawMinimumTLSVersion],
174
- PlainValidator(validate_open_enum(False)),
175
- ],
176
- pydantic.Field(alias="minVersion"),
165
+ Optional[InputHTTPRawMinimumTLSVersion], pydantic.Field(alias="minVersion")
177
166
  ] = None
178
167
 
179
168
  max_version: Annotated[
180
- Annotated[
181
- Optional[InputHTTPRawMaximumTLSVersion],
182
- PlainValidator(validate_open_enum(False)),
183
- ],
184
- pydantic.Field(alias="maxVersion"),
169
+ Optional[InputHTTPRawMaximumTLSVersion], pydantic.Field(alias="maxVersion")
185
170
  ] = None
186
171
 
187
172
 
@@ -1,12 +1,9 @@
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
 
@@ -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"
@@ -67,9 +64,7 @@ class InputJournalFilesPqTypedDict(TypedDict):
67
64
 
68
65
 
69
66
  class InputJournalFilesPq(BaseModel):
70
- mode: Annotated[
71
- Optional[InputJournalFilesMode], PlainValidator(validate_open_enum(False))
72
- ] = InputJournalFilesMode.ALWAYS
67
+ mode: Optional[InputJournalFilesMode] = InputJournalFilesMode.ALWAYS
73
68
  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."""
74
69
 
75
70
  max_buffer_size: Annotated[
@@ -93,10 +88,7 @@ class InputJournalFilesPq(BaseModel):
93
88
  path: Optional[str] = "$CRIBL_HOME/state/queues"
94
89
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
95
90
 
96
- compress: Annotated[
97
- Optional[InputJournalFilesCompression],
98
- PlainValidator(validate_open_enum(False)),
99
- ] = InputJournalFilesCompression.NONE
91
+ compress: Optional[InputJournalFilesCompression] = InputJournalFilesCompression.NONE
100
92
  r"""Codec to use to compress the persisted data"""
101
93
 
102
94
  pq_controls: Annotated[
@@ -1,12 +1,9 @@
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
 
@@ -26,14 +23,14 @@ class InputKafkaConnection(BaseModel):
26
23
  pipeline: Optional[str] = None
27
24
 
28
25
 
29
- class InputKafkaMode(str, Enum, metaclass=utils.OpenEnumMeta):
26
+ class InputKafkaMode(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 InputKafkaCompression(str, Enum, metaclass=utils.OpenEnumMeta):
33
+ class InputKafkaCompression(str, Enum):
37
34
  r"""Codec to use to compress the persisted data"""
38
35
 
39
36
  NONE = "none"
@@ -67,9 +64,7 @@ class InputKafkaPqTypedDict(TypedDict):
67
64
 
68
65
 
69
66
  class InputKafkaPq(BaseModel):
70
- mode: Annotated[
71
- Optional[InputKafkaMode], PlainValidator(validate_open_enum(False))
72
- ] = InputKafkaMode.ALWAYS
67
+ mode: Optional[InputKafkaMode] = InputKafkaMode.ALWAYS
73
68
  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."""
74
69
 
75
70
  max_buffer_size: Annotated[
@@ -93,9 +88,7 @@ class InputKafkaPq(BaseModel):
93
88
  path: Optional[str] = "$CRIBL_HOME/state/queues"
94
89
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
95
90
 
96
- compress: Annotated[
97
- Optional[InputKafkaCompression], PlainValidator(validate_open_enum(False))
98
- ] = InputKafkaCompression.NONE
91
+ compress: Optional[InputKafkaCompression] = InputKafkaCompression.NONE
99
92
  r"""Codec to use to compress the persisted data"""
100
93
 
101
94
  pq_controls: Annotated[
@@ -103,7 +96,7 @@ class InputKafkaPq(BaseModel):
103
96
  ] = None
104
97
 
105
98
 
106
- class InputKafkaSchemaType(str, Enum, metaclass=utils.OpenEnumMeta):
99
+ class InputKafkaSchemaType(str, Enum):
107
100
  r"""The schema format used to encode and decode event data"""
108
101
 
109
102
  AVRO = "avro"
@@ -129,18 +122,14 @@ class InputKafkaAuth(BaseModel):
129
122
  r"""Select or create a secret that references your credentials"""
130
123
 
131
124
 
132
- class InputKafkaKafkaSchemaRegistryMinimumTLSVersion(
133
- str, Enum, metaclass=utils.OpenEnumMeta
134
- ):
125
+ class InputKafkaKafkaSchemaRegistryMinimumTLSVersion(str, Enum):
135
126
  TL_SV1 = "TLSv1"
136
127
  TL_SV1_1 = "TLSv1.1"
137
128
  TL_SV1_2 = "TLSv1.2"
138
129
  TL_SV1_3 = "TLSv1.3"
139
130
 
140
131
 
141
- class InputKafkaKafkaSchemaRegistryMaximumTLSVersion(
142
- str, Enum, metaclass=utils.OpenEnumMeta
143
- ):
132
+ class InputKafkaKafkaSchemaRegistryMaximumTLSVersion(str, Enum):
144
133
  TL_SV1 = "TLSv1"
145
134
  TL_SV1_1 = "TLSv1.1"
146
135
  TL_SV1_2 = "TLSv1.2"
@@ -200,18 +189,12 @@ class InputKafkaKafkaSchemaRegistryTLSSettingsClientSide(BaseModel):
200
189
  r"""Passphrase to use to decrypt private key"""
201
190
 
202
191
  min_version: Annotated[
203
- Annotated[
204
- Optional[InputKafkaKafkaSchemaRegistryMinimumTLSVersion],
205
- PlainValidator(validate_open_enum(False)),
206
- ],
192
+ Optional[InputKafkaKafkaSchemaRegistryMinimumTLSVersion],
207
193
  pydantic.Field(alias="minVersion"),
208
194
  ] = None
209
195
 
210
196
  max_version: Annotated[
211
- Annotated[
212
- Optional[InputKafkaKafkaSchemaRegistryMaximumTLSVersion],
213
- PlainValidator(validate_open_enum(False)),
214
- ],
197
+ Optional[InputKafkaKafkaSchemaRegistryMaximumTLSVersion],
215
198
  pydantic.Field(alias="maxVersion"),
216
199
  ] = None
217
200
 
@@ -242,10 +225,7 @@ class InputKafkaKafkaSchemaRegistryAuthentication(BaseModel):
242
225
  r"""URL for accessing the Confluent Schema Registry. Example: http://localhost:8081. To connect over TLS, use https instead of http."""
243
226
 
244
227
  schema_type: Annotated[
245
- Annotated[
246
- Optional[InputKafkaSchemaType], PlainValidator(validate_open_enum(False))
247
- ],
248
- pydantic.Field(alias="schemaType"),
228
+ Optional[InputKafkaSchemaType], pydantic.Field(alias="schemaType")
249
229
  ] = InputKafkaSchemaType.AVRO
250
230
  r"""The schema format used to encode and decode event data"""
251
231
 
@@ -268,7 +248,7 @@ class InputKafkaKafkaSchemaRegistryAuthentication(BaseModel):
268
248
  tls: Optional[InputKafkaKafkaSchemaRegistryTLSSettingsClientSide] = None
269
249
 
270
250
 
271
- class InputKafkaSASLMechanism(str, Enum, metaclass=utils.OpenEnumMeta):
251
+ class InputKafkaSASLMechanism(str, Enum):
272
252
  PLAIN = "plain"
273
253
  SCRAM_SHA_256 = "scram-sha-256"
274
254
  SCRAM_SHA_512 = "scram-sha-512"
@@ -289,9 +269,7 @@ class InputKafkaAuthentication(BaseModel):
289
269
 
290
270
  disabled: Optional[bool] = True
291
271
 
292
- mechanism: Annotated[
293
- Optional[InputKafkaSASLMechanism], PlainValidator(validate_open_enum(False))
294
- ] = InputKafkaSASLMechanism.PLAIN
272
+ mechanism: Optional[InputKafkaSASLMechanism] = InputKafkaSASLMechanism.PLAIN
295
273
 
296
274
  oauth_enabled: Annotated[Optional[bool], pydantic.Field(alias="oauthEnabled")] = (
297
275
  False
@@ -299,14 +277,14 @@ class InputKafkaAuthentication(BaseModel):
299
277
  r"""Enable OAuth authentication"""
300
278
 
301
279
 
302
- class InputKafkaMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
280
+ class InputKafkaMinimumTLSVersion(str, Enum):
303
281
  TL_SV1 = "TLSv1"
304
282
  TL_SV1_1 = "TLSv1.1"
305
283
  TL_SV1_2 = "TLSv1.2"
306
284
  TL_SV1_3 = "TLSv1.3"
307
285
 
308
286
 
309
- class InputKafkaMaximumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
287
+ class InputKafkaMaximumTLSVersion(str, Enum):
310
288
  TL_SV1 = "TLSv1"
311
289
  TL_SV1_1 = "TLSv1.1"
312
290
  TL_SV1_2 = "TLSv1.2"
@@ -366,19 +344,11 @@ class InputKafkaTLSSettingsClientSide(BaseModel):
366
344
  r"""Passphrase to use to decrypt private key"""
367
345
 
368
346
  min_version: Annotated[
369
- Annotated[
370
- Optional[InputKafkaMinimumTLSVersion],
371
- PlainValidator(validate_open_enum(False)),
372
- ],
373
- pydantic.Field(alias="minVersion"),
347
+ Optional[InputKafkaMinimumTLSVersion], pydantic.Field(alias="minVersion")
374
348
  ] = None
375
349
 
376
350
  max_version: Annotated[
377
- Annotated[
378
- Optional[InputKafkaMaximumTLSVersion],
379
- PlainValidator(validate_open_enum(False)),
380
- ],
381
- pydantic.Field(alias="maxVersion"),
351
+ Optional[InputKafkaMaximumTLSVersion], pydantic.Field(alias="maxVersion")
382
352
  ] = None
383
353
 
384
354