cribl-control-plane 0.2.1rc7__py3-none-any.whl → 0.2.1rc9__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/groups_sdk.py +5 -2
- cribl_control_plane/lakedatasets.py +28 -0
- cribl_control_plane/mappings.py +1185 -0
- cribl_control_plane/models/__init__.py +153 -15
- cribl_control_plane/models/cacheconnection.py +0 -20
- cribl_control_plane/models/configgroup.py +1 -20
- cribl_control_plane/models/configgroupcloud.py +1 -11
- cribl_control_plane/models/createadminproductsmappingsactivatebyproductop.py +52 -0
- cribl_control_plane/models/createadminproductsmappingsbyproductop.py +53 -0
- cribl_control_plane/models/createconfiggroupbyproductop.py +2 -13
- cribl_control_plane/models/cribllakedataset.py +5 -11
- cribl_control_plane/models/cribllakedatasetupdate.py +5 -11
- cribl_control_plane/models/datasetmetadata.py +1 -11
- cribl_control_plane/models/deleteadminproductsmappingsbyproductandidop.py +51 -0
- cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +0 -11
- cribl_control_plane/models/evalfunction.py +77 -0
- cribl_control_plane/models/evalschema.py +44 -0
- cribl_control_plane/models/getadminproductsmappingsbyproductandidop.py +51 -0
- cribl_control_plane/models/getadminproductsmappingsbyproductop.py +44 -0
- cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +0 -20
- cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +0 -20
- cribl_control_plane/models/getconfiggroupbyproductandidop.py +0 -11
- cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +0 -11
- cribl_control_plane/models/getsummaryop.py +0 -11
- cribl_control_plane/models/groupcreaterequest.py +1 -20
- cribl_control_plane/models/hbcriblinfo.py +1 -11
- cribl_control_plane/models/healthserverstatus.py +1 -20
- cribl_control_plane/models/inputappscope.py +1 -56
- cribl_control_plane/models/inputazureblob.py +1 -29
- cribl_control_plane/models/inputcollection.py +1 -20
- cribl_control_plane/models/inputconfluentcloud.py +1 -78
- cribl_control_plane/models/inputcribl.py +1 -20
- cribl_control_plane/models/inputcriblhttp.py +1 -38
- cribl_control_plane/models/inputcribllakehttp.py +1 -38
- cribl_control_plane/models/inputcriblmetrics.py +1 -20
- cribl_control_plane/models/inputcribltcp.py +1 -38
- cribl_control_plane/models/inputcrowdstrike.py +1 -47
- cribl_control_plane/models/inputdatadogagent.py +1 -38
- cribl_control_plane/models/inputdatagen.py +1 -20
- cribl_control_plane/models/inputedgeprometheus.py +1 -94
- cribl_control_plane/models/inputelastic.py +1 -65
- cribl_control_plane/models/inputeventhub.py +1 -58
- cribl_control_plane/models/inputexec.py +1 -29
- cribl_control_plane/models/inputfile.py +4 -32
- cribl_control_plane/models/inputfirehose.py +1 -38
- cribl_control_plane/models/inputgooglepubsub.py +1 -29
- cribl_control_plane/models/inputgrafana.py +1 -110
- cribl_control_plane/models/inputhttp.py +1 -38
- cribl_control_plane/models/inputhttpraw.py +1 -38
- cribl_control_plane/models/inputjournalfiles.py +1 -20
- cribl_control_plane/models/inputkafka.py +1 -74
- cribl_control_plane/models/inputkinesis.py +1 -65
- cribl_control_plane/models/inputkubeevents.py +1 -20
- cribl_control_plane/models/inputkubelogs.py +1 -29
- cribl_control_plane/models/inputkubemetrics.py +1 -29
- cribl_control_plane/models/inputloki.py +1 -47
- cribl_control_plane/models/inputmetrics.py +1 -38
- cribl_control_plane/models/inputmodeldriventelemetry.py +1 -38
- cribl_control_plane/models/inputmsk.py +1 -74
- cribl_control_plane/models/inputnetflow.py +1 -20
- cribl_control_plane/models/inputoffice365mgmt.py +1 -56
- cribl_control_plane/models/inputoffice365msgtrace.py +1 -56
- cribl_control_plane/models/inputoffice365service.py +1 -56
- cribl_control_plane/models/inputopentelemetry.py +1 -65
- cribl_control_plane/models/inputprometheus.py +1 -87
- cribl_control_plane/models/inputprometheusrw.py +1 -47
- cribl_control_plane/models/inputrawudp.py +1 -20
- cribl_control_plane/models/inputs3.py +1 -38
- cribl_control_plane/models/inputs3inventory.py +1 -47
- cribl_control_plane/models/inputsecuritylake.py +1 -47
- cribl_control_plane/models/inputsnmp.py +1 -29
- cribl_control_plane/models/inputsplunk.py +1 -56
- cribl_control_plane/models/inputsplunkhec.py +1 -47
- cribl_control_plane/models/inputsplunksearch.py +1 -56
- cribl_control_plane/models/inputsqs.py +1 -47
- cribl_control_plane/models/inputsyslog.py +1 -74
- cribl_control_plane/models/inputsystemmetrics.py +1 -92
- cribl_control_plane/models/inputsystemstate.py +1 -29
- cribl_control_plane/models/inputtcp.py +1 -47
- cribl_control_plane/models/inputtcpjson.py +1 -47
- cribl_control_plane/models/inputwef.py +1 -65
- cribl_control_plane/models/inputwindowsmetrics.py +1 -83
- cribl_control_plane/models/inputwineventlogs.py +1 -38
- cribl_control_plane/models/inputwiz.py +1 -38
- cribl_control_plane/models/inputwizwebhook.py +1 -38
- cribl_control_plane/models/inputzscalerhec.py +1 -47
- cribl_control_plane/models/jobstatus.py +3 -34
- cribl_control_plane/models/lakedatasetmetrics.py +17 -0
- cribl_control_plane/models/listconfiggroupbyproductop.py +0 -11
- cribl_control_plane/models/mappingruleset.py +31 -0
- cribl_control_plane/models/masterworkerentry.py +1 -11
- cribl_control_plane/models/nodeupgradestatus.py +0 -38
- cribl_control_plane/models/outputazureblob.py +1 -83
- cribl_control_plane/models/outputazuredataexplorer.py +1 -148
- cribl_control_plane/models/outputazureeventhub.py +1 -98
- cribl_control_plane/models/outputazurelogs.py +1 -56
- cribl_control_plane/models/outputchronicle.py +1 -56
- cribl_control_plane/models/outputclickhouse.py +1 -92
- cribl_control_plane/models/outputcloudwatch.py +1 -47
- cribl_control_plane/models/outputconfluentcloud.py +3 -123
- cribl_control_plane/models/outputcriblhttp.py +1 -74
- cribl_control_plane/models/outputcribllake.py +1 -76
- cribl_control_plane/models/outputcribltcp.py +1 -74
- cribl_control_plane/models/outputcrowdstrikenextgensiem.py +1 -67
- cribl_control_plane/models/outputdatabricks.py +1 -65
- cribl_control_plane/models/outputdatadog.py +1 -83
- cribl_control_plane/models/outputdataset.py +1 -74
- cribl_control_plane/models/outputdiskspool.py +1 -11
- cribl_control_plane/models/outputdls3.py +1 -110
- cribl_control_plane/models/outputdynatracehttp.py +1 -92
- cribl_control_plane/models/outputdynatraceotlp.py +1 -92
- cribl_control_plane/models/outputelastic.py +1 -74
- cribl_control_plane/models/outputelasticcloud.py +1 -56
- cribl_control_plane/models/outputexabeam.py +1 -47
- cribl_control_plane/models/outputfilesystem.py +1 -65
- cribl_control_plane/models/outputgooglechronicle.py +1 -83
- cribl_control_plane/models/outputgooglecloudlogging.py +1 -65
- cribl_control_plane/models/outputgooglecloudstorage.py +1 -101
- cribl_control_plane/models/outputgooglepubsub.py +1 -47
- cribl_control_plane/models/outputgrafanacloud.py +1 -146
- cribl_control_plane/models/outputgraphite.py +1 -47
- cribl_control_plane/models/outputhoneycomb.py +1 -56
- cribl_control_plane/models/outputhumiohec.py +1 -65
- cribl_control_plane/models/outputinfluxdb.py +1 -65
- cribl_control_plane/models/outputkafka.py +3 -119
- cribl_control_plane/models/outputkinesis.py +1 -65
- cribl_control_plane/models/outputloki.py +1 -65
- cribl_control_plane/models/outputminio.py +1 -110
- cribl_control_plane/models/outputmsk.py +3 -119
- cribl_control_plane/models/outputnewrelic.py +1 -74
- cribl_control_plane/models/outputnewrelicevents.py +1 -65
- cribl_control_plane/models/outputopentelemetry.py +1 -110
- cribl_control_plane/models/outputprometheus.py +1 -56
- cribl_control_plane/models/outputring.py +1 -29
- cribl_control_plane/models/outputs3.py +1 -110
- cribl_control_plane/models/outputsecuritylake.py +1 -85
- cribl_control_plane/models/outputsentinel.py +1 -74
- cribl_control_plane/models/outputsentineloneaisiem.py +1 -74
- cribl_control_plane/models/outputservicenow.py +1 -101
- cribl_control_plane/models/outputsignalfx.py +1 -56
- cribl_control_plane/models/outputsns.py +1 -56
- cribl_control_plane/models/outputsplunk.py +1 -92
- cribl_control_plane/models/outputsplunkhec.py +1 -74
- cribl_control_plane/models/outputsplunklb.py +1 -121
- cribl_control_plane/models/outputsqs.py +1 -65
- cribl_control_plane/models/outputstatsd.py +1 -47
- cribl_control_plane/models/outputstatsdext.py +1 -47
- cribl_control_plane/models/outputsumologic.py +1 -56
- cribl_control_plane/models/outputsyslog.py +1 -110
- cribl_control_plane/models/outputtcpjson.py +1 -83
- cribl_control_plane/models/outputwavefront.py +1 -56
- cribl_control_plane/models/outputwebhook.py +1 -92
- cribl_control_plane/models/outputxsiam.py +1 -56
- cribl_control_plane/models/pipeline.py +7 -7
- cribl_control_plane/models/pipelinefunctionconf.py +4 -4
- cribl_control_plane/models/resourcepolicy.py +0 -11
- cribl_control_plane/models/rulesetid.py +13 -0
- cribl_control_plane/models/runnablejobcollection.py +1 -56
- cribl_control_plane/models/runnablejobexecutor.py +1 -20
- cribl_control_plane/models/runnablejobscheduledsearch.py +1 -11
- cribl_control_plane/models/updateadminproductsmappingsbyproductandidop.py +63 -0
- cribl_control_plane/models/updateconfiggroupbyproductandidop.py +0 -11
- cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +0 -11
- cribl_control_plane/pipelines.py +8 -8
- {cribl_control_plane-0.2.1rc7.dist-info → cribl_control_plane-0.2.1rc9.dist-info}/METADATA +35 -8
- {cribl_control_plane-0.2.1rc7.dist-info → cribl_control_plane-0.2.1rc9.dist-info}/RECORD +168 -156
- {cribl_control_plane-0.2.1rc7.dist-info → cribl_control_plane-0.2.1rc9.dist-info}/WHEEL +0 -0
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .cacheconnection import CacheConnection, CacheConnectionTypedDict
|
|
5
|
+
from .lakedatasetmetrics import LakeDatasetMetrics, LakeDatasetMetricsTypedDict
|
|
5
6
|
from .lakedatasetsearchconfig import (
|
|
6
7
|
LakeDatasetSearchConfig,
|
|
7
8
|
LakeDatasetSearchConfigTypedDict,
|
|
8
9
|
)
|
|
9
|
-
from cribl_control_plane import
|
|
10
|
+
from cribl_control_plane import utils
|
|
10
11
|
from cribl_control_plane.types import BaseModel
|
|
11
12
|
from cribl_control_plane.utils import validate_open_enum
|
|
12
13
|
from enum import Enum
|
|
13
14
|
import pydantic
|
|
14
|
-
from pydantic import field_serializer
|
|
15
15
|
from pydantic.functional_validators import PlainValidator
|
|
16
16
|
from typing import List, Optional
|
|
17
17
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -32,6 +32,7 @@ class CriblLakeDatasetTypedDict(TypedDict):
|
|
|
32
32
|
description: NotRequired[str]
|
|
33
33
|
format_: NotRequired[CriblLakeDatasetFormat]
|
|
34
34
|
http_da_used: NotRequired[bool]
|
|
35
|
+
metrics: NotRequired[LakeDatasetMetricsTypedDict]
|
|
35
36
|
retention_period_in_days: NotRequired[float]
|
|
36
37
|
search_config: NotRequired[LakeDatasetSearchConfigTypedDict]
|
|
37
38
|
storage_location_id: NotRequired[str]
|
|
@@ -66,6 +67,8 @@ class CriblLakeDataset(BaseModel):
|
|
|
66
67
|
|
|
67
68
|
http_da_used: Annotated[Optional[bool], pydantic.Field(alias="httpDAUsed")] = None
|
|
68
69
|
|
|
70
|
+
metrics: Optional[LakeDatasetMetrics] = None
|
|
71
|
+
|
|
69
72
|
retention_period_in_days: Annotated[
|
|
70
73
|
Optional[float], pydantic.Field(alias="retentionPeriodInDays")
|
|
71
74
|
] = None
|
|
@@ -79,12 +82,3 @@ class CriblLakeDataset(BaseModel):
|
|
|
79
82
|
] = None
|
|
80
83
|
|
|
81
84
|
view_name: Annotated[Optional[str], pydantic.Field(alias="viewName")] = None
|
|
82
|
-
|
|
83
|
-
@field_serializer("format_")
|
|
84
|
-
def serialize_format_(self, value):
|
|
85
|
-
if isinstance(value, str):
|
|
86
|
-
try:
|
|
87
|
-
return models.CriblLakeDatasetFormat(value)
|
|
88
|
-
except ValueError:
|
|
89
|
-
return value
|
|
90
|
-
return value
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .cacheconnection import CacheConnection, CacheConnectionTypedDict
|
|
5
|
+
from .lakedatasetmetrics import LakeDatasetMetrics, LakeDatasetMetricsTypedDict
|
|
5
6
|
from .lakedatasetsearchconfig import (
|
|
6
7
|
LakeDatasetSearchConfig,
|
|
7
8
|
LakeDatasetSearchConfigTypedDict,
|
|
8
9
|
)
|
|
9
|
-
from cribl_control_plane import
|
|
10
|
+
from cribl_control_plane import utils
|
|
10
11
|
from cribl_control_plane.types import BaseModel
|
|
11
12
|
from cribl_control_plane.utils import validate_open_enum
|
|
12
13
|
from enum import Enum
|
|
13
14
|
import pydantic
|
|
14
|
-
from pydantic import field_serializer
|
|
15
15
|
from pydantic.functional_validators import PlainValidator
|
|
16
16
|
from typing import List, Optional
|
|
17
17
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -32,6 +32,7 @@ class CriblLakeDatasetUpdateTypedDict(TypedDict):
|
|
|
32
32
|
format_: NotRequired[CriblLakeDatasetUpdateFormat]
|
|
33
33
|
http_da_used: NotRequired[bool]
|
|
34
34
|
id: NotRequired[str]
|
|
35
|
+
metrics: NotRequired[LakeDatasetMetricsTypedDict]
|
|
35
36
|
retention_period_in_days: NotRequired[float]
|
|
36
37
|
search_config: NotRequired[LakeDatasetSearchConfigTypedDict]
|
|
37
38
|
storage_location_id: NotRequired[str]
|
|
@@ -67,6 +68,8 @@ class CriblLakeDatasetUpdate(BaseModel):
|
|
|
67
68
|
|
|
68
69
|
id: Optional[str] = None
|
|
69
70
|
|
|
71
|
+
metrics: Optional[LakeDatasetMetrics] = None
|
|
72
|
+
|
|
70
73
|
retention_period_in_days: Annotated[
|
|
71
74
|
Optional[float], pydantic.Field(alias="retentionPeriodInDays")
|
|
72
75
|
] = None
|
|
@@ -80,12 +83,3 @@ class CriblLakeDatasetUpdate(BaseModel):
|
|
|
80
83
|
] = None
|
|
81
84
|
|
|
82
85
|
view_name: Annotated[Optional[str], pydantic.Field(alias="viewName")] = None
|
|
83
|
-
|
|
84
|
-
@field_serializer("format_")
|
|
85
|
-
def serialize_format_(self, value):
|
|
86
|
-
if isinstance(value, str):
|
|
87
|
-
try:
|
|
88
|
-
return models.CriblLakeDatasetUpdateFormat(value)
|
|
89
|
-
except ValueError:
|
|
90
|
-
return value
|
|
91
|
-
return value
|
|
@@ -5,12 +5,11 @@ from .datasetmetadataruninfo import (
|
|
|
5
5
|
DatasetMetadataRunInfo,
|
|
6
6
|
DatasetMetadataRunInfoTypedDict,
|
|
7
7
|
)
|
|
8
|
-
from cribl_control_plane import
|
|
8
|
+
from cribl_control_plane import utils
|
|
9
9
|
from cribl_control_plane.types import BaseModel
|
|
10
10
|
from cribl_control_plane.utils import validate_open_enum
|
|
11
11
|
from enum import Enum
|
|
12
12
|
import pydantic
|
|
13
|
-
from pydantic import field_serializer
|
|
14
13
|
from pydantic.functional_validators import PlainValidator
|
|
15
14
|
from typing import List, Optional
|
|
16
15
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -44,12 +43,3 @@ class DatasetMetadata(BaseModel):
|
|
|
44
43
|
latest_run_info: Annotated[
|
|
45
44
|
Optional[DatasetMetadataRunInfo], pydantic.Field(alias="latestRunInfo")
|
|
46
45
|
] = None
|
|
47
|
-
|
|
48
|
-
@field_serializer("scan_mode")
|
|
49
|
-
def serialize_scan_mode(self, value):
|
|
50
|
-
if isinstance(value, str):
|
|
51
|
-
try:
|
|
52
|
-
return models.ScanMode(value)
|
|
53
|
-
except ValueError:
|
|
54
|
-
return value
|
|
55
|
-
return value
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .mappingruleset import MappingRuleset, MappingRulesetTypedDict
|
|
5
|
+
from .productscore import ProductsCore
|
|
6
|
+
from cribl_control_plane.types import BaseModel
|
|
7
|
+
from cribl_control_plane.utils import (
|
|
8
|
+
FieldMetadata,
|
|
9
|
+
PathParamMetadata,
|
|
10
|
+
validate_open_enum,
|
|
11
|
+
)
|
|
12
|
+
from pydantic.functional_validators import PlainValidator
|
|
13
|
+
from typing import List, Optional
|
|
14
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class DeleteAdminProductsMappingsByProductAndIDRequestTypedDict(TypedDict):
|
|
18
|
+
product: ProductsCore
|
|
19
|
+
r"""Name of the Cribl product to delete the Mapping Ruleset for"""
|
|
20
|
+
id: str
|
|
21
|
+
r"""The <code>id</code> of the Mapping Ruleset to delete."""
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class DeleteAdminProductsMappingsByProductAndIDRequest(BaseModel):
|
|
25
|
+
product: Annotated[
|
|
26
|
+
Annotated[ProductsCore, PlainValidator(validate_open_enum(False))],
|
|
27
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
28
|
+
]
|
|
29
|
+
r"""Name of the Cribl product to delete the Mapping Ruleset for"""
|
|
30
|
+
|
|
31
|
+
id: Annotated[
|
|
32
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
33
|
+
]
|
|
34
|
+
r"""The <code>id</code> of the Mapping Ruleset to delete."""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class DeleteAdminProductsMappingsByProductAndIDResponseTypedDict(TypedDict):
|
|
38
|
+
r"""A list containing the deleted Mapping Ruleset objects"""
|
|
39
|
+
|
|
40
|
+
count: NotRequired[int]
|
|
41
|
+
r"""number of items present in the items array"""
|
|
42
|
+
items: NotRequired[List[MappingRulesetTypedDict]]
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class DeleteAdminProductsMappingsByProductAndIDResponse(BaseModel):
|
|
46
|
+
r"""A list containing the deleted Mapping Ruleset objects"""
|
|
47
|
+
|
|
48
|
+
count: Optional[int] = None
|
|
49
|
+
r"""number of items present in the items array"""
|
|
50
|
+
|
|
51
|
+
items: Optional[List[MappingRuleset]] = None
|
|
@@ -3,14 +3,12 @@
|
|
|
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
|
|
7
6
|
from cribl_control_plane.types import BaseModel
|
|
8
7
|
from cribl_control_plane.utils import (
|
|
9
8
|
FieldMetadata,
|
|
10
9
|
PathParamMetadata,
|
|
11
10
|
validate_open_enum,
|
|
12
11
|
)
|
|
13
|
-
from pydantic import field_serializer
|
|
14
12
|
from pydantic.functional_validators import PlainValidator
|
|
15
13
|
from typing import List, Optional
|
|
16
14
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -35,15 +33,6 @@ class DeleteConfigGroupByProductAndIDRequest(BaseModel):
|
|
|
35
33
|
]
|
|
36
34
|
r"""The <code>id</code> of the Worker Group or Edge Fleet to delete."""
|
|
37
35
|
|
|
38
|
-
@field_serializer("product")
|
|
39
|
-
def serialize_product(self, value):
|
|
40
|
-
if isinstance(value, str):
|
|
41
|
-
try:
|
|
42
|
-
return models.ProductsCore(value)
|
|
43
|
-
except ValueError:
|
|
44
|
-
return value
|
|
45
|
-
return value
|
|
46
|
-
|
|
47
36
|
|
|
48
37
|
class DeleteConfigGroupByProductAndIDResponseTypedDict(TypedDict):
|
|
49
38
|
r"""a list of ConfigGroup objects"""
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .evalschema import EvalSchema, EvalSchemaTypedDict
|
|
5
|
+
from cribl_control_plane import utils
|
|
6
|
+
from cribl_control_plane.types import BaseModel
|
|
7
|
+
from cribl_control_plane.utils import validate_open_enum
|
|
8
|
+
from enum import Enum
|
|
9
|
+
import pydantic
|
|
10
|
+
from pydantic.functional_validators import PlainValidator
|
|
11
|
+
from typing import Optional
|
|
12
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class ID(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
16
|
+
EVAL = "eval"
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class EvalFunctionFunctionSpecificConfigsTypedDict(TypedDict):
|
|
20
|
+
pass
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class EvalFunctionFunctionSpecificConfigs(BaseModel):
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class Name(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
28
|
+
EVAL = "Eval"
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class Group(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
32
|
+
STANDARD = "Standard"
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class EvalFunctionTypedDict(TypedDict):
|
|
36
|
+
id: ID
|
|
37
|
+
conf: EvalFunctionFunctionSpecificConfigsTypedDict
|
|
38
|
+
filter_: NotRequired[str]
|
|
39
|
+
r"""Filter that selects data to be fed through this Function"""
|
|
40
|
+
description: NotRequired[str]
|
|
41
|
+
r"""Simple description of this step"""
|
|
42
|
+
disabled: NotRequired[bool]
|
|
43
|
+
r"""If true, data will not be pushed through this function"""
|
|
44
|
+
final: NotRequired[bool]
|
|
45
|
+
r"""If enabled, stops the results of this Function from being passed to the downstream Functions"""
|
|
46
|
+
group_id: NotRequired[str]
|
|
47
|
+
r"""Group ID"""
|
|
48
|
+
name: NotRequired[Name]
|
|
49
|
+
group: NotRequired[Group]
|
|
50
|
+
schema_: NotRequired[EvalSchemaTypedDict]
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
class EvalFunction(BaseModel):
|
|
54
|
+
id: Annotated[ID, PlainValidator(validate_open_enum(False))]
|
|
55
|
+
|
|
56
|
+
conf: EvalFunctionFunctionSpecificConfigs
|
|
57
|
+
|
|
58
|
+
filter_: Annotated[Optional[str], pydantic.Field(alias="filter")] = "true"
|
|
59
|
+
r"""Filter that selects data to be fed through this Function"""
|
|
60
|
+
|
|
61
|
+
description: Optional[str] = None
|
|
62
|
+
r"""Simple description of this step"""
|
|
63
|
+
|
|
64
|
+
disabled: Optional[bool] = None
|
|
65
|
+
r"""If true, data will not be pushed through this function"""
|
|
66
|
+
|
|
67
|
+
final: Optional[bool] = None
|
|
68
|
+
r"""If enabled, stops the results of this Function from being passed to the downstream Functions"""
|
|
69
|
+
|
|
70
|
+
group_id: Annotated[Optional[str], pydantic.Field(alias="groupId")] = None
|
|
71
|
+
r"""Group ID"""
|
|
72
|
+
|
|
73
|
+
name: Annotated[Optional[Name], PlainValidator(validate_open_enum(False))] = None
|
|
74
|
+
|
|
75
|
+
group: Annotated[Optional[Group], PlainValidator(validate_open_enum(False))] = None
|
|
76
|
+
|
|
77
|
+
schema_: Annotated[Optional[EvalSchema], pydantic.Field(alias="schema")] = None
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane.types import BaseModel
|
|
5
|
+
from typing import List, Optional
|
|
6
|
+
from typing_extensions import NotRequired, TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class AddTypedDict(TypedDict):
|
|
10
|
+
value: str
|
|
11
|
+
r"""JavaScript expression to compute the value (can be constant)"""
|
|
12
|
+
name: NotRequired[str]
|
|
13
|
+
disabled: NotRequired[bool]
|
|
14
|
+
r"""Set to No to disable the evaluation of an individual expression"""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class Add(BaseModel):
|
|
18
|
+
value: str
|
|
19
|
+
r"""JavaScript expression to compute the value (can be constant)"""
|
|
20
|
+
|
|
21
|
+
name: Optional[str] = None
|
|
22
|
+
|
|
23
|
+
disabled: Optional[bool] = False
|
|
24
|
+
r"""Set to No to disable the evaluation of an individual expression"""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class EvalSchemaTypedDict(TypedDict):
|
|
28
|
+
add: NotRequired[List[AddTypedDict]]
|
|
29
|
+
r"""Set of key-value pairs to evaluate and add/set"""
|
|
30
|
+
keep: NotRequired[List[str]]
|
|
31
|
+
r"""List of fields to keep. Supports * wildcards. Takes precedence over 'Remove fields'."""
|
|
32
|
+
remove: NotRequired[List[str]]
|
|
33
|
+
r"""List of fields to remove. Supports * wildcards. Fields that match 'Keep fields' will not be removed. Enclose field names containing special characters in single or double quotes."""
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class EvalSchema(BaseModel):
|
|
37
|
+
add: Optional[List[Add]] = None
|
|
38
|
+
r"""Set of key-value pairs to evaluate and add/set"""
|
|
39
|
+
|
|
40
|
+
keep: Optional[List[str]] = None
|
|
41
|
+
r"""List of fields to keep. Supports * wildcards. Takes precedence over 'Remove fields'."""
|
|
42
|
+
|
|
43
|
+
remove: Optional[List[str]] = None
|
|
44
|
+
r"""List of fields to remove. Supports * wildcards. Fields that match 'Keep fields' will not be removed. Enclose field names containing special characters in single or double quotes."""
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .mappingruleset import MappingRuleset, MappingRulesetTypedDict
|
|
5
|
+
from .productscore import ProductsCore
|
|
6
|
+
from cribl_control_plane.types import BaseModel
|
|
7
|
+
from cribl_control_plane.utils import (
|
|
8
|
+
FieldMetadata,
|
|
9
|
+
PathParamMetadata,
|
|
10
|
+
validate_open_enum,
|
|
11
|
+
)
|
|
12
|
+
from pydantic.functional_validators import PlainValidator
|
|
13
|
+
from typing import List, Optional
|
|
14
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class GetAdminProductsMappingsByProductAndIDRequestTypedDict(TypedDict):
|
|
18
|
+
product: ProductsCore
|
|
19
|
+
r"""Name of the Cribl product to get the Mappings for"""
|
|
20
|
+
id: str
|
|
21
|
+
r"""The <code>id</code> of the Worker Group or Edge Fleet Mapping Ruleset to get"""
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class GetAdminProductsMappingsByProductAndIDRequest(BaseModel):
|
|
25
|
+
product: Annotated[
|
|
26
|
+
Annotated[ProductsCore, PlainValidator(validate_open_enum(False))],
|
|
27
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
28
|
+
]
|
|
29
|
+
r"""Name of the Cribl product to get the Mappings for"""
|
|
30
|
+
|
|
31
|
+
id: Annotated[
|
|
32
|
+
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
|
33
|
+
]
|
|
34
|
+
r"""The <code>id</code> of the Worker Group or Edge Fleet Mapping Ruleset to get"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class GetAdminProductsMappingsByProductAndIDResponseTypedDict(TypedDict):
|
|
38
|
+
r"""a list of MappingRuleset objects"""
|
|
39
|
+
|
|
40
|
+
count: NotRequired[int]
|
|
41
|
+
r"""number of items present in the items array"""
|
|
42
|
+
items: NotRequired[List[MappingRulesetTypedDict]]
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class GetAdminProductsMappingsByProductAndIDResponse(BaseModel):
|
|
46
|
+
r"""a list of MappingRuleset objects"""
|
|
47
|
+
|
|
48
|
+
count: Optional[int] = None
|
|
49
|
+
r"""number of items present in the items array"""
|
|
50
|
+
|
|
51
|
+
items: Optional[List[MappingRuleset]] = None
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .mappingruleset import MappingRuleset, MappingRulesetTypedDict
|
|
5
|
+
from .productscore import ProductsCore
|
|
6
|
+
from cribl_control_plane.types import BaseModel
|
|
7
|
+
from cribl_control_plane.utils import (
|
|
8
|
+
FieldMetadata,
|
|
9
|
+
PathParamMetadata,
|
|
10
|
+
validate_open_enum,
|
|
11
|
+
)
|
|
12
|
+
from pydantic.functional_validators import PlainValidator
|
|
13
|
+
from typing import List, Optional
|
|
14
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class GetAdminProductsMappingsByProductRequestTypedDict(TypedDict):
|
|
18
|
+
product: ProductsCore
|
|
19
|
+
r"""Name of the Cribl product to list the Mapping Rulesets for"""
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class GetAdminProductsMappingsByProductRequest(BaseModel):
|
|
23
|
+
product: Annotated[
|
|
24
|
+
Annotated[ProductsCore, PlainValidator(validate_open_enum(False))],
|
|
25
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
26
|
+
]
|
|
27
|
+
r"""Name of the Cribl product to list the Mapping Rulesets for"""
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class GetAdminProductsMappingsByProductResponseTypedDict(TypedDict):
|
|
31
|
+
r"""a list of MappingRuleset objects"""
|
|
32
|
+
|
|
33
|
+
count: NotRequired[int]
|
|
34
|
+
r"""number of items present in the items array"""
|
|
35
|
+
items: NotRequired[List[MappingRulesetTypedDict]]
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class GetAdminProductsMappingsByProductResponse(BaseModel):
|
|
39
|
+
r"""a list of MappingRuleset objects"""
|
|
40
|
+
|
|
41
|
+
count: Optional[int] = None
|
|
42
|
+
r"""number of items present in the items array"""
|
|
43
|
+
|
|
44
|
+
items: Optional[List[MappingRuleset]] = None
|
|
@@ -4,7 +4,6 @@ from __future__ import annotations
|
|
|
4
4
|
from .productscore import ProductsCore
|
|
5
5
|
from .rbacresource import RbacResource
|
|
6
6
|
from .useraccesscontrollist import UserAccessControlList, UserAccessControlListTypedDict
|
|
7
|
-
from cribl_control_plane import models
|
|
8
7
|
from cribl_control_plane.types import BaseModel
|
|
9
8
|
from cribl_control_plane.utils import (
|
|
10
9
|
FieldMetadata,
|
|
@@ -12,7 +11,6 @@ from cribl_control_plane.utils import (
|
|
|
12
11
|
QueryParamMetadata,
|
|
13
12
|
validate_open_enum,
|
|
14
13
|
)
|
|
15
|
-
from pydantic import field_serializer
|
|
16
14
|
from pydantic.functional_validators import PlainValidator
|
|
17
15
|
from typing import List, Optional
|
|
18
16
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -45,24 +43,6 @@ class GetConfigGroupACLByProductAndIDRequest(BaseModel):
|
|
|
45
43
|
] = None
|
|
46
44
|
r"""Filter for limiting the response to ACL entries for the specified RBAC resource type."""
|
|
47
45
|
|
|
48
|
-
@field_serializer("product")
|
|
49
|
-
def serialize_product(self, value):
|
|
50
|
-
if isinstance(value, str):
|
|
51
|
-
try:
|
|
52
|
-
return models.ProductsCore(value)
|
|
53
|
-
except ValueError:
|
|
54
|
-
return value
|
|
55
|
-
return value
|
|
56
|
-
|
|
57
|
-
@field_serializer("type")
|
|
58
|
-
def serialize_type(self, value):
|
|
59
|
-
if isinstance(value, str):
|
|
60
|
-
try:
|
|
61
|
-
return models.RbacResource(value)
|
|
62
|
-
except ValueError:
|
|
63
|
-
return value
|
|
64
|
-
return value
|
|
65
|
-
|
|
66
46
|
|
|
67
47
|
class GetConfigGroupACLByProductAndIDResponseTypedDict(TypedDict):
|
|
68
48
|
r"""a list of UserAccessControlList objects"""
|
|
@@ -4,7 +4,6 @@ from __future__ import annotations
|
|
|
4
4
|
from .productscore import ProductsCore
|
|
5
5
|
from .rbacresource import RbacResource
|
|
6
6
|
from .teamaccesscontrollist import TeamAccessControlList, TeamAccessControlListTypedDict
|
|
7
|
-
from cribl_control_plane import models
|
|
8
7
|
from cribl_control_plane.types import BaseModel
|
|
9
8
|
from cribl_control_plane.utils import (
|
|
10
9
|
FieldMetadata,
|
|
@@ -12,7 +11,6 @@ from cribl_control_plane.utils import (
|
|
|
12
11
|
QueryParamMetadata,
|
|
13
12
|
validate_open_enum,
|
|
14
13
|
)
|
|
15
|
-
from pydantic import field_serializer
|
|
16
14
|
from pydantic.functional_validators import PlainValidator
|
|
17
15
|
from typing import List, Optional
|
|
18
16
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -45,24 +43,6 @@ class GetConfigGroupACLTeamsByProductAndIDRequest(BaseModel):
|
|
|
45
43
|
] = None
|
|
46
44
|
r"""Filter for limiting the response to ACL entries for the specified RBAC resource type."""
|
|
47
45
|
|
|
48
|
-
@field_serializer("product")
|
|
49
|
-
def serialize_product(self, value):
|
|
50
|
-
if isinstance(value, str):
|
|
51
|
-
try:
|
|
52
|
-
return models.ProductsCore(value)
|
|
53
|
-
except ValueError:
|
|
54
|
-
return value
|
|
55
|
-
return value
|
|
56
|
-
|
|
57
|
-
@field_serializer("type")
|
|
58
|
-
def serialize_type(self, value):
|
|
59
|
-
if isinstance(value, str):
|
|
60
|
-
try:
|
|
61
|
-
return models.RbacResource(value)
|
|
62
|
-
except ValueError:
|
|
63
|
-
return value
|
|
64
|
-
return value
|
|
65
|
-
|
|
66
46
|
|
|
67
47
|
class GetConfigGroupACLTeamsByProductAndIDResponseTypedDict(TypedDict):
|
|
68
48
|
r"""a list of TeamAccessControlList objects"""
|
|
@@ -3,7 +3,6 @@
|
|
|
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
|
|
7
6
|
from cribl_control_plane.types import BaseModel
|
|
8
7
|
from cribl_control_plane.utils import (
|
|
9
8
|
FieldMetadata,
|
|
@@ -11,7 +10,6 @@ from cribl_control_plane.utils import (
|
|
|
11
10
|
QueryParamMetadata,
|
|
12
11
|
validate_open_enum,
|
|
13
12
|
)
|
|
14
|
-
from pydantic import field_serializer
|
|
15
13
|
from pydantic.functional_validators import PlainValidator
|
|
16
14
|
from typing import List, Optional
|
|
17
15
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -44,15 +42,6 @@ class GetConfigGroupByProductAndIDRequest(BaseModel):
|
|
|
44
42
|
] = None
|
|
45
43
|
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>."""
|
|
46
44
|
|
|
47
|
-
@field_serializer("product")
|
|
48
|
-
def serialize_product(self, value):
|
|
49
|
-
if isinstance(value, str):
|
|
50
|
-
try:
|
|
51
|
-
return models.ProductsCore(value)
|
|
52
|
-
except ValueError:
|
|
53
|
-
return value
|
|
54
|
-
return value
|
|
55
|
-
|
|
56
45
|
|
|
57
46
|
class GetConfigGroupByProductAndIDResponseTypedDict(TypedDict):
|
|
58
47
|
r"""a list of ConfigGroup objects"""
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .productscore import ProductsCore
|
|
5
|
-
from cribl_control_plane import models
|
|
6
5
|
from cribl_control_plane.types import BaseModel
|
|
7
6
|
from cribl_control_plane.utils import (
|
|
8
7
|
FieldMetadata,
|
|
9
8
|
PathParamMetadata,
|
|
10
9
|
validate_open_enum,
|
|
11
10
|
)
|
|
12
|
-
from pydantic import field_serializer
|
|
13
11
|
from pydantic.functional_validators import PlainValidator
|
|
14
12
|
from typing import List, Optional
|
|
15
13
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -34,15 +32,6 @@ class GetConfigGroupConfigVersionByProductAndIDRequest(BaseModel):
|
|
|
34
32
|
]
|
|
35
33
|
r"""The <code>id</code> of the Worker Group or Edge Fleet to get the configuration version for."""
|
|
36
34
|
|
|
37
|
-
@field_serializer("product")
|
|
38
|
-
def serialize_product(self, value):
|
|
39
|
-
if isinstance(value, str):
|
|
40
|
-
try:
|
|
41
|
-
return models.ProductsCore(value)
|
|
42
|
-
except ValueError:
|
|
43
|
-
return value
|
|
44
|
-
return value
|
|
45
|
-
|
|
46
35
|
|
|
47
36
|
class GetConfigGroupConfigVersionByProductAndIDResponseTypedDict(TypedDict):
|
|
48
37
|
r"""a list of string objects"""
|
|
@@ -3,14 +3,12 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .distributedsummary import DistributedSummary, DistributedSummaryTypedDict
|
|
5
5
|
from .workertypes import WorkerTypes
|
|
6
|
-
from cribl_control_plane import models
|
|
7
6
|
from cribl_control_plane.types import BaseModel
|
|
8
7
|
from cribl_control_plane.utils import (
|
|
9
8
|
FieldMetadata,
|
|
10
9
|
QueryParamMetadata,
|
|
11
10
|
validate_open_enum,
|
|
12
11
|
)
|
|
13
|
-
from pydantic import field_serializer
|
|
14
12
|
from pydantic.functional_validators import PlainValidator
|
|
15
13
|
from typing import List, Optional
|
|
16
14
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -28,15 +26,6 @@ class GetSummaryRequest(BaseModel):
|
|
|
28
26
|
] = None
|
|
29
27
|
r"""Filter for limiting the response by Cribl product: Cribl Stream (<code>worker</code>) or Cribl Edge (<code>managed-edge</code>)."""
|
|
30
28
|
|
|
31
|
-
@field_serializer("mode")
|
|
32
|
-
def serialize_mode(self, value):
|
|
33
|
-
if isinstance(value, str):
|
|
34
|
-
try:
|
|
35
|
-
return models.WorkerTypes(value)
|
|
36
|
-
except ValueError:
|
|
37
|
-
return value
|
|
38
|
-
return value
|
|
39
|
-
|
|
40
29
|
|
|
41
30
|
class GetSummaryResponseTypedDict(TypedDict):
|
|
42
31
|
r"""a list of DistributedSummary objects"""
|
|
@@ -4,12 +4,11 @@ from __future__ import annotations
|
|
|
4
4
|
from .commit import Commit, CommitTypedDict
|
|
5
5
|
from .configgroupcloud import ConfigGroupCloud, ConfigGroupCloudTypedDict
|
|
6
6
|
from .configgrouplookups import ConfigGroupLookups, ConfigGroupLookupsTypedDict
|
|
7
|
-
from cribl_control_plane import
|
|
7
|
+
from cribl_control_plane import 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
|
|
13
12
|
from pydantic.functional_validators import PlainValidator
|
|
14
13
|
from typing import List, Optional
|
|
15
14
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -151,21 +150,3 @@ class GroupCreateRequest(BaseModel):
|
|
|
151
150
|
worker_remote_access: Annotated[
|
|
152
151
|
Optional[bool], pydantic.Field(alias="workerRemoteAccess")
|
|
153
152
|
] = None
|
|
154
|
-
|
|
155
|
-
@field_serializer("estimated_ingest_rate")
|
|
156
|
-
def serialize_estimated_ingest_rate(self, value):
|
|
157
|
-
if isinstance(value, str):
|
|
158
|
-
try:
|
|
159
|
-
return models.GroupCreateRequestEstimatedIngestRate(value)
|
|
160
|
-
except ValueError:
|
|
161
|
-
return value
|
|
162
|
-
return value
|
|
163
|
-
|
|
164
|
-
@field_serializer("type")
|
|
165
|
-
def serialize_type(self, value):
|
|
166
|
-
if isinstance(value, str):
|
|
167
|
-
try:
|
|
168
|
-
return models.GroupCreateRequestType(value)
|
|
169
|
-
except ValueError:
|
|
170
|
-
return value
|
|
171
|
-
return value
|
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .hbleaderinfo import HBLeaderInfo, HBLeaderInfoTypedDict
|
|
5
5
|
from .lookupversions import LookupVersions, LookupVersionsTypedDict
|
|
6
|
-
from cribl_control_plane import
|
|
6
|
+
from cribl_control_plane import utils
|
|
7
7
|
from cribl_control_plane.types import BaseModel
|
|
8
8
|
from cribl_control_plane.utils import validate_open_enum
|
|
9
9
|
from enum import Enum
|
|
10
10
|
import pydantic
|
|
11
|
-
from pydantic import field_serializer
|
|
12
11
|
from pydantic.functional_validators import PlainValidator
|
|
13
12
|
from typing import List, Optional
|
|
14
13
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -105,12 +104,3 @@ class HBCriblInfo(BaseModel):
|
|
|
105
104
|
)
|
|
106
105
|
|
|
107
106
|
version: Optional[str] = None
|
|
108
|
-
|
|
109
|
-
@field_serializer("dist_mode")
|
|
110
|
-
def serialize_dist_mode(self, value):
|
|
111
|
-
if isinstance(value, str):
|
|
112
|
-
try:
|
|
113
|
-
return models.DistMode(value)
|
|
114
|
-
except ValueError:
|
|
115
|
-
return value
|
|
116
|
-
return value
|