cribl-control-plane 0.0.50__py3-none-any.whl → 0.0.50rc2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of cribl-control-plane might be problematic. Click here for more details.
- cribl_control_plane/_version.py +3 -5
- cribl_control_plane/errors/healthstatus_error.py +8 -2
- cribl_control_plane/groups_sdk.py +4 -4
- cribl_control_plane/health.py +6 -2
- cribl_control_plane/models/__init__.py +56 -31
- cribl_control_plane/models/cacheconnection.py +10 -2
- cribl_control_plane/models/cacheconnectionbackfillstatus.py +2 -1
- cribl_control_plane/models/cloudprovider.py +2 -1
- cribl_control_plane/models/configgroup.py +24 -4
- cribl_control_plane/models/configgroupcloud.py +6 -2
- cribl_control_plane/models/createconfiggroupbyproductop.py +8 -2
- cribl_control_plane/models/createinputhectokenbyidop.py +6 -5
- cribl_control_plane/models/createversionpushop.py +5 -5
- cribl_control_plane/models/cribllakedataset.py +8 -2
- cribl_control_plane/models/datasetmetadata.py +8 -2
- cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +7 -2
- cribl_control_plane/models/error.py +16 -0
- cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +4 -2
- cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +4 -2
- cribl_control_plane/models/getconfiggroupbyproductandidop.py +3 -1
- cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +7 -2
- cribl_control_plane/models/gethealthinfoop.py +17 -0
- cribl_control_plane/models/getsummaryop.py +7 -2
- cribl_control_plane/models/getversionshowop.py +6 -5
- cribl_control_plane/models/gitinfo.py +14 -3
- cribl_control_plane/models/gitshowresult.py +19 -0
- cribl_control_plane/models/hbcriblinfo.py +24 -3
- cribl_control_plane/models/healthstatus.py +7 -4
- cribl_control_plane/models/heartbeatmetadata.py +3 -0
- cribl_control_plane/models/input.py +65 -63
- cribl_control_plane/models/inputappscope.py +34 -14
- cribl_control_plane/models/inputazureblob.py +17 -6
- cribl_control_plane/models/inputcollection.py +11 -4
- cribl_control_plane/models/inputconfluentcloud.py +41 -32
- cribl_control_plane/models/inputcribl.py +11 -4
- cribl_control_plane/models/inputcriblhttp.py +23 -8
- cribl_control_plane/models/inputcribllakehttp.py +22 -10
- cribl_control_plane/models/inputcriblmetrics.py +12 -4
- cribl_control_plane/models/inputcribltcp.py +23 -8
- cribl_control_plane/models/inputcrowdstrike.py +26 -10
- cribl_control_plane/models/inputdatadogagent.py +24 -8
- cribl_control_plane/models/inputdatagen.py +11 -4
- cribl_control_plane/models/inputedgeprometheus.py +58 -24
- cribl_control_plane/models/inputelastic.py +40 -14
- cribl_control_plane/models/inputeventhub.py +15 -6
- cribl_control_plane/models/inputexec.py +14 -6
- cribl_control_plane/models/inputfile.py +15 -6
- cribl_control_plane/models/inputfirehose.py +23 -8
- cribl_control_plane/models/inputgooglepubsub.py +19 -6
- cribl_control_plane/models/inputgrafana.py +67 -24
- cribl_control_plane/models/inputhttp.py +23 -8
- cribl_control_plane/models/inputhttpraw.py +23 -8
- cribl_control_plane/models/inputjournalfiles.py +12 -4
- cribl_control_plane/models/inputkafka.py +41 -28
- cribl_control_plane/models/inputkinesis.py +38 -14
- cribl_control_plane/models/inputkubeevents.py +11 -4
- cribl_control_plane/models/inputkubelogs.py +16 -8
- cribl_control_plane/models/inputkubemetrics.py +16 -8
- cribl_control_plane/models/inputloki.py +29 -10
- cribl_control_plane/models/inputmetrics.py +23 -8
- cribl_control_plane/models/inputmodeldriventelemetry.py +32 -10
- cribl_control_plane/models/inputmsk.py +48 -30
- cribl_control_plane/models/inputnetflow.py +11 -4
- cribl_control_plane/models/inputoffice365mgmt.py +33 -14
- cribl_control_plane/models/inputoffice365msgtrace.py +35 -16
- cribl_control_plane/models/inputoffice365service.py +35 -16
- cribl_control_plane/models/inputopentelemetry.py +38 -16
- cribl_control_plane/models/inputprometheus.py +50 -18
- cribl_control_plane/models/inputprometheusrw.py +30 -10
- cribl_control_plane/models/inputrawudp.py +11 -4
- cribl_control_plane/models/inputs3.py +21 -8
- cribl_control_plane/models/inputs3inventory.py +26 -10
- cribl_control_plane/models/inputsecuritylake.py +27 -10
- cribl_control_plane/models/inputsnmp.py +16 -6
- cribl_control_plane/models/inputsplunk.py +33 -12
- cribl_control_plane/models/inputsplunkhec.py +29 -10
- cribl_control_plane/models/inputsplunksearch.py +33 -14
- cribl_control_plane/models/inputsqs.py +27 -10
- cribl_control_plane/models/inputsyslog.py +43 -16
- cribl_control_plane/models/inputsystemmetrics.py +48 -24
- cribl_control_plane/models/inputsystemstate.py +16 -8
- cribl_control_plane/models/inputtcp.py +29 -10
- cribl_control_plane/models/inputtcpjson.py +29 -10
- cribl_control_plane/models/inputwef.py +37 -14
- cribl_control_plane/models/inputwindowsmetrics.py +44 -24
- cribl_control_plane/models/inputwineventlogs.py +20 -10
- cribl_control_plane/models/inputwiz.py +21 -8
- cribl_control_plane/models/inputwizwebhook.py +23 -8
- cribl_control_plane/models/inputzscalerhec.py +29 -10
- cribl_control_plane/models/lakehouseconnectiontype.py +2 -1
- cribl_control_plane/models/listconfiggroupbyproductop.py +3 -1
- cribl_control_plane/models/masterworkerentry.py +7 -2
- cribl_control_plane/models/nodeactiveupgradestatus.py +2 -1
- cribl_control_plane/models/nodefailedupgradestatus.py +2 -1
- cribl_control_plane/models/nodeprovidedinfo.py +3 -0
- cribl_control_plane/models/nodeskippedupgradestatus.py +2 -1
- cribl_control_plane/models/nodeupgradestate.py +2 -1
- cribl_control_plane/models/nodeupgradestatus.py +13 -5
- cribl_control_plane/models/output.py +84 -79
- cribl_control_plane/models/outputazureblob.py +48 -18
- cribl_control_plane/models/outputazuredataexplorer.py +73 -28
- cribl_control_plane/models/outputazureeventhub.py +40 -18
- cribl_control_plane/models/outputazurelogs.py +35 -12
- cribl_control_plane/models/outputclickhouse.py +55 -20
- cribl_control_plane/models/outputcloudwatch.py +29 -10
- cribl_control_plane/models/outputconfluentcloud.py +71 -44
- cribl_control_plane/models/outputcriblhttp.py +44 -16
- cribl_control_plane/models/outputcribllake.py +46 -16
- cribl_control_plane/models/outputcribltcp.py +45 -18
- cribl_control_plane/models/outputcrowdstrikenextgensiem.py +49 -14
- cribl_control_plane/models/outputdatabricks.py +282 -0
- cribl_control_plane/models/outputdatadog.py +48 -20
- cribl_control_plane/models/outputdataset.py +46 -18
- cribl_control_plane/models/outputdiskspool.py +7 -2
- cribl_control_plane/models/outputdls3.py +68 -24
- cribl_control_plane/models/outputdynatracehttp.py +53 -20
- cribl_control_plane/models/outputdynatraceotlp.py +55 -22
- cribl_control_plane/models/outputelastic.py +43 -18
- cribl_control_plane/models/outputelasticcloud.py +36 -12
- cribl_control_plane/models/outputexabeam.py +29 -10
- cribl_control_plane/models/outputfilesystem.py +39 -14
- cribl_control_plane/models/outputgooglechronicle.py +50 -16
- cribl_control_plane/models/outputgooglecloudlogging.py +50 -18
- cribl_control_plane/models/outputgooglecloudstorage.py +66 -24
- cribl_control_plane/models/outputgooglepubsub.py +31 -10
- cribl_control_plane/models/outputgrafanacloud.py +97 -32
- cribl_control_plane/models/outputgraphite.py +31 -14
- cribl_control_plane/models/outputhoneycomb.py +35 -12
- cribl_control_plane/models/outputhumiohec.py +43 -16
- cribl_control_plane/models/outputinfluxdb.py +42 -16
- cribl_control_plane/models/outputkafka.py +69 -40
- cribl_control_plane/models/outputkinesis.py +40 -16
- cribl_control_plane/models/outputloki.py +41 -16
- cribl_control_plane/models/outputminio.py +65 -24
- cribl_control_plane/models/outputmsk.py +77 -42
- cribl_control_plane/models/outputnewrelic.py +43 -18
- cribl_control_plane/models/outputnewrelicevents.py +41 -14
- cribl_control_plane/models/outputopentelemetry.py +67 -26
- cribl_control_plane/models/outputprometheus.py +35 -12
- cribl_control_plane/models/outputring.py +19 -8
- cribl_control_plane/models/outputs3.py +68 -26
- cribl_control_plane/models/outputsecuritylake.py +52 -18
- cribl_control_plane/models/outputsentinel.py +45 -18
- cribl_control_plane/models/outputsentineloneaisiem.py +50 -18
- cribl_control_plane/models/outputservicenow.py +60 -24
- cribl_control_plane/models/outputsignalfx.py +37 -14
- cribl_control_plane/models/outputsns.py +36 -14
- cribl_control_plane/models/outputsplunk.py +60 -24
- cribl_control_plane/models/outputsplunkhec.py +35 -12
- cribl_control_plane/models/outputsplunklb.py +77 -30
- cribl_control_plane/models/outputsqs.py +41 -16
- cribl_control_plane/models/outputstatsd.py +30 -14
- cribl_control_plane/models/outputstatsdext.py +29 -12
- cribl_control_plane/models/outputsumologic.py +35 -12
- cribl_control_plane/models/outputsyslog.py +58 -24
- cribl_control_plane/models/outputtcpjson.py +52 -20
- cribl_control_plane/models/outputwavefront.py +35 -12
- cribl_control_plane/models/outputwebhook.py +58 -22
- cribl_control_plane/models/outputxsiam.py +35 -14
- cribl_control_plane/models/productscore.py +2 -1
- cribl_control_plane/models/rbacresource.py +2 -1
- cribl_control_plane/models/resourcepolicy.py +4 -2
- cribl_control_plane/models/routeconf.py +3 -4
- cribl_control_plane/models/runnablejobcollection.py +30 -13
- cribl_control_plane/models/runnablejobexecutor.py +13 -4
- cribl_control_plane/models/runnablejobscheduledsearch.py +7 -2
- cribl_control_plane/models/updateconfiggroupbyproductandidop.py +8 -2
- cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +8 -2
- cribl_control_plane/models/updateinputhectokenbyidandtokenop.py +6 -5
- cribl_control_plane/models/workertypes.py +2 -1
- {cribl_control_plane-0.0.50.dist-info → cribl_control_plane-0.0.50rc2.dist-info}/METADATA +1 -1
- cribl_control_plane-0.0.50rc2.dist-info/RECORD +327 -0
- cribl_control_plane/models/appmode.py +0 -13
- cribl_control_plane/models/routecloneconf.py +0 -13
- cribl_control_plane-0.0.50.dist-info/RECORD +0 -325
- {cribl_control_plane-0.0.50.dist-info → cribl_control_plane-0.0.50rc2.dist-info}/WHEEL +0 -0
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane import utils
|
|
4
5
|
from cribl_control_plane.types import BaseModel
|
|
6
|
+
from cribl_control_plane.utils import validate_open_enum
|
|
5
7
|
from enum import Enum
|
|
6
8
|
import pydantic
|
|
9
|
+
from pydantic.functional_validators import PlainValidator
|
|
7
10
|
from typing import List, Optional
|
|
8
11
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
12
|
|
|
@@ -23,14 +26,14 @@ class InputSystemMetricsConnection(BaseModel):
|
|
|
23
26
|
pipeline: Optional[str] = None
|
|
24
27
|
|
|
25
28
|
|
|
26
|
-
class InputSystemMetricsPqMode(str, Enum):
|
|
29
|
+
class InputSystemMetricsPqMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
27
30
|
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."""
|
|
28
31
|
|
|
29
32
|
SMART = "smart"
|
|
30
33
|
ALWAYS = "always"
|
|
31
34
|
|
|
32
35
|
|
|
33
|
-
class InputSystemMetricsCompression(str, Enum):
|
|
36
|
+
class InputSystemMetricsCompression(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
34
37
|
r"""Codec to use to compress the persisted data"""
|
|
35
38
|
|
|
36
39
|
NONE = "none"
|
|
@@ -64,7 +67,9 @@ class InputSystemMetricsPqTypedDict(TypedDict):
|
|
|
64
67
|
|
|
65
68
|
|
|
66
69
|
class InputSystemMetricsPq(BaseModel):
|
|
67
|
-
mode:
|
|
70
|
+
mode: Annotated[
|
|
71
|
+
Optional[InputSystemMetricsPqMode], PlainValidator(validate_open_enum(False))
|
|
72
|
+
] = InputSystemMetricsPqMode.ALWAYS
|
|
68
73
|
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."""
|
|
69
74
|
|
|
70
75
|
max_buffer_size: Annotated[
|
|
@@ -88,9 +93,10 @@ class InputSystemMetricsPq(BaseModel):
|
|
|
88
93
|
path: Optional[str] = "$CRIBL_HOME/state/queues"
|
|
89
94
|
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
|
|
90
95
|
|
|
91
|
-
compress:
|
|
92
|
-
InputSystemMetricsCompression
|
|
93
|
-
|
|
96
|
+
compress: Annotated[
|
|
97
|
+
Optional[InputSystemMetricsCompression],
|
|
98
|
+
PlainValidator(validate_open_enum(False)),
|
|
99
|
+
] = InputSystemMetricsCompression.NONE
|
|
94
100
|
r"""Codec to use to compress the persisted data"""
|
|
95
101
|
|
|
96
102
|
pq_controls: Annotated[
|
|
@@ -98,7 +104,7 @@ class InputSystemMetricsPq(BaseModel):
|
|
|
98
104
|
] = None
|
|
99
105
|
|
|
100
106
|
|
|
101
|
-
class InputSystemMetricsHostMode(str, Enum):
|
|
107
|
+
class InputSystemMetricsHostMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
102
108
|
r"""Select level of detail for host metrics"""
|
|
103
109
|
|
|
104
110
|
BASIC = "basic"
|
|
@@ -107,7 +113,7 @@ class InputSystemMetricsHostMode(str, Enum):
|
|
|
107
113
|
DISABLED = "disabled"
|
|
108
114
|
|
|
109
115
|
|
|
110
|
-
class InputSystemMetricsSystemMode(str, Enum):
|
|
116
|
+
class InputSystemMetricsSystemMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
111
117
|
r"""Select the level of detail for system metrics"""
|
|
112
118
|
|
|
113
119
|
BASIC = "basic"
|
|
@@ -124,14 +130,17 @@ class InputSystemMetricsSystemTypedDict(TypedDict):
|
|
|
124
130
|
|
|
125
131
|
|
|
126
132
|
class InputSystemMetricsSystem(BaseModel):
|
|
127
|
-
mode:
|
|
133
|
+
mode: Annotated[
|
|
134
|
+
Optional[InputSystemMetricsSystemMode],
|
|
135
|
+
PlainValidator(validate_open_enum(False)),
|
|
136
|
+
] = InputSystemMetricsSystemMode.BASIC
|
|
128
137
|
r"""Select the level of detail for system metrics"""
|
|
129
138
|
|
|
130
139
|
processes: Optional[bool] = False
|
|
131
140
|
r"""Generate metrics for the numbers of processes in various states"""
|
|
132
141
|
|
|
133
142
|
|
|
134
|
-
class InputSystemMetricsCPUMode(str, Enum):
|
|
143
|
+
class InputSystemMetricsCPUMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
135
144
|
r"""Select the level of detail for CPU metrics"""
|
|
136
145
|
|
|
137
146
|
BASIC = "basic"
|
|
@@ -152,7 +161,9 @@ class InputSystemMetricsCPUTypedDict(TypedDict):
|
|
|
152
161
|
|
|
153
162
|
|
|
154
163
|
class InputSystemMetricsCPU(BaseModel):
|
|
155
|
-
mode:
|
|
164
|
+
mode: Annotated[
|
|
165
|
+
Optional[InputSystemMetricsCPUMode], PlainValidator(validate_open_enum(False))
|
|
166
|
+
] = InputSystemMetricsCPUMode.BASIC
|
|
156
167
|
r"""Select the level of detail for CPU metrics"""
|
|
157
168
|
|
|
158
169
|
per_cpu: Annotated[Optional[bool], pydantic.Field(alias="perCpu")] = False
|
|
@@ -165,7 +176,7 @@ class InputSystemMetricsCPU(BaseModel):
|
|
|
165
176
|
r"""Generate raw, monotonic CPU time counters"""
|
|
166
177
|
|
|
167
178
|
|
|
168
|
-
class InputSystemMetricsMemoryMode(str, Enum):
|
|
179
|
+
class InputSystemMetricsMemoryMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
169
180
|
r"""Select the level of detail for memory metrics"""
|
|
170
181
|
|
|
171
182
|
BASIC = "basic"
|
|
@@ -182,14 +193,17 @@ class InputSystemMetricsMemoryTypedDict(TypedDict):
|
|
|
182
193
|
|
|
183
194
|
|
|
184
195
|
class InputSystemMetricsMemory(BaseModel):
|
|
185
|
-
mode:
|
|
196
|
+
mode: Annotated[
|
|
197
|
+
Optional[InputSystemMetricsMemoryMode],
|
|
198
|
+
PlainValidator(validate_open_enum(False)),
|
|
199
|
+
] = InputSystemMetricsMemoryMode.BASIC
|
|
186
200
|
r"""Select the level of detail for memory metrics"""
|
|
187
201
|
|
|
188
202
|
detail: Optional[bool] = False
|
|
189
203
|
r"""Generate metrics for all memory states"""
|
|
190
204
|
|
|
191
205
|
|
|
192
|
-
class InputSystemMetricsNetworkMode(str, Enum):
|
|
206
|
+
class InputSystemMetricsNetworkMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
193
207
|
r"""Select the level of detail for network metrics"""
|
|
194
208
|
|
|
195
209
|
BASIC = "basic"
|
|
@@ -210,7 +224,10 @@ class InputSystemMetricsNetworkTypedDict(TypedDict):
|
|
|
210
224
|
|
|
211
225
|
|
|
212
226
|
class InputSystemMetricsNetwork(BaseModel):
|
|
213
|
-
mode:
|
|
227
|
+
mode: Annotated[
|
|
228
|
+
Optional[InputSystemMetricsNetworkMode],
|
|
229
|
+
PlainValidator(validate_open_enum(False)),
|
|
230
|
+
] = InputSystemMetricsNetworkMode.BASIC
|
|
214
231
|
r"""Select the level of detail for network metrics"""
|
|
215
232
|
|
|
216
233
|
devices: Optional[List[str]] = None
|
|
@@ -225,7 +242,7 @@ class InputSystemMetricsNetwork(BaseModel):
|
|
|
225
242
|
r"""Generate full network metrics"""
|
|
226
243
|
|
|
227
244
|
|
|
228
|
-
class InputSystemMetricsDiskMode(str, Enum):
|
|
245
|
+
class InputSystemMetricsDiskMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
229
246
|
r"""Select the level of detail for disk metrics"""
|
|
230
247
|
|
|
231
248
|
BASIC = "basic"
|
|
@@ -250,7 +267,9 @@ class InputSystemMetricsDiskTypedDict(TypedDict):
|
|
|
250
267
|
|
|
251
268
|
|
|
252
269
|
class InputSystemMetricsDisk(BaseModel):
|
|
253
|
-
mode:
|
|
270
|
+
mode: Annotated[
|
|
271
|
+
Optional[InputSystemMetricsDiskMode], PlainValidator(validate_open_enum(False))
|
|
272
|
+
] = InputSystemMetricsDiskMode.BASIC
|
|
254
273
|
r"""Select the level of detail for disk metrics"""
|
|
255
274
|
|
|
256
275
|
devices: Optional[List[str]] = None
|
|
@@ -296,7 +315,9 @@ class InputSystemMetricsHostTypedDict(TypedDict):
|
|
|
296
315
|
|
|
297
316
|
|
|
298
317
|
class InputSystemMetricsHost(BaseModel):
|
|
299
|
-
mode:
|
|
318
|
+
mode: Annotated[
|
|
319
|
+
Optional[InputSystemMetricsHostMode], PlainValidator(validate_open_enum(False))
|
|
320
|
+
] = InputSystemMetricsHostMode.BASIC
|
|
300
321
|
r"""Select level of detail for host metrics"""
|
|
301
322
|
|
|
302
323
|
custom: Optional[InputSystemMetricsCustom] = None
|
|
@@ -328,7 +349,7 @@ class InputSystemMetricsProcess(BaseModel):
|
|
|
328
349
|
r"""Configure sets to collect process metrics"""
|
|
329
350
|
|
|
330
351
|
|
|
331
|
-
class ContainerMode(str, Enum):
|
|
352
|
+
class ContainerMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
332
353
|
r"""Select the level of detail for container metrics"""
|
|
333
354
|
|
|
334
355
|
BASIC = "basic"
|
|
@@ -363,7 +384,9 @@ class ContainerTypedDict(TypedDict):
|
|
|
363
384
|
|
|
364
385
|
|
|
365
386
|
class Container(BaseModel):
|
|
366
|
-
mode:
|
|
387
|
+
mode: Annotated[
|
|
388
|
+
Optional[ContainerMode], PlainValidator(validate_open_enum(False))
|
|
389
|
+
] = ContainerMode.BASIC
|
|
367
390
|
r"""Select the level of detail for container metrics"""
|
|
368
391
|
|
|
369
392
|
docker_socket: Annotated[
|
|
@@ -404,7 +427,7 @@ class InputSystemMetricsMetadatum(BaseModel):
|
|
|
404
427
|
r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
|
|
405
428
|
|
|
406
429
|
|
|
407
|
-
class InputSystemMetricsDataCompressionFormat(str, Enum):
|
|
430
|
+
class InputSystemMetricsDataCompressionFormat(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
408
431
|
NONE = "none"
|
|
409
432
|
GZIP = "gzip"
|
|
410
433
|
|
|
@@ -436,9 +459,10 @@ class InputSystemMetricsPersistence(BaseModel):
|
|
|
436
459
|
max_data_time: Annotated[Optional[str], pydantic.Field(alias="maxDataTime")] = "24h"
|
|
437
460
|
r"""Maximum amount of time to retain data (examples: 2h, 4d). When limit is reached, older data will be deleted."""
|
|
438
461
|
|
|
439
|
-
compress:
|
|
440
|
-
InputSystemMetricsDataCompressionFormat
|
|
441
|
-
|
|
462
|
+
compress: Annotated[
|
|
463
|
+
Optional[InputSystemMetricsDataCompressionFormat],
|
|
464
|
+
PlainValidator(validate_open_enum(False)),
|
|
465
|
+
] = InputSystemMetricsDataCompressionFormat.GZIP
|
|
442
466
|
|
|
443
467
|
dest_path: Annotated[Optional[str], pydantic.Field(alias="destPath")] = (
|
|
444
468
|
"$CRIBL_HOME/state/system_metrics"
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane import utils
|
|
4
5
|
from cribl_control_plane.types import BaseModel
|
|
6
|
+
from cribl_control_plane.utils import validate_open_enum
|
|
5
7
|
from enum import Enum
|
|
6
8
|
import pydantic
|
|
9
|
+
from pydantic.functional_validators import PlainValidator
|
|
7
10
|
from typing import List, Optional
|
|
8
11
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
12
|
|
|
@@ -23,14 +26,14 @@ class InputSystemStateConnection(BaseModel):
|
|
|
23
26
|
pipeline: Optional[str] = None
|
|
24
27
|
|
|
25
28
|
|
|
26
|
-
class InputSystemStateMode(str, Enum):
|
|
29
|
+
class InputSystemStateMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
27
30
|
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."""
|
|
28
31
|
|
|
29
32
|
SMART = "smart"
|
|
30
33
|
ALWAYS = "always"
|
|
31
34
|
|
|
32
35
|
|
|
33
|
-
class InputSystemStateCompression(str, Enum):
|
|
36
|
+
class InputSystemStateCompression(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
34
37
|
r"""Codec to use to compress the persisted data"""
|
|
35
38
|
|
|
36
39
|
NONE = "none"
|
|
@@ -64,7 +67,9 @@ class InputSystemStatePqTypedDict(TypedDict):
|
|
|
64
67
|
|
|
65
68
|
|
|
66
69
|
class InputSystemStatePq(BaseModel):
|
|
67
|
-
mode:
|
|
70
|
+
mode: Annotated[
|
|
71
|
+
Optional[InputSystemStateMode], PlainValidator(validate_open_enum(False))
|
|
72
|
+
] = InputSystemStateMode.ALWAYS
|
|
68
73
|
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."""
|
|
69
74
|
|
|
70
75
|
max_buffer_size: Annotated[
|
|
@@ -88,7 +93,9 @@ class InputSystemStatePq(BaseModel):
|
|
|
88
93
|
path: Optional[str] = "$CRIBL_HOME/state/queues"
|
|
89
94
|
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
|
|
90
95
|
|
|
91
|
-
compress:
|
|
96
|
+
compress: Annotated[
|
|
97
|
+
Optional[InputSystemStateCompression], PlainValidator(validate_open_enum(False))
|
|
98
|
+
] = InputSystemStateCompression.NONE
|
|
92
99
|
r"""Codec to use to compress the persisted data"""
|
|
93
100
|
|
|
94
101
|
pq_controls: Annotated[
|
|
@@ -303,7 +310,7 @@ class Collectors(BaseModel):
|
|
|
303
310
|
r"""Creates events from list of logged-in users"""
|
|
304
311
|
|
|
305
312
|
|
|
306
|
-
class InputSystemStateDataCompressionFormat(str, Enum):
|
|
313
|
+
class InputSystemStateDataCompressionFormat(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
307
314
|
NONE = "none"
|
|
308
315
|
GZIP = "gzip"
|
|
309
316
|
|
|
@@ -335,9 +342,10 @@ class InputSystemStatePersistence(BaseModel):
|
|
|
335
342
|
max_data_time: Annotated[Optional[str], pydantic.Field(alias="maxDataTime")] = "24h"
|
|
336
343
|
r"""Maximum amount of time to retain data (examples: 2h, 4d). When limit is reached, older data will be deleted."""
|
|
337
344
|
|
|
338
|
-
compress:
|
|
339
|
-
InputSystemStateDataCompressionFormat
|
|
340
|
-
|
|
345
|
+
compress: Annotated[
|
|
346
|
+
Optional[InputSystemStateDataCompressionFormat],
|
|
347
|
+
PlainValidator(validate_open_enum(False)),
|
|
348
|
+
] = InputSystemStateDataCompressionFormat.NONE
|
|
341
349
|
|
|
342
350
|
dest_path: Annotated[Optional[str], pydantic.Field(alias="destPath")] = (
|
|
343
351
|
"$CRIBL_HOME/state/system_state"
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane import utils
|
|
4
5
|
from cribl_control_plane.types import BaseModel
|
|
6
|
+
from cribl_control_plane.utils import validate_open_enum
|
|
5
7
|
from enum import Enum
|
|
6
8
|
import pydantic
|
|
9
|
+
from pydantic.functional_validators import PlainValidator
|
|
7
10
|
from typing import Any, List, Optional
|
|
8
11
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
12
|
|
|
@@ -23,14 +26,14 @@ class InputTCPConnection(BaseModel):
|
|
|
23
26
|
pipeline: Optional[str] = None
|
|
24
27
|
|
|
25
28
|
|
|
26
|
-
class InputTCPMode(str, Enum):
|
|
29
|
+
class InputTCPMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
27
30
|
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."""
|
|
28
31
|
|
|
29
32
|
SMART = "smart"
|
|
30
33
|
ALWAYS = "always"
|
|
31
34
|
|
|
32
35
|
|
|
33
|
-
class InputTCPCompression(str, Enum):
|
|
36
|
+
class InputTCPCompression(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
34
37
|
r"""Codec to use to compress the persisted data"""
|
|
35
38
|
|
|
36
39
|
NONE = "none"
|
|
@@ -64,7 +67,9 @@ class InputTCPPqTypedDict(TypedDict):
|
|
|
64
67
|
|
|
65
68
|
|
|
66
69
|
class InputTCPPq(BaseModel):
|
|
67
|
-
mode:
|
|
70
|
+
mode: Annotated[
|
|
71
|
+
Optional[InputTCPMode], PlainValidator(validate_open_enum(False))
|
|
72
|
+
] = InputTCPMode.ALWAYS
|
|
68
73
|
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."""
|
|
69
74
|
|
|
70
75
|
max_buffer_size: Annotated[
|
|
@@ -88,7 +93,9 @@ class InputTCPPq(BaseModel):
|
|
|
88
93
|
path: Optional[str] = "$CRIBL_HOME/state/queues"
|
|
89
94
|
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
|
|
90
95
|
|
|
91
|
-
compress:
|
|
96
|
+
compress: Annotated[
|
|
97
|
+
Optional[InputTCPCompression], PlainValidator(validate_open_enum(False))
|
|
98
|
+
] = InputTCPCompression.NONE
|
|
92
99
|
r"""Codec to use to compress the persisted data"""
|
|
93
100
|
|
|
94
101
|
pq_controls: Annotated[
|
|
@@ -96,14 +103,14 @@ class InputTCPPq(BaseModel):
|
|
|
96
103
|
] = None
|
|
97
104
|
|
|
98
105
|
|
|
99
|
-
class InputTCPMinimumTLSVersion(str, Enum):
|
|
106
|
+
class InputTCPMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
100
107
|
TL_SV1 = "TLSv1"
|
|
101
108
|
TL_SV1_1 = "TLSv1.1"
|
|
102
109
|
TL_SV1_2 = "TLSv1.2"
|
|
103
110
|
TL_SV1_3 = "TLSv1.3"
|
|
104
111
|
|
|
105
112
|
|
|
106
|
-
class InputTCPMaximumTLSVersion(str, Enum):
|
|
113
|
+
class InputTCPMaximumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
107
114
|
TL_SV1 = "TLSv1"
|
|
108
115
|
TL_SV1_1 = "TLSv1.1"
|
|
109
116
|
TL_SV1_2 = "TLSv1.2"
|
|
@@ -162,11 +169,19 @@ class InputTCPTLSSettingsServerSide(BaseModel):
|
|
|
162
169
|
] = None
|
|
163
170
|
|
|
164
171
|
min_version: Annotated[
|
|
165
|
-
|
|
172
|
+
Annotated[
|
|
173
|
+
Optional[InputTCPMinimumTLSVersion],
|
|
174
|
+
PlainValidator(validate_open_enum(False)),
|
|
175
|
+
],
|
|
176
|
+
pydantic.Field(alias="minVersion"),
|
|
166
177
|
] = None
|
|
167
178
|
|
|
168
179
|
max_version: Annotated[
|
|
169
|
-
|
|
180
|
+
Annotated[
|
|
181
|
+
Optional[InputTCPMaximumTLSVersion],
|
|
182
|
+
PlainValidator(validate_open_enum(False)),
|
|
183
|
+
],
|
|
184
|
+
pydantic.Field(alias="maxVersion"),
|
|
170
185
|
] = None
|
|
171
186
|
|
|
172
187
|
|
|
@@ -201,7 +216,7 @@ class InputTCPPreprocess(BaseModel):
|
|
|
201
216
|
r"""Arguments to be added to the custom command"""
|
|
202
217
|
|
|
203
218
|
|
|
204
|
-
class InputTCPAuthenticationMethod(str, Enum):
|
|
219
|
+
class InputTCPAuthenticationMethod(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
205
220
|
r"""Select Manual to enter an auth token directly, or select Secret to use a text secret to authenticate"""
|
|
206
221
|
|
|
207
222
|
MANUAL = "manual"
|
|
@@ -348,6 +363,10 @@ class InputTCP(BaseModel):
|
|
|
348
363
|
description: Optional[str] = None
|
|
349
364
|
|
|
350
365
|
auth_type: Annotated[
|
|
351
|
-
|
|
366
|
+
Annotated[
|
|
367
|
+
Optional[InputTCPAuthenticationMethod],
|
|
368
|
+
PlainValidator(validate_open_enum(False)),
|
|
369
|
+
],
|
|
370
|
+
pydantic.Field(alias="authType"),
|
|
352
371
|
] = InputTCPAuthenticationMethod.MANUAL
|
|
353
372
|
r"""Select Manual to enter an auth token directly, or select Secret to use a text secret to authenticate"""
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane import utils
|
|
4
5
|
from cribl_control_plane.types import BaseModel
|
|
6
|
+
from cribl_control_plane.utils import validate_open_enum
|
|
5
7
|
from enum import Enum
|
|
6
8
|
import pydantic
|
|
9
|
+
from pydantic.functional_validators import PlainValidator
|
|
7
10
|
from typing import Any, List, Optional
|
|
8
11
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
12
|
|
|
@@ -23,14 +26,14 @@ class InputTcpjsonConnection(BaseModel):
|
|
|
23
26
|
pipeline: Optional[str] = None
|
|
24
27
|
|
|
25
28
|
|
|
26
|
-
class InputTcpjsonMode(str, Enum):
|
|
29
|
+
class InputTcpjsonMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
27
30
|
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."""
|
|
28
31
|
|
|
29
32
|
SMART = "smart"
|
|
30
33
|
ALWAYS = "always"
|
|
31
34
|
|
|
32
35
|
|
|
33
|
-
class InputTcpjsonCompression(str, Enum):
|
|
36
|
+
class InputTcpjsonCompression(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
34
37
|
r"""Codec to use to compress the persisted data"""
|
|
35
38
|
|
|
36
39
|
NONE = "none"
|
|
@@ -64,7 +67,9 @@ class InputTcpjsonPqTypedDict(TypedDict):
|
|
|
64
67
|
|
|
65
68
|
|
|
66
69
|
class InputTcpjsonPq(BaseModel):
|
|
67
|
-
mode:
|
|
70
|
+
mode: Annotated[
|
|
71
|
+
Optional[InputTcpjsonMode], PlainValidator(validate_open_enum(False))
|
|
72
|
+
] = InputTcpjsonMode.ALWAYS
|
|
68
73
|
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."""
|
|
69
74
|
|
|
70
75
|
max_buffer_size: Annotated[
|
|
@@ -88,7 +93,9 @@ class InputTcpjsonPq(BaseModel):
|
|
|
88
93
|
path: Optional[str] = "$CRIBL_HOME/state/queues"
|
|
89
94
|
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
|
|
90
95
|
|
|
91
|
-
compress:
|
|
96
|
+
compress: Annotated[
|
|
97
|
+
Optional[InputTcpjsonCompression], PlainValidator(validate_open_enum(False))
|
|
98
|
+
] = InputTcpjsonCompression.NONE
|
|
92
99
|
r"""Codec to use to compress the persisted data"""
|
|
93
100
|
|
|
94
101
|
pq_controls: Annotated[
|
|
@@ -96,14 +103,14 @@ class InputTcpjsonPq(BaseModel):
|
|
|
96
103
|
] = None
|
|
97
104
|
|
|
98
105
|
|
|
99
|
-
class InputTcpjsonMinimumTLSVersion(str, Enum):
|
|
106
|
+
class InputTcpjsonMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
100
107
|
TL_SV1 = "TLSv1"
|
|
101
108
|
TL_SV1_1 = "TLSv1.1"
|
|
102
109
|
TL_SV1_2 = "TLSv1.2"
|
|
103
110
|
TL_SV1_3 = "TLSv1.3"
|
|
104
111
|
|
|
105
112
|
|
|
106
|
-
class InputTcpjsonMaximumTLSVersion(str, Enum):
|
|
113
|
+
class InputTcpjsonMaximumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
107
114
|
TL_SV1 = "TLSv1"
|
|
108
115
|
TL_SV1_1 = "TLSv1.1"
|
|
109
116
|
TL_SV1_2 = "TLSv1.2"
|
|
@@ -162,11 +169,19 @@ class InputTcpjsonTLSSettingsServerSide(BaseModel):
|
|
|
162
169
|
] = None
|
|
163
170
|
|
|
164
171
|
min_version: Annotated[
|
|
165
|
-
|
|
172
|
+
Annotated[
|
|
173
|
+
Optional[InputTcpjsonMinimumTLSVersion],
|
|
174
|
+
PlainValidator(validate_open_enum(False)),
|
|
175
|
+
],
|
|
176
|
+
pydantic.Field(alias="minVersion"),
|
|
166
177
|
] = None
|
|
167
178
|
|
|
168
179
|
max_version: Annotated[
|
|
169
|
-
|
|
180
|
+
Annotated[
|
|
181
|
+
Optional[InputTcpjsonMaximumTLSVersion],
|
|
182
|
+
PlainValidator(validate_open_enum(False)),
|
|
183
|
+
],
|
|
184
|
+
pydantic.Field(alias="maxVersion"),
|
|
170
185
|
] = None
|
|
171
186
|
|
|
172
187
|
|
|
@@ -183,7 +198,7 @@ class InputTcpjsonMetadatum(BaseModel):
|
|
|
183
198
|
r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
|
|
184
199
|
|
|
185
200
|
|
|
186
|
-
class InputTcpjsonAuthenticationMethod(str, Enum):
|
|
201
|
+
class InputTcpjsonAuthenticationMethod(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
187
202
|
r"""Select Manual to enter an auth token directly, or select Secret to use a text secret to authenticate"""
|
|
188
203
|
|
|
189
204
|
MANUAL = "manual"
|
|
@@ -315,7 +330,11 @@ class InputTcpjson(BaseModel):
|
|
|
315
330
|
r"""Load balance traffic across all Worker Processes"""
|
|
316
331
|
|
|
317
332
|
auth_type: Annotated[
|
|
318
|
-
|
|
333
|
+
Annotated[
|
|
334
|
+
Optional[InputTcpjsonAuthenticationMethod],
|
|
335
|
+
PlainValidator(validate_open_enum(False)),
|
|
336
|
+
],
|
|
337
|
+
pydantic.Field(alias="authType"),
|
|
319
338
|
] = InputTcpjsonAuthenticationMethod.MANUAL
|
|
320
339
|
r"""Select Manual to enter an auth token directly, or select Secret to use a text secret to authenticate"""
|
|
321
340
|
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane import utils
|
|
4
5
|
from cribl_control_plane.types import BaseModel
|
|
6
|
+
from cribl_control_plane.utils import validate_open_enum
|
|
5
7
|
from enum import Enum
|
|
6
8
|
import pydantic
|
|
9
|
+
from pydantic.functional_validators import PlainValidator
|
|
7
10
|
from typing import Any, List, Optional
|
|
8
11
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
12
|
|
|
@@ -23,14 +26,14 @@ class InputWefConnection(BaseModel):
|
|
|
23
26
|
pipeline: Optional[str] = None
|
|
24
27
|
|
|
25
28
|
|
|
26
|
-
class InputWefMode(str, Enum):
|
|
29
|
+
class InputWefMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
27
30
|
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."""
|
|
28
31
|
|
|
29
32
|
SMART = "smart"
|
|
30
33
|
ALWAYS = "always"
|
|
31
34
|
|
|
32
35
|
|
|
33
|
-
class InputWefCompression(str, Enum):
|
|
36
|
+
class InputWefCompression(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
34
37
|
r"""Codec to use to compress the persisted data"""
|
|
35
38
|
|
|
36
39
|
NONE = "none"
|
|
@@ -64,7 +67,9 @@ class InputWefPqTypedDict(TypedDict):
|
|
|
64
67
|
|
|
65
68
|
|
|
66
69
|
class InputWefPq(BaseModel):
|
|
67
|
-
mode:
|
|
70
|
+
mode: Annotated[
|
|
71
|
+
Optional[InputWefMode], PlainValidator(validate_open_enum(False))
|
|
72
|
+
] = InputWefMode.ALWAYS
|
|
68
73
|
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."""
|
|
69
74
|
|
|
70
75
|
max_buffer_size: Annotated[
|
|
@@ -88,7 +93,9 @@ class InputWefPq(BaseModel):
|
|
|
88
93
|
path: Optional[str] = "$CRIBL_HOME/state/queues"
|
|
89
94
|
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
|
|
90
95
|
|
|
91
|
-
compress:
|
|
96
|
+
compress: Annotated[
|
|
97
|
+
Optional[InputWefCompression], PlainValidator(validate_open_enum(False))
|
|
98
|
+
] = InputWefCompression.NONE
|
|
92
99
|
r"""Codec to use to compress the persisted data"""
|
|
93
100
|
|
|
94
101
|
pq_controls: Annotated[
|
|
@@ -96,21 +103,21 @@ class InputWefPq(BaseModel):
|
|
|
96
103
|
] = None
|
|
97
104
|
|
|
98
105
|
|
|
99
|
-
class InputWefAuthenticationMethod(str, Enum):
|
|
106
|
+
class InputWefAuthenticationMethod(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
100
107
|
r"""How to authenticate incoming client connections"""
|
|
101
108
|
|
|
102
109
|
CLIENT_CERT = "clientCert"
|
|
103
110
|
KERBEROS = "kerberos"
|
|
104
111
|
|
|
105
112
|
|
|
106
|
-
class InputWefMinimumTLSVersion(str, Enum):
|
|
113
|
+
class InputWefMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
107
114
|
TL_SV1 = "TLSv1"
|
|
108
115
|
TL_SV1_1 = "TLSv1.1"
|
|
109
116
|
TL_SV1_2 = "TLSv1.2"
|
|
110
117
|
TL_SV1_3 = "TLSv1.3"
|
|
111
118
|
|
|
112
119
|
|
|
113
|
-
class InputWefMaximumTLSVersion(str, Enum):
|
|
120
|
+
class InputWefMaximumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
114
121
|
TL_SV1 = "TLSv1"
|
|
115
122
|
TL_SV1_1 = "TLSv1.1"
|
|
116
123
|
TL_SV1_2 = "TLSv1.2"
|
|
@@ -181,11 +188,19 @@ class MTLSSettings(BaseModel):
|
|
|
181
188
|
r"""Regex matching allowable common names in peer certificates' subject attribute"""
|
|
182
189
|
|
|
183
190
|
min_version: Annotated[
|
|
184
|
-
|
|
191
|
+
Annotated[
|
|
192
|
+
Optional[InputWefMinimumTLSVersion],
|
|
193
|
+
PlainValidator(validate_open_enum(False)),
|
|
194
|
+
],
|
|
195
|
+
pydantic.Field(alias="minVersion"),
|
|
185
196
|
] = None
|
|
186
197
|
|
|
187
198
|
max_version: Annotated[
|
|
188
|
-
|
|
199
|
+
Annotated[
|
|
200
|
+
Optional[InputWefMaximumTLSVersion],
|
|
201
|
+
PlainValidator(validate_open_enum(False)),
|
|
202
|
+
],
|
|
203
|
+
pydantic.Field(alias="maxVersion"),
|
|
189
204
|
] = None
|
|
190
205
|
|
|
191
206
|
ocsp_check: Annotated[Optional[bool], pydantic.Field(alias="ocspCheck")] = False
|
|
@@ -201,14 +216,14 @@ class MTLSSettings(BaseModel):
|
|
|
201
216
|
r"""If enabled, checks will fail on any OCSP error. Otherwise, checks will fail only when a certificate is revoked, ignoring other errors."""
|
|
202
217
|
|
|
203
218
|
|
|
204
|
-
class InputWefFormat(str, Enum):
|
|
219
|
+
class InputWefFormat(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
205
220
|
r"""Content format in which the endpoint should deliver events"""
|
|
206
221
|
|
|
207
222
|
RAW = "Raw"
|
|
208
223
|
RENDERED_TEXT = "RenderedText"
|
|
209
224
|
|
|
210
225
|
|
|
211
|
-
class QueryBuilderMode(str, Enum):
|
|
226
|
+
class QueryBuilderMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
212
227
|
SIMPLE = "simple"
|
|
213
228
|
XML = "xml"
|
|
214
229
|
|
|
@@ -261,7 +276,8 @@ class Subscription(BaseModel):
|
|
|
261
276
|
r"""Version UUID for this subscription. If any subscription parameters are modified, this value will change."""
|
|
262
277
|
|
|
263
278
|
content_format: Annotated[
|
|
264
|
-
Optional[InputWefFormat],
|
|
279
|
+
Annotated[Optional[InputWefFormat], PlainValidator(validate_open_enum(False))],
|
|
280
|
+
pydantic.Field(alias="contentFormat"),
|
|
265
281
|
] = InputWefFormat.RAW
|
|
266
282
|
r"""Content format in which the endpoint should deliver events"""
|
|
267
283
|
|
|
@@ -290,7 +306,10 @@ class Subscription(BaseModel):
|
|
|
290
306
|
r"""The RFC-3066 locale the Windows clients should use when sending events. Defaults to \"en-US\"."""
|
|
291
307
|
|
|
292
308
|
query_selector: Annotated[
|
|
293
|
-
|
|
309
|
+
Annotated[
|
|
310
|
+
Optional[QueryBuilderMode], PlainValidator(validate_open_enum(False))
|
|
311
|
+
],
|
|
312
|
+
pydantic.Field(alias="querySelector"),
|
|
294
313
|
] = QueryBuilderMode.SIMPLE
|
|
295
314
|
|
|
296
315
|
metadata: Optional[List[SubscriptionMetadatum]] = None
|
|
@@ -410,7 +429,11 @@ class InputWef(BaseModel):
|
|
|
410
429
|
r"""Port to listen on"""
|
|
411
430
|
|
|
412
431
|
auth_method: Annotated[
|
|
413
|
-
|
|
432
|
+
Annotated[
|
|
433
|
+
Optional[InputWefAuthenticationMethod],
|
|
434
|
+
PlainValidator(validate_open_enum(False)),
|
|
435
|
+
],
|
|
436
|
+
pydantic.Field(alias="authMethod"),
|
|
414
437
|
] = InputWefAuthenticationMethod.CLIENT_CERT
|
|
415
438
|
r"""How to authenticate incoming client connections"""
|
|
416
439
|
|