cribl-control-plane 0.3.0b4__py3-none-any.whl → 0.3.0b5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of cribl-control-plane might be problematic. Click here for more details.
- cribl_control_plane/_version.py +3 -3
- cribl_control_plane/models/cacheconnection.py +20 -0
- cribl_control_plane/models/configgroup.py +20 -1
- cribl_control_plane/models/configgroupcloud.py +11 -1
- cribl_control_plane/models/createconfiggroupbyproductop.py +11 -0
- cribl_control_plane/models/cribllakedataset.py +11 -1
- cribl_control_plane/models/cribllakedatasetupdate.py +11 -1
- cribl_control_plane/models/datasetmetadata.py +11 -1
- cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +11 -0
- cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +20 -0
- cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +20 -0
- cribl_control_plane/models/getconfiggroupbyproductandidop.py +11 -0
- cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +11 -0
- cribl_control_plane/models/getsummaryop.py +11 -0
- cribl_control_plane/models/groupcreaterequest.py +20 -1
- cribl_control_plane/models/hbcriblinfo.py +11 -1
- cribl_control_plane/models/healthserverstatus.py +20 -1
- cribl_control_plane/models/inputappscope.py +56 -1
- cribl_control_plane/models/inputazureblob.py +29 -1
- cribl_control_plane/models/inputcollection.py +20 -1
- cribl_control_plane/models/inputconfluentcloud.py +78 -1
- cribl_control_plane/models/inputcribl.py +20 -1
- cribl_control_plane/models/inputcriblhttp.py +38 -1
- cribl_control_plane/models/inputcribllakehttp.py +38 -1
- cribl_control_plane/models/inputcriblmetrics.py +20 -1
- cribl_control_plane/models/inputcribltcp.py +38 -1
- cribl_control_plane/models/inputcrowdstrike.py +47 -1
- cribl_control_plane/models/inputdatadogagent.py +38 -1
- cribl_control_plane/models/inputdatagen.py +20 -1
- cribl_control_plane/models/inputedgeprometheus.py +94 -1
- cribl_control_plane/models/inputelastic.py +65 -1
- cribl_control_plane/models/inputeventhub.py +58 -1
- cribl_control_plane/models/inputexec.py +29 -1
- cribl_control_plane/models/inputfile.py +29 -1
- cribl_control_plane/models/inputfirehose.py +38 -1
- cribl_control_plane/models/inputgooglepubsub.py +29 -1
- cribl_control_plane/models/inputgrafana.py +110 -1
- cribl_control_plane/models/inputhttp.py +38 -1
- cribl_control_plane/models/inputhttpraw.py +38 -1
- cribl_control_plane/models/inputjournalfiles.py +20 -1
- cribl_control_plane/models/inputkafka.py +74 -1
- cribl_control_plane/models/inputkinesis.py +65 -1
- cribl_control_plane/models/inputkubeevents.py +20 -1
- cribl_control_plane/models/inputkubelogs.py +29 -1
- cribl_control_plane/models/inputkubemetrics.py +29 -1
- cribl_control_plane/models/inputloki.py +47 -1
- cribl_control_plane/models/inputmetrics.py +38 -1
- cribl_control_plane/models/inputmodeldriventelemetry.py +38 -1
- cribl_control_plane/models/inputmsk.py +74 -1
- cribl_control_plane/models/inputnetflow.py +20 -1
- cribl_control_plane/models/inputoffice365mgmt.py +56 -1
- cribl_control_plane/models/inputoffice365msgtrace.py +56 -1
- cribl_control_plane/models/inputoffice365service.py +56 -1
- cribl_control_plane/models/inputopentelemetry.py +65 -1
- cribl_control_plane/models/inputprometheus.py +87 -1
- cribl_control_plane/models/inputprometheusrw.py +47 -1
- cribl_control_plane/models/inputrawudp.py +20 -1
- cribl_control_plane/models/inputs3.py +38 -1
- cribl_control_plane/models/inputs3inventory.py +47 -1
- cribl_control_plane/models/inputsecuritylake.py +47 -1
- cribl_control_plane/models/inputsnmp.py +29 -1
- cribl_control_plane/models/inputsplunk.py +56 -1
- cribl_control_plane/models/inputsplunkhec.py +47 -1
- cribl_control_plane/models/inputsplunksearch.py +56 -1
- cribl_control_plane/models/inputsqs.py +47 -1
- cribl_control_plane/models/inputsyslog.py +74 -1
- cribl_control_plane/models/inputsystemmetrics.py +92 -1
- cribl_control_plane/models/inputsystemstate.py +29 -1
- cribl_control_plane/models/inputtcp.py +47 -1
- cribl_control_plane/models/inputtcpjson.py +47 -1
- cribl_control_plane/models/inputwef.py +65 -1
- cribl_control_plane/models/inputwindowsmetrics.py +83 -1
- cribl_control_plane/models/inputwineventlogs.py +38 -1
- cribl_control_plane/models/inputwiz.py +38 -1
- cribl_control_plane/models/inputwizwebhook.py +38 -1
- cribl_control_plane/models/inputzscalerhec.py +47 -1
- cribl_control_plane/models/listconfiggroupbyproductop.py +11 -0
- cribl_control_plane/models/masterworkerentry.py +11 -1
- cribl_control_plane/models/nodeupgradestatus.py +38 -0
- cribl_control_plane/models/outputazureblob.py +83 -1
- cribl_control_plane/models/outputazuredataexplorer.py +148 -1
- cribl_control_plane/models/outputazureeventhub.py +98 -1
- cribl_control_plane/models/outputazurelogs.py +56 -1
- cribl_control_plane/models/outputchronicle.py +56 -1
- cribl_control_plane/models/outputclickhouse.py +92 -1
- cribl_control_plane/models/outputcloudwatch.py +47 -1
- cribl_control_plane/models/outputconfluentcloud.py +123 -1
- cribl_control_plane/models/outputcriblhttp.py +74 -1
- cribl_control_plane/models/outputcribllake.py +76 -1
- cribl_control_plane/models/outputcribltcp.py +74 -1
- cribl_control_plane/models/outputcrowdstrikenextgensiem.py +67 -1
- cribl_control_plane/models/outputdatabricks.py +65 -1
- cribl_control_plane/models/outputdatadog.py +83 -1
- cribl_control_plane/models/outputdataset.py +74 -1
- cribl_control_plane/models/outputdiskspool.py +11 -1
- cribl_control_plane/models/outputdls3.py +110 -1
- cribl_control_plane/models/outputdynatracehttp.py +92 -1
- cribl_control_plane/models/outputdynatraceotlp.py +92 -1
- cribl_control_plane/models/outputelastic.py +74 -1
- cribl_control_plane/models/outputelasticcloud.py +56 -1
- cribl_control_plane/models/outputexabeam.py +47 -1
- cribl_control_plane/models/outputfilesystem.py +65 -1
- cribl_control_plane/models/outputgooglechronicle.py +83 -1
- cribl_control_plane/models/outputgooglecloudlogging.py +65 -1
- cribl_control_plane/models/outputgooglecloudstorage.py +101 -1
- cribl_control_plane/models/outputgooglepubsub.py +47 -1
- cribl_control_plane/models/outputgrafanacloud.py +146 -1
- cribl_control_plane/models/outputgraphite.py +47 -1
- cribl_control_plane/models/outputhoneycomb.py +56 -1
- cribl_control_plane/models/outputhumiohec.py +65 -1
- cribl_control_plane/models/outputinfluxdb.py +65 -1
- cribl_control_plane/models/outputkafka.py +119 -1
- cribl_control_plane/models/outputkinesis.py +65 -1
- cribl_control_plane/models/outputloki.py +65 -1
- cribl_control_plane/models/outputminio.py +110 -1
- cribl_control_plane/models/outputmsk.py +119 -1
- cribl_control_plane/models/outputnewrelic.py +74 -1
- cribl_control_plane/models/outputnewrelicevents.py +65 -1
- cribl_control_plane/models/outputopentelemetry.py +110 -1
- cribl_control_plane/models/outputprometheus.py +56 -1
- cribl_control_plane/models/outputring.py +29 -1
- cribl_control_plane/models/outputs3.py +110 -1
- cribl_control_plane/models/outputsecuritylake.py +85 -1
- cribl_control_plane/models/outputsentinel.py +74 -1
- cribl_control_plane/models/outputsentineloneaisiem.py +74 -1
- cribl_control_plane/models/outputservicenow.py +101 -1
- cribl_control_plane/models/outputsignalfx.py +56 -1
- cribl_control_plane/models/outputsns.py +56 -1
- cribl_control_plane/models/outputsplunk.py +92 -1
- cribl_control_plane/models/outputsplunkhec.py +74 -1
- cribl_control_plane/models/outputsplunklb.py +121 -1
- cribl_control_plane/models/outputsqs.py +65 -1
- cribl_control_plane/models/outputstatsd.py +47 -1
- cribl_control_plane/models/outputstatsdext.py +47 -1
- cribl_control_plane/models/outputsumologic.py +56 -1
- cribl_control_plane/models/outputsyslog.py +110 -1
- cribl_control_plane/models/outputtcpjson.py +83 -1
- cribl_control_plane/models/outputwavefront.py +56 -1
- cribl_control_plane/models/outputwebhook.py +92 -1
- cribl_control_plane/models/outputxsiam.py +56 -1
- cribl_control_plane/models/resourcepolicy.py +11 -0
- cribl_control_plane/models/runnablejobcollection.py +56 -1
- cribl_control_plane/models/runnablejobexecutor.py +20 -1
- cribl_control_plane/models/runnablejobscheduledsearch.py +11 -1
- cribl_control_plane/models/updateconfiggroupbyproductandidop.py +11 -0
- cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +11 -0
- {cribl_control_plane-0.3.0b4.dist-info → cribl_control_plane-0.3.0b5.dist-info}/METADATA +1 -1
- {cribl_control_plane-0.3.0b4.dist-info → cribl_control_plane-0.3.0b5.dist-info}/RECORD +149 -149
- {cribl_control_plane-0.3.0b4.dist-info → cribl_control_plane-0.3.0b5.dist-info}/WHEEL +0 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from cribl_control_plane import utils
|
|
4
|
+
from cribl_control_plane import models, utils
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import validate_open_enum
|
|
7
7
|
from enum import Enum
|
|
8
8
|
import pydantic
|
|
9
|
+
from pydantic import field_serializer
|
|
9
10
|
from pydantic.functional_validators import PlainValidator
|
|
10
11
|
from typing import List, Optional
|
|
11
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -106,6 +107,24 @@ class InputTcpjsonPq(BaseModel):
|
|
|
106
107
|
Optional[InputTcpjsonPqControls], pydantic.Field(alias="pqControls")
|
|
107
108
|
] = None
|
|
108
109
|
|
|
110
|
+
@field_serializer("mode")
|
|
111
|
+
def serialize_mode(self, value):
|
|
112
|
+
if isinstance(value, str):
|
|
113
|
+
try:
|
|
114
|
+
return models.InputTcpjsonMode(value)
|
|
115
|
+
except ValueError:
|
|
116
|
+
return value
|
|
117
|
+
return value
|
|
118
|
+
|
|
119
|
+
@field_serializer("compress")
|
|
120
|
+
def serialize_compress(self, value):
|
|
121
|
+
if isinstance(value, str):
|
|
122
|
+
try:
|
|
123
|
+
return models.InputTcpjsonCompression(value)
|
|
124
|
+
except ValueError:
|
|
125
|
+
return value
|
|
126
|
+
return value
|
|
127
|
+
|
|
109
128
|
|
|
110
129
|
class InputTcpjsonMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
111
130
|
TL_SV1 = "TLSv1"
|
|
@@ -192,6 +211,24 @@ class InputTcpjsonTLSSettingsServerSide(BaseModel):
|
|
|
192
211
|
pydantic.Field(alias="maxVersion"),
|
|
193
212
|
] = None
|
|
194
213
|
|
|
214
|
+
@field_serializer("min_version")
|
|
215
|
+
def serialize_min_version(self, value):
|
|
216
|
+
if isinstance(value, str):
|
|
217
|
+
try:
|
|
218
|
+
return models.InputTcpjsonMinimumTLSVersion(value)
|
|
219
|
+
except ValueError:
|
|
220
|
+
return value
|
|
221
|
+
return value
|
|
222
|
+
|
|
223
|
+
@field_serializer("max_version")
|
|
224
|
+
def serialize_max_version(self, value):
|
|
225
|
+
if isinstance(value, str):
|
|
226
|
+
try:
|
|
227
|
+
return models.InputTcpjsonMaximumTLSVersion(value)
|
|
228
|
+
except ValueError:
|
|
229
|
+
return value
|
|
230
|
+
return value
|
|
231
|
+
|
|
195
232
|
|
|
196
233
|
class InputTcpjsonMetadatumTypedDict(TypedDict):
|
|
197
234
|
name: str
|
|
@@ -353,3 +390,12 @@ class InputTcpjson(BaseModel):
|
|
|
353
390
|
|
|
354
391
|
text_secret: Annotated[Optional[str], pydantic.Field(alias="textSecret")] = None
|
|
355
392
|
r"""Select or create a stored text secret"""
|
|
393
|
+
|
|
394
|
+
@field_serializer("auth_type")
|
|
395
|
+
def serialize_auth_type(self, value):
|
|
396
|
+
if isinstance(value, str):
|
|
397
|
+
try:
|
|
398
|
+
return models.InputTcpjsonAuthenticationMethod(value)
|
|
399
|
+
except ValueError:
|
|
400
|
+
return value
|
|
401
|
+
return value
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from cribl_control_plane import utils
|
|
4
|
+
from cribl_control_plane import models, utils
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import validate_open_enum
|
|
7
7
|
from enum import Enum
|
|
8
8
|
import pydantic
|
|
9
|
+
from pydantic import field_serializer
|
|
9
10
|
from pydantic.functional_validators import PlainValidator
|
|
10
11
|
from typing import Any, List, Optional
|
|
11
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -106,6 +107,24 @@ class InputWefPq(BaseModel):
|
|
|
106
107
|
Optional[InputWefPqControls], pydantic.Field(alias="pqControls")
|
|
107
108
|
] = None
|
|
108
109
|
|
|
110
|
+
@field_serializer("mode")
|
|
111
|
+
def serialize_mode(self, value):
|
|
112
|
+
if isinstance(value, str):
|
|
113
|
+
try:
|
|
114
|
+
return models.InputWefMode(value)
|
|
115
|
+
except ValueError:
|
|
116
|
+
return value
|
|
117
|
+
return value
|
|
118
|
+
|
|
119
|
+
@field_serializer("compress")
|
|
120
|
+
def serialize_compress(self, value):
|
|
121
|
+
if isinstance(value, str):
|
|
122
|
+
try:
|
|
123
|
+
return models.InputWefCompression(value)
|
|
124
|
+
except ValueError:
|
|
125
|
+
return value
|
|
126
|
+
return value
|
|
127
|
+
|
|
109
128
|
|
|
110
129
|
class InputWefAuthenticationMethod(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
111
130
|
r"""How to authenticate incoming client connections"""
|
|
@@ -221,6 +240,24 @@ class MTLSSettings(BaseModel):
|
|
|
221
240
|
] = False
|
|
222
241
|
r"""If enabled, checks will fail on any OCSP error. Otherwise, checks will fail only when a certificate is revoked, ignoring other errors."""
|
|
223
242
|
|
|
243
|
+
@field_serializer("min_version")
|
|
244
|
+
def serialize_min_version(self, value):
|
|
245
|
+
if isinstance(value, str):
|
|
246
|
+
try:
|
|
247
|
+
return models.InputWefMinimumTLSVersion(value)
|
|
248
|
+
except ValueError:
|
|
249
|
+
return value
|
|
250
|
+
return value
|
|
251
|
+
|
|
252
|
+
@field_serializer("max_version")
|
|
253
|
+
def serialize_max_version(self, value):
|
|
254
|
+
if isinstance(value, str):
|
|
255
|
+
try:
|
|
256
|
+
return models.InputWefMaximumTLSVersion(value)
|
|
257
|
+
except ValueError:
|
|
258
|
+
return value
|
|
259
|
+
return value
|
|
260
|
+
|
|
224
261
|
|
|
225
262
|
class InputWefFormat(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
226
263
|
r"""Content format in which the endpoint should deliver events"""
|
|
@@ -321,6 +358,24 @@ class Subscription(BaseModel):
|
|
|
321
358
|
metadata: Optional[List[SubscriptionMetadatum]] = None
|
|
322
359
|
r"""Fields to add to events ingested under this subscription"""
|
|
323
360
|
|
|
361
|
+
@field_serializer("content_format")
|
|
362
|
+
def serialize_content_format(self, value):
|
|
363
|
+
if isinstance(value, str):
|
|
364
|
+
try:
|
|
365
|
+
return models.InputWefFormat(value)
|
|
366
|
+
except ValueError:
|
|
367
|
+
return value
|
|
368
|
+
return value
|
|
369
|
+
|
|
370
|
+
@field_serializer("query_selector")
|
|
371
|
+
def serialize_query_selector(self, value):
|
|
372
|
+
if isinstance(value, str):
|
|
373
|
+
try:
|
|
374
|
+
return models.QueryBuilderMode(value)
|
|
375
|
+
except ValueError:
|
|
376
|
+
return value
|
|
377
|
+
return value
|
|
378
|
+
|
|
324
379
|
|
|
325
380
|
class InputWefMetadatumTypedDict(TypedDict):
|
|
326
381
|
name: str
|
|
@@ -515,3 +570,12 @@ class InputWef(BaseModel):
|
|
|
515
570
|
Optional[bool], pydantic.Field(alias="logFingerprintMismatch")
|
|
516
571
|
] = False
|
|
517
572
|
r"""Log a warning if the client certificate authority (CA) fingerprint does not match the expected value. A mismatch prevents Cribl from receiving events from the Windows Event Forwarder."""
|
|
573
|
+
|
|
574
|
+
@field_serializer("auth_method")
|
|
575
|
+
def serialize_auth_method(self, value):
|
|
576
|
+
if isinstance(value, str):
|
|
577
|
+
try:
|
|
578
|
+
return models.InputWefAuthenticationMethod(value)
|
|
579
|
+
except ValueError:
|
|
580
|
+
return value
|
|
581
|
+
return value
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from cribl_control_plane import utils
|
|
4
|
+
from cribl_control_plane import models, utils
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import validate_open_enum
|
|
7
7
|
from enum import Enum
|
|
8
8
|
import pydantic
|
|
9
|
+
from pydantic import field_serializer
|
|
9
10
|
from pydantic.functional_validators import PlainValidator
|
|
10
11
|
from typing import List, Optional
|
|
11
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -107,6 +108,24 @@ class InputWindowsMetricsPq(BaseModel):
|
|
|
107
108
|
Optional[InputWindowsMetricsPqControls], pydantic.Field(alias="pqControls")
|
|
108
109
|
] = None
|
|
109
110
|
|
|
111
|
+
@field_serializer("mode")
|
|
112
|
+
def serialize_mode(self, value):
|
|
113
|
+
if isinstance(value, str):
|
|
114
|
+
try:
|
|
115
|
+
return models.InputWindowsMetricsPqMode(value)
|
|
116
|
+
except ValueError:
|
|
117
|
+
return value
|
|
118
|
+
return value
|
|
119
|
+
|
|
120
|
+
@field_serializer("compress")
|
|
121
|
+
def serialize_compress(self, value):
|
|
122
|
+
if isinstance(value, str):
|
|
123
|
+
try:
|
|
124
|
+
return models.InputWindowsMetricsCompression(value)
|
|
125
|
+
except ValueError:
|
|
126
|
+
return value
|
|
127
|
+
return value
|
|
128
|
+
|
|
110
129
|
|
|
111
130
|
class InputWindowsMetricsHostMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
112
131
|
r"""Select level of detail for host metrics"""
|
|
@@ -151,6 +170,15 @@ class InputWindowsMetricsSystem(BaseModel):
|
|
|
151
170
|
detail: Optional[bool] = False
|
|
152
171
|
r"""Generate metrics for all system information"""
|
|
153
172
|
|
|
173
|
+
@field_serializer("mode")
|
|
174
|
+
def serialize_mode(self, value):
|
|
175
|
+
if isinstance(value, str):
|
|
176
|
+
try:
|
|
177
|
+
return models.InputWindowsMetricsSystemMode(value)
|
|
178
|
+
except ValueError:
|
|
179
|
+
return value
|
|
180
|
+
return value
|
|
181
|
+
|
|
154
182
|
|
|
155
183
|
class InputWindowsMetricsCPUMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
156
184
|
r"""Select the level of details for CPU metrics"""
|
|
@@ -191,6 +219,15 @@ class InputWindowsMetricsCPU(BaseModel):
|
|
|
191
219
|
time: Optional[bool] = False
|
|
192
220
|
r"""Generate raw, monotonic CPU time counters"""
|
|
193
221
|
|
|
222
|
+
@field_serializer("mode")
|
|
223
|
+
def serialize_mode(self, value):
|
|
224
|
+
if isinstance(value, str):
|
|
225
|
+
try:
|
|
226
|
+
return models.InputWindowsMetricsCPUMode(value)
|
|
227
|
+
except ValueError:
|
|
228
|
+
return value
|
|
229
|
+
return value
|
|
230
|
+
|
|
194
231
|
|
|
195
232
|
class InputWindowsMetricsMemoryMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
196
233
|
r"""Select the level of details for memory metrics"""
|
|
@@ -222,6 +259,15 @@ class InputWindowsMetricsMemory(BaseModel):
|
|
|
222
259
|
detail: Optional[bool] = False
|
|
223
260
|
r"""Generate metrics for all memory states"""
|
|
224
261
|
|
|
262
|
+
@field_serializer("mode")
|
|
263
|
+
def serialize_mode(self, value):
|
|
264
|
+
if isinstance(value, str):
|
|
265
|
+
try:
|
|
266
|
+
return models.InputWindowsMetricsMemoryMode(value)
|
|
267
|
+
except ValueError:
|
|
268
|
+
return value
|
|
269
|
+
return value
|
|
270
|
+
|
|
225
271
|
|
|
226
272
|
class InputWindowsMetricsNetworkMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
227
273
|
r"""Select the level of details for network metrics"""
|
|
@@ -270,6 +316,15 @@ class InputWindowsMetricsNetwork(BaseModel):
|
|
|
270
316
|
)
|
|
271
317
|
r"""Generate separate metrics for each interface"""
|
|
272
318
|
|
|
319
|
+
@field_serializer("mode")
|
|
320
|
+
def serialize_mode(self, value):
|
|
321
|
+
if isinstance(value, str):
|
|
322
|
+
try:
|
|
323
|
+
return models.InputWindowsMetricsNetworkMode(value)
|
|
324
|
+
except ValueError:
|
|
325
|
+
return value
|
|
326
|
+
return value
|
|
327
|
+
|
|
273
328
|
|
|
274
329
|
class InputWindowsMetricsDiskMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
275
330
|
r"""Select the level of details for disk metrics"""
|
|
@@ -310,6 +365,15 @@ class InputWindowsMetricsDisk(BaseModel):
|
|
|
310
365
|
volumes: Optional[List[str]] = None
|
|
311
366
|
r"""Windows volumes to include/exclude. E.g.: C:, !E:, etc. Wildcards and ! (not) operators are supported. All volumes are included if this list is empty."""
|
|
312
367
|
|
|
368
|
+
@field_serializer("mode")
|
|
369
|
+
def serialize_mode(self, value):
|
|
370
|
+
if isinstance(value, str):
|
|
371
|
+
try:
|
|
372
|
+
return models.InputWindowsMetricsDiskMode(value)
|
|
373
|
+
except ValueError:
|
|
374
|
+
return value
|
|
375
|
+
return value
|
|
376
|
+
|
|
313
377
|
|
|
314
378
|
class InputWindowsMetricsCustomTypedDict(TypedDict):
|
|
315
379
|
system: NotRequired[InputWindowsMetricsSystemTypedDict]
|
|
@@ -345,6 +409,15 @@ class InputWindowsMetricsHost(BaseModel):
|
|
|
345
409
|
|
|
346
410
|
custom: Optional[InputWindowsMetricsCustom] = None
|
|
347
411
|
|
|
412
|
+
@field_serializer("mode")
|
|
413
|
+
def serialize_mode(self, value):
|
|
414
|
+
if isinstance(value, str):
|
|
415
|
+
try:
|
|
416
|
+
return models.InputWindowsMetricsHostMode(value)
|
|
417
|
+
except ValueError:
|
|
418
|
+
return value
|
|
419
|
+
return value
|
|
420
|
+
|
|
348
421
|
|
|
349
422
|
class InputWindowsMetricsSetTypedDict(TypedDict):
|
|
350
423
|
name: str
|
|
@@ -427,6 +500,15 @@ class InputWindowsMetricsPersistence(BaseModel):
|
|
|
427
500
|
)
|
|
428
501
|
r"""Path to use to write metrics. Defaults to $CRIBL_HOME/state/windows_metrics"""
|
|
429
502
|
|
|
503
|
+
@field_serializer("compress")
|
|
504
|
+
def serialize_compress(self, value):
|
|
505
|
+
if isinstance(value, str):
|
|
506
|
+
try:
|
|
507
|
+
return models.InputWindowsMetricsDataCompressionFormat(value)
|
|
508
|
+
except ValueError:
|
|
509
|
+
return value
|
|
510
|
+
return value
|
|
511
|
+
|
|
430
512
|
|
|
431
513
|
class InputWindowsMetricsTypedDict(TypedDict):
|
|
432
514
|
type: InputWindowsMetricsType
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from cribl_control_plane import utils
|
|
4
|
+
from cribl_control_plane import models, utils
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import validate_open_enum
|
|
7
7
|
from enum import Enum
|
|
8
8
|
import pydantic
|
|
9
|
+
from pydantic import field_serializer
|
|
9
10
|
from pydantic.functional_validators import PlainValidator
|
|
10
11
|
from typing import List, Optional
|
|
11
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -107,6 +108,24 @@ class InputWinEventLogsPq(BaseModel):
|
|
|
107
108
|
Optional[InputWinEventLogsPqControls], pydantic.Field(alias="pqControls")
|
|
108
109
|
] = None
|
|
109
110
|
|
|
111
|
+
@field_serializer("mode")
|
|
112
|
+
def serialize_mode(self, value):
|
|
113
|
+
if isinstance(value, str):
|
|
114
|
+
try:
|
|
115
|
+
return models.InputWinEventLogsMode(value)
|
|
116
|
+
except ValueError:
|
|
117
|
+
return value
|
|
118
|
+
return value
|
|
119
|
+
|
|
120
|
+
@field_serializer("compress")
|
|
121
|
+
def serialize_compress(self, value):
|
|
122
|
+
if isinstance(value, str):
|
|
123
|
+
try:
|
|
124
|
+
return models.InputWinEventLogsCompression(value)
|
|
125
|
+
except ValueError:
|
|
126
|
+
return value
|
|
127
|
+
return value
|
|
128
|
+
|
|
110
129
|
|
|
111
130
|
class ReadMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
112
131
|
r"""Read all stored and future event logs, or only future events"""
|
|
@@ -255,3 +274,21 @@ class InputWinEventLogs(BaseModel):
|
|
|
255
274
|
Optional[bool], pydantic.Field(alias="disableXmlRendering")
|
|
256
275
|
] = True
|
|
257
276
|
r"""Enable/disable the rendering of localized event message strings (Applicable for 4.8.0 nodes and newer that use the Native API)"""
|
|
277
|
+
|
|
278
|
+
@field_serializer("read_mode")
|
|
279
|
+
def serialize_read_mode(self, value):
|
|
280
|
+
if isinstance(value, str):
|
|
281
|
+
try:
|
|
282
|
+
return models.ReadMode(value)
|
|
283
|
+
except ValueError:
|
|
284
|
+
return value
|
|
285
|
+
return value
|
|
286
|
+
|
|
287
|
+
@field_serializer("event_format")
|
|
288
|
+
def serialize_event_format(self, value):
|
|
289
|
+
if isinstance(value, str):
|
|
290
|
+
try:
|
|
291
|
+
return models.EventFormat(value)
|
|
292
|
+
except ValueError:
|
|
293
|
+
return value
|
|
294
|
+
return value
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from cribl_control_plane import utils
|
|
4
|
+
from cribl_control_plane import models, utils
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import validate_open_enum
|
|
7
7
|
from enum import Enum
|
|
8
8
|
import pydantic
|
|
9
|
+
from pydantic import field_serializer
|
|
9
10
|
from pydantic.functional_validators import PlainValidator
|
|
10
11
|
from typing import List, Optional
|
|
11
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -106,6 +107,24 @@ class InputWizPq(BaseModel):
|
|
|
106
107
|
Optional[InputWizPqControls], pydantic.Field(alias="pqControls")
|
|
107
108
|
] = None
|
|
108
109
|
|
|
110
|
+
@field_serializer("mode")
|
|
111
|
+
def serialize_mode(self, value):
|
|
112
|
+
if isinstance(value, str):
|
|
113
|
+
try:
|
|
114
|
+
return models.InputWizMode(value)
|
|
115
|
+
except ValueError:
|
|
116
|
+
return value
|
|
117
|
+
return value
|
|
118
|
+
|
|
119
|
+
@field_serializer("compress")
|
|
120
|
+
def serialize_compress(self, value):
|
|
121
|
+
if isinstance(value, str):
|
|
122
|
+
try:
|
|
123
|
+
return models.InputWizCompression(value)
|
|
124
|
+
except ValueError:
|
|
125
|
+
return value
|
|
126
|
+
return value
|
|
127
|
+
|
|
109
128
|
|
|
110
129
|
class InputWizContentConfigTypedDict(TypedDict):
|
|
111
130
|
content_type: str
|
|
@@ -201,6 +220,15 @@ class InputWizRetryRules(BaseModel):
|
|
|
201
220
|
] = False
|
|
202
221
|
r"""Retry request when a connection reset (ECONNRESET) error occurs"""
|
|
203
222
|
|
|
223
|
+
@field_serializer("type")
|
|
224
|
+
def serialize_type(self, value):
|
|
225
|
+
if isinstance(value, str):
|
|
226
|
+
try:
|
|
227
|
+
return models.InputWizRetryType(value)
|
|
228
|
+
except ValueError:
|
|
229
|
+
return value
|
|
230
|
+
return value
|
|
231
|
+
|
|
204
232
|
|
|
205
233
|
class InputWizAuthenticationMethod(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
206
234
|
r"""Enter client secret directly, or select a stored secret"""
|
|
@@ -352,3 +380,12 @@ class InputWiz(BaseModel):
|
|
|
352
380
|
|
|
353
381
|
text_secret: Annotated[Optional[str], pydantic.Field(alias="textSecret")] = None
|
|
354
382
|
r"""Select or create a stored text secret"""
|
|
383
|
+
|
|
384
|
+
@field_serializer("auth_type")
|
|
385
|
+
def serialize_auth_type(self, value):
|
|
386
|
+
if isinstance(value, str):
|
|
387
|
+
try:
|
|
388
|
+
return models.InputWizAuthenticationMethod(value)
|
|
389
|
+
except ValueError:
|
|
390
|
+
return value
|
|
391
|
+
return value
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from cribl_control_plane import utils
|
|
4
|
+
from cribl_control_plane import models, utils
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import validate_open_enum
|
|
7
7
|
from enum import Enum
|
|
8
8
|
import pydantic
|
|
9
|
+
from pydantic import field_serializer
|
|
9
10
|
from pydantic.functional_validators import PlainValidator
|
|
10
11
|
from typing import List, Optional
|
|
11
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -106,6 +107,24 @@ class InputWizWebhookPq(BaseModel):
|
|
|
106
107
|
Optional[InputWizWebhookPqControls], pydantic.Field(alias="pqControls")
|
|
107
108
|
] = None
|
|
108
109
|
|
|
110
|
+
@field_serializer("mode")
|
|
111
|
+
def serialize_mode(self, value):
|
|
112
|
+
if isinstance(value, str):
|
|
113
|
+
try:
|
|
114
|
+
return models.InputWizWebhookMode(value)
|
|
115
|
+
except ValueError:
|
|
116
|
+
return value
|
|
117
|
+
return value
|
|
118
|
+
|
|
119
|
+
@field_serializer("compress")
|
|
120
|
+
def serialize_compress(self, value):
|
|
121
|
+
if isinstance(value, str):
|
|
122
|
+
try:
|
|
123
|
+
return models.InputWizWebhookCompression(value)
|
|
124
|
+
except ValueError:
|
|
125
|
+
return value
|
|
126
|
+
return value
|
|
127
|
+
|
|
109
128
|
|
|
110
129
|
class InputWizWebhookMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
111
130
|
TL_SV1 = "TLSv1"
|
|
@@ -192,6 +211,24 @@ class InputWizWebhookTLSSettingsServerSide(BaseModel):
|
|
|
192
211
|
pydantic.Field(alias="maxVersion"),
|
|
193
212
|
] = None
|
|
194
213
|
|
|
214
|
+
@field_serializer("min_version")
|
|
215
|
+
def serialize_min_version(self, value):
|
|
216
|
+
if isinstance(value, str):
|
|
217
|
+
try:
|
|
218
|
+
return models.InputWizWebhookMinimumTLSVersion(value)
|
|
219
|
+
except ValueError:
|
|
220
|
+
return value
|
|
221
|
+
return value
|
|
222
|
+
|
|
223
|
+
@field_serializer("max_version")
|
|
224
|
+
def serialize_max_version(self, value):
|
|
225
|
+
if isinstance(value, str):
|
|
226
|
+
try:
|
|
227
|
+
return models.InputWizWebhookMaximumTLSVersion(value)
|
|
228
|
+
except ValueError:
|
|
229
|
+
return value
|
|
230
|
+
return value
|
|
231
|
+
|
|
195
232
|
|
|
196
233
|
class InputWizWebhookMetadatumTypedDict(TypedDict):
|
|
197
234
|
name: str
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from cribl_control_plane import utils
|
|
4
|
+
from cribl_control_plane import models, utils
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import validate_open_enum
|
|
7
7
|
from enum import Enum
|
|
8
8
|
import pydantic
|
|
9
|
+
from pydantic import field_serializer
|
|
9
10
|
from pydantic.functional_validators import PlainValidator
|
|
10
11
|
from typing import Any, List, Optional
|
|
11
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -106,6 +107,24 @@ class InputZscalerHecPq(BaseModel):
|
|
|
106
107
|
Optional[InputZscalerHecPqControls], pydantic.Field(alias="pqControls")
|
|
107
108
|
] = None
|
|
108
109
|
|
|
110
|
+
@field_serializer("mode")
|
|
111
|
+
def serialize_mode(self, value):
|
|
112
|
+
if isinstance(value, str):
|
|
113
|
+
try:
|
|
114
|
+
return models.InputZscalerHecMode(value)
|
|
115
|
+
except ValueError:
|
|
116
|
+
return value
|
|
117
|
+
return value
|
|
118
|
+
|
|
119
|
+
@field_serializer("compress")
|
|
120
|
+
def serialize_compress(self, value):
|
|
121
|
+
if isinstance(value, str):
|
|
122
|
+
try:
|
|
123
|
+
return models.InputZscalerHecCompression(value)
|
|
124
|
+
except ValueError:
|
|
125
|
+
return value
|
|
126
|
+
return value
|
|
127
|
+
|
|
109
128
|
|
|
110
129
|
class InputZscalerHecAuthenticationMethod(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
111
130
|
r"""Select Manual to enter an auth token directly, or select Secret to use a text secret to authenticate"""
|
|
@@ -166,6 +185,15 @@ class InputZscalerHecAuthToken(BaseModel):
|
|
|
166
185
|
metadata: Optional[List[InputZscalerHecAuthTokenMetadatum]] = None
|
|
167
186
|
r"""Fields to add to events referencing this token"""
|
|
168
187
|
|
|
188
|
+
@field_serializer("auth_type")
|
|
189
|
+
def serialize_auth_type(self, value):
|
|
190
|
+
if isinstance(value, str):
|
|
191
|
+
try:
|
|
192
|
+
return models.InputZscalerHecAuthenticationMethod(value)
|
|
193
|
+
except ValueError:
|
|
194
|
+
return value
|
|
195
|
+
return value
|
|
196
|
+
|
|
169
197
|
|
|
170
198
|
class InputZscalerHecMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
171
199
|
TL_SV1 = "TLSv1"
|
|
@@ -252,6 +280,24 @@ class InputZscalerHecTLSSettingsServerSide(BaseModel):
|
|
|
252
280
|
pydantic.Field(alias="maxVersion"),
|
|
253
281
|
] = None
|
|
254
282
|
|
|
283
|
+
@field_serializer("min_version")
|
|
284
|
+
def serialize_min_version(self, value):
|
|
285
|
+
if isinstance(value, str):
|
|
286
|
+
try:
|
|
287
|
+
return models.InputZscalerHecMinimumTLSVersion(value)
|
|
288
|
+
except ValueError:
|
|
289
|
+
return value
|
|
290
|
+
return value
|
|
291
|
+
|
|
292
|
+
@field_serializer("max_version")
|
|
293
|
+
def serialize_max_version(self, value):
|
|
294
|
+
if isinstance(value, str):
|
|
295
|
+
try:
|
|
296
|
+
return models.InputZscalerHecMaximumTLSVersion(value)
|
|
297
|
+
except ValueError:
|
|
298
|
+
return value
|
|
299
|
+
return value
|
|
300
|
+
|
|
255
301
|
|
|
256
302
|
class InputZscalerHecMetadatumTypedDict(TypedDict):
|
|
257
303
|
name: str
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .configgroup import ConfigGroup, ConfigGroupTypedDict
|
|
5
5
|
from .productscore import ProductsCore
|
|
6
|
+
from cribl_control_plane import models
|
|
6
7
|
from cribl_control_plane.types import BaseModel
|
|
7
8
|
from cribl_control_plane.utils import (
|
|
8
9
|
FieldMetadata,
|
|
@@ -10,6 +11,7 @@ from cribl_control_plane.utils import (
|
|
|
10
11
|
QueryParamMetadata,
|
|
11
12
|
validate_open_enum,
|
|
12
13
|
)
|
|
14
|
+
from pydantic import field_serializer
|
|
13
15
|
from pydantic.functional_validators import PlainValidator
|
|
14
16
|
from typing import List, Optional
|
|
15
17
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -35,6 +37,15 @@ class ListConfigGroupByProductRequest(BaseModel):
|
|
|
35
37
|
] = None
|
|
36
38
|
r"""Comma-separated list of additional properties to include in the response. Available values are <code>git.commit</code>, <code>git.localChanges</code>, and <code>git.log</code>."""
|
|
37
39
|
|
|
40
|
+
@field_serializer("product")
|
|
41
|
+
def serialize_product(self, value):
|
|
42
|
+
if isinstance(value, str):
|
|
43
|
+
try:
|
|
44
|
+
return models.ProductsCore(value)
|
|
45
|
+
except ValueError:
|
|
46
|
+
return value
|
|
47
|
+
return value
|
|
48
|
+
|
|
38
49
|
|
|
39
50
|
class ListConfigGroupByProductResponseTypedDict(TypedDict):
|
|
40
51
|
r"""a list of ConfigGroup objects"""
|
|
@@ -4,11 +4,12 @@ from __future__ import annotations
|
|
|
4
4
|
from .heartbeatmetadata import HeartbeatMetadata, HeartbeatMetadataTypedDict
|
|
5
5
|
from .nodeprovidedinfo import NodeProvidedInfo, NodeProvidedInfoTypedDict
|
|
6
6
|
from .nodeupgradestatus import NodeUpgradeStatus, NodeUpgradeStatusTypedDict
|
|
7
|
-
from cribl_control_plane import utils
|
|
7
|
+
from cribl_control_plane import models, utils
|
|
8
8
|
from cribl_control_plane.types import BaseModel
|
|
9
9
|
from cribl_control_plane.utils import validate_open_enum
|
|
10
10
|
from enum import Enum
|
|
11
11
|
import pydantic
|
|
12
|
+
from pydantic import field_serializer
|
|
12
13
|
from pydantic.functional_validators import PlainValidator
|
|
13
14
|
from typing import Optional
|
|
14
15
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -87,3 +88,12 @@ class MasterWorkerEntry(BaseModel):
|
|
|
87
88
|
] = None
|
|
88
89
|
|
|
89
90
|
workers: Optional[MasterWorkerEntryWorkers] = None
|
|
91
|
+
|
|
92
|
+
@field_serializer("type")
|
|
93
|
+
def serialize_type(self, value):
|
|
94
|
+
if isinstance(value, str):
|
|
95
|
+
try:
|
|
96
|
+
return models.MasterWorkerEntryType(value)
|
|
97
|
+
except ValueError:
|
|
98
|
+
return value
|
|
99
|
+
return value
|