cribl-control-plane 0.2.1rc7__py3-none-any.whl → 0.3.0a1__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.

Files changed (179) hide show
  1. cribl_control_plane/_version.py +4 -4
  2. cribl_control_plane/errors/__init__.py +5 -8
  3. cribl_control_plane/errors/{healthserverstatus_error.py → healthstatus_error.py} +9 -10
  4. cribl_control_plane/groups_sdk.py +28 -52
  5. cribl_control_plane/health.py +16 -22
  6. cribl_control_plane/models/__init__.py +54 -217
  7. cribl_control_plane/models/appmode.py +14 -0
  8. cribl_control_plane/models/authtoken.py +1 -5
  9. cribl_control_plane/models/cacheconnection.py +0 -20
  10. cribl_control_plane/models/configgroup.py +7 -55
  11. cribl_control_plane/models/configgroupcloud.py +1 -11
  12. cribl_control_plane/models/createconfiggroupbyproductop.py +5 -17
  13. cribl_control_plane/models/createroutesappendbyidop.py +2 -2
  14. cribl_control_plane/models/createversionundoop.py +3 -3
  15. cribl_control_plane/models/cribllakedataset.py +1 -11
  16. cribl_control_plane/models/cribllakedatasetupdate.py +1 -11
  17. cribl_control_plane/models/datasetmetadata.py +1 -11
  18. cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +0 -11
  19. cribl_control_plane/models/deleteoutputpqbyidop.py +2 -2
  20. cribl_control_plane/models/distributedsummary.py +0 -6
  21. cribl_control_plane/models/error.py +16 -0
  22. cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +0 -20
  23. cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +0 -20
  24. cribl_control_plane/models/getconfiggroupbyproductandidop.py +0 -11
  25. cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +0 -11
  26. cribl_control_plane/models/gethealthinfoop.py +17 -0
  27. cribl_control_plane/models/getsummaryop.py +0 -11
  28. cribl_control_plane/models/hbcriblinfo.py +3 -24
  29. cribl_control_plane/models/{healthserverstatus.py → healthstatus.py} +8 -27
  30. cribl_control_plane/models/heartbeatmetadata.py +0 -3
  31. cribl_control_plane/models/input.py +78 -80
  32. cribl_control_plane/models/inputappscope.py +17 -80
  33. cribl_control_plane/models/inputazureblob.py +1 -33
  34. cribl_control_plane/models/inputcollection.py +1 -24
  35. cribl_control_plane/models/inputconfluentcloud.py +18 -195
  36. cribl_control_plane/models/inputcribl.py +1 -24
  37. cribl_control_plane/models/inputcriblhttp.py +17 -62
  38. cribl_control_plane/models/inputcribllakehttp.py +17 -62
  39. cribl_control_plane/models/inputcriblmetrics.py +1 -24
  40. cribl_control_plane/models/inputcribltcp.py +17 -62
  41. cribl_control_plane/models/inputcrowdstrike.py +1 -54
  42. cribl_control_plane/models/inputdatadogagent.py +17 -62
  43. cribl_control_plane/models/inputdatagen.py +1 -24
  44. cribl_control_plane/models/inputedgeprometheus.py +34 -147
  45. cribl_control_plane/models/inputelastic.py +27 -119
  46. cribl_control_plane/models/inputeventhub.py +1 -182
  47. cribl_control_plane/models/inputexec.py +1 -33
  48. cribl_control_plane/models/inputfile.py +3 -42
  49. cribl_control_plane/models/inputfirehose.py +17 -62
  50. cribl_control_plane/models/inputgooglepubsub.py +1 -36
  51. cribl_control_plane/models/inputgrafana.py +32 -157
  52. cribl_control_plane/models/inputhttp.py +17 -62
  53. cribl_control_plane/models/inputhttpraw.py +17 -62
  54. cribl_control_plane/models/inputjournalfiles.py +1 -24
  55. cribl_control_plane/models/inputkafka.py +17 -189
  56. cribl_control_plane/models/inputkinesis.py +1 -80
  57. cribl_control_plane/models/inputkubeevents.py +1 -24
  58. cribl_control_plane/models/inputkubelogs.py +1 -33
  59. cribl_control_plane/models/inputkubemetrics.py +1 -33
  60. cribl_control_plane/models/inputloki.py +17 -71
  61. cribl_control_plane/models/inputmetrics.py +17 -62
  62. cribl_control_plane/models/inputmodeldriventelemetry.py +17 -62
  63. cribl_control_plane/models/inputmsk.py +18 -81
  64. cribl_control_plane/models/inputnetflow.py +1 -24
  65. cribl_control_plane/models/inputoffice365mgmt.py +1 -67
  66. cribl_control_plane/models/inputoffice365msgtrace.py +1 -67
  67. cribl_control_plane/models/inputoffice365service.py +1 -67
  68. cribl_control_plane/models/inputopentelemetry.py +16 -92
  69. cribl_control_plane/models/inputprometheus.py +34 -138
  70. cribl_control_plane/models/inputprometheusrw.py +17 -71
  71. cribl_control_plane/models/inputrawudp.py +1 -24
  72. cribl_control_plane/models/inputs3.py +1 -45
  73. cribl_control_plane/models/inputs3inventory.py +1 -54
  74. cribl_control_plane/models/inputsecuritylake.py +1 -54
  75. cribl_control_plane/models/inputsnmp.py +1 -40
  76. cribl_control_plane/models/inputsplunk.py +17 -85
  77. cribl_control_plane/models/inputsplunkhec.py +16 -70
  78. cribl_control_plane/models/inputsplunksearch.py +1 -63
  79. cribl_control_plane/models/inputsqs.py +1 -56
  80. cribl_control_plane/models/inputsyslog.py +32 -121
  81. cribl_control_plane/models/inputsystemmetrics.py +9 -142
  82. cribl_control_plane/models/inputsystemstate.py +1 -33
  83. cribl_control_plane/models/inputtcp.py +17 -81
  84. cribl_control_plane/models/inputtcpjson.py +17 -71
  85. cribl_control_plane/models/inputwef.py +1 -71
  86. cribl_control_plane/models/inputwindowsmetrics.py +9 -129
  87. cribl_control_plane/models/inputwineventlogs.py +1 -60
  88. cribl_control_plane/models/inputwiz.py +1 -45
  89. cribl_control_plane/models/inputwizwebhook.py +17 -62
  90. cribl_control_plane/models/inputzscalerhec.py +16 -70
  91. cribl_control_plane/models/jobinfo.py +1 -4
  92. cribl_control_plane/models/jobstatus.py +3 -34
  93. cribl_control_plane/models/listconfiggroupbyproductop.py +0 -11
  94. cribl_control_plane/models/logininfo.py +3 -3
  95. cribl_control_plane/models/masterworkerentry.py +1 -11
  96. cribl_control_plane/models/nodeprovidedinfo.py +1 -11
  97. cribl_control_plane/models/nodeupgradestatus.py +0 -38
  98. cribl_control_plane/models/output.py +88 -93
  99. cribl_control_plane/models/outputazureblob.py +1 -110
  100. cribl_control_plane/models/outputazuredataexplorer.py +87 -452
  101. cribl_control_plane/models/outputazureeventhub.py +19 -281
  102. cribl_control_plane/models/outputazurelogs.py +19 -115
  103. cribl_control_plane/models/outputchronicle.py +19 -115
  104. cribl_control_plane/models/outputclickhouse.py +19 -155
  105. cribl_control_plane/models/outputcloudwatch.py +19 -106
  106. cribl_control_plane/models/outputconfluentcloud.py +38 -311
  107. cribl_control_plane/models/outputcriblhttp.py +19 -135
  108. cribl_control_plane/models/outputcribllake.py +1 -97
  109. cribl_control_plane/models/outputcribltcp.py +19 -132
  110. cribl_control_plane/models/outputcrowdstrikenextgensiem.py +20 -129
  111. cribl_control_plane/models/outputdatadog.py +19 -159
  112. cribl_control_plane/models/outputdataset.py +19 -143
  113. cribl_control_plane/models/outputdiskspool.py +1 -11
  114. cribl_control_plane/models/outputdls3.py +1 -152
  115. cribl_control_plane/models/outputdynatracehttp.py +19 -160
  116. cribl_control_plane/models/outputdynatraceotlp.py +19 -160
  117. cribl_control_plane/models/outputelastic.py +19 -163
  118. cribl_control_plane/models/outputelasticcloud.py +19 -140
  119. cribl_control_plane/models/outputexabeam.py +1 -61
  120. cribl_control_plane/models/outputfilesystem.py +1 -87
  121. cribl_control_plane/models/outputgooglechronicle.py +20 -166
  122. cribl_control_plane/models/outputgooglecloudlogging.py +20 -131
  123. cribl_control_plane/models/outputgooglecloudstorage.py +1 -136
  124. cribl_control_plane/models/outputgooglepubsub.py +19 -106
  125. cribl_control_plane/models/outputgrafanacloud.py +37 -288
  126. cribl_control_plane/models/outputgraphite.py +19 -105
  127. cribl_control_plane/models/outputhoneycomb.py +19 -115
  128. cribl_control_plane/models/outputhumiohec.py +19 -126
  129. cribl_control_plane/models/outputinfluxdb.py +19 -130
  130. cribl_control_plane/models/outputkafka.py +34 -302
  131. cribl_control_plane/models/outputkinesis.py +19 -133
  132. cribl_control_plane/models/outputloki.py +17 -129
  133. cribl_control_plane/models/outputminio.py +1 -145
  134. cribl_control_plane/models/outputmsk.py +34 -193
  135. cribl_control_plane/models/outputnewrelic.py +19 -136
  136. cribl_control_plane/models/outputnewrelicevents.py +20 -128
  137. cribl_control_plane/models/outputopentelemetry.py +19 -178
  138. cribl_control_plane/models/outputprometheus.py +19 -115
  139. cribl_control_plane/models/outputring.py +1 -31
  140. cribl_control_plane/models/outputs3.py +1 -152
  141. cribl_control_plane/models/outputsecuritylake.py +1 -114
  142. cribl_control_plane/models/outputsentinel.py +19 -135
  143. cribl_control_plane/models/outputsentineloneaisiem.py +20 -134
  144. cribl_control_plane/models/outputservicenow.py +19 -168
  145. cribl_control_plane/models/outputsignalfx.py +19 -115
  146. cribl_control_plane/models/outputsns.py +17 -113
  147. cribl_control_plane/models/outputsplunk.py +19 -153
  148. cribl_control_plane/models/outputsplunkhec.py +19 -208
  149. cribl_control_plane/models/outputsplunklb.py +19 -182
  150. cribl_control_plane/models/outputsqs.py +17 -124
  151. cribl_control_plane/models/outputstatsd.py +19 -105
  152. cribl_control_plane/models/outputstatsdext.py +19 -105
  153. cribl_control_plane/models/outputsumologic.py +19 -117
  154. cribl_control_plane/models/outputsyslog.py +96 -259
  155. cribl_control_plane/models/outputtcpjson.py +19 -141
  156. cribl_control_plane/models/outputwavefront.py +19 -115
  157. cribl_control_plane/models/outputwebhook.py +19 -161
  158. cribl_control_plane/models/outputxsiam.py +17 -113
  159. cribl_control_plane/models/packinfo.py +5 -8
  160. cribl_control_plane/models/packinstallinfo.py +5 -8
  161. cribl_control_plane/models/resourcepolicy.py +0 -11
  162. cribl_control_plane/models/{uploadpackresponse.py → routecloneconf.py} +4 -4
  163. cribl_control_plane/models/routeconf.py +4 -3
  164. cribl_control_plane/models/runnablejobcollection.py +9 -72
  165. cribl_control_plane/models/runnablejobexecutor.py +9 -32
  166. cribl_control_plane/models/runnablejobscheduledsearch.py +9 -23
  167. cribl_control_plane/models/updateconfiggroupbyproductandidop.py +0 -11
  168. cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +0 -11
  169. cribl_control_plane/packs.py +7 -202
  170. cribl_control_plane/routes_sdk.py +6 -6
  171. cribl_control_plane/tokens.py +15 -23
  172. {cribl_control_plane-0.2.1rc7.dist-info → cribl_control_plane-0.3.0a1.dist-info}/METADATA +9 -50
  173. cribl_control_plane-0.3.0a1.dist-info/RECORD +330 -0
  174. cribl_control_plane/models/groupcreaterequest.py +0 -171
  175. cribl_control_plane/models/outpostnodeinfo.py +0 -16
  176. cribl_control_plane/models/outputdatabricks.py +0 -482
  177. cribl_control_plane/models/updatepacksop.py +0 -25
  178. cribl_control_plane-0.2.1rc7.dist-info/RECORD +0 -331
  179. {cribl_control_plane-0.2.1rc7.dist-info → cribl_control_plane-0.3.0a1.dist-info}/WHEEL +0 -0
@@ -1,14 +1,12 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
+ from .appmode import AppMode
4
5
  from .hbleaderinfo import HBLeaderInfo, HBLeaderInfoTypedDict
5
6
  from .lookupversions import LookupVersions, LookupVersionsTypedDict
6
- from cribl_control_plane import models, utils
7
7
  from cribl_control_plane.types import BaseModel
8
8
  from cribl_control_plane.utils import validate_open_enum
9
- from enum import Enum
10
9
  import pydantic
11
- from pydantic import field_serializer
12
10
  from pydantic.functional_validators import PlainValidator
13
11
  from typing import List, Optional
14
12
  from typing_extensions import Annotated, NotRequired, TypedDict
@@ -38,19 +36,9 @@ class Config(BaseModel):
38
36
  version: Optional[str] = None
39
37
 
40
38
 
41
- class DistMode(str, Enum, metaclass=utils.OpenEnumMeta):
42
- EDGE = "edge"
43
- WORKER = "worker"
44
- SINGLE = "single"
45
- MASTER = "master"
46
- MANAGED_EDGE = "managed-edge"
47
- OUTPOST = "outpost"
48
- SEARCH_SUPERVISOR = "search-supervisor"
49
-
50
-
51
39
  class HBCriblInfoTypedDict(TypedDict):
52
40
  config: ConfigTypedDict
53
- dist_mode: DistMode
41
+ dist_mode: AppMode
54
42
  group: str
55
43
  guid: str
56
44
  start_time: float
@@ -70,7 +58,7 @@ class HBCriblInfo(BaseModel):
70
58
  config: Config
71
59
 
72
60
  dist_mode: Annotated[
73
- Annotated[DistMode, PlainValidator(validate_open_enum(False))],
61
+ Annotated[AppMode, PlainValidator(validate_open_enum(False))],
74
62
  pydantic.Field(alias="distMode"),
75
63
  ]
76
64
 
@@ -105,12 +93,3 @@ class HBCriblInfo(BaseModel):
105
93
  )
106
94
 
107
95
  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
@@ -1,55 +1,36 @@
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 models, utils
4
+ from cribl_control_plane import 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
10
9
  from pydantic.functional_validators import PlainValidator
11
10
  from typing import Optional
12
11
  from typing_extensions import Annotated, NotRequired, TypedDict
13
12
 
14
13
 
15
14
  class Role(str, Enum, metaclass=utils.OpenEnumMeta):
16
- STANDBY = "standby"
17
15
  PRIMARY = "primary"
16
+ STANDBY = "standby"
18
17
 
19
18
 
20
19
  class Status(str, Enum, metaclass=utils.OpenEnumMeta):
21
- SHUTTING_DOWN = "shutting down"
22
20
  HEALTHY = "healthy"
21
+ SHUTTING_DOWN = "shutting down"
23
22
  STANDBY = "standby"
24
23
 
25
24
 
26
- class HealthServerStatusTypedDict(TypedDict):
27
- start_time: float
25
+ class HealthStatusTypedDict(TypedDict):
28
26
  status: Status
27
+ start_time: float
29
28
  role: NotRequired[Role]
30
29
 
31
30
 
32
- class HealthServerStatus(BaseModel):
33
- start_time: Annotated[float, pydantic.Field(alias="startTime")]
34
-
31
+ class HealthStatus(BaseModel):
35
32
  status: Annotated[Status, PlainValidator(validate_open_enum(False))]
36
33
 
37
- role: Annotated[Optional[Role], PlainValidator(validate_open_enum(False))] = None
34
+ start_time: Annotated[float, pydantic.Field(alias="startTime")]
38
35
 
39
- @field_serializer("role")
40
- def serialize_role(self, value):
41
- if isinstance(value, str):
42
- try:
43
- return models.Role(value)
44
- except ValueError:
45
- return value
46
- return value
47
-
48
- @field_serializer("status")
49
- def serialize_status(self, value):
50
- if isinstance(value, str):
51
- try:
52
- return models.Status(value)
53
- except ValueError:
54
- return value
55
- return value
36
+ role: Annotated[Optional[Role], PlainValidator(validate_open_enum(False))] = None
@@ -17,7 +17,6 @@ class HeartbeatMetadataTags(BaseModel):
17
17
 
18
18
  class HeartbeatMetadataAwsTypedDict(TypedDict):
19
19
  enabled: bool
20
- instance_id: str
21
20
  region: str
22
21
  type: str
23
22
  zone: str
@@ -27,8 +26,6 @@ class HeartbeatMetadataAwsTypedDict(TypedDict):
27
26
  class HeartbeatMetadataAws(BaseModel):
28
27
  enabled: bool
29
28
 
30
- instance_id: Annotated[str, pydantic.Field(alias="instanceId")]
31
-
32
29
  region: str
33
30
 
34
31
  type: str
@@ -66,68 +66,66 @@ from .inputwineventlogs import InputWinEventLogs, InputWinEventLogsTypedDict
66
66
  from .inputwiz import InputWiz, InputWizTypedDict
67
67
  from .inputwizwebhook import InputWizWebhook, InputWizWebhookTypedDict
68
68
  from .inputzscalerhec import InputZscalerHec, InputZscalerHecTypedDict
69
- from cribl_control_plane.utils import get_discriminator
70
- from pydantic import Discriminator, Tag
71
69
  from typing import Union
72
- from typing_extensions import Annotated, TypeAliasType
70
+ from typing_extensions import TypeAliasType
73
71
 
74
72
 
75
73
  InputTypedDict = TypeAliasType(
76
74
  "InputTypedDict",
77
75
  Union[
78
- InputCriblTypedDict,
79
- InputKubeEventsTypedDict,
80
76
  InputDatagenTypedDict,
77
+ InputKubeEventsTypedDict,
78
+ InputCriblTypedDict,
81
79
  InputCriblmetricsTypedDict,
82
80
  InputKubeMetricsTypedDict,
83
- InputSystemStateTypedDict,
84
81
  InputCollectionTypedDict,
82
+ InputSystemStateTypedDict,
85
83
  InputModelDrivenTelemetryTypedDict,
86
84
  InputSystemMetricsTypedDict,
87
85
  InputWindowsMetricsTypedDict,
88
86
  InputJournalFilesTypedDict,
87
+ InputWinEventLogsTypedDict,
89
88
  InputRawUDPTypedDict,
90
- InputKubeLogsTypedDict,
91
89
  InputExecTypedDict,
92
- InputSnmpTypedDict,
90
+ InputKubeLogsTypedDict,
93
91
  InputMetricsTypedDict,
94
- InputWinEventLogsTypedDict,
92
+ InputSnmpTypedDict,
95
93
  InputCriblTCPTypedDict,
96
94
  InputNetflowTypedDict,
97
95
  InputTcpjsonTypedDict,
98
96
  InputGooglePubsubTypedDict,
99
97
  InputOffice365ServiceTypedDict,
100
98
  InputWizTypedDict,
99
+ InputTCPTypedDict,
101
100
  InputFirehoseTypedDict,
102
101
  InputCriblHTTPTypedDict,
103
102
  InputDatadogAgentTypedDict,
104
103
  InputOffice365MgmtTypedDict,
105
- InputTCPTypedDict,
106
- InputSplunkTypedDict,
107
104
  InputFileTypedDict,
108
- InputAppscopeTypedDict,
105
+ InputSplunkTypedDict,
109
106
  InputWefTypedDict,
107
+ InputAppscopeTypedDict,
110
108
  InputHTTPRawTypedDict,
111
109
  InputWizWebhookTypedDict,
112
- InputCriblLakeHTTPTypedDict,
113
110
  InputHTTPTypedDict,
114
- InputZscalerHecTypedDict,
115
- InputSqsTypedDict,
111
+ InputCriblLakeHTTPTypedDict,
116
112
  InputAzureBlobTypedDict,
113
+ InputSqsTypedDict,
114
+ InputZscalerHecTypedDict,
117
115
  InputKinesisTypedDict,
118
116
  InputConfluentCloudTypedDict,
119
117
  InputEventhubTypedDict,
120
118
  InputKafkaTypedDict,
121
119
  InputElasticTypedDict,
122
- InputSplunkHecTypedDict,
123
120
  InputOffice365MsgTraceTypedDict,
121
+ InputSplunkHecTypedDict,
124
122
  InputLokiTypedDict,
125
123
  InputPrometheusRwTypedDict,
126
- InputCrowdstrikeTypedDict,
127
124
  InputPrometheusTypedDict,
125
+ InputCrowdstrikeTypedDict,
126
+ InputEdgePrometheusTypedDict,
128
127
  InputOpenTelemetryTypedDict,
129
128
  InputS3TypedDict,
130
- InputEdgePrometheusTypedDict,
131
129
  InputSecurityLakeTypedDict,
132
130
  InputMskTypedDict,
133
131
  InputS3InventoryTypedDict,
@@ -138,67 +136,67 @@ InputTypedDict = TypeAliasType(
138
136
  )
139
137
 
140
138
 
141
- Input = Annotated[
139
+ Input = TypeAliasType(
140
+ "Input",
142
141
  Union[
143
- Annotated[InputCollection, Tag("collection")],
144
- Annotated[InputKafka, Tag("kafka")],
145
- Annotated[InputMsk, Tag("msk")],
146
- Annotated[InputHTTP, Tag("http")],
147
- Annotated[InputSplunk, Tag("splunk")],
148
- Annotated[InputSplunkSearch, Tag("splunk_search")],
149
- Annotated[InputSplunkHec, Tag("splunk_hec")],
150
- Annotated[InputAzureBlob, Tag("azure_blob")],
151
- Annotated[InputElastic, Tag("elastic")],
152
- Annotated[InputConfluentCloud, Tag("confluent_cloud")],
153
- Annotated[InputGrafana, Tag("grafana")],
154
- Annotated[InputLoki, Tag("loki")],
155
- Annotated[InputPrometheusRw, Tag("prometheus_rw")],
156
- Annotated[InputPrometheus, Tag("prometheus")],
157
- Annotated[InputEdgePrometheus, Tag("edge_prometheus")],
158
- Annotated[InputOffice365Mgmt, Tag("office365_mgmt")],
159
- Annotated[InputOffice365Service, Tag("office365_service")],
160
- Annotated[InputOffice365MsgTrace, Tag("office365_msg_trace")],
161
- Annotated[InputEventhub, Tag("eventhub")],
162
- Annotated[InputExec, Tag("exec")],
163
- Annotated[InputFirehose, Tag("firehose")],
164
- Annotated[InputGooglePubsub, Tag("google_pubsub")],
165
- Annotated[InputCribl, Tag("cribl")],
166
- Annotated[InputCriblTCP, Tag("cribl_tcp")],
167
- Annotated[InputCriblHTTP, Tag("cribl_http")],
168
- Annotated[InputCriblLakeHTTP, Tag("cribl_lake_http")],
169
- Annotated[InputTcpjson, Tag("tcpjson")],
170
- Annotated[InputSystemMetrics, Tag("system_metrics")],
171
- Annotated[InputSystemState, Tag("system_state")],
172
- Annotated[InputKubeMetrics, Tag("kube_metrics")],
173
- Annotated[InputKubeLogs, Tag("kube_logs")],
174
- Annotated[InputKubeEvents, Tag("kube_events")],
175
- Annotated[InputWindowsMetrics, Tag("windows_metrics")],
176
- Annotated[InputCrowdstrike, Tag("crowdstrike")],
177
- Annotated[InputDatadogAgent, Tag("datadog_agent")],
178
- Annotated[InputDatagen, Tag("datagen")],
179
- Annotated[InputHTTPRaw, Tag("http_raw")],
180
- Annotated[InputKinesis, Tag("kinesis")],
181
- Annotated[InputCriblmetrics, Tag("criblmetrics")],
182
- Annotated[InputMetrics, Tag("metrics")],
183
- Annotated[InputS3, Tag("s3")],
184
- Annotated[InputS3Inventory, Tag("s3_inventory")],
185
- Annotated[InputSnmp, Tag("snmp")],
186
- Annotated[InputOpenTelemetry, Tag("open_telemetry")],
187
- Annotated[InputModelDrivenTelemetry, Tag("model_driven_telemetry")],
188
- Annotated[InputSqs, Tag("sqs")],
189
- Annotated[InputSyslog, Tag("syslog")],
190
- Annotated[InputFile, Tag("file")],
191
- Annotated[InputTCP, Tag("tcp")],
192
- Annotated[InputAppscope, Tag("appscope")],
193
- Annotated[InputWef, Tag("wef")],
194
- Annotated[InputWinEventLogs, Tag("win_event_logs")],
195
- Annotated[InputRawUDP, Tag("raw_udp")],
196
- Annotated[InputJournalFiles, Tag("journal_files")],
197
- Annotated[InputWiz, Tag("wiz")],
198
- Annotated[InputWizWebhook, Tag("wiz_webhook")],
199
- Annotated[InputNetflow, Tag("netflow")],
200
- Annotated[InputSecurityLake, Tag("security_lake")],
201
- Annotated[InputZscalerHec, Tag("zscaler_hec")],
142
+ InputDatagen,
143
+ InputKubeEvents,
144
+ InputCribl,
145
+ InputCriblmetrics,
146
+ InputKubeMetrics,
147
+ InputCollection,
148
+ InputSystemState,
149
+ InputModelDrivenTelemetry,
150
+ InputSystemMetrics,
151
+ InputWindowsMetrics,
152
+ InputJournalFiles,
153
+ InputWinEventLogs,
154
+ InputRawUDP,
155
+ InputExec,
156
+ InputKubeLogs,
157
+ InputMetrics,
158
+ InputSnmp,
159
+ InputCriblTCP,
160
+ InputNetflow,
161
+ InputTcpjson,
162
+ InputGooglePubsub,
163
+ InputOffice365Service,
164
+ InputWiz,
165
+ InputTCP,
166
+ InputFirehose,
167
+ InputCriblHTTP,
168
+ InputDatadogAgent,
169
+ InputOffice365Mgmt,
170
+ InputFile,
171
+ InputSplunk,
172
+ InputWef,
173
+ InputAppscope,
174
+ InputHTTPRaw,
175
+ InputWizWebhook,
176
+ InputHTTP,
177
+ InputCriblLakeHTTP,
178
+ InputAzureBlob,
179
+ InputSqs,
180
+ InputZscalerHec,
181
+ InputKinesis,
182
+ InputConfluentCloud,
183
+ InputEventhub,
184
+ InputKafka,
185
+ InputElastic,
186
+ InputOffice365MsgTrace,
187
+ InputSplunkHec,
188
+ InputLoki,
189
+ InputPrometheusRw,
190
+ InputPrometheus,
191
+ InputCrowdstrike,
192
+ InputEdgePrometheus,
193
+ InputOpenTelemetry,
194
+ InputS3,
195
+ InputSecurityLake,
196
+ InputMsk,
197
+ InputS3Inventory,
198
+ InputSplunkSearch,
199
+ InputSyslog,
200
+ InputGrafana,
202
201
  ],
203
- Discriminator(lambda m: get_discriminator(m, "type", "type")),
204
- ]
202
+ )
@@ -1,14 +1,13 @@
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 models, utils
4
+ from cribl_control_plane import 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
10
9
  from pydantic.functional_validators import PlainValidator
11
- from typing import List, Optional
10
+ from typing import Any, List, Optional
12
11
  from typing_extensions import Annotated, NotRequired, TypedDict
13
12
 
14
13
 
@@ -30,18 +29,14 @@ class InputAppscopeConnection(BaseModel):
30
29
  class InputAppscopeMode(str, Enum, metaclass=utils.OpenEnumMeta):
31
30
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
32
31
 
33
- # Smart
34
32
  SMART = "smart"
35
- # Always On
36
33
  ALWAYS = "always"
37
34
 
38
35
 
39
36
  class InputAppscopeCompression(str, Enum, metaclass=utils.OpenEnumMeta):
40
37
  r"""Codec to use to compress the persisted data"""
41
38
 
42
- # None
43
39
  NONE = "none"
44
- # Gzip
45
40
  GZIP = "gzip"
46
41
 
47
42
 
@@ -107,24 +102,6 @@ class InputAppscopePq(BaseModel):
107
102
  Optional[InputAppscopePqControls], pydantic.Field(alias="pqControls")
108
103
  ] = None
109
104
 
110
- @field_serializer("mode")
111
- def serialize_mode(self, value):
112
- if isinstance(value, str):
113
- try:
114
- return models.InputAppscopeMode(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.InputAppscopeCompression(value)
124
- except ValueError:
125
- return value
126
- return value
127
-
128
105
 
129
106
  class InputAppscopeMetadatumTypedDict(TypedDict):
130
107
  name: str
@@ -216,15 +193,6 @@ class InputAppscopePersistence(BaseModel):
216
193
  )
217
194
  r"""Path to use to write metrics. Defaults to $CRIBL_HOME/state/appscope"""
218
195
 
219
- @field_serializer("compress")
220
- def serialize_compress(self, value):
221
- if isinstance(value, str):
222
- try:
223
- return models.InputAppscopeDataCompressionFormat(value)
224
- except ValueError:
225
- return value
226
- return value
227
-
228
196
 
229
197
  class InputAppscopeAuthenticationMethod(str, Enum, metaclass=utils.OpenEnumMeta):
230
198
  r"""Select Manual to enter an auth token directly, or select Secret to use a text secret to authenticate"""
@@ -249,12 +217,6 @@ class InputAppscopeMaximumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
249
217
 
250
218
  class InputAppscopeTLSSettingsServerSideTypedDict(TypedDict):
251
219
  disabled: NotRequired[bool]
252
- request_cert: NotRequired[bool]
253
- r"""Require clients to present their certificates. Used to perform client authentication using SSL certs."""
254
- reject_unauthorized: NotRequired[bool]
255
- r"""Reject certificates not authorized by a CA in the CA certificate path or by another trusted CA (such as the system's)"""
256
- common_name_regex: NotRequired[str]
257
- r"""Regex matching allowable common names in peer certificates' subject attribute"""
258
220
  certificate_name: NotRequired[str]
259
221
  r"""The name of the predefined certificate"""
260
222
  priv_key_path: NotRequired[str]
@@ -265,6 +227,10 @@ class InputAppscopeTLSSettingsServerSideTypedDict(TypedDict):
265
227
  r"""Path on server containing certificates to use. PEM format. Can reference $ENV_VARS."""
266
228
  ca_path: NotRequired[str]
267
229
  r"""Path on server containing CA certificates to use. PEM format. Can reference $ENV_VARS."""
230
+ request_cert: NotRequired[bool]
231
+ r"""Require clients to present their certificates. Used to perform client authentication using SSL certs."""
232
+ reject_unauthorized: NotRequired[Any]
233
+ common_name_regex: NotRequired[Any]
268
234
  min_version: NotRequired[InputAppscopeMinimumTLSVersion]
269
235
  max_version: NotRequired[InputAppscopeMaximumTLSVersion]
270
236
 
@@ -272,19 +238,6 @@ class InputAppscopeTLSSettingsServerSideTypedDict(TypedDict):
272
238
  class InputAppscopeTLSSettingsServerSide(BaseModel):
273
239
  disabled: Optional[bool] = True
274
240
 
275
- request_cert: Annotated[Optional[bool], pydantic.Field(alias="requestCert")] = False
276
- r"""Require clients to present their certificates. Used to perform client authentication using SSL certs."""
277
-
278
- reject_unauthorized: Annotated[
279
- Optional[bool], pydantic.Field(alias="rejectUnauthorized")
280
- ] = True
281
- r"""Reject certificates not authorized by a CA in the CA certificate path or by another trusted CA (such as the system's)"""
282
-
283
- common_name_regex: Annotated[
284
- Optional[str], pydantic.Field(alias="commonNameRegex")
285
- ] = "/.*/"
286
- r"""Regex matching allowable common names in peer certificates' subject attribute"""
287
-
288
241
  certificate_name: Annotated[
289
242
  Optional[str], pydantic.Field(alias="certificateName")
290
243
  ] = None
@@ -302,6 +255,17 @@ class InputAppscopeTLSSettingsServerSide(BaseModel):
302
255
  ca_path: Annotated[Optional[str], pydantic.Field(alias="caPath")] = None
303
256
  r"""Path on server containing CA certificates to use. PEM format. Can reference $ENV_VARS."""
304
257
 
258
+ request_cert: Annotated[Optional[bool], pydantic.Field(alias="requestCert")] = False
259
+ r"""Require clients to present their certificates. Used to perform client authentication using SSL certs."""
260
+
261
+ reject_unauthorized: Annotated[
262
+ Optional[Any], pydantic.Field(alias="rejectUnauthorized")
263
+ ] = None
264
+
265
+ common_name_regex: Annotated[
266
+ Optional[Any], pydantic.Field(alias="commonNameRegex")
267
+ ] = None
268
+
305
269
  min_version: Annotated[
306
270
  Annotated[
307
271
  Optional[InputAppscopeMinimumTLSVersion],
@@ -318,24 +282,6 @@ class InputAppscopeTLSSettingsServerSide(BaseModel):
318
282
  pydantic.Field(alias="maxVersion"),
319
283
  ] = None
320
284
 
321
- @field_serializer("min_version")
322
- def serialize_min_version(self, value):
323
- if isinstance(value, str):
324
- try:
325
- return models.InputAppscopeMinimumTLSVersion(value)
326
- except ValueError:
327
- return value
328
- return value
329
-
330
- @field_serializer("max_version")
331
- def serialize_max_version(self, value):
332
- if isinstance(value, str):
333
- try:
334
- return models.InputAppscopeMaximumTLSVersion(value)
335
- except ValueError:
336
- return value
337
- return value
338
-
339
285
 
340
286
  class InputAppscopeTypedDict(TypedDict):
341
287
  type: InputAppscopeType
@@ -513,12 +459,3 @@ class InputAppscope(BaseModel):
513
459
 
514
460
  text_secret: Annotated[Optional[str], pydantic.Field(alias="textSecret")] = None
515
461
  r"""Select or create a stored text secret"""
516
-
517
- @field_serializer("auth_type")
518
- def serialize_auth_type(self, value):
519
- if isinstance(value, str):
520
- try:
521
- return models.InputAppscopeAuthenticationMethod(value)
522
- except ValueError:
523
- return value
524
- return value
@@ -1,12 +1,11 @@
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 models, utils
4
+ from cribl_control_plane import 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
10
9
  from pydantic.functional_validators import PlainValidator
11
10
  from typing import List, Optional
12
11
  from typing_extensions import Annotated, NotRequired, TypedDict
@@ -30,18 +29,14 @@ class InputAzureBlobConnection(BaseModel):
30
29
  class InputAzureBlobMode(str, Enum, metaclass=utils.OpenEnumMeta):
31
30
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
32
31
 
33
- # Smart
34
32
  SMART = "smart"
35
- # Always On
36
33
  ALWAYS = "always"
37
34
 
38
35
 
39
36
  class InputAzureBlobCompression(str, Enum, metaclass=utils.OpenEnumMeta):
40
37
  r"""Codec to use to compress the persisted data"""
41
38
 
42
- # None
43
39
  NONE = "none"
44
- # Gzip
45
40
  GZIP = "gzip"
46
41
 
47
42
 
@@ -107,24 +102,6 @@ class InputAzureBlobPq(BaseModel):
107
102
  Optional[InputAzureBlobPqControls], pydantic.Field(alias="pqControls")
108
103
  ] = None
109
104
 
110
- @field_serializer("mode")
111
- def serialize_mode(self, value):
112
- if isinstance(value, str):
113
- try:
114
- return models.InputAzureBlobMode(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.InputAzureBlobCompression(value)
124
- except ValueError:
125
- return value
126
- return value
127
-
128
105
 
129
106
  class InputAzureBlobMetadatumTypedDict(TypedDict):
130
107
  name: str
@@ -342,12 +319,3 @@ class InputAzureBlob(BaseModel):
342
319
  r"""Select or create a stored text secret"""
343
320
 
344
321
  certificate: Optional[InputAzureBlobCertificate] = None
345
-
346
- @field_serializer("auth_type")
347
- def serialize_auth_type(self, value):
348
- if isinstance(value, str):
349
- try:
350
- return models.InputAzureBlobAuthenticationMethod(value)
351
- except ValueError:
352
- return value
353
- return value
@@ -1,12 +1,11 @@
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 models, utils
4
+ from cribl_control_plane import 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
10
9
  from pydantic.functional_validators import PlainValidator
11
10
  from typing import List, Optional
12
11
  from typing_extensions import Annotated, NotRequired, TypedDict
@@ -30,18 +29,14 @@ class InputCollectionConnection(BaseModel):
30
29
  class InputCollectionMode(str, Enum, metaclass=utils.OpenEnumMeta):
31
30
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
32
31
 
33
- # Smart
34
32
  SMART = "smart"
35
- # Always On
36
33
  ALWAYS = "always"
37
34
 
38
35
 
39
36
  class InputCollectionCompression(str, Enum, metaclass=utils.OpenEnumMeta):
40
37
  r"""Codec to use to compress the persisted data"""
41
38
 
42
- # None
43
39
  NONE = "none"
44
- # Gzip
45
40
  GZIP = "gzip"
46
41
 
47
42
 
@@ -107,24 +102,6 @@ class InputCollectionPq(BaseModel):
107
102
  Optional[InputCollectionPqControls], pydantic.Field(alias="pqControls")
108
103
  ] = None
109
104
 
110
- @field_serializer("mode")
111
- def serialize_mode(self, value):
112
- if isinstance(value, str):
113
- try:
114
- return models.InputCollectionMode(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.InputCollectionCompression(value)
124
- except ValueError:
125
- return value
126
- return value
127
-
128
105
 
129
106
  class InputCollectionPreprocessTypedDict(TypedDict):
130
107
  disabled: NotRequired[bool]