cribl-control-plane 0.2.1rc4__py3-none-any.whl → 0.2.1rc11__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 +4 -4
- cribl_control_plane/acl.py +4 -4
- cribl_control_plane/branches.py +4 -4
- cribl_control_plane/commits.py +28 -28
- cribl_control_plane/commits_files.py +8 -8
- cribl_control_plane/configs_versions.py +4 -8
- cribl_control_plane/destinations.py +20 -20
- cribl_control_plane/destinations_pq.py +8 -8
- cribl_control_plane/groups_sdk.py +26 -50
- cribl_control_plane/hectokens.py +8 -16
- cribl_control_plane/lakedatasets.py +48 -40
- cribl_control_plane/models/__init__.py +260 -393
- 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/{getversionbranchop.py → countedlistbranchinfo.py} +2 -6
- cribl_control_plane/models/countedlistconfiggroup.py +20 -0
- cribl_control_plane/models/countedlistcribllakedataset.py +20 -0
- cribl_control_plane/models/countedlistdistributedsummary.py +20 -0
- cribl_control_plane/models/countedlistgitcommitsummary.py +20 -0
- cribl_control_plane/models/countedlistgitcountresult.py +20 -0
- cribl_control_plane/models/{createinputop.py → countedlistgitdiffresult.py} +5 -9
- cribl_control_plane/models/countedlistgitfilesresponse.py +20 -0
- cribl_control_plane/models/{getversioninfoop.py → countedlistgitinfo.py} +2 -6
- cribl_control_plane/models/countedlistgitlogresult.py +20 -0
- cribl_control_plane/models/countedlistgitrevertresult.py +20 -0
- cribl_control_plane/models/countedlistgitshowresult.py +20 -0
- cribl_control_plane/models/countedlistgitstatusresult.py +20 -0
- cribl_control_plane/models/{listinputop.py → countedlistinput.py} +2 -6
- cribl_control_plane/models/countedlistinputsplunkhec.py +20 -0
- cribl_control_plane/models/countedlistjobinfo.py +20 -0
- cribl_control_plane/models/countedlistmasterworkerentry.py +20 -0
- cribl_control_plane/models/countedlistnumber.py +19 -0
- cribl_control_plane/models/countedlistobject.py +19 -0
- cribl_control_plane/models/{listoutputop.py → countedlistoutput.py} +2 -6
- cribl_control_plane/models/{createoutputop.py → countedlistoutputsamplesresponse.py} +5 -9
- cribl_control_plane/models/countedlistoutputtestresponse.py +20 -0
- cribl_control_plane/models/countedlistpackinfo.py +20 -0
- cribl_control_plane/models/{createpacksop.py → countedlistpackinstallinfo.py} +2 -6
- cribl_control_plane/models/{listpipelineop.py → countedlistpipeline.py} +2 -6
- cribl_control_plane/models/{listroutesop.py → countedlistroutes.py} +2 -6
- cribl_control_plane/models/{createversionpushop.py → countedliststring.py} +2 -6
- cribl_control_plane/models/{createpipelineop.py → countedlistteamaccesscontrollist.py} +5 -9
- cribl_control_plane/models/countedlistuseraccesscontrollist.py +20 -0
- cribl_control_plane/models/createconfiggroupbyproductop.py +13 -21
- cribl_control_plane/models/createcribllakedatasetbylakeidop.py +1 -19
- cribl_control_plane/models/createinputhectokenbyidop.py +1 -20
- cribl_control_plane/models/createoutputtestbyidop.py +1 -20
- cribl_control_plane/models/createroutesappendbyidop.py +2 -20
- cribl_control_plane/models/createversioncommitop.py +1 -19
- cribl_control_plane/models/createversionrevertop.py +1 -19
- cribl_control_plane/models/createversionundoop.py +1 -18
- cribl_control_plane/models/cribllakedataset.py +15 -1
- cribl_control_plane/models/cribllakedatasetupdate.py +15 -1
- cribl_control_plane/models/datasetmetadata.py +11 -1
- cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +11 -19
- cribl_control_plane/models/deletecribllakedatasetbylakeidandidop.py +1 -20
- cribl_control_plane/models/deleteinputbyidop.py +1 -20
- cribl_control_plane/models/deleteoutputbyidop.py +1 -20
- cribl_control_plane/models/deleteoutputpqbyidop.py +1 -19
- cribl_control_plane/models/deletepacksbyidop.py +1 -20
- cribl_control_plane/models/deletepipelinebyidop.py +1 -20
- cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +20 -18
- cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +20 -18
- cribl_control_plane/models/getconfiggroupbyproductandidop.py +11 -18
- cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +11 -18
- cribl_control_plane/models/getcribllakedatasetbylakeidandidop.py +1 -20
- cribl_control_plane/models/getcribllakedatasetbylakeidop.py +1 -20
- cribl_control_plane/models/getinputbyidop.py +1 -20
- cribl_control_plane/models/getmasterworkerentryop.py +1 -18
- cribl_control_plane/models/getoutputbyidop.py +1 -20
- cribl_control_plane/models/getoutputpqbyidop.py +1 -20
- cribl_control_plane/models/getoutputsamplesbyidop.py +1 -20
- cribl_control_plane/models/getpacksbyidop.py +1 -20
- cribl_control_plane/models/getpacksop.py +1 -19
- cribl_control_plane/models/getpipelinebyidop.py +1 -20
- cribl_control_plane/models/getroutesbyidop.py +1 -20
- cribl_control_plane/models/getsummaryop.py +11 -18
- cribl_control_plane/models/getversioncountop.py +1 -19
- cribl_control_plane/models/getversiondiffop.py +1 -19
- cribl_control_plane/models/getversionfilesop.py +1 -19
- cribl_control_plane/models/getversionop.py +1 -19
- cribl_control_plane/models/getversionshowop.py +1 -19
- cribl_control_plane/models/getversionstatusop.py +1 -19
- 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/input.py +2 -2
- 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 +62 -7
- cribl_control_plane/models/inputcribllakehttp.py +38 -1
- cribl_control_plane/models/inputcriblmetrics.py +20 -1
- cribl_control_plane/models/inputcribltcp.py +63 -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 +40 -7
- 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/jobinfo.py +10 -4
- cribl_control_plane/models/jobstatus.py +34 -3
- cribl_control_plane/models/lakedatasetmetrics.py +17 -0
- cribl_control_plane/models/listconfiggroupbyproductop.py +11 -18
- cribl_control_plane/models/listmasterworkerentryop.py +1 -19
- cribl_control_plane/models/masterworkerentry.py +11 -1
- cribl_control_plane/models/nodeupgradestatus.py +38 -0
- cribl_control_plane/models/output.py +13 -13
- 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 +125 -1
- cribl_control_plane/models/outputcriblhttp.py +97 -1
- cribl_control_plane/models/outputcribllake.py +76 -1
- cribl_control_plane/models/outputcribltcp.py +99 -1
- cribl_control_plane/models/outputcrowdstrikenextgensiem.py +67 -1
- cribl_control_plane/models/outputdatabricks.py +69 -5
- 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 +121 -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 +121 -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 +149 -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 +64 -1
- cribl_control_plane/models/runnablejobexecutor.py +24 -1
- cribl_control_plane/models/runnablejobscheduledsearch.py +15 -1
- cribl_control_plane/models/updateconfiggroupbyproductandidop.py +11 -18
- cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +11 -19
- cribl_control_plane/models/updatecribllakedatasetbylakeidandidop.py +1 -20
- cribl_control_plane/models/updateinputbyidop.py +1 -19
- cribl_control_plane/models/updateinputhectokenbyidandtokenop.py +1 -20
- cribl_control_plane/models/updateoutputbyidop.py +1 -19
- cribl_control_plane/models/updatepacksbyidop.py +1 -20
- cribl_control_plane/models/updatepipelinebyidop.py +1 -19
- cribl_control_plane/models/updateroutesbyidop.py +1 -19
- cribl_control_plane/nodes.py +8 -12
- cribl_control_plane/packs.py +20 -20
- cribl_control_plane/pipelines.py +20 -20
- cribl_control_plane/routes_sdk.py +16 -20
- cribl_control_plane/samples.py +8 -8
- cribl_control_plane/sdk.py +2 -2
- cribl_control_plane/sources.py +20 -20
- cribl_control_plane/statuses.py +4 -4
- cribl_control_plane/summaries.py +8 -4
- cribl_control_plane/teams.py +4 -4
- cribl_control_plane/versions_configs.py +4 -4
- {cribl_control_plane-0.2.1rc4.dist-info → cribl_control_plane-0.2.1rc11.dist-info}/METADATA +25 -7
- cribl_control_plane-0.2.1rc11.dist-info/RECORD +350 -0
- cribl_control_plane-0.2.1rc4.dist-info/RECORD +0 -331
- {cribl_control_plane-0.2.1rc4.dist-info → cribl_control_plane-0.2.1rc11.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 Any, List, Optional
|
|
11
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -106,6 +107,24 @@ class InputSplunkHecPq(BaseModel):
|
|
|
106
107
|
Optional[InputSplunkHecPqControls], 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.InputSplunkHecMode(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.InputSplunkHecCompression(value)
|
|
124
|
+
except ValueError:
|
|
125
|
+
return value
|
|
126
|
+
return value
|
|
127
|
+
|
|
109
128
|
|
|
110
129
|
class InputSplunkHecAuthenticationMethod(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"""
|
|
@@ -168,6 +187,15 @@ class InputSplunkHecAuthToken(BaseModel):
|
|
|
168
187
|
metadata: Optional[List[InputSplunkHecAuthTokenMetadatum]] = None
|
|
169
188
|
r"""Fields to add to events referencing this token"""
|
|
170
189
|
|
|
190
|
+
@field_serializer("auth_type")
|
|
191
|
+
def serialize_auth_type(self, value):
|
|
192
|
+
if isinstance(value, str):
|
|
193
|
+
try:
|
|
194
|
+
return models.InputSplunkHecAuthenticationMethod(value)
|
|
195
|
+
except ValueError:
|
|
196
|
+
return value
|
|
197
|
+
return value
|
|
198
|
+
|
|
171
199
|
|
|
172
200
|
class InputSplunkHecMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
173
201
|
TL_SV1 = "TLSv1"
|
|
@@ -254,6 +282,24 @@ class InputSplunkHecTLSSettingsServerSide(BaseModel):
|
|
|
254
282
|
pydantic.Field(alias="maxVersion"),
|
|
255
283
|
] = None
|
|
256
284
|
|
|
285
|
+
@field_serializer("min_version")
|
|
286
|
+
def serialize_min_version(self, value):
|
|
287
|
+
if isinstance(value, str):
|
|
288
|
+
try:
|
|
289
|
+
return models.InputSplunkHecMinimumTLSVersion(value)
|
|
290
|
+
except ValueError:
|
|
291
|
+
return value
|
|
292
|
+
return value
|
|
293
|
+
|
|
294
|
+
@field_serializer("max_version")
|
|
295
|
+
def serialize_max_version(self, value):
|
|
296
|
+
if isinstance(value, str):
|
|
297
|
+
try:
|
|
298
|
+
return models.InputSplunkHecMaximumTLSVersion(value)
|
|
299
|
+
except ValueError:
|
|
300
|
+
return value
|
|
301
|
+
return value
|
|
302
|
+
|
|
257
303
|
|
|
258
304
|
class InputSplunkHecMetadatumTypedDict(TypedDict):
|
|
259
305
|
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 List, Optional
|
|
11
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -107,6 +108,24 @@ class InputSplunkSearchPq(BaseModel):
|
|
|
107
108
|
Optional[InputSplunkSearchPqControls], 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.InputSplunkSearchMode(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.InputSplunkSearchCompression(value)
|
|
125
|
+
except ValueError:
|
|
126
|
+
return value
|
|
127
|
+
return value
|
|
128
|
+
|
|
110
129
|
|
|
111
130
|
class OutputMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
112
131
|
r"""Format of the returned output"""
|
|
@@ -226,6 +245,15 @@ class InputSplunkSearchRetryRules(BaseModel):
|
|
|
226
245
|
] = False
|
|
227
246
|
r"""Retry request when a connection reset (ECONNRESET) error occurs"""
|
|
228
247
|
|
|
248
|
+
@field_serializer("type")
|
|
249
|
+
def serialize_type(self, value):
|
|
250
|
+
if isinstance(value, str):
|
|
251
|
+
try:
|
|
252
|
+
return models.InputSplunkSearchRetryType(value)
|
|
253
|
+
except ValueError:
|
|
254
|
+
return value
|
|
255
|
+
return value
|
|
256
|
+
|
|
229
257
|
|
|
230
258
|
class InputSplunkSearchAuthenticationType(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
231
259
|
r"""Splunk Search authentication type"""
|
|
@@ -555,3 +583,30 @@ class InputSplunkSearch(BaseModel):
|
|
|
555
583
|
pydantic.Field(alias="oauthHeaders"),
|
|
556
584
|
] = None
|
|
557
585
|
r"""Additional headers to send in the OAuth login request. @{product} will automatically add the content-type header 'application/x-www-form-urlencoded' when sending this request."""
|
|
586
|
+
|
|
587
|
+
@field_serializer("output_mode")
|
|
588
|
+
def serialize_output_mode(self, value):
|
|
589
|
+
if isinstance(value, str):
|
|
590
|
+
try:
|
|
591
|
+
return models.OutputMode(value)
|
|
592
|
+
except ValueError:
|
|
593
|
+
return value
|
|
594
|
+
return value
|
|
595
|
+
|
|
596
|
+
@field_serializer("log_level")
|
|
597
|
+
def serialize_log_level(self, value):
|
|
598
|
+
if isinstance(value, str):
|
|
599
|
+
try:
|
|
600
|
+
return models.InputSplunkSearchLogLevel(value)
|
|
601
|
+
except ValueError:
|
|
602
|
+
return value
|
|
603
|
+
return value
|
|
604
|
+
|
|
605
|
+
@field_serializer("auth_type")
|
|
606
|
+
def serialize_auth_type(self, value):
|
|
607
|
+
if isinstance(value, str):
|
|
608
|
+
try:
|
|
609
|
+
return models.InputSplunkSearchAuthenticationType(value)
|
|
610
|
+
except ValueError:
|
|
611
|
+
return value
|
|
612
|
+
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 InputSqsPq(BaseModel):
|
|
|
106
107
|
Optional[InputSqsPqControls], 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.InputSqsMode(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.InputSqsCompression(value)
|
|
124
|
+
except ValueError:
|
|
125
|
+
return value
|
|
126
|
+
return value
|
|
127
|
+
|
|
109
128
|
|
|
110
129
|
class InputSqsQueueType(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
111
130
|
r"""The queue type used (or created)"""
|
|
@@ -338,3 +357,30 @@ class InputSqs(BaseModel):
|
|
|
338
357
|
|
|
339
358
|
num_receivers: Annotated[Optional[float], pydantic.Field(alias="numReceivers")] = 3
|
|
340
359
|
r"""How many receiver processes to run. The higher the number, the better the throughput - at the expense of CPU overhead."""
|
|
360
|
+
|
|
361
|
+
@field_serializer("queue_type")
|
|
362
|
+
def serialize_queue_type(self, value):
|
|
363
|
+
if isinstance(value, str):
|
|
364
|
+
try:
|
|
365
|
+
return models.InputSqsQueueType(value)
|
|
366
|
+
except ValueError:
|
|
367
|
+
return value
|
|
368
|
+
return value
|
|
369
|
+
|
|
370
|
+
@field_serializer("aws_authentication_method")
|
|
371
|
+
def serialize_aws_authentication_method(self, value):
|
|
372
|
+
if isinstance(value, str):
|
|
373
|
+
try:
|
|
374
|
+
return models.InputSqsAuthenticationMethod(value)
|
|
375
|
+
except ValueError:
|
|
376
|
+
return value
|
|
377
|
+
return value
|
|
378
|
+
|
|
379
|
+
@field_serializer("signature_version")
|
|
380
|
+
def serialize_signature_version(self, value):
|
|
381
|
+
if isinstance(value, str):
|
|
382
|
+
try:
|
|
383
|
+
return models.InputSqsSignatureVersion(value)
|
|
384
|
+
except ValueError:
|
|
385
|
+
return value
|
|
386
|
+
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, Union
|
|
11
12
|
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
@@ -106,6 +107,24 @@ class InputSyslogPq2(BaseModel):
|
|
|
106
107
|
Optional[InputSyslogPqControls2], 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.InputSyslogMode2(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.InputSyslogCompression2(value)
|
|
124
|
+
except ValueError:
|
|
125
|
+
return value
|
|
126
|
+
return value
|
|
127
|
+
|
|
109
128
|
|
|
110
129
|
class InputSyslogMinimumTLSVersion2(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
111
130
|
TL_SV1 = "TLSv1"
|
|
@@ -192,6 +211,24 @@ class InputSyslogTLSSettingsServerSide2(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.InputSyslogMinimumTLSVersion2(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.InputSyslogMaximumTLSVersion2(value)
|
|
228
|
+
except ValueError:
|
|
229
|
+
return value
|
|
230
|
+
return value
|
|
231
|
+
|
|
195
232
|
|
|
196
233
|
class InputSyslogMetadatum2TypedDict(TypedDict):
|
|
197
234
|
name: str
|
|
@@ -497,6 +534,24 @@ class InputSyslogPq1(BaseModel):
|
|
|
497
534
|
Optional[InputSyslogPqControls1], pydantic.Field(alias="pqControls")
|
|
498
535
|
] = None
|
|
499
536
|
|
|
537
|
+
@field_serializer("mode")
|
|
538
|
+
def serialize_mode(self, value):
|
|
539
|
+
if isinstance(value, str):
|
|
540
|
+
try:
|
|
541
|
+
return models.InputSyslogMode1(value)
|
|
542
|
+
except ValueError:
|
|
543
|
+
return value
|
|
544
|
+
return value
|
|
545
|
+
|
|
546
|
+
@field_serializer("compress")
|
|
547
|
+
def serialize_compress(self, value):
|
|
548
|
+
if isinstance(value, str):
|
|
549
|
+
try:
|
|
550
|
+
return models.InputSyslogCompression1(value)
|
|
551
|
+
except ValueError:
|
|
552
|
+
return value
|
|
553
|
+
return value
|
|
554
|
+
|
|
500
555
|
|
|
501
556
|
class InputSyslogMinimumTLSVersion1(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
502
557
|
TL_SV1 = "TLSv1"
|
|
@@ -583,6 +638,24 @@ class InputSyslogTLSSettingsServerSide1(BaseModel):
|
|
|
583
638
|
pydantic.Field(alias="maxVersion"),
|
|
584
639
|
] = None
|
|
585
640
|
|
|
641
|
+
@field_serializer("min_version")
|
|
642
|
+
def serialize_min_version(self, value):
|
|
643
|
+
if isinstance(value, str):
|
|
644
|
+
try:
|
|
645
|
+
return models.InputSyslogMinimumTLSVersion1(value)
|
|
646
|
+
except ValueError:
|
|
647
|
+
return value
|
|
648
|
+
return value
|
|
649
|
+
|
|
650
|
+
@field_serializer("max_version")
|
|
651
|
+
def serialize_max_version(self, value):
|
|
652
|
+
if isinstance(value, str):
|
|
653
|
+
try:
|
|
654
|
+
return models.InputSyslogMaximumTLSVersion1(value)
|
|
655
|
+
except ValueError:
|
|
656
|
+
return value
|
|
657
|
+
return value
|
|
658
|
+
|
|
586
659
|
|
|
587
660
|
class InputSyslogMetadatum1TypedDict(TypedDict):
|
|
588
661
|
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 List, Optional
|
|
11
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -107,6 +108,24 @@ class InputSystemMetricsPq(BaseModel):
|
|
|
107
108
|
Optional[InputSystemMetricsPqControls], 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.InputSystemMetricsPqMode(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.InputSystemMetricsCompression(value)
|
|
125
|
+
except ValueError:
|
|
126
|
+
return value
|
|
127
|
+
return value
|
|
128
|
+
|
|
110
129
|
|
|
111
130
|
class InputSystemMetricsHostMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
112
131
|
r"""Select level of detail for host metrics"""
|
|
@@ -151,6 +170,15 @@ class InputSystemMetricsSystem(BaseModel):
|
|
|
151
170
|
processes: Optional[bool] = False
|
|
152
171
|
r"""Generate metrics for the numbers of processes in various states"""
|
|
153
172
|
|
|
173
|
+
@field_serializer("mode")
|
|
174
|
+
def serialize_mode(self, value):
|
|
175
|
+
if isinstance(value, str):
|
|
176
|
+
try:
|
|
177
|
+
return models.InputSystemMetricsSystemMode(value)
|
|
178
|
+
except ValueError:
|
|
179
|
+
return value
|
|
180
|
+
return value
|
|
181
|
+
|
|
154
182
|
|
|
155
183
|
class InputSystemMetricsCPUMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
156
184
|
r"""Select the level of detail for CPU metrics"""
|
|
@@ -191,6 +219,15 @@ class InputSystemMetricsCPU(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.InputSystemMetricsCPUMode(value)
|
|
227
|
+
except ValueError:
|
|
228
|
+
return value
|
|
229
|
+
return value
|
|
230
|
+
|
|
194
231
|
|
|
195
232
|
class InputSystemMetricsMemoryMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
196
233
|
r"""Select the level of detail for memory metrics"""
|
|
@@ -222,6 +259,15 @@ class InputSystemMetricsMemory(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.InputSystemMetricsMemoryMode(value)
|
|
267
|
+
except ValueError:
|
|
268
|
+
return value
|
|
269
|
+
return value
|
|
270
|
+
|
|
225
271
|
|
|
226
272
|
class InputSystemMetricsNetworkMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
227
273
|
r"""Select the level of detail for network metrics"""
|
|
@@ -270,6 +316,15 @@ class InputSystemMetricsNetwork(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.InputSystemMetricsNetworkMode(value)
|
|
324
|
+
except ValueError:
|
|
325
|
+
return value
|
|
326
|
+
return value
|
|
327
|
+
|
|
273
328
|
|
|
274
329
|
class InputSystemMetricsDiskMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
275
330
|
r"""Select the level of detail for disk metrics"""
|
|
@@ -325,6 +380,15 @@ class InputSystemMetricsDisk(BaseModel):
|
|
|
325
380
|
per_device: Annotated[Optional[bool], pydantic.Field(alias="perDevice")] = False
|
|
326
381
|
r"""Generate separate metrics for each device"""
|
|
327
382
|
|
|
383
|
+
@field_serializer("mode")
|
|
384
|
+
def serialize_mode(self, value):
|
|
385
|
+
if isinstance(value, str):
|
|
386
|
+
try:
|
|
387
|
+
return models.InputSystemMetricsDiskMode(value)
|
|
388
|
+
except ValueError:
|
|
389
|
+
return value
|
|
390
|
+
return value
|
|
391
|
+
|
|
328
392
|
|
|
329
393
|
class InputSystemMetricsCustomTypedDict(TypedDict):
|
|
330
394
|
system: NotRequired[InputSystemMetricsSystemTypedDict]
|
|
@@ -360,6 +424,15 @@ class InputSystemMetricsHost(BaseModel):
|
|
|
360
424
|
|
|
361
425
|
custom: Optional[InputSystemMetricsCustom] = None
|
|
362
426
|
|
|
427
|
+
@field_serializer("mode")
|
|
428
|
+
def serialize_mode(self, value):
|
|
429
|
+
if isinstance(value, str):
|
|
430
|
+
try:
|
|
431
|
+
return models.InputSystemMetricsHostMode(value)
|
|
432
|
+
except ValueError:
|
|
433
|
+
return value
|
|
434
|
+
return value
|
|
435
|
+
|
|
363
436
|
|
|
364
437
|
class InputSystemMetricsSetTypedDict(TypedDict):
|
|
365
438
|
name: str
|
|
@@ -455,6 +528,15 @@ class Container(BaseModel):
|
|
|
455
528
|
detail: Optional[bool] = False
|
|
456
529
|
r"""Generate full container metrics"""
|
|
457
530
|
|
|
531
|
+
@field_serializer("mode")
|
|
532
|
+
def serialize_mode(self, value):
|
|
533
|
+
if isinstance(value, str):
|
|
534
|
+
try:
|
|
535
|
+
return models.ContainerMode(value)
|
|
536
|
+
except ValueError:
|
|
537
|
+
return value
|
|
538
|
+
return value
|
|
539
|
+
|
|
458
540
|
|
|
459
541
|
class InputSystemMetricsMetadatumTypedDict(TypedDict):
|
|
460
542
|
name: str
|
|
@@ -511,6 +593,15 @@ class InputSystemMetricsPersistence(BaseModel):
|
|
|
511
593
|
)
|
|
512
594
|
r"""Path to use to write metrics. Defaults to $CRIBL_HOME/state/system_metrics"""
|
|
513
595
|
|
|
596
|
+
@field_serializer("compress")
|
|
597
|
+
def serialize_compress(self, value):
|
|
598
|
+
if isinstance(value, str):
|
|
599
|
+
try:
|
|
600
|
+
return models.InputSystemMetricsDataCompressionFormat(value)
|
|
601
|
+
except ValueError:
|
|
602
|
+
return value
|
|
603
|
+
return value
|
|
604
|
+
|
|
514
605
|
|
|
515
606
|
class InputSystemMetricsTypedDict(TypedDict):
|
|
516
607
|
type: InputSystemMetricsType
|
|
@@ -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 InputSystemStatePq(BaseModel):
|
|
|
106
107
|
Optional[InputSystemStatePqControls], 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.InputSystemStateMode(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.InputSystemStateCompression(value)
|
|
124
|
+
except ValueError:
|
|
125
|
+
return value
|
|
126
|
+
return value
|
|
127
|
+
|
|
109
128
|
|
|
110
129
|
class InputSystemStateMetadatumTypedDict(TypedDict):
|
|
111
130
|
name: str
|
|
@@ -356,6 +375,15 @@ class InputSystemStatePersistence(BaseModel):
|
|
|
356
375
|
)
|
|
357
376
|
r"""Path to use to write metrics. Defaults to $CRIBL_HOME/state/system_state"""
|
|
358
377
|
|
|
378
|
+
@field_serializer("compress")
|
|
379
|
+
def serialize_compress(self, value):
|
|
380
|
+
if isinstance(value, str):
|
|
381
|
+
try:
|
|
382
|
+
return models.InputSystemStateDataCompressionFormat(value)
|
|
383
|
+
except ValueError:
|
|
384
|
+
return value
|
|
385
|
+
return value
|
|
386
|
+
|
|
359
387
|
|
|
360
388
|
class InputSystemStateTypedDict(TypedDict):
|
|
361
389
|
type: InputSystemStateType
|
|
@@ -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 InputTCPPq(BaseModel):
|
|
|
106
107
|
Optional[InputTCPPqControls], 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.InputTCPMode(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.InputTCPCompression(value)
|
|
124
|
+
except ValueError:
|
|
125
|
+
return value
|
|
126
|
+
return value
|
|
127
|
+
|
|
109
128
|
|
|
110
129
|
class InputTCPMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
111
130
|
TL_SV1 = "TLSv1"
|
|
@@ -192,6 +211,24 @@ class InputTCPTLSSettingsServerSide(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.InputTCPMinimumTLSVersion(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.InputTCPMaximumTLSVersion(value)
|
|
228
|
+
except ValueError:
|
|
229
|
+
return value
|
|
230
|
+
return value
|
|
231
|
+
|
|
195
232
|
|
|
196
233
|
class InputTCPMetadatumTypedDict(TypedDict):
|
|
197
234
|
name: str
|
|
@@ -388,3 +425,12 @@ class InputTCP(BaseModel):
|
|
|
388
425
|
|
|
389
426
|
text_secret: Annotated[Optional[str], pydantic.Field(alias="textSecret")] = None
|
|
390
427
|
r"""Select or create a stored text secret"""
|
|
428
|
+
|
|
429
|
+
@field_serializer("auth_type")
|
|
430
|
+
def serialize_auth_type(self, value):
|
|
431
|
+
if isinstance(value, str):
|
|
432
|
+
try:
|
|
433
|
+
return models.InputTCPAuthenticationMethod(value)
|
|
434
|
+
except ValueError:
|
|
435
|
+
return value
|
|
436
|
+
return value
|