cribl-control-plane 0.0.50rc1__py3-none-any.whl → 0.0.51__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 (174) hide show
  1. cribl_control_plane/_version.py +6 -4
  2. cribl_control_plane/errors/healthstatus_error.py +2 -8
  3. cribl_control_plane/health.py +2 -6
  4. cribl_control_plane/httpclient.py +0 -1
  5. cribl_control_plane/models/__init__.py +4 -21
  6. cribl_control_plane/models/appmode.py +1 -2
  7. cribl_control_plane/models/cacheconnection.py +2 -10
  8. cribl_control_plane/models/cacheconnectionbackfillstatus.py +1 -2
  9. cribl_control_plane/models/cloudprovider.py +1 -2
  10. cribl_control_plane/models/configgroup.py +2 -7
  11. cribl_control_plane/models/configgroupcloud.py +2 -6
  12. cribl_control_plane/models/createconfiggroupbyproductop.py +2 -8
  13. cribl_control_plane/models/createinputhectokenbyidop.py +5 -6
  14. cribl_control_plane/models/createversionpushop.py +5 -5
  15. cribl_control_plane/models/createversionundoop.py +3 -3
  16. cribl_control_plane/models/cribllakedataset.py +2 -8
  17. cribl_control_plane/models/datasetmetadata.py +2 -8
  18. cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +2 -7
  19. cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +2 -4
  20. cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +2 -4
  21. cribl_control_plane/models/getconfiggroupbyproductandidop.py +1 -3
  22. cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +2 -7
  23. cribl_control_plane/models/getsummaryop.py +2 -7
  24. cribl_control_plane/models/getversionshowop.py +5 -6
  25. cribl_control_plane/models/gitinfo.py +3 -14
  26. cribl_control_plane/models/hbcriblinfo.py +1 -11
  27. cribl_control_plane/models/healthstatus.py +4 -7
  28. cribl_control_plane/models/inputappscope.py +14 -34
  29. cribl_control_plane/models/inputazureblob.py +6 -17
  30. cribl_control_plane/models/inputcollection.py +4 -11
  31. cribl_control_plane/models/inputconfluentcloud.py +20 -47
  32. cribl_control_plane/models/inputcribl.py +4 -11
  33. cribl_control_plane/models/inputcriblhttp.py +8 -23
  34. cribl_control_plane/models/inputcribllakehttp.py +10 -22
  35. cribl_control_plane/models/inputcriblmetrics.py +4 -12
  36. cribl_control_plane/models/inputcribltcp.py +8 -23
  37. cribl_control_plane/models/inputcrowdstrike.py +10 -26
  38. cribl_control_plane/models/inputdatadogagent.py +8 -24
  39. cribl_control_plane/models/inputdatagen.py +4 -11
  40. cribl_control_plane/models/inputedgeprometheus.py +24 -58
  41. cribl_control_plane/models/inputelastic.py +14 -40
  42. cribl_control_plane/models/inputeventhub.py +6 -15
  43. cribl_control_plane/models/inputexec.py +6 -14
  44. cribl_control_plane/models/inputfile.py +6 -15
  45. cribl_control_plane/models/inputfirehose.py +8 -23
  46. cribl_control_plane/models/inputgooglepubsub.py +6 -19
  47. cribl_control_plane/models/inputgrafana.py +24 -67
  48. cribl_control_plane/models/inputhttp.py +8 -23
  49. cribl_control_plane/models/inputhttpraw.py +8 -23
  50. cribl_control_plane/models/inputjournalfiles.py +4 -12
  51. cribl_control_plane/models/inputkafka.py +16 -46
  52. cribl_control_plane/models/inputkinesis.py +14 -38
  53. cribl_control_plane/models/inputkubeevents.py +4 -11
  54. cribl_control_plane/models/inputkubelogs.py +8 -16
  55. cribl_control_plane/models/inputkubemetrics.py +8 -16
  56. cribl_control_plane/models/inputloki.py +10 -29
  57. cribl_control_plane/models/inputmetrics.py +8 -23
  58. cribl_control_plane/models/inputmodeldriventelemetry.py +10 -32
  59. cribl_control_plane/models/inputmsk.py +18 -53
  60. cribl_control_plane/models/inputnetflow.py +4 -11
  61. cribl_control_plane/models/inputoffice365mgmt.py +14 -33
  62. cribl_control_plane/models/inputoffice365msgtrace.py +16 -35
  63. cribl_control_plane/models/inputoffice365service.py +16 -35
  64. cribl_control_plane/models/inputopentelemetry.py +16 -38
  65. cribl_control_plane/models/inputprometheus.py +18 -50
  66. cribl_control_plane/models/inputprometheusrw.py +10 -30
  67. cribl_control_plane/models/inputrawudp.py +4 -11
  68. cribl_control_plane/models/inputs3.py +8 -21
  69. cribl_control_plane/models/inputs3inventory.py +10 -26
  70. cribl_control_plane/models/inputsecuritylake.py +10 -27
  71. cribl_control_plane/models/inputsnmp.py +6 -16
  72. cribl_control_plane/models/inputsplunk.py +12 -33
  73. cribl_control_plane/models/inputsplunkhec.py +10 -29
  74. cribl_control_plane/models/inputsplunksearch.py +14 -33
  75. cribl_control_plane/models/inputsqs.py +10 -27
  76. cribl_control_plane/models/inputsyslog.py +16 -43
  77. cribl_control_plane/models/inputsystemmetrics.py +24 -48
  78. cribl_control_plane/models/inputsystemstate.py +8 -16
  79. cribl_control_plane/models/inputtcp.py +10 -29
  80. cribl_control_plane/models/inputtcpjson.py +10 -29
  81. cribl_control_plane/models/inputwef.py +14 -37
  82. cribl_control_plane/models/inputwindowsmetrics.py +24 -44
  83. cribl_control_plane/models/inputwineventlogs.py +10 -20
  84. cribl_control_plane/models/inputwiz.py +8 -21
  85. cribl_control_plane/models/inputwizwebhook.py +8 -23
  86. cribl_control_plane/models/inputzscalerhec.py +10 -29
  87. cribl_control_plane/models/jobinfo.py +1 -4
  88. cribl_control_plane/models/lakehouseconnectiontype.py +1 -2
  89. cribl_control_plane/models/listconfiggroupbyproductop.py +1 -3
  90. cribl_control_plane/models/masterworkerentry.py +2 -7
  91. cribl_control_plane/models/nodeactiveupgradestatus.py +1 -2
  92. cribl_control_plane/models/nodefailedupgradestatus.py +1 -2
  93. cribl_control_plane/models/nodeprovidedinfo.py +1 -4
  94. cribl_control_plane/models/nodeskippedupgradestatus.py +1 -2
  95. cribl_control_plane/models/nodeupgradestate.py +1 -2
  96. cribl_control_plane/models/nodeupgradestatus.py +5 -13
  97. cribl_control_plane/models/outputazureblob.py +18 -48
  98. cribl_control_plane/models/outputazuredataexplorer.py +28 -73
  99. cribl_control_plane/models/outputazureeventhub.py +18 -40
  100. cribl_control_plane/models/outputazurelogs.py +12 -35
  101. cribl_control_plane/models/outputclickhouse.py +20 -55
  102. cribl_control_plane/models/outputcloudwatch.py +10 -29
  103. cribl_control_plane/models/outputconfluentcloud.py +32 -77
  104. cribl_control_plane/models/outputcriblhttp.py +16 -44
  105. cribl_control_plane/models/outputcribllake.py +16 -46
  106. cribl_control_plane/models/outputcribltcp.py +18 -45
  107. cribl_control_plane/models/outputcrowdstrikenextgensiem.py +14 -49
  108. cribl_control_plane/models/outputdatadog.py +20 -48
  109. cribl_control_plane/models/outputdataset.py +18 -46
  110. cribl_control_plane/models/outputdiskspool.py +2 -7
  111. cribl_control_plane/models/outputdls3.py +24 -68
  112. cribl_control_plane/models/outputdynatracehttp.py +20 -53
  113. cribl_control_plane/models/outputdynatraceotlp.py +22 -55
  114. cribl_control_plane/models/outputelastic.py +18 -43
  115. cribl_control_plane/models/outputelasticcloud.py +12 -36
  116. cribl_control_plane/models/outputexabeam.py +10 -29
  117. cribl_control_plane/models/outputfilesystem.py +14 -39
  118. cribl_control_plane/models/outputgooglechronicle.py +16 -50
  119. cribl_control_plane/models/outputgooglecloudlogging.py +18 -50
  120. cribl_control_plane/models/outputgooglecloudstorage.py +24 -66
  121. cribl_control_plane/models/outputgooglepubsub.py +10 -31
  122. cribl_control_plane/models/outputgrafanacloud.py +32 -97
  123. cribl_control_plane/models/outputgraphite.py +14 -31
  124. cribl_control_plane/models/outputhoneycomb.py +12 -35
  125. cribl_control_plane/models/outputhumiohec.py +16 -43
  126. cribl_control_plane/models/outputinfluxdb.py +16 -42
  127. cribl_control_plane/models/outputkafka.py +28 -74
  128. cribl_control_plane/models/outputkinesis.py +16 -40
  129. cribl_control_plane/models/outputloki.py +16 -41
  130. cribl_control_plane/models/outputminio.py +24 -65
  131. cribl_control_plane/models/outputmsk.py +30 -82
  132. cribl_control_plane/models/outputnewrelic.py +18 -43
  133. cribl_control_plane/models/outputnewrelicevents.py +14 -41
  134. cribl_control_plane/models/outputopentelemetry.py +26 -67
  135. cribl_control_plane/models/outputprometheus.py +12 -35
  136. cribl_control_plane/models/outputring.py +8 -19
  137. cribl_control_plane/models/outputs3.py +26 -68
  138. cribl_control_plane/models/outputsecuritylake.py +18 -52
  139. cribl_control_plane/models/outputsentinel.py +18 -45
  140. cribl_control_plane/models/outputsentineloneaisiem.py +18 -50
  141. cribl_control_plane/models/outputservicenow.py +24 -60
  142. cribl_control_plane/models/outputsignalfx.py +14 -37
  143. cribl_control_plane/models/outputsns.py +14 -36
  144. cribl_control_plane/models/outputsplunk.py +24 -60
  145. cribl_control_plane/models/outputsplunkhec.py +12 -35
  146. cribl_control_plane/models/outputsplunklb.py +30 -77
  147. cribl_control_plane/models/outputsqs.py +16 -41
  148. cribl_control_plane/models/outputstatsd.py +14 -30
  149. cribl_control_plane/models/outputstatsdext.py +12 -29
  150. cribl_control_plane/models/outputsumologic.py +12 -35
  151. cribl_control_plane/models/outputsyslog.py +24 -58
  152. cribl_control_plane/models/outputtcpjson.py +20 -52
  153. cribl_control_plane/models/outputwavefront.py +12 -35
  154. cribl_control_plane/models/outputwebhook.py +22 -58
  155. cribl_control_plane/models/outputxsiam.py +14 -35
  156. cribl_control_plane/models/packinfo.py +0 -3
  157. cribl_control_plane/models/packinstallinfo.py +0 -3
  158. cribl_control_plane/models/productscore.py +1 -2
  159. cribl_control_plane/models/rbacresource.py +1 -2
  160. cribl_control_plane/models/resourcepolicy.py +2 -4
  161. cribl_control_plane/models/runnablejobcollection.py +13 -30
  162. cribl_control_plane/models/runnablejobexecutor.py +4 -13
  163. cribl_control_plane/models/runnablejobscheduledsearch.py +2 -7
  164. cribl_control_plane/models/updateconfiggroupbyproductandidop.py +2 -8
  165. cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +2 -8
  166. cribl_control_plane/models/updateinputhectokenbyidandtokenop.py +5 -6
  167. cribl_control_plane/models/workertypes.py +1 -2
  168. {cribl_control_plane-0.0.50rc1.dist-info → cribl_control_plane-0.0.51.dist-info}/METADATA +14 -5
  169. cribl_control_plane-0.0.51.dist-info/RECORD +325 -0
  170. cribl_control_plane/models/error.py +0 -16
  171. cribl_control_plane/models/gethealthinfoop.py +0 -17
  172. cribl_control_plane/models/gitshowresult.py +0 -19
  173. cribl_control_plane-0.0.50rc1.dist-info/RECORD +0 -328
  174. {cribl_control_plane-0.0.50rc1.dist-info → cribl_control_plane-0.0.51.dist-info}/WHEEL +0 -0
@@ -1,12 +1,9 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from cribl_control_plane import utils
5
4
  from cribl_control_plane.types import BaseModel
6
- from cribl_control_plane.utils import validate_open_enum
7
5
  from enum import Enum
8
6
  import pydantic
9
- from pydantic.functional_validators import PlainValidator
10
7
  from typing import List, Optional
11
8
  from typing_extensions import Annotated, NotRequired, TypedDict
12
9
 
@@ -15,7 +12,7 @@ class OutputAzureEventhubType(str, Enum):
15
12
  AZURE_EVENTHUB = "azure_eventhub"
16
13
 
17
14
 
18
- class OutputAzureEventhubAcknowledgments(int, Enum, metaclass=utils.OpenEnumMeta):
15
+ class OutputAzureEventhubAcknowledgments(int, Enum):
19
16
  r"""Control the number of required acknowledgments"""
20
17
 
21
18
  ONE = 1
@@ -23,14 +20,14 @@ class OutputAzureEventhubAcknowledgments(int, Enum, metaclass=utils.OpenEnumMeta
23
20
  MINUS_1 = -1
24
21
 
25
22
 
26
- class OutputAzureEventhubRecordDataFormat(str, Enum, metaclass=utils.OpenEnumMeta):
23
+ class OutputAzureEventhubRecordDataFormat(str, Enum):
27
24
  r"""Format to use to serialize events before writing to the Event Hubs Kafka brokers"""
28
25
 
29
26
  JSON = "json"
30
27
  RAW = "raw"
31
28
 
32
29
 
33
- class OutputAzureEventhubSASLMechanism(str, Enum, metaclass=utils.OpenEnumMeta):
30
+ class OutputAzureEventhubSASLMechanism(str, Enum):
34
31
  PLAIN = "plain"
35
32
  OAUTHBEARER = "oauthbearer"
36
33
 
@@ -47,10 +44,9 @@ class OutputAzureEventhubAuthentication(BaseModel):
47
44
 
48
45
  disabled: Optional[bool] = False
49
46
 
50
- mechanism: Annotated[
51
- Optional[OutputAzureEventhubSASLMechanism],
52
- PlainValidator(validate_open_enum(False)),
53
- ] = OutputAzureEventhubSASLMechanism.PLAIN
47
+ mechanism: Optional[OutputAzureEventhubSASLMechanism] = (
48
+ OutputAzureEventhubSASLMechanism.PLAIN
49
+ )
54
50
 
55
51
 
56
52
  class OutputAzureEventhubTLSSettingsClientSideTypedDict(TypedDict):
@@ -68,7 +64,7 @@ class OutputAzureEventhubTLSSettingsClientSide(BaseModel):
68
64
  r"""Reject certificates that are not authorized by a CA in the CA certificate path, or by another trusted CA (such as the system's)"""
69
65
 
70
66
 
71
- class OutputAzureEventhubBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
67
+ class OutputAzureEventhubBackpressureBehavior(str, Enum):
72
68
  r"""How to handle events when all receivers are exerting backpressure"""
73
69
 
74
70
  BLOCK = "block"
@@ -76,21 +72,21 @@ class OutputAzureEventhubBackpressureBehavior(str, Enum, metaclass=utils.OpenEnu
76
72
  QUEUE = "queue"
77
73
 
78
74
 
79
- class OutputAzureEventhubCompression(str, Enum, metaclass=utils.OpenEnumMeta):
75
+ class OutputAzureEventhubCompression(str, Enum):
80
76
  r"""Codec to use to compress the persisted data"""
81
77
 
82
78
  NONE = "none"
83
79
  GZIP = "gzip"
84
80
 
85
81
 
86
- class OutputAzureEventhubQueueFullBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
82
+ class OutputAzureEventhubQueueFullBehavior(str, Enum):
87
83
  r"""How to handle events when the queue is exerting backpressure (full capacity or low disk). 'Block' is the same behavior as non-PQ blocking. 'Drop new data' throws away incoming data, while leaving the contents of the PQ unchanged."""
88
84
 
89
85
  BLOCK = "block"
90
86
  DROP = "drop"
91
87
 
92
88
 
93
- class OutputAzureEventhubMode(str, Enum, metaclass=utils.OpenEnumMeta):
89
+ class OutputAzureEventhubMode(str, Enum):
94
90
  r"""In Error mode, PQ writes events to the filesystem if the Destination is unavailable. In Backpressure mode, PQ writes events to the filesystem when it detects backpressure from the Destination. In Always On mode, PQ always writes events to the filesystem."""
95
91
 
96
92
  ERROR = "error"
@@ -195,18 +191,13 @@ class OutputAzureEventhub(BaseModel):
195
191
  streamtags: Optional[List[str]] = None
196
192
  r"""Tags for filtering and grouping in @{product}"""
197
193
 
198
- ack: Annotated[
199
- Optional[OutputAzureEventhubAcknowledgments],
200
- PlainValidator(validate_open_enum(True)),
201
- ] = OutputAzureEventhubAcknowledgments.ONE
194
+ ack: Optional[OutputAzureEventhubAcknowledgments] = (
195
+ OutputAzureEventhubAcknowledgments.ONE
196
+ )
202
197
  r"""Control the number of required acknowledgments"""
203
198
 
204
199
  format_: Annotated[
205
- Annotated[
206
- Optional[OutputAzureEventhubRecordDataFormat],
207
- PlainValidator(validate_open_enum(False)),
208
- ],
209
- pydantic.Field(alias="format"),
200
+ Optional[OutputAzureEventhubRecordDataFormat], pydantic.Field(alias="format")
210
201
  ] = OutputAzureEventhubRecordDataFormat.JSON
211
202
  r"""Format to use to serialize events before writing to the Event Hubs Kafka brokers"""
212
203
 
@@ -265,10 +256,7 @@ class OutputAzureEventhub(BaseModel):
265
256
  tls: Optional[OutputAzureEventhubTLSSettingsClientSide] = None
266
257
 
267
258
  on_backpressure: Annotated[
268
- Annotated[
269
- Optional[OutputAzureEventhubBackpressureBehavior],
270
- PlainValidator(validate_open_enum(False)),
271
- ],
259
+ Optional[OutputAzureEventhubBackpressureBehavior],
272
260
  pydantic.Field(alias="onBackpressure"),
273
261
  ] = OutputAzureEventhubBackpressureBehavior.BLOCK
274
262
  r"""How to handle events when all receivers are exerting backpressure"""
@@ -289,28 +277,18 @@ class OutputAzureEventhub(BaseModel):
289
277
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/<output-id>."""
290
278
 
291
279
  pq_compress: Annotated[
292
- Annotated[
293
- Optional[OutputAzureEventhubCompression],
294
- PlainValidator(validate_open_enum(False)),
295
- ],
296
- pydantic.Field(alias="pqCompress"),
280
+ Optional[OutputAzureEventhubCompression], pydantic.Field(alias="pqCompress")
297
281
  ] = OutputAzureEventhubCompression.NONE
298
282
  r"""Codec to use to compress the persisted data"""
299
283
 
300
284
  pq_on_backpressure: Annotated[
301
- Annotated[
302
- Optional[OutputAzureEventhubQueueFullBehavior],
303
- PlainValidator(validate_open_enum(False)),
304
- ],
285
+ Optional[OutputAzureEventhubQueueFullBehavior],
305
286
  pydantic.Field(alias="pqOnBackpressure"),
306
287
  ] = OutputAzureEventhubQueueFullBehavior.BLOCK
307
288
  r"""How to handle events when the queue is exerting backpressure (full capacity or low disk). 'Block' is the same behavior as non-PQ blocking. 'Drop new data' throws away incoming data, while leaving the contents of the PQ unchanged."""
308
289
 
309
290
  pq_mode: Annotated[
310
- Annotated[
311
- Optional[OutputAzureEventhubMode], PlainValidator(validate_open_enum(False))
312
- ],
313
- pydantic.Field(alias="pqMode"),
291
+ Optional[OutputAzureEventhubMode], pydantic.Field(alias="pqMode")
314
292
  ] = OutputAzureEventhubMode.ERROR
315
293
  r"""In Error mode, PQ writes events to the filesystem if the Destination is unavailable. In Backpressure mode, PQ writes events to the filesystem when it detects backpressure from the Destination. In Always On mode, PQ always writes events to the filesystem."""
316
294
 
@@ -1,12 +1,9 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from cribl_control_plane import utils
5
4
  from cribl_control_plane.types import BaseModel
6
- from cribl_control_plane.utils import validate_open_enum
7
5
  from enum import Enum
8
6
  import pydantic
9
- from pydantic.functional_validators import PlainValidator
10
7
  from typing import List, Optional
11
8
  from typing_extensions import Annotated, NotRequired, TypedDict
12
9
 
@@ -26,7 +23,7 @@ class OutputAzureLogsExtraHTTPHeader(BaseModel):
26
23
  name: Optional[str] = None
27
24
 
28
25
 
29
- class OutputAzureLogsFailedRequestLoggingMode(str, Enum, metaclass=utils.OpenEnumMeta):
26
+ class OutputAzureLogsFailedRequestLoggingMode(str, Enum):
30
27
  r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
31
28
 
32
29
  PAYLOAD = "payload"
@@ -88,7 +85,7 @@ class OutputAzureLogsTimeoutRetrySettings(BaseModel):
88
85
  r"""The maximum backoff interval, in milliseconds, Cribl Stream should apply. Default (and minimum) is 10,000 ms (10 seconds); maximum is 180,000 ms (180 seconds)."""
89
86
 
90
87
 
91
- class OutputAzureLogsBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
88
+ class OutputAzureLogsBackpressureBehavior(str, Enum):
92
89
  r"""How to handle events when all receivers are exerting backpressure"""
93
90
 
94
91
  BLOCK = "block"
@@ -96,28 +93,28 @@ class OutputAzureLogsBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMet
96
93
  QUEUE = "queue"
97
94
 
98
95
 
99
- class OutputAzureLogsAuthenticationMethod(str, Enum, metaclass=utils.OpenEnumMeta):
96
+ class OutputAzureLogsAuthenticationMethod(str, Enum):
100
97
  r"""Enter workspace ID and workspace key directly, or select a stored secret"""
101
98
 
102
99
  MANUAL = "manual"
103
100
  SECRET = "secret"
104
101
 
105
102
 
106
- class OutputAzureLogsCompression(str, Enum, metaclass=utils.OpenEnumMeta):
103
+ class OutputAzureLogsCompression(str, Enum):
107
104
  r"""Codec to use to compress the persisted data"""
108
105
 
109
106
  NONE = "none"
110
107
  GZIP = "gzip"
111
108
 
112
109
 
113
- class OutputAzureLogsQueueFullBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
110
+ class OutputAzureLogsQueueFullBehavior(str, Enum):
114
111
  r"""How to handle events when the queue is exerting backpressure (full capacity or low disk). 'Block' is the same behavior as non-PQ blocking. 'Drop new data' throws away incoming data, while leaving the contents of the PQ unchanged."""
115
112
 
116
113
  BLOCK = "block"
117
114
  DROP = "drop"
118
115
 
119
116
 
120
- class OutputAzureLogsMode(str, Enum, metaclass=utils.OpenEnumMeta):
117
+ class OutputAzureLogsMode(str, Enum):
121
118
  r"""In Error mode, PQ writes events to the filesystem if the Destination is unavailable. In Backpressure mode, PQ writes events to the filesystem when it detects backpressure from the Destination. In Always On mode, PQ always writes events to the filesystem."""
122
119
 
123
120
  ERROR = "error"
@@ -277,10 +274,7 @@ class OutputAzureLogs(BaseModel):
277
274
  r"""Enable round-robin DNS lookup. When a DNS server returns multiple addresses, @{product} will cycle through them in the order returned. For optimal performance, consider enabling this setting for non-load balanced destinations."""
278
275
 
279
276
  failed_request_logging_mode: Annotated[
280
- Annotated[
281
- Optional[OutputAzureLogsFailedRequestLoggingMode],
282
- PlainValidator(validate_open_enum(False)),
283
- ],
277
+ Optional[OutputAzureLogsFailedRequestLoggingMode],
284
278
  pydantic.Field(alias="failedRequestLoggingMode"),
285
279
  ] = OutputAzureLogsFailedRequestLoggingMode.NONE
286
280
  r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
@@ -312,20 +306,13 @@ class OutputAzureLogs(BaseModel):
312
306
  r"""Honor any Retry-After header that specifies a delay (in seconds) no longer than 180 seconds after the retry request. @{product} limits the delay to 180 seconds, even if the Retry-After header specifies a longer delay. When enabled, takes precedence over user-configured retry options. When disabled, all Retry-After headers are ignored."""
313
307
 
314
308
  on_backpressure: Annotated[
315
- Annotated[
316
- Optional[OutputAzureLogsBackpressureBehavior],
317
- PlainValidator(validate_open_enum(False)),
318
- ],
309
+ Optional[OutputAzureLogsBackpressureBehavior],
319
310
  pydantic.Field(alias="onBackpressure"),
320
311
  ] = OutputAzureLogsBackpressureBehavior.BLOCK
321
312
  r"""How to handle events when all receivers are exerting backpressure"""
322
313
 
323
314
  auth_type: Annotated[
324
- Annotated[
325
- Optional[OutputAzureLogsAuthenticationMethod],
326
- PlainValidator(validate_open_enum(False)),
327
- ],
328
- pydantic.Field(alias="authType"),
315
+ Optional[OutputAzureLogsAuthenticationMethod], pydantic.Field(alias="authType")
329
316
  ] = OutputAzureLogsAuthenticationMethod.MANUAL
330
317
  r"""Enter workspace ID and workspace key directly, or select a stored secret"""
331
318
 
@@ -345,28 +332,18 @@ class OutputAzureLogs(BaseModel):
345
332
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/<output-id>."""
346
333
 
347
334
  pq_compress: Annotated[
348
- Annotated[
349
- Optional[OutputAzureLogsCompression],
350
- PlainValidator(validate_open_enum(False)),
351
- ],
352
- pydantic.Field(alias="pqCompress"),
335
+ Optional[OutputAzureLogsCompression], pydantic.Field(alias="pqCompress")
353
336
  ] = OutputAzureLogsCompression.NONE
354
337
  r"""Codec to use to compress the persisted data"""
355
338
 
356
339
  pq_on_backpressure: Annotated[
357
- Annotated[
358
- Optional[OutputAzureLogsQueueFullBehavior],
359
- PlainValidator(validate_open_enum(False)),
360
- ],
340
+ Optional[OutputAzureLogsQueueFullBehavior],
361
341
  pydantic.Field(alias="pqOnBackpressure"),
362
342
  ] = OutputAzureLogsQueueFullBehavior.BLOCK
363
343
  r"""How to handle events when the queue is exerting backpressure (full capacity or low disk). 'Block' is the same behavior as non-PQ blocking. 'Drop new data' throws away incoming data, while leaving the contents of the PQ unchanged."""
364
344
 
365
345
  pq_mode: Annotated[
366
- Annotated[
367
- Optional[OutputAzureLogsMode], PlainValidator(validate_open_enum(False))
368
- ],
369
- pydantic.Field(alias="pqMode"),
346
+ Optional[OutputAzureLogsMode], pydantic.Field(alias="pqMode")
370
347
  ] = OutputAzureLogsMode.ERROR
371
348
  r"""In Error mode, PQ writes events to the filesystem if the Destination is unavailable. In Backpressure mode, PQ writes events to the filesystem when it detects backpressure from the Destination. In Always On mode, PQ always writes events to the filesystem."""
372
349
 
@@ -1,12 +1,9 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from cribl_control_plane import utils
5
4
  from cribl_control_plane.types import BaseModel
6
- from cribl_control_plane.utils import validate_open_enum
7
5
  from enum import Enum
8
6
  import pydantic
9
- from pydantic.functional_validators import PlainValidator
10
7
  from typing import List, Optional
11
8
  from typing_extensions import Annotated, NotRequired, TypedDict
12
9
 
@@ -15,7 +12,7 @@ class OutputClickHouseType(str, Enum):
15
12
  CLICK_HOUSE = "click_house"
16
13
 
17
14
 
18
- class OutputClickHouseAuthenticationType(str, Enum, metaclass=utils.OpenEnumMeta):
15
+ class OutputClickHouseAuthenticationType(str, Enum):
19
16
  NONE = "none"
20
17
  BASIC = "basic"
21
18
  CREDENTIALS_SECRET = "credentialsSecret"
@@ -25,28 +22,28 @@ class OutputClickHouseAuthenticationType(str, Enum, metaclass=utils.OpenEnumMeta
25
22
  OAUTH = "oauth"
26
23
 
27
24
 
28
- class OutputClickHouseFormat(str, Enum, metaclass=utils.OpenEnumMeta):
25
+ class OutputClickHouseFormat(str, Enum):
29
26
  r"""Data format to use when sending data to ClickHouse. Defaults to JSON Compact."""
30
27
 
31
28
  JSON_COMPACT_EACH_ROW_WITH_NAMES = "json-compact-each-row-with-names"
32
29
  JSON_EACH_ROW = "json-each-row"
33
30
 
34
31
 
35
- class MappingType(str, Enum, metaclass=utils.OpenEnumMeta):
32
+ class MappingType(str, Enum):
36
33
  r"""How event fields are mapped to ClickHouse columns."""
37
34
 
38
35
  AUTOMATIC = "automatic"
39
36
  CUSTOM = "custom"
40
37
 
41
38
 
42
- class OutputClickHouseMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
39
+ class OutputClickHouseMinimumTLSVersion(str, Enum):
43
40
  TL_SV1 = "TLSv1"
44
41
  TL_SV1_1 = "TLSv1.1"
45
42
  TL_SV1_2 = "TLSv1.2"
46
43
  TL_SV1_3 = "TLSv1.3"
47
44
 
48
45
 
49
- class OutputClickHouseMaximumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
46
+ class OutputClickHouseMaximumTLSVersion(str, Enum):
50
47
  TL_SV1 = "TLSv1"
51
48
  TL_SV1_1 = "TLSv1.1"
52
49
  TL_SV1_2 = "TLSv1.2"
@@ -95,19 +92,11 @@ class OutputClickHouseTLSSettingsClientSide(BaseModel):
95
92
  r"""Passphrase to use to decrypt private key"""
96
93
 
97
94
  min_version: Annotated[
98
- Annotated[
99
- Optional[OutputClickHouseMinimumTLSVersion],
100
- PlainValidator(validate_open_enum(False)),
101
- ],
102
- pydantic.Field(alias="minVersion"),
95
+ Optional[OutputClickHouseMinimumTLSVersion], pydantic.Field(alias="minVersion")
103
96
  ] = None
104
97
 
105
98
  max_version: Annotated[
106
- Annotated[
107
- Optional[OutputClickHouseMaximumTLSVersion],
108
- PlainValidator(validate_open_enum(False)),
109
- ],
110
- pydantic.Field(alias="maxVersion"),
99
+ Optional[OutputClickHouseMaximumTLSVersion], pydantic.Field(alias="maxVersion")
111
100
  ] = None
112
101
 
113
102
 
@@ -122,7 +111,7 @@ class OutputClickHouseExtraHTTPHeader(BaseModel):
122
111
  name: Optional[str] = None
123
112
 
124
113
 
125
- class OutputClickHouseFailedRequestLoggingMode(str, Enum, metaclass=utils.OpenEnumMeta):
114
+ class OutputClickHouseFailedRequestLoggingMode(str, Enum):
126
115
  r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
127
116
 
128
117
  PAYLOAD = "payload"
@@ -184,7 +173,7 @@ class OutputClickHouseTimeoutRetrySettings(BaseModel):
184
173
  r"""The maximum backoff interval, in milliseconds, Cribl Stream should apply. Default (and minimum) is 10,000 ms (10 seconds); maximum is 180,000 ms (180 seconds)."""
185
174
 
186
175
 
187
- class OutputClickHouseBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
176
+ class OutputClickHouseBackpressureBehavior(str, Enum):
188
177
  r"""How to handle events when all receivers are exerting backpressure"""
189
178
 
190
179
  BLOCK = "block"
@@ -244,21 +233,21 @@ class ColumnMapping(BaseModel):
244
233
  r"""Type of the column in the ClickHouse database"""
245
234
 
246
235
 
247
- class OutputClickHouseCompression(str, Enum, metaclass=utils.OpenEnumMeta):
236
+ class OutputClickHouseCompression(str, Enum):
248
237
  r"""Codec to use to compress the persisted data"""
249
238
 
250
239
  NONE = "none"
251
240
  GZIP = "gzip"
252
241
 
253
242
 
254
- class OutputClickHouseQueueFullBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
243
+ class OutputClickHouseQueueFullBehavior(str, Enum):
255
244
  r"""How to handle events when the queue is exerting backpressure (full capacity or low disk). 'Block' is the same behavior as non-PQ blocking. 'Drop new data' throws away incoming data, while leaving the contents of the PQ unchanged."""
256
245
 
257
246
  BLOCK = "block"
258
247
  DROP = "drop"
259
248
 
260
249
 
261
- class OutputClickHouseMode(str, Enum, metaclass=utils.OpenEnumMeta):
250
+ class OutputClickHouseMode(str, Enum):
262
251
  r"""In Error mode, PQ writes events to the filesystem if the Destination is unavailable. In Backpressure mode, PQ writes events to the filesystem when it detects backpressure from the Destination. In Always On mode, PQ always writes events to the filesystem."""
263
252
 
264
253
  ERROR = "error"
@@ -413,24 +402,16 @@ class OutputClickHouse(BaseModel):
413
402
  r"""Tags for filtering and grouping in @{product}"""
414
403
 
415
404
  auth_type: Annotated[
416
- Annotated[
417
- Optional[OutputClickHouseAuthenticationType],
418
- PlainValidator(validate_open_enum(False)),
419
- ],
420
- pydantic.Field(alias="authType"),
405
+ Optional[OutputClickHouseAuthenticationType], pydantic.Field(alias="authType")
421
406
  ] = OutputClickHouseAuthenticationType.NONE
422
407
 
423
408
  format_: Annotated[
424
- Annotated[
425
- Optional[OutputClickHouseFormat], PlainValidator(validate_open_enum(False))
426
- ],
427
- pydantic.Field(alias="format"),
409
+ Optional[OutputClickHouseFormat], pydantic.Field(alias="format")
428
410
  ] = OutputClickHouseFormat.JSON_COMPACT_EACH_ROW_WITH_NAMES
429
411
  r"""Data format to use when sending data to ClickHouse. Defaults to JSON Compact."""
430
412
 
431
413
  mapping_type: Annotated[
432
- Annotated[Optional[MappingType], PlainValidator(validate_open_enum(False))],
433
- pydantic.Field(alias="mappingType"),
414
+ Optional[MappingType], pydantic.Field(alias="mappingType")
434
415
  ] = MappingType.AUTOMATIC
435
416
  r"""How event fields are mapped to ClickHouse columns."""
436
417
 
@@ -485,10 +466,7 @@ class OutputClickHouse(BaseModel):
485
466
  r"""Enable round-robin DNS lookup. When a DNS server returns multiple addresses, @{product} will cycle through them in the order returned. For optimal performance, consider enabling this setting for non-load balanced destinations."""
486
467
 
487
468
  failed_request_logging_mode: Annotated[
488
- Annotated[
489
- Optional[OutputClickHouseFailedRequestLoggingMode],
490
- PlainValidator(validate_open_enum(False)),
491
- ],
469
+ Optional[OutputClickHouseFailedRequestLoggingMode],
492
470
  pydantic.Field(alias="failedRequestLoggingMode"),
493
471
  ] = OutputClickHouseFailedRequestLoggingMode.NONE
494
472
  r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
@@ -520,10 +498,7 @@ class OutputClickHouse(BaseModel):
520
498
  r"""Log the most recent event that fails to match the table schema"""
521
499
 
522
500
  on_backpressure: Annotated[
523
- Annotated[
524
- Optional[OutputClickHouseBackpressureBehavior],
525
- PlainValidator(validate_open_enum(False)),
526
- ],
501
+ Optional[OutputClickHouseBackpressureBehavior],
527
502
  pydantic.Field(alias="onBackpressure"),
528
503
  ] = OutputClickHouseBackpressureBehavior.BLOCK
529
504
  r"""How to handle events when all receivers are exerting backpressure"""
@@ -618,28 +593,18 @@ class OutputClickHouse(BaseModel):
618
593
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/<output-id>."""
619
594
 
620
595
  pq_compress: Annotated[
621
- Annotated[
622
- Optional[OutputClickHouseCompression],
623
- PlainValidator(validate_open_enum(False)),
624
- ],
625
- pydantic.Field(alias="pqCompress"),
596
+ Optional[OutputClickHouseCompression], pydantic.Field(alias="pqCompress")
626
597
  ] = OutputClickHouseCompression.NONE
627
598
  r"""Codec to use to compress the persisted data"""
628
599
 
629
600
  pq_on_backpressure: Annotated[
630
- Annotated[
631
- Optional[OutputClickHouseQueueFullBehavior],
632
- PlainValidator(validate_open_enum(False)),
633
- ],
601
+ Optional[OutputClickHouseQueueFullBehavior],
634
602
  pydantic.Field(alias="pqOnBackpressure"),
635
603
  ] = OutputClickHouseQueueFullBehavior.BLOCK
636
604
  r"""How to handle events when the queue is exerting backpressure (full capacity or low disk). 'Block' is the same behavior as non-PQ blocking. 'Drop new data' throws away incoming data, while leaving the contents of the PQ unchanged."""
637
605
 
638
606
  pq_mode: Annotated[
639
- Annotated[
640
- Optional[OutputClickHouseMode], PlainValidator(validate_open_enum(False))
641
- ],
642
- pydantic.Field(alias="pqMode"),
607
+ Optional[OutputClickHouseMode], pydantic.Field(alias="pqMode")
643
608
  ] = OutputClickHouseMode.ERROR
644
609
  r"""In Error mode, PQ writes events to the filesystem if the Destination is unavailable. In Backpressure mode, PQ writes events to the filesystem when it detects backpressure from the Destination. In Always On mode, PQ always writes events to the filesystem."""
645
610
 
@@ -1,12 +1,9 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from cribl_control_plane import utils
5
4
  from cribl_control_plane.types import BaseModel
6
- from cribl_control_plane.utils import validate_open_enum
7
5
  from enum import Enum
8
6
  import pydantic
9
- from pydantic.functional_validators import PlainValidator
10
7
  from typing import List, Optional
11
8
  from typing_extensions import Annotated, NotRequired, TypedDict
12
9
 
@@ -15,7 +12,7 @@ class OutputCloudwatchType(str, Enum):
15
12
  CLOUDWATCH = "cloudwatch"
16
13
 
17
14
 
18
- class OutputCloudwatchAuthenticationMethod(str, Enum, metaclass=utils.OpenEnumMeta):
15
+ class OutputCloudwatchAuthenticationMethod(str, Enum):
19
16
  r"""AWS authentication method. Choose Auto to use IAM roles."""
20
17
 
21
18
  AUTO = "auto"
@@ -23,7 +20,7 @@ class OutputCloudwatchAuthenticationMethod(str, Enum, metaclass=utils.OpenEnumMe
23
20
  SECRET = "secret"
24
21
 
25
22
 
26
- class OutputCloudwatchBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
23
+ class OutputCloudwatchBackpressureBehavior(str, Enum):
27
24
  r"""How to handle events when all receivers are exerting backpressure"""
28
25
 
29
26
  BLOCK = "block"
@@ -31,21 +28,21 @@ class OutputCloudwatchBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMe
31
28
  QUEUE = "queue"
32
29
 
33
30
 
34
- class OutputCloudwatchCompression(str, Enum, metaclass=utils.OpenEnumMeta):
31
+ class OutputCloudwatchCompression(str, Enum):
35
32
  r"""Codec to use to compress the persisted data"""
36
33
 
37
34
  NONE = "none"
38
35
  GZIP = "gzip"
39
36
 
40
37
 
41
- class OutputCloudwatchQueueFullBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
38
+ class OutputCloudwatchQueueFullBehavior(str, Enum):
42
39
  r"""How to handle events when the queue is exerting backpressure (full capacity or low disk). 'Block' is the same behavior as non-PQ blocking. 'Drop new data' throws away incoming data, while leaving the contents of the PQ unchanged."""
43
40
 
44
41
  BLOCK = "block"
45
42
  DROP = "drop"
46
43
 
47
44
 
48
- class OutputCloudwatchMode(str, Enum, metaclass=utils.OpenEnumMeta):
45
+ class OutputCloudwatchMode(str, Enum):
49
46
  r"""In Error mode, PQ writes events to the filesystem if the Destination is unavailable. In Backpressure mode, PQ writes events to the filesystem when it detects backpressure from the Destination. In Always On mode, PQ always writes events to the filesystem."""
50
47
 
51
48
  ERROR = "error"
@@ -153,10 +150,7 @@ class OutputCloudwatch(BaseModel):
153
150
  r"""Tags for filtering and grouping in @{product}"""
154
151
 
155
152
  aws_authentication_method: Annotated[
156
- Annotated[
157
- Optional[OutputCloudwatchAuthenticationMethod],
158
- PlainValidator(validate_open_enum(False)),
159
- ],
153
+ Optional[OutputCloudwatchAuthenticationMethod],
160
154
  pydantic.Field(alias="awsAuthenticationMethod"),
161
155
  ] = OutputCloudwatchAuthenticationMethod.AUTO
162
156
  r"""AWS authentication method. Choose Auto to use IAM roles."""
@@ -212,10 +206,7 @@ class OutputCloudwatch(BaseModel):
212
206
  r"""Maximum time between requests. Small values could cause the payload size to be smaller than the configured Max record size."""
213
207
 
214
208
  on_backpressure: Annotated[
215
- Annotated[
216
- Optional[OutputCloudwatchBackpressureBehavior],
217
- PlainValidator(validate_open_enum(False)),
218
- ],
209
+ Optional[OutputCloudwatchBackpressureBehavior],
219
210
  pydantic.Field(alias="onBackpressure"),
220
211
  ] = OutputCloudwatchBackpressureBehavior.BLOCK
221
212
  r"""How to handle events when all receivers are exerting backpressure"""
@@ -241,28 +232,18 @@ class OutputCloudwatch(BaseModel):
241
232
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/<output-id>."""
242
233
 
243
234
  pq_compress: Annotated[
244
- Annotated[
245
- Optional[OutputCloudwatchCompression],
246
- PlainValidator(validate_open_enum(False)),
247
- ],
248
- pydantic.Field(alias="pqCompress"),
235
+ Optional[OutputCloudwatchCompression], pydantic.Field(alias="pqCompress")
249
236
  ] = OutputCloudwatchCompression.NONE
250
237
  r"""Codec to use to compress the persisted data"""
251
238
 
252
239
  pq_on_backpressure: Annotated[
253
- Annotated[
254
- Optional[OutputCloudwatchQueueFullBehavior],
255
- PlainValidator(validate_open_enum(False)),
256
- ],
240
+ Optional[OutputCloudwatchQueueFullBehavior],
257
241
  pydantic.Field(alias="pqOnBackpressure"),
258
242
  ] = OutputCloudwatchQueueFullBehavior.BLOCK
259
243
  r"""How to handle events when the queue is exerting backpressure (full capacity or low disk). 'Block' is the same behavior as non-PQ blocking. 'Drop new data' throws away incoming data, while leaving the contents of the PQ unchanged."""
260
244
 
261
245
  pq_mode: Annotated[
262
- Annotated[
263
- Optional[OutputCloudwatchMode], PlainValidator(validate_open_enum(False))
264
- ],
265
- pydantic.Field(alias="pqMode"),
246
+ Optional[OutputCloudwatchMode], pydantic.Field(alias="pqMode")
266
247
  ] = OutputCloudwatchMode.ERROR
267
248
  r"""In Error mode, PQ writes events to the filesystem if the Destination is unavailable. In Backpressure mode, PQ writes events to the filesystem when it detects backpressure from the Destination. In Always On mode, PQ always writes events to the filesystem."""
268
249