cribl-control-plane 0.2.1rc7__py3-none-any.whl → 0.2.1rc8__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 +2 -2
- cribl_control_plane/lakedatasets.py +28 -0
- cribl_control_plane/models/__init__.py +10 -1
- 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/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/deleteconfiggroupbyproductandidop.py +0 -11
- 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/jobinfo.py +10 -4
- cribl_control_plane/models/jobstatus.py +1 -11
- cribl_control_plane/models/lakedatasetmetrics.py +17 -0
- cribl_control_plane/models/listconfiggroupbyproductop.py +0 -11
- 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/resourcepolicy.py +0 -11
- 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/updateconfiggroupbyproductandidop.py +0 -11
- cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +0 -11
- {cribl_control_plane-0.2.1rc7.dist-info → cribl_control_plane-0.2.1rc8.dist-info}/METADATA +25 -7
- {cribl_control_plane-0.2.1rc7.dist-info → cribl_control_plane-0.2.1rc8.dist-info}/RECORD +155 -154
- {cribl_control_plane-0.2.1rc7.dist-info → cribl_control_plane-0.2.1rc8.dist-info}/WHEEL +0 -0
cribl_control_plane/_version.py
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "cribl-control-plane"
|
|
6
|
-
__version__: str = "0.2.
|
|
7
|
-
__openapi_doc_version__: str = "4.15.0-alpha.
|
|
8
|
-
__gen_version__: str = "2.731.
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.2.
|
|
6
|
+
__version__: str = "0.2.1rc8"
|
|
7
|
+
__openapi_doc_version__: str = "4.15.0-alpha.1762249156162-b384ad31"
|
|
8
|
+
__gen_version__: str = "2.731.6"
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.2.1rc8 2.731.6 4.15.0-alpha.1762249156162-b384ad31 cribl-control-plane"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
|
@@ -259,7 +259,7 @@ class GroupsSDK(BaseSDK):
|
|
|
259
259
|
|
|
260
260
|
Create a new Worker Group or Edge Fleet for the specified Cribl product.
|
|
261
261
|
|
|
262
|
-
:param product: Name of the Cribl product to add the Worker Group or Edge Fleet to.
|
|
262
|
+
:param product: required Name of the Cribl product to add the Worker Group or Edge Fleet to.
|
|
263
263
|
:param id:
|
|
264
264
|
:param cloud:
|
|
265
265
|
:param deploying_worker_count:
|
|
@@ -440,7 +440,7 @@ class GroupsSDK(BaseSDK):
|
|
|
440
440
|
|
|
441
441
|
Create a new Worker Group or Edge Fleet for the specified Cribl product.
|
|
442
442
|
|
|
443
|
-
:param product: Name of the Cribl product to add the Worker Group or Edge Fleet to.
|
|
443
|
+
:param product: required Name of the Cribl product to add the Worker Group or Edge Fleet to.
|
|
444
444
|
:param id:
|
|
445
445
|
:param cloud:
|
|
446
446
|
:param deploying_worker_count:
|
|
@@ -24,6 +24,9 @@ class LakeDatasets(BaseSDK):
|
|
|
24
24
|
description: Optional[str] = None,
|
|
25
25
|
format_: Optional[models.CriblLakeDatasetFormat] = None,
|
|
26
26
|
http_da_used: Optional[bool] = None,
|
|
27
|
+
metrics: Optional[
|
|
28
|
+
Union[models.LakeDatasetMetrics, models.LakeDatasetMetricsTypedDict]
|
|
29
|
+
] = None,
|
|
27
30
|
retention_period_in_days: Optional[float] = None,
|
|
28
31
|
search_config: Optional[
|
|
29
32
|
Union[
|
|
@@ -50,6 +53,7 @@ class LakeDatasets(BaseSDK):
|
|
|
50
53
|
:param description:
|
|
51
54
|
:param format_:
|
|
52
55
|
:param http_da_used:
|
|
56
|
+
:param metrics:
|
|
53
57
|
:param retention_period_in_days:
|
|
54
58
|
:param search_config:
|
|
55
59
|
:param storage_location_id:
|
|
@@ -82,6 +86,9 @@ class LakeDatasets(BaseSDK):
|
|
|
82
86
|
format_=format_,
|
|
83
87
|
http_da_used=http_da_used,
|
|
84
88
|
id=id,
|
|
89
|
+
metrics=utils.get_pydantic_model(
|
|
90
|
+
metrics, Optional[models.LakeDatasetMetrics]
|
|
91
|
+
),
|
|
85
92
|
retention_period_in_days=retention_period_in_days,
|
|
86
93
|
search_config=utils.get_pydantic_model(
|
|
87
94
|
search_config, Optional[models.LakeDatasetSearchConfig]
|
|
@@ -168,6 +175,9 @@ class LakeDatasets(BaseSDK):
|
|
|
168
175
|
description: Optional[str] = None,
|
|
169
176
|
format_: Optional[models.CriblLakeDatasetFormat] = None,
|
|
170
177
|
http_da_used: Optional[bool] = None,
|
|
178
|
+
metrics: Optional[
|
|
179
|
+
Union[models.LakeDatasetMetrics, models.LakeDatasetMetricsTypedDict]
|
|
180
|
+
] = None,
|
|
171
181
|
retention_period_in_days: Optional[float] = None,
|
|
172
182
|
search_config: Optional[
|
|
173
183
|
Union[
|
|
@@ -194,6 +204,7 @@ class LakeDatasets(BaseSDK):
|
|
|
194
204
|
:param description:
|
|
195
205
|
:param format_:
|
|
196
206
|
:param http_da_used:
|
|
207
|
+
:param metrics:
|
|
197
208
|
:param retention_period_in_days:
|
|
198
209
|
:param search_config:
|
|
199
210
|
:param storage_location_id:
|
|
@@ -226,6 +237,9 @@ class LakeDatasets(BaseSDK):
|
|
|
226
237
|
format_=format_,
|
|
227
238
|
http_da_used=http_da_used,
|
|
228
239
|
id=id,
|
|
240
|
+
metrics=utils.get_pydantic_model(
|
|
241
|
+
metrics, Optional[models.LakeDatasetMetrics]
|
|
242
|
+
),
|
|
229
243
|
retention_period_in_days=retention_period_in_days,
|
|
230
244
|
search_config=utils.get_pydantic_model(
|
|
231
245
|
search_config, Optional[models.LakeDatasetSearchConfig]
|
|
@@ -859,6 +873,9 @@ class LakeDatasets(BaseSDK):
|
|
|
859
873
|
format_: Optional[models.CriblLakeDatasetUpdateFormat] = None,
|
|
860
874
|
http_da_used: Optional[bool] = None,
|
|
861
875
|
id: Optional[str] = None,
|
|
876
|
+
metrics: Optional[
|
|
877
|
+
Union[models.LakeDatasetMetrics, models.LakeDatasetMetricsTypedDict]
|
|
878
|
+
] = None,
|
|
862
879
|
retention_period_in_days: Optional[float] = None,
|
|
863
880
|
search_config: Optional[
|
|
864
881
|
Union[
|
|
@@ -886,6 +903,7 @@ class LakeDatasets(BaseSDK):
|
|
|
886
903
|
:param format_:
|
|
887
904
|
:param http_da_used:
|
|
888
905
|
:param id:
|
|
906
|
+
:param metrics:
|
|
889
907
|
:param retention_period_in_days:
|
|
890
908
|
:param search_config:
|
|
891
909
|
:param storage_location_id:
|
|
@@ -919,6 +937,9 @@ class LakeDatasets(BaseSDK):
|
|
|
919
937
|
format_=format_,
|
|
920
938
|
http_da_used=http_da_used,
|
|
921
939
|
id=id,
|
|
940
|
+
metrics=utils.get_pydantic_model(
|
|
941
|
+
metrics, Optional[models.LakeDatasetMetrics]
|
|
942
|
+
),
|
|
922
943
|
retention_period_in_days=retention_period_in_days,
|
|
923
944
|
search_config=utils.get_pydantic_model(
|
|
924
945
|
search_config, Optional[models.LakeDatasetSearchConfig]
|
|
@@ -1006,6 +1027,9 @@ class LakeDatasets(BaseSDK):
|
|
|
1006
1027
|
format_: Optional[models.CriblLakeDatasetUpdateFormat] = None,
|
|
1007
1028
|
http_da_used: Optional[bool] = None,
|
|
1008
1029
|
id: Optional[str] = None,
|
|
1030
|
+
metrics: Optional[
|
|
1031
|
+
Union[models.LakeDatasetMetrics, models.LakeDatasetMetricsTypedDict]
|
|
1032
|
+
] = None,
|
|
1009
1033
|
retention_period_in_days: Optional[float] = None,
|
|
1010
1034
|
search_config: Optional[
|
|
1011
1035
|
Union[
|
|
@@ -1033,6 +1057,7 @@ class LakeDatasets(BaseSDK):
|
|
|
1033
1057
|
:param format_:
|
|
1034
1058
|
:param http_da_used:
|
|
1035
1059
|
:param id:
|
|
1060
|
+
:param metrics:
|
|
1036
1061
|
:param retention_period_in_days:
|
|
1037
1062
|
:param search_config:
|
|
1038
1063
|
:param storage_location_id:
|
|
@@ -1066,6 +1091,9 @@ class LakeDatasets(BaseSDK):
|
|
|
1066
1091
|
format_=format_,
|
|
1067
1092
|
http_da_used=http_da_used,
|
|
1068
1093
|
id=id,
|
|
1094
|
+
metrics=utils.get_pydantic_model(
|
|
1095
|
+
metrics, Optional[models.LakeDatasetMetrics]
|
|
1096
|
+
),
|
|
1069
1097
|
retention_period_in_days=retention_period_in_days,
|
|
1070
1098
|
search_config=utils.get_pydantic_model(
|
|
1071
1099
|
search_config, Optional[models.LakeDatasetSearchConfig]
|
|
@@ -1803,8 +1803,9 @@ if TYPE_CHECKING:
|
|
|
1803
1803
|
InputZscalerHecType,
|
|
1804
1804
|
InputZscalerHecTypedDict,
|
|
1805
1805
|
)
|
|
1806
|
-
from .jobinfo import JobInfo, JobInfoTypedDict
|
|
1806
|
+
from .jobinfo import JobInfo, JobInfoTypedDict, Stats, StatsTypedDict
|
|
1807
1807
|
from .jobstatus import JobStatus, JobStatusTypedDict, State
|
|
1808
|
+
from .lakedatasetmetrics import LakeDatasetMetrics, LakeDatasetMetricsTypedDict
|
|
1808
1809
|
from .lakedatasetsearchconfig import (
|
|
1809
1810
|
LakeDatasetSearchConfig,
|
|
1810
1811
|
LakeDatasetSearchConfigTypedDict,
|
|
@@ -4938,6 +4939,8 @@ __all__ = [
|
|
|
4938
4939
|
"JobInfoTypedDict",
|
|
4939
4940
|
"JobStatus",
|
|
4940
4941
|
"JobStatusTypedDict",
|
|
4942
|
+
"LakeDatasetMetrics",
|
|
4943
|
+
"LakeDatasetMetricsTypedDict",
|
|
4941
4944
|
"LakeDatasetSearchConfig",
|
|
4942
4945
|
"LakeDatasetSearchConfigTypedDict",
|
|
4943
4946
|
"LakehouseConnectionType",
|
|
@@ -6300,6 +6303,8 @@ __all__ = [
|
|
|
6300
6303
|
"SplunkHecMetadata",
|
|
6301
6304
|
"SplunkHecMetadataTypedDict",
|
|
6302
6305
|
"State",
|
|
6306
|
+
"Stats",
|
|
6307
|
+
"StatsTypedDict",
|
|
6303
6308
|
"Status",
|
|
6304
6309
|
"Subscription",
|
|
6305
6310
|
"SubscriptionMetadatum",
|
|
@@ -7967,9 +7972,13 @@ _dynamic_imports: dict[str, str] = {
|
|
|
7967
7972
|
"InputZscalerHecTypedDict": ".inputzscalerhec",
|
|
7968
7973
|
"JobInfo": ".jobinfo",
|
|
7969
7974
|
"JobInfoTypedDict": ".jobinfo",
|
|
7975
|
+
"Stats": ".jobinfo",
|
|
7976
|
+
"StatsTypedDict": ".jobinfo",
|
|
7970
7977
|
"JobStatus": ".jobstatus",
|
|
7971
7978
|
"JobStatusTypedDict": ".jobstatus",
|
|
7972
7979
|
"State": ".jobstatus",
|
|
7980
|
+
"LakeDatasetMetrics": ".lakedatasetmetrics",
|
|
7981
|
+
"LakeDatasetMetricsTypedDict": ".lakedatasetmetrics",
|
|
7973
7982
|
"LakeDatasetSearchConfig": ".lakedatasetsearchconfig",
|
|
7974
7983
|
"LakeDatasetSearchConfigTypedDict": ".lakedatasetsearchconfig",
|
|
7975
7984
|
"LakehouseConnectionType": ".lakehouseconnectiontype",
|
|
@@ -3,11 +3,9 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .cacheconnectionbackfillstatus import CacheConnectionBackfillStatus
|
|
5
5
|
from .lakehouseconnectiontype import LakehouseConnectionType
|
|
6
|
-
from cribl_control_plane import models
|
|
7
6
|
from cribl_control_plane.types import BaseModel
|
|
8
7
|
from cribl_control_plane.utils import validate_open_enum
|
|
9
8
|
import pydantic
|
|
10
|
-
from pydantic import field_serializer
|
|
11
9
|
from pydantic.functional_validators import PlainValidator
|
|
12
10
|
from typing import List, Optional
|
|
13
11
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -52,21 +50,3 @@ class CacheConnection(BaseModel):
|
|
|
52
50
|
migration_query_id: Annotated[
|
|
53
51
|
Optional[str], pydantic.Field(alias="migrationQueryId")
|
|
54
52
|
] = None
|
|
55
|
-
|
|
56
|
-
@field_serializer("backfill_status")
|
|
57
|
-
def serialize_backfill_status(self, value):
|
|
58
|
-
if isinstance(value, str):
|
|
59
|
-
try:
|
|
60
|
-
return models.CacheConnectionBackfillStatus(value)
|
|
61
|
-
except ValueError:
|
|
62
|
-
return value
|
|
63
|
-
return value
|
|
64
|
-
|
|
65
|
-
@field_serializer("lakehouse_connection_type")
|
|
66
|
-
def serialize_lakehouse_connection_type(self, value):
|
|
67
|
-
if isinstance(value, str):
|
|
68
|
-
try:
|
|
69
|
-
return models.LakehouseConnectionType(value)
|
|
70
|
-
except ValueError:
|
|
71
|
-
return value
|
|
72
|
-
return value
|
|
@@ -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 ConfigGroup(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.ConfigGroupEstimatedIngestRate(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.ConfigGroupType(value)
|
|
169
|
-
except ValueError:
|
|
170
|
-
return value
|
|
171
|
-
return value
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .cloudprovider import CloudProvider
|
|
5
|
-
from cribl_control_plane import models
|
|
6
5
|
from cribl_control_plane.types import BaseModel, Nullable, UNSET_SENTINEL
|
|
7
6
|
from cribl_control_plane.utils import validate_open_enum
|
|
8
|
-
from pydantic import
|
|
7
|
+
from pydantic import model_serializer
|
|
9
8
|
from pydantic.functional_validators import PlainValidator
|
|
10
9
|
from typing_extensions import Annotated, TypedDict
|
|
11
10
|
|
|
@@ -22,15 +21,6 @@ class ConfigGroupCloud(BaseModel):
|
|
|
22
21
|
|
|
23
22
|
region: str
|
|
24
23
|
|
|
25
|
-
@field_serializer("provider")
|
|
26
|
-
def serialize_provider(self, value):
|
|
27
|
-
if isinstance(value, str):
|
|
28
|
-
try:
|
|
29
|
-
return Nullable[models.CloudProvider](value)
|
|
30
|
-
except ValueError:
|
|
31
|
-
return value
|
|
32
|
-
return value
|
|
33
|
-
|
|
34
24
|
@model_serializer(mode="wrap")
|
|
35
25
|
def serialize_model(self, handler):
|
|
36
26
|
optional_fields = []
|
|
@@ -4,7 +4,6 @@ from __future__ import annotations
|
|
|
4
4
|
from .configgroup import ConfigGroup, ConfigGroupTypedDict
|
|
5
5
|
from .groupcreaterequest import GroupCreateRequest, GroupCreateRequestTypedDict
|
|
6
6
|
from .productscore import ProductsCore
|
|
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
|
RequestMetadata,
|
|
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
|
|
@@ -20,7 +18,7 @@ from typing_extensions import Annotated, NotRequired, TypedDict
|
|
|
20
18
|
|
|
21
19
|
class CreateConfigGroupByProductRequestTypedDict(TypedDict):
|
|
22
20
|
product: ProductsCore
|
|
23
|
-
r"""Name of the Cribl product to add the Worker Group or Edge Fleet to."""
|
|
21
|
+
r"""required Name of the Cribl product to add the Worker Group or Edge Fleet to."""
|
|
24
22
|
group_create_request: GroupCreateRequestTypedDict
|
|
25
23
|
r"""GroupCreateRequest object"""
|
|
26
24
|
|
|
@@ -30,7 +28,7 @@ class CreateConfigGroupByProductRequest(BaseModel):
|
|
|
30
28
|
Annotated[ProductsCore, PlainValidator(validate_open_enum(False))],
|
|
31
29
|
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
32
30
|
]
|
|
33
|
-
r"""Name of the Cribl product to add the Worker Group or Edge Fleet to."""
|
|
31
|
+
r"""required Name of the Cribl product to add the Worker Group or Edge Fleet to."""
|
|
34
32
|
|
|
35
33
|
group_create_request: Annotated[
|
|
36
34
|
GroupCreateRequest,
|
|
@@ -38,15 +36,6 @@ class CreateConfigGroupByProductRequest(BaseModel):
|
|
|
38
36
|
]
|
|
39
37
|
r"""GroupCreateRequest object"""
|
|
40
38
|
|
|
41
|
-
@field_serializer("product")
|
|
42
|
-
def serialize_product(self, value):
|
|
43
|
-
if isinstance(value, str):
|
|
44
|
-
try:
|
|
45
|
-
return models.ProductsCore(value)
|
|
46
|
-
except ValueError:
|
|
47
|
-
return value
|
|
48
|
-
return value
|
|
49
|
-
|
|
50
39
|
|
|
51
40
|
class CreateConfigGroupByProductResponseTypedDict(TypedDict):
|
|
52
41
|
r"""a list of ConfigGroup objects"""
|
|
@@ -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
|
|
@@ -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"""
|
|
@@ -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"""
|