cribl-control-plane 0.0.16__py3-none-any.whl → 0.0.18__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 (156) hide show
  1. cribl_control_plane/_version.py +3 -3
  2. cribl_control_plane/errors/healthstatus_error.py +2 -8
  3. cribl_control_plane/models/__init__.py +4365 -4124
  4. cribl_control_plane/models/createinputop.py +1734 -2771
  5. cribl_control_plane/models/createoutputop.py +2153 -4314
  6. cribl_control_plane/models/createversioncommitop.py +24 -0
  7. cribl_control_plane/models/createversionpushop.py +23 -0
  8. cribl_control_plane/models/createversionrevertop.py +47 -0
  9. cribl_control_plane/models/createversionsyncop.py +23 -0
  10. cribl_control_plane/models/createversionundoop.py +37 -0
  11. cribl_control_plane/models/getversionbranchop.py +23 -0
  12. cribl_control_plane/models/getversioncountop.py +47 -0
  13. cribl_control_plane/models/getversioncurrentbranchop.py +23 -0
  14. cribl_control_plane/models/getversiondiffop.py +63 -0
  15. cribl_control_plane/models/getversionfilesop.py +48 -0
  16. cribl_control_plane/models/getversioninfoop.py +24 -0
  17. cribl_control_plane/models/getversionshowop.py +63 -0
  18. cribl_control_plane/models/getversionstatusop.py +38 -0
  19. cribl_control_plane/models/gitcommitparams.py +23 -0
  20. cribl_control_plane/models/gitcommitsummary.py +68 -0
  21. cribl_control_plane/models/gitfile.py +20 -0
  22. cribl_control_plane/models/gitfilesresponse.py +22 -0
  23. cribl_control_plane/models/gitinfo.py +23 -0
  24. cribl_control_plane/models/gitrevertparams.py +20 -0
  25. cribl_control_plane/models/gitrevertresult.py +48 -0
  26. cribl_control_plane/models/gitstatusresult.py +73 -0
  27. cribl_control_plane/models/healthstatus.py +4 -7
  28. cribl_control_plane/models/inputappscope.py +16 -36
  29. cribl_control_plane/models/inputazureblob.py +8 -19
  30. cribl_control_plane/models/inputcollection.py +6 -15
  31. cribl_control_plane/models/inputconfluentcloud.py +20 -45
  32. cribl_control_plane/models/inputcribl.py +6 -13
  33. cribl_control_plane/models/inputcriblhttp.py +10 -27
  34. cribl_control_plane/models/inputcribllakehttp.py +12 -26
  35. cribl_control_plane/models/inputcriblmetrics.py +6 -14
  36. cribl_control_plane/models/inputcribltcp.py +10 -27
  37. cribl_control_plane/models/inputcrowdstrike.py +12 -28
  38. cribl_control_plane/models/inputdatadogagent.py +10 -28
  39. cribl_control_plane/models/inputdatagen.py +6 -13
  40. cribl_control_plane/models/inputedgeprometheus.py +31 -64
  41. cribl_control_plane/models/inputelastic.py +16 -44
  42. cribl_control_plane/models/inputeventhub.py +8 -19
  43. cribl_control_plane/models/inputexec.py +8 -16
  44. cribl_control_plane/models/inputfile.py +8 -17
  45. cribl_control_plane/models/inputfirehose.py +10 -27
  46. cribl_control_plane/models/inputgooglepubsub.py +8 -23
  47. cribl_control_plane/models/inputgrafana_union.py +35 -81
  48. cribl_control_plane/models/inputhttp.py +10 -27
  49. cribl_control_plane/models/inputhttpraw.py +10 -27
  50. cribl_control_plane/models/inputjournalfiles.py +6 -16
  51. cribl_control_plane/models/inputkafka.py +16 -45
  52. cribl_control_plane/models/inputkinesis.py +16 -42
  53. cribl_control_plane/models/inputkubeevents.py +6 -13
  54. cribl_control_plane/models/inputkubelogs.py +10 -18
  55. cribl_control_plane/models/inputkubemetrics.py +10 -18
  56. cribl_control_plane/models/inputloki.py +12 -33
  57. cribl_control_plane/models/inputmetrics.py +10 -25
  58. cribl_control_plane/models/inputmodeldriventelemetry.py +12 -32
  59. cribl_control_plane/models/inputmsk.py +18 -52
  60. cribl_control_plane/models/inputnetflow.py +6 -15
  61. cribl_control_plane/models/inputoffice365mgmt.py +16 -37
  62. cribl_control_plane/models/inputoffice365msgtrace.py +18 -39
  63. cribl_control_plane/models/inputoffice365service.py +18 -39
  64. cribl_control_plane/models/inputopentelemetry.py +18 -42
  65. cribl_control_plane/models/inputprometheus.py +20 -54
  66. cribl_control_plane/models/inputprometheusrw.py +12 -34
  67. cribl_control_plane/models/inputrawudp.py +6 -15
  68. cribl_control_plane/models/inputs3.py +10 -23
  69. cribl_control_plane/models/inputs3inventory.py +12 -28
  70. cribl_control_plane/models/inputsecuritylake.py +12 -29
  71. cribl_control_plane/models/inputsnmp.py +8 -20
  72. cribl_control_plane/models/inputsplunk.py +14 -37
  73. cribl_control_plane/models/inputsplunkhec.py +12 -33
  74. cribl_control_plane/models/inputsplunksearch.py +16 -37
  75. cribl_control_plane/models/inputsqs.py +12 -31
  76. cribl_control_plane/models/inputsyslog_union.py +29 -53
  77. cribl_control_plane/models/inputsystemmetrics.py +26 -50
  78. cribl_control_plane/models/inputsystemstate.py +10 -18
  79. cribl_control_plane/models/inputtcp.py +12 -33
  80. cribl_control_plane/models/inputtcpjson.py +12 -33
  81. cribl_control_plane/models/inputwef.py +20 -45
  82. cribl_control_plane/models/inputwindowsmetrics.py +26 -46
  83. cribl_control_plane/models/inputwineventlogs.py +12 -22
  84. cribl_control_plane/models/inputwiz.py +10 -25
  85. cribl_control_plane/models/inputzscalerhec.py +12 -33
  86. cribl_control_plane/models/output.py +3 -6
  87. cribl_control_plane/models/outputazureblob.py +20 -52
  88. cribl_control_plane/models/outputazuredataexplorer.py +30 -77
  89. cribl_control_plane/models/outputazureeventhub.py +20 -44
  90. cribl_control_plane/models/outputazurelogs.py +14 -37
  91. cribl_control_plane/models/outputclickhouse.py +22 -59
  92. cribl_control_plane/models/outputcloudwatch.py +12 -33
  93. cribl_control_plane/models/outputconfluentcloud.py +32 -75
  94. cribl_control_plane/models/outputcriblhttp.py +18 -46
  95. cribl_control_plane/models/outputcribllake.py +18 -48
  96. cribl_control_plane/models/outputcribltcp.py +20 -47
  97. cribl_control_plane/models/outputcrowdstrikenextgensiem.py +16 -54
  98. cribl_control_plane/models/outputdatadog.py +22 -50
  99. cribl_control_plane/models/outputdataset.py +20 -48
  100. cribl_control_plane/models/outputdefault.py +2 -5
  101. cribl_control_plane/models/outputdevnull.py +2 -5
  102. cribl_control_plane/models/outputdiskspool.py +4 -9
  103. cribl_control_plane/models/outputdls3.py +26 -72
  104. cribl_control_plane/models/outputdynatracehttp.py +22 -57
  105. cribl_control_plane/models/outputdynatraceotlp.py +24 -59
  106. cribl_control_plane/models/outputelastic.py +20 -45
  107. cribl_control_plane/models/outputelasticcloud.py +14 -40
  108. cribl_control_plane/models/outputexabeam.py +12 -33
  109. cribl_control_plane/models/outputfilesystem.py +16 -41
  110. cribl_control_plane/models/outputgooglechronicle.py +18 -54
  111. cribl_control_plane/models/outputgooglecloudlogging.py +16 -46
  112. cribl_control_plane/models/outputgooglecloudstorage.py +26 -71
  113. cribl_control_plane/models/outputgooglepubsub.py +16 -39
  114. cribl_control_plane/models/{outputgrafanacloud_union.py → outputgrafanacloud.py} +49 -110
  115. cribl_control_plane/models/outputgraphite.py +16 -35
  116. cribl_control_plane/models/outputhoneycomb.py +14 -37
  117. cribl_control_plane/models/outputhumiohec.py +18 -47
  118. cribl_control_plane/models/outputinfluxdb.py +18 -44
  119. cribl_control_plane/models/outputkafka.py +28 -73
  120. cribl_control_plane/models/outputkinesis.py +18 -44
  121. cribl_control_plane/models/outputloki.py +18 -43
  122. cribl_control_plane/models/outputminio.py +26 -69
  123. cribl_control_plane/models/outputmsk.py +30 -81
  124. cribl_control_plane/models/outputnetflow.py +2 -5
  125. cribl_control_plane/models/outputnewrelic.py +20 -45
  126. cribl_control_plane/models/outputnewrelicevents.py +16 -45
  127. cribl_control_plane/models/outputopentelemetry.py +28 -69
  128. cribl_control_plane/models/outputprometheus.py +14 -37
  129. cribl_control_plane/models/outputring.py +10 -21
  130. cribl_control_plane/models/outputrouter.py +2 -5
  131. cribl_control_plane/models/outputs3.py +28 -72
  132. cribl_control_plane/models/outputsecuritylake.py +20 -56
  133. cribl_control_plane/models/outputsentinel.py +20 -49
  134. cribl_control_plane/models/outputsentineloneaisiem.py +20 -54
  135. cribl_control_plane/models/outputservicenow.py +26 -64
  136. cribl_control_plane/models/outputsignalfx.py +16 -39
  137. cribl_control_plane/models/outputsnmp.py +2 -5
  138. cribl_control_plane/models/outputsns.py +16 -40
  139. cribl_control_plane/models/outputsplunk.py +26 -64
  140. cribl_control_plane/models/outputsplunkhec.py +14 -37
  141. cribl_control_plane/models/outputsplunklb.py +36 -83
  142. cribl_control_plane/models/outputsqs.py +18 -45
  143. cribl_control_plane/models/outputstatsd.py +16 -34
  144. cribl_control_plane/models/outputstatsdext.py +14 -33
  145. cribl_control_plane/models/outputsumologic.py +14 -37
  146. cribl_control_plane/models/outputsyslog.py +26 -60
  147. cribl_control_plane/models/outputtcpjson.py +22 -54
  148. cribl_control_plane/models/outputwavefront.py +14 -37
  149. cribl_control_plane/models/outputwebhook.py +24 -60
  150. cribl_control_plane/models/outputxsiam.py +16 -37
  151. cribl_control_plane/sdk.py +4 -0
  152. cribl_control_plane/versioning.py +2309 -0
  153. {cribl_control_plane-0.0.16.dist-info → cribl_control_plane-0.0.18.dist-info}/METADATA +18 -2
  154. cribl_control_plane-0.0.18.dist-info/RECORD +237 -0
  155. cribl_control_plane-0.0.16.dist-info/RECORD +0 -215
  156. {cribl_control_plane-0.0.16.dist-info → cribl_control_plane-0.0.18.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 List, Optional
11
8
  from typing_extensions import Annotated, NotRequired, TypedDict
12
9
 
13
10
 
14
- class InputSystemMetricsType(str, Enum, metaclass=utils.OpenEnumMeta):
11
+ class InputSystemMetricsType(str, Enum):
15
12
  SYSTEM_METRICS = "system_metrics"
16
13
 
17
14
 
@@ -26,14 +23,14 @@ class InputSystemMetricsConnection(BaseModel):
26
23
  pipeline: Optional[str] = None
27
24
 
28
25
 
29
- class InputSystemMetricsPqMode(str, Enum, metaclass=utils.OpenEnumMeta):
26
+ class InputSystemMetricsPqMode(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 InputSystemMetricsCompression(str, Enum, metaclass=utils.OpenEnumMeta):
33
+ class InputSystemMetricsCompression(str, Enum):
37
34
  r"""Codec to use to compress the persisted data"""
38
35
 
39
36
  NONE = "none"
@@ -58,9 +55,7 @@ class InputSystemMetricsPqTypedDict(TypedDict):
58
55
 
59
56
 
60
57
  class InputSystemMetricsPq(BaseModel):
61
- mode: Annotated[
62
- Optional[InputSystemMetricsPqMode], PlainValidator(validate_open_enum(False))
63
- ] = InputSystemMetricsPqMode.ALWAYS
58
+ mode: Optional[InputSystemMetricsPqMode] = InputSystemMetricsPqMode.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,14 +79,13 @@ class InputSystemMetricsPq(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[InputSystemMetricsCompression],
89
- PlainValidator(validate_open_enum(False)),
90
- ] = InputSystemMetricsCompression.NONE
82
+ compress: Optional[InputSystemMetricsCompression] = (
83
+ InputSystemMetricsCompression.NONE
84
+ )
91
85
  r"""Codec to use to compress the persisted data"""
92
86
 
93
87
 
94
- class InputSystemMetricsHostMode(str, Enum, metaclass=utils.OpenEnumMeta):
88
+ class InputSystemMetricsHostMode(str, Enum):
95
89
  r"""Select level of detail for host metrics"""
96
90
 
97
91
  BASIC = "basic"
@@ -100,7 +94,7 @@ class InputSystemMetricsHostMode(str, Enum, metaclass=utils.OpenEnumMeta):
100
94
  DISABLED = "disabled"
101
95
 
102
96
 
103
- class InputSystemMetricsSystemMode(str, Enum, metaclass=utils.OpenEnumMeta):
97
+ class InputSystemMetricsSystemMode(str, Enum):
104
98
  r"""Select the level of detail for system metrics"""
105
99
 
106
100
  BASIC = "basic"
@@ -117,17 +111,14 @@ class InputSystemMetricsSystemTypedDict(TypedDict):
117
111
 
118
112
 
119
113
  class InputSystemMetricsSystem(BaseModel):
120
- mode: Annotated[
121
- Optional[InputSystemMetricsSystemMode],
122
- PlainValidator(validate_open_enum(False)),
123
- ] = InputSystemMetricsSystemMode.BASIC
114
+ mode: Optional[InputSystemMetricsSystemMode] = InputSystemMetricsSystemMode.BASIC
124
115
  r"""Select the level of detail for system metrics"""
125
116
 
126
117
  processes: Optional[bool] = False
127
118
  r"""Generate metrics for the numbers of processes in various states"""
128
119
 
129
120
 
130
- class InputSystemMetricsCPUMode(str, Enum, metaclass=utils.OpenEnumMeta):
121
+ class InputSystemMetricsCPUMode(str, Enum):
131
122
  r"""Select the level of detail for CPU metrics"""
132
123
 
133
124
  BASIC = "basic"
@@ -148,9 +139,7 @@ class InputSystemMetricsCPUTypedDict(TypedDict):
148
139
 
149
140
 
150
141
  class InputSystemMetricsCPU(BaseModel):
151
- mode: Annotated[
152
- Optional[InputSystemMetricsCPUMode], PlainValidator(validate_open_enum(False))
153
- ] = InputSystemMetricsCPUMode.BASIC
142
+ mode: Optional[InputSystemMetricsCPUMode] = InputSystemMetricsCPUMode.BASIC
154
143
  r"""Select the level of detail for CPU metrics"""
155
144
 
156
145
  per_cpu: Annotated[Optional[bool], pydantic.Field(alias="perCpu")] = False
@@ -163,7 +152,7 @@ class InputSystemMetricsCPU(BaseModel):
163
152
  r"""Generate raw, monotonic CPU time counters"""
164
153
 
165
154
 
166
- class InputSystemMetricsMemoryMode(str, Enum, metaclass=utils.OpenEnumMeta):
155
+ class InputSystemMetricsMemoryMode(str, Enum):
167
156
  r"""Select the level of detail for memory metrics"""
168
157
 
169
158
  BASIC = "basic"
@@ -180,17 +169,14 @@ class InputSystemMetricsMemoryTypedDict(TypedDict):
180
169
 
181
170
 
182
171
  class InputSystemMetricsMemory(BaseModel):
183
- mode: Annotated[
184
- Optional[InputSystemMetricsMemoryMode],
185
- PlainValidator(validate_open_enum(False)),
186
- ] = InputSystemMetricsMemoryMode.BASIC
172
+ mode: Optional[InputSystemMetricsMemoryMode] = InputSystemMetricsMemoryMode.BASIC
187
173
  r"""Select the level of detail for memory metrics"""
188
174
 
189
175
  detail: Optional[bool] = False
190
176
  r"""Generate metrics for all memory states"""
191
177
 
192
178
 
193
- class InputSystemMetricsNetworkMode(str, Enum, metaclass=utils.OpenEnumMeta):
179
+ class InputSystemMetricsNetworkMode(str, Enum):
194
180
  r"""Select the level of detail for network metrics"""
195
181
 
196
182
  BASIC = "basic"
@@ -211,10 +197,7 @@ class InputSystemMetricsNetworkTypedDict(TypedDict):
211
197
 
212
198
 
213
199
  class InputSystemMetricsNetwork(BaseModel):
214
- mode: Annotated[
215
- Optional[InputSystemMetricsNetworkMode],
216
- PlainValidator(validate_open_enum(False)),
217
- ] = InputSystemMetricsNetworkMode.BASIC
200
+ mode: Optional[InputSystemMetricsNetworkMode] = InputSystemMetricsNetworkMode.BASIC
218
201
  r"""Select the level of detail for network metrics"""
219
202
 
220
203
  devices: Optional[List[str]] = None
@@ -229,7 +212,7 @@ class InputSystemMetricsNetwork(BaseModel):
229
212
  r"""Generate full network metrics"""
230
213
 
231
214
 
232
- class InputSystemMetricsDiskMode(str, Enum, metaclass=utils.OpenEnumMeta):
215
+ class InputSystemMetricsDiskMode(str, Enum):
233
216
  r"""Select the level of detail for disk metrics"""
234
217
 
235
218
  BASIC = "basic"
@@ -254,9 +237,7 @@ class InputSystemMetricsDiskTypedDict(TypedDict):
254
237
 
255
238
 
256
239
  class InputSystemMetricsDisk(BaseModel):
257
- mode: Annotated[
258
- Optional[InputSystemMetricsDiskMode], PlainValidator(validate_open_enum(False))
259
- ] = InputSystemMetricsDiskMode.BASIC
240
+ mode: Optional[InputSystemMetricsDiskMode] = InputSystemMetricsDiskMode.BASIC
260
241
  r"""Select the level of detail for disk metrics"""
261
242
 
262
243
  devices: Optional[List[str]] = None
@@ -302,9 +283,7 @@ class InputSystemMetricsHostTypedDict(TypedDict):
302
283
 
303
284
 
304
285
  class InputSystemMetricsHost(BaseModel):
305
- mode: Annotated[
306
- Optional[InputSystemMetricsHostMode], PlainValidator(validate_open_enum(False))
307
- ] = InputSystemMetricsHostMode.BASIC
286
+ mode: Optional[InputSystemMetricsHostMode] = InputSystemMetricsHostMode.BASIC
308
287
  r"""Select level of detail for host metrics"""
309
288
 
310
289
  custom: Optional[InputSystemMetricsCustom] = None
@@ -336,7 +315,7 @@ class InputSystemMetricsProcess(BaseModel):
336
315
  r"""Configure sets to collect process metrics"""
337
316
 
338
317
 
339
- class ContainerMode(str, Enum, metaclass=utils.OpenEnumMeta):
318
+ class ContainerMode(str, Enum):
340
319
  r"""Select the level of detail for container metrics"""
341
320
 
342
321
  BASIC = "basic"
@@ -371,9 +350,7 @@ class ContainerTypedDict(TypedDict):
371
350
 
372
351
 
373
352
  class Container(BaseModel):
374
- mode: Annotated[
375
- Optional[ContainerMode], PlainValidator(validate_open_enum(False))
376
- ] = ContainerMode.BASIC
353
+ mode: Optional[ContainerMode] = ContainerMode.BASIC
377
354
  r"""Select the level of detail for container metrics"""
378
355
 
379
356
  docker_socket: Annotated[
@@ -414,7 +391,7 @@ class InputSystemMetricsMetadatum(BaseModel):
414
391
  r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
415
392
 
416
393
 
417
- class InputSystemMetricsDataCompressionFormat(str, Enum, metaclass=utils.OpenEnumMeta):
394
+ class InputSystemMetricsDataCompressionFormat(str, Enum):
418
395
  NONE = "none"
419
396
  GZIP = "gzip"
420
397
 
@@ -446,10 +423,9 @@ class InputSystemMetricsPersistence(BaseModel):
446
423
  max_data_time: Annotated[Optional[str], pydantic.Field(alias="maxDataTime")] = "24h"
447
424
  r"""Maximum amount of time to retain data (examples: 2h, 4d). When limit is reached, older data will be deleted."""
448
425
 
449
- compress: Annotated[
450
- Optional[InputSystemMetricsDataCompressionFormat],
451
- PlainValidator(validate_open_enum(False)),
452
- ] = InputSystemMetricsDataCompressionFormat.GZIP
426
+ compress: Optional[InputSystemMetricsDataCompressionFormat] = (
427
+ InputSystemMetricsDataCompressionFormat.GZIP
428
+ )
453
429
 
454
430
  dest_path: Annotated[Optional[str], pydantic.Field(alias="destPath")] = (
455
431
  "$CRIBL_HOME/state/system_metrics"
@@ -490,7 +466,7 @@ class InputSystemMetrics(BaseModel):
490
466
  id: str
491
467
  r"""Unique ID for this input"""
492
468
 
493
- type: Annotated[InputSystemMetricsType, PlainValidator(validate_open_enum(False))]
469
+ type: InputSystemMetricsType
494
470
 
495
471
  disabled: Optional[bool] = False
496
472
 
@@ -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 InputSystemStateType(str, Enum, metaclass=utils.OpenEnumMeta):
11
+ class InputSystemStateType(str, Enum):
15
12
  SYSTEM_STATE = "system_state"
16
13
 
17
14
 
@@ -26,14 +23,14 @@ class InputSystemStateConnection(BaseModel):
26
23
  pipeline: Optional[str] = None
27
24
 
28
25
 
29
- class InputSystemStateMode(str, Enum, metaclass=utils.OpenEnumMeta):
26
+ class InputSystemStateMode(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 InputSystemStateCompression(str, Enum, metaclass=utils.OpenEnumMeta):
33
+ class InputSystemStateCompression(str, Enum):
37
34
  r"""Codec to use to compress the persisted data"""
38
35
 
39
36
  NONE = "none"
@@ -58,9 +55,7 @@ class InputSystemStatePqTypedDict(TypedDict):
58
55
 
59
56
 
60
57
  class InputSystemStatePq(BaseModel):
61
- mode: Annotated[
62
- Optional[InputSystemStateMode], PlainValidator(validate_open_enum(False))
63
- ] = InputSystemStateMode.ALWAYS
58
+ mode: Optional[InputSystemStateMode] = InputSystemStateMode.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,9 +79,7 @@ class InputSystemStatePq(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[InputSystemStateCompression], PlainValidator(validate_open_enum(False))
89
- ] = InputSystemStateCompression.NONE
82
+ compress: Optional[InputSystemStateCompression] = InputSystemStateCompression.NONE
90
83
  r"""Codec to use to compress the persisted data"""
91
84
 
92
85
 
@@ -297,7 +290,7 @@ class Collectors(BaseModel):
297
290
  r"""Creates events from list of logged-in users"""
298
291
 
299
292
 
300
- class InputSystemStateDataCompressionFormat(str, Enum, metaclass=utils.OpenEnumMeta):
293
+ class InputSystemStateDataCompressionFormat(str, Enum):
301
294
  NONE = "none"
302
295
  GZIP = "gzip"
303
296
 
@@ -329,10 +322,9 @@ class InputSystemStatePersistence(BaseModel):
329
322
  max_data_time: Annotated[Optional[str], pydantic.Field(alias="maxDataTime")] = "24h"
330
323
  r"""Maximum amount of time to retain data (examples: 2h, 4d). When limit is reached, older data will be deleted."""
331
324
 
332
- compress: Annotated[
333
- Optional[InputSystemStateDataCompressionFormat],
334
- PlainValidator(validate_open_enum(False)),
335
- ] = InputSystemStateDataCompressionFormat.NONE
325
+ compress: Optional[InputSystemStateDataCompressionFormat] = (
326
+ InputSystemStateDataCompressionFormat.NONE
327
+ )
336
328
 
337
329
  dest_path: Annotated[Optional[str], pydantic.Field(alias="destPath")] = (
338
330
  "$CRIBL_HOME/state/system_state"
@@ -373,7 +365,7 @@ class InputSystemState(BaseModel):
373
365
  id: str
374
366
  r"""Unique ID for this input"""
375
367
 
376
- type: Annotated[InputSystemStateType, PlainValidator(validate_open_enum(False))]
368
+ type: InputSystemStateType
377
369
 
378
370
  disabled: Optional[bool] = False
379
371
 
@@ -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 InputTCPType(str, Enum, metaclass=utils.OpenEnumMeta):
11
+ class InputTCPType(str, Enum):
15
12
  TCP = "tcp"
16
13
 
17
14
 
@@ -26,14 +23,14 @@ class InputTCPConnection(BaseModel):
26
23
  pipeline: Optional[str] = None
27
24
 
28
25
 
29
- class InputTCPMode(str, Enum, metaclass=utils.OpenEnumMeta):
26
+ class InputTCPMode(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 InputTCPCompression(str, Enum, metaclass=utils.OpenEnumMeta):
33
+ class InputTCPCompression(str, Enum):
37
34
  r"""Codec to use to compress the persisted data"""
38
35
 
39
36
  NONE = "none"
@@ -58,9 +55,7 @@ class InputTCPPqTypedDict(TypedDict):
58
55
 
59
56
 
60
57
  class InputTCPPq(BaseModel):
61
- mode: Annotated[
62
- Optional[InputTCPMode], PlainValidator(validate_open_enum(False))
63
- ] = InputTCPMode.ALWAYS
58
+ mode: Optional[InputTCPMode] = InputTCPMode.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 InputTCPPq(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[InputTCPCompression], PlainValidator(validate_open_enum(False))
89
- ] = InputTCPCompression.NONE
82
+ compress: Optional[InputTCPCompression] = InputTCPCompression.NONE
90
83
  r"""Codec to use to compress the persisted data"""
91
84
 
92
85
 
93
- class InputTCPMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
86
+ class InputTCPMinimumTLSVersion(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 InputTCPMaximumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
93
+ class InputTCPMaximumTLSVersion(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 InputTCPTLSSettingsServerSide(BaseModel):
156
149
  ] = None
157
150
 
158
151
  min_version: Annotated[
159
- Annotated[
160
- Optional[InputTCPMinimumTLSVersion],
161
- PlainValidator(validate_open_enum(False)),
162
- ],
163
- pydantic.Field(alias="minVersion"),
152
+ Optional[InputTCPMinimumTLSVersion], pydantic.Field(alias="minVersion")
164
153
  ] = None
165
154
 
166
155
  max_version: Annotated[
167
- Annotated[
168
- Optional[InputTCPMaximumTLSVersion],
169
- PlainValidator(validate_open_enum(False)),
170
- ],
171
- pydantic.Field(alias="maxVersion"),
156
+ Optional[InputTCPMaximumTLSVersion], pydantic.Field(alias="maxVersion")
172
157
  ] = None
173
158
 
174
159
 
@@ -203,7 +188,7 @@ class InputTCPPreprocess(BaseModel):
203
188
  r"""Arguments to be added to the custom command"""
204
189
 
205
190
 
206
- class InputTCPAuthenticationMethod(str, Enum, metaclass=utils.OpenEnumMeta):
191
+ class InputTCPAuthenticationMethod(str, Enum):
207
192
  r"""Select Manual to enter an auth token directly, or select Secret to use a text secret to authenticate"""
208
193
 
209
194
  MANUAL = "manual"
@@ -266,9 +251,7 @@ class InputTCP(BaseModel):
266
251
  id: Optional[str] = None
267
252
  r"""Unique ID for this input"""
268
253
 
269
- type: Annotated[
270
- Optional[InputTCPType], PlainValidator(validate_open_enum(False))
271
- ] = None
254
+ type: Optional[InputTCPType] = None
272
255
 
273
256
  disabled: Optional[bool] = False
274
257
 
@@ -352,10 +335,6 @@ class InputTCP(BaseModel):
352
335
  description: Optional[str] = None
353
336
 
354
337
  auth_type: Annotated[
355
- Annotated[
356
- Optional[InputTCPAuthenticationMethod],
357
- PlainValidator(validate_open_enum(False)),
358
- ],
359
- pydantic.Field(alias="authType"),
338
+ Optional[InputTCPAuthenticationMethod], pydantic.Field(alias="authType")
360
339
  ] = InputTCPAuthenticationMethod.MANUAL
361
340
  r"""Select Manual to enter an auth token directly, or select Secret to use a text secret to authenticate"""
@@ -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 InputTcpjsonType(str, Enum, metaclass=utils.OpenEnumMeta):
11
+ class InputTcpjsonType(str, Enum):
15
12
  TCPJSON = "tcpjson"
16
13
 
17
14
 
@@ -26,14 +23,14 @@ class InputTcpjsonConnection(BaseModel):
26
23
  pipeline: Optional[str] = None
27
24
 
28
25
 
29
- class InputTcpjsonMode(str, Enum, metaclass=utils.OpenEnumMeta):
26
+ class InputTcpjsonMode(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 InputTcpjsonCompression(str, Enum, metaclass=utils.OpenEnumMeta):
33
+ class InputTcpjsonCompression(str, Enum):
37
34
  r"""Codec to use to compress the persisted data"""
38
35
 
39
36
  NONE = "none"
@@ -58,9 +55,7 @@ class InputTcpjsonPqTypedDict(TypedDict):
58
55
 
59
56
 
60
57
  class InputTcpjsonPq(BaseModel):
61
- mode: Annotated[
62
- Optional[InputTcpjsonMode], PlainValidator(validate_open_enum(False))
63
- ] = InputTcpjsonMode.ALWAYS
58
+ mode: Optional[InputTcpjsonMode] = InputTcpjsonMode.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 InputTcpjsonPq(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[InputTcpjsonCompression], PlainValidator(validate_open_enum(False))
89
- ] = InputTcpjsonCompression.NONE
82
+ compress: Optional[InputTcpjsonCompression] = InputTcpjsonCompression.NONE
90
83
  r"""Codec to use to compress the persisted data"""
91
84
 
92
85
 
93
- class InputTcpjsonMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
86
+ class InputTcpjsonMinimumTLSVersion(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 InputTcpjsonMaximumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
93
+ class InputTcpjsonMaximumTLSVersion(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 InputTcpjsonTLSSettingsServerSide(BaseModel):
156
149
  ] = None
157
150
 
158
151
  min_version: Annotated[
159
- Annotated[
160
- Optional[InputTcpjsonMinimumTLSVersion],
161
- PlainValidator(validate_open_enum(False)),
162
- ],
163
- pydantic.Field(alias="minVersion"),
152
+ Optional[InputTcpjsonMinimumTLSVersion], pydantic.Field(alias="minVersion")
164
153
  ] = None
165
154
 
166
155
  max_version: Annotated[
167
- Annotated[
168
- Optional[InputTcpjsonMaximumTLSVersion],
169
- PlainValidator(validate_open_enum(False)),
170
- ],
171
- pydantic.Field(alias="maxVersion"),
156
+ Optional[InputTcpjsonMaximumTLSVersion], pydantic.Field(alias="maxVersion")
172
157
  ] = None
173
158
 
174
159
 
@@ -185,7 +170,7 @@ class InputTcpjsonMetadatum(BaseModel):
185
170
  r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
186
171
 
187
172
 
188
- class InputTcpjsonAuthenticationMethod(str, Enum, metaclass=utils.OpenEnumMeta):
173
+ class InputTcpjsonAuthenticationMethod(str, Enum):
189
174
  r"""Select Manual to enter an auth token directly, or select Secret to use a text secret to authenticate"""
190
175
 
191
176
  MANUAL = "manual"
@@ -247,9 +232,7 @@ class InputTcpjson(BaseModel):
247
232
  id: Optional[str] = None
248
233
  r"""Unique ID for this input"""
249
234
 
250
- type: Annotated[
251
- Optional[InputTcpjsonType], PlainValidator(validate_open_enum(False))
252
- ] = None
235
+ type: Optional[InputTcpjsonType] = None
253
236
 
254
237
  disabled: Optional[bool] = False
255
238
 
@@ -319,11 +302,7 @@ class InputTcpjson(BaseModel):
319
302
  r"""Load balance traffic across all Worker Processes"""
320
303
 
321
304
  auth_type: Annotated[
322
- Annotated[
323
- Optional[InputTcpjsonAuthenticationMethod],
324
- PlainValidator(validate_open_enum(False)),
325
- ],
326
- pydantic.Field(alias="authType"),
305
+ Optional[InputTcpjsonAuthenticationMethod], pydantic.Field(alias="authType")
327
306
  ] = InputTcpjsonAuthenticationMethod.MANUAL
328
307
  r"""Select Manual to enter an auth token directly, or select Secret to use a text secret to authenticate"""
329
308