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 OutputMskType(str, Enum):
15
12
  MSK = "msk"
16
13
 
17
14
 
18
- class OutputMskAcknowledgments(int, Enum, metaclass=utils.OpenEnumMeta):
15
+ class OutputMskAcknowledgments(int, Enum):
19
16
  r"""Control the number of required acknowledgments."""
20
17
 
21
18
  ONE = 1
@@ -23,7 +20,7 @@ class OutputMskAcknowledgments(int, Enum, metaclass=utils.OpenEnumMeta):
23
20
  MINUS_1 = -1
24
21
 
25
22
 
26
- class OutputMskRecordDataFormat(str, Enum, metaclass=utils.OpenEnumMeta):
23
+ class OutputMskRecordDataFormat(str, Enum):
27
24
  r"""Format to use to serialize events before writing to Kafka."""
28
25
 
29
26
  JSON = "json"
@@ -31,7 +28,7 @@ class OutputMskRecordDataFormat(str, Enum, metaclass=utils.OpenEnumMeta):
31
28
  PROTOBUF = "protobuf"
32
29
 
33
30
 
34
- class OutputMskCompression(str, Enum, metaclass=utils.OpenEnumMeta):
31
+ class OutputMskCompression(str, Enum):
35
32
  r"""Codec to use to compress the data before sending to Kafka"""
36
33
 
37
34
  NONE = "none"
@@ -40,7 +37,7 @@ class OutputMskCompression(str, Enum, metaclass=utils.OpenEnumMeta):
40
37
  LZ4 = "lz4"
41
38
 
42
39
 
43
- class OutputMskSchemaType(str, Enum, metaclass=utils.OpenEnumMeta):
40
+ class OutputMskSchemaType(str, Enum):
44
41
  r"""The schema format used to encode and decode event data"""
45
42
 
46
43
  AVRO = "avro"
@@ -66,18 +63,14 @@ class OutputMskAuth(BaseModel):
66
63
  r"""Select or create a secret that references your credentials"""
67
64
 
68
65
 
69
- class OutputMskKafkaSchemaRegistryMinimumTLSVersion(
70
- str, Enum, metaclass=utils.OpenEnumMeta
71
- ):
66
+ class OutputMskKafkaSchemaRegistryMinimumTLSVersion(str, Enum):
72
67
  TL_SV1 = "TLSv1"
73
68
  TL_SV1_1 = "TLSv1.1"
74
69
  TL_SV1_2 = "TLSv1.2"
75
70
  TL_SV1_3 = "TLSv1.3"
76
71
 
77
72
 
78
- class OutputMskKafkaSchemaRegistryMaximumTLSVersion(
79
- str, Enum, metaclass=utils.OpenEnumMeta
80
- ):
73
+ class OutputMskKafkaSchemaRegistryMaximumTLSVersion(str, Enum):
81
74
  TL_SV1 = "TLSv1"
82
75
  TL_SV1_1 = "TLSv1.1"
83
76
  TL_SV1_2 = "TLSv1.2"
@@ -137,18 +130,12 @@ class OutputMskKafkaSchemaRegistryTLSSettingsClientSide(BaseModel):
137
130
  r"""Passphrase to use to decrypt private key"""
138
131
 
139
132
  min_version: Annotated[
140
- Annotated[
141
- Optional[OutputMskKafkaSchemaRegistryMinimumTLSVersion],
142
- PlainValidator(validate_open_enum(False)),
143
- ],
133
+ Optional[OutputMskKafkaSchemaRegistryMinimumTLSVersion],
144
134
  pydantic.Field(alias="minVersion"),
145
135
  ] = None
146
136
 
147
137
  max_version: Annotated[
148
- Annotated[
149
- Optional[OutputMskKafkaSchemaRegistryMaximumTLSVersion],
150
- PlainValidator(validate_open_enum(False)),
151
- ],
138
+ Optional[OutputMskKafkaSchemaRegistryMaximumTLSVersion],
152
139
  pydantic.Field(alias="maxVersion"),
153
140
  ] = None
154
141
 
@@ -183,10 +170,7 @@ class OutputMskKafkaSchemaRegistryAuthentication(BaseModel):
183
170
  r"""URL for accessing the Confluent Schema Registry. Example: http://localhost:8081. To connect over TLS, use https instead of http."""
184
171
 
185
172
  schema_type: Annotated[
186
- Annotated[
187
- Optional[OutputMskSchemaType], PlainValidator(validate_open_enum(False))
188
- ],
189
- pydantic.Field(alias="schemaType"),
173
+ Optional[OutputMskSchemaType], pydantic.Field(alias="schemaType")
190
174
  ] = OutputMskSchemaType.AVRO
191
175
  r"""The schema format used to encode and decode event data"""
192
176
 
@@ -219,7 +203,7 @@ class OutputMskKafkaSchemaRegistryAuthentication(BaseModel):
219
203
  r"""Used when __valueSchemaIdOut is not present, to transform _raw, leave blank if value transformation is not required by default."""
220
204
 
221
205
 
222
- class OutputMskAuthenticationMethod(str, Enum, metaclass=utils.OpenEnumMeta):
206
+ class OutputMskAuthenticationMethod(str, Enum):
223
207
  r"""AWS authentication method. Choose Auto to use IAM roles."""
224
208
 
225
209
  AUTO = "auto"
@@ -227,21 +211,21 @@ class OutputMskAuthenticationMethod(str, Enum, metaclass=utils.OpenEnumMeta):
227
211
  SECRET = "secret"
228
212
 
229
213
 
230
- class OutputMskSignatureVersion(str, Enum, metaclass=utils.OpenEnumMeta):
214
+ class OutputMskSignatureVersion(str, Enum):
231
215
  r"""Signature version to use for signing MSK cluster requests"""
232
216
 
233
217
  V2 = "v2"
234
218
  V4 = "v4"
235
219
 
236
220
 
237
- class OutputMskMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
221
+ class OutputMskMinimumTLSVersion(str, Enum):
238
222
  TL_SV1 = "TLSv1"
239
223
  TL_SV1_1 = "TLSv1.1"
240
224
  TL_SV1_2 = "TLSv1.2"
241
225
  TL_SV1_3 = "TLSv1.3"
242
226
 
243
227
 
244
- class OutputMskMaximumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
228
+ class OutputMskMaximumTLSVersion(str, Enum):
245
229
  TL_SV1 = "TLSv1"
246
230
  TL_SV1_1 = "TLSv1.1"
247
231
  TL_SV1_2 = "TLSv1.2"
@@ -301,23 +285,15 @@ class OutputMskTLSSettingsClientSide(BaseModel):
301
285
  r"""Passphrase to use to decrypt private key"""
302
286
 
303
287
  min_version: Annotated[
304
- Annotated[
305
- Optional[OutputMskMinimumTLSVersion],
306
- PlainValidator(validate_open_enum(False)),
307
- ],
308
- pydantic.Field(alias="minVersion"),
288
+ Optional[OutputMskMinimumTLSVersion], pydantic.Field(alias="minVersion")
309
289
  ] = None
310
290
 
311
291
  max_version: Annotated[
312
- Annotated[
313
- Optional[OutputMskMaximumTLSVersion],
314
- PlainValidator(validate_open_enum(False)),
315
- ],
316
- pydantic.Field(alias="maxVersion"),
292
+ Optional[OutputMskMaximumTLSVersion], pydantic.Field(alias="maxVersion")
317
293
  ] = None
318
294
 
319
295
 
320
- class OutputMskBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
296
+ class OutputMskBackpressureBehavior(str, Enum):
321
297
  r"""How to handle events when all receivers are exerting backpressure"""
322
298
 
323
299
  BLOCK = "block"
@@ -325,21 +301,21 @@ class OutputMskBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
325
301
  QUEUE = "queue"
326
302
 
327
303
 
328
- class OutputMskPqCompressCompression(str, Enum, metaclass=utils.OpenEnumMeta):
304
+ class OutputMskPqCompressCompression(str, Enum):
329
305
  r"""Codec to use to compress the persisted data"""
330
306
 
331
307
  NONE = "none"
332
308
  GZIP = "gzip"
333
309
 
334
310
 
335
- class OutputMskQueueFullBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
311
+ class OutputMskQueueFullBehavior(str, Enum):
336
312
  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."""
337
313
 
338
314
  BLOCK = "block"
339
315
  DROP = "drop"
340
316
 
341
317
 
342
- class OutputMskMode(str, Enum, metaclass=utils.OpenEnumMeta):
318
+ class OutputMskMode(str, Enum):
343
319
  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."""
344
320
 
345
321
  ERROR = "error"
@@ -476,23 +452,15 @@ class OutputMsk(BaseModel):
476
452
  streamtags: Optional[List[str]] = None
477
453
  r"""Tags for filtering and grouping in @{product}"""
478
454
 
479
- ack: Annotated[
480
- Optional[OutputMskAcknowledgments], PlainValidator(validate_open_enum(True))
481
- ] = OutputMskAcknowledgments.ONE
455
+ ack: Optional[OutputMskAcknowledgments] = OutputMskAcknowledgments.ONE
482
456
  r"""Control the number of required acknowledgments."""
483
457
 
484
458
  format_: Annotated[
485
- Annotated[
486
- Optional[OutputMskRecordDataFormat],
487
- PlainValidator(validate_open_enum(False)),
488
- ],
489
- pydantic.Field(alias="format"),
459
+ Optional[OutputMskRecordDataFormat], pydantic.Field(alias="format")
490
460
  ] = OutputMskRecordDataFormat.JSON
491
461
  r"""Format to use to serialize events before writing to Kafka."""
492
462
 
493
- compression: Annotated[
494
- Optional[OutputMskCompression], PlainValidator(validate_open_enum(False))
495
- ] = OutputMskCompression.GZIP
463
+ compression: Optional[OutputMskCompression] = OutputMskCompression.GZIP
496
464
  r"""Codec to use to compress the data before sending to Kafka"""
497
465
 
498
466
  max_record_size_kb: Annotated[
@@ -550,10 +518,7 @@ class OutputMsk(BaseModel):
550
518
  r"""Specifies a time window during which @{product} can reauthenticate if needed. Creates the window measuring backward from the moment when credentials are set to expire."""
551
519
 
552
520
  aws_authentication_method: Annotated[
553
- Annotated[
554
- Optional[OutputMskAuthenticationMethod],
555
- PlainValidator(validate_open_enum(False)),
556
- ],
521
+ Optional[OutputMskAuthenticationMethod],
557
522
  pydantic.Field(alias="awsAuthenticationMethod"),
558
523
  ] = OutputMskAuthenticationMethod.AUTO
559
524
  r"""AWS authentication method. Choose Auto to use IAM roles."""
@@ -566,11 +531,7 @@ class OutputMsk(BaseModel):
566
531
  r"""MSK cluster service endpoint. If empty, defaults to the AWS Region-specific endpoint. Otherwise, it must point to MSK cluster-compatible endpoint."""
567
532
 
568
533
  signature_version: Annotated[
569
- Annotated[
570
- Optional[OutputMskSignatureVersion],
571
- PlainValidator(validate_open_enum(False)),
572
- ],
573
- pydantic.Field(alias="signatureVersion"),
534
+ Optional[OutputMskSignatureVersion], pydantic.Field(alias="signatureVersion")
574
535
  ] = OutputMskSignatureVersion.V4
575
536
  r"""Signature version to use for signing MSK cluster requests"""
576
537
 
@@ -607,11 +568,7 @@ class OutputMsk(BaseModel):
607
568
  tls: Optional[OutputMskTLSSettingsClientSide] = None
608
569
 
609
570
  on_backpressure: Annotated[
610
- Annotated[
611
- Optional[OutputMskBackpressureBehavior],
612
- PlainValidator(validate_open_enum(False)),
613
- ],
614
- pydantic.Field(alias="onBackpressure"),
571
+ Optional[OutputMskBackpressureBehavior], pydantic.Field(alias="onBackpressure")
615
572
  ] = OutputMskBackpressureBehavior.BLOCK
616
573
  r"""How to handle events when all receivers are exerting backpressure"""
617
574
 
@@ -641,27 +598,18 @@ class OutputMsk(BaseModel):
641
598
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/<output-id>."""
642
599
 
643
600
  pq_compress: Annotated[
644
- Annotated[
645
- Optional[OutputMskPqCompressCompression],
646
- PlainValidator(validate_open_enum(False)),
647
- ],
648
- pydantic.Field(alias="pqCompress"),
601
+ Optional[OutputMskPqCompressCompression], pydantic.Field(alias="pqCompress")
649
602
  ] = OutputMskPqCompressCompression.NONE
650
603
  r"""Codec to use to compress the persisted data"""
651
604
 
652
605
  pq_on_backpressure: Annotated[
653
- Annotated[
654
- Optional[OutputMskQueueFullBehavior],
655
- PlainValidator(validate_open_enum(False)),
656
- ],
657
- pydantic.Field(alias="pqOnBackpressure"),
606
+ Optional[OutputMskQueueFullBehavior], pydantic.Field(alias="pqOnBackpressure")
658
607
  ] = OutputMskQueueFullBehavior.BLOCK
659
608
  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."""
660
609
 
661
- pq_mode: Annotated[
662
- Annotated[Optional[OutputMskMode], PlainValidator(validate_open_enum(False))],
663
- pydantic.Field(alias="pqMode"),
664
- ] = OutputMskMode.ERROR
610
+ pq_mode: Annotated[Optional[OutputMskMode], pydantic.Field(alias="pqMode")] = (
611
+ OutputMskMode.ERROR
612
+ )
665
613
  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."""
666
614
 
667
615
  pq_controls: Annotated[
@@ -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 OutputNewrelicType(str, Enum):
15
12
  NEWRELIC = "newrelic"
16
13
 
17
14
 
18
- class OutputNewrelicRegion(str, Enum, metaclass=utils.OpenEnumMeta):
15
+ class OutputNewrelicRegion(str, Enum):
19
16
  r"""Which New Relic region endpoint to use."""
20
17
 
21
18
  US = "US"
@@ -23,7 +20,7 @@ class OutputNewrelicRegion(str, Enum, metaclass=utils.OpenEnumMeta):
23
20
  CUSTOM = "Custom"
24
21
 
25
22
 
26
- class FieldName(str, Enum, metaclass=utils.OpenEnumMeta):
23
+ class FieldName(str, Enum):
27
24
  SERVICE = "service"
28
25
  HOSTNAME = "hostname"
29
26
  TIMESTAMP = "timestamp"
@@ -37,7 +34,7 @@ class OutputNewrelicMetadatumTypedDict(TypedDict):
37
34
 
38
35
 
39
36
  class OutputNewrelicMetadatum(BaseModel):
40
- name: Annotated[FieldName, PlainValidator(validate_open_enum(False))]
37
+ name: FieldName
41
38
 
42
39
  value: str
43
40
  r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
@@ -54,7 +51,7 @@ class OutputNewrelicExtraHTTPHeader(BaseModel):
54
51
  name: Optional[str] = None
55
52
 
56
53
 
57
- class OutputNewrelicFailedRequestLoggingMode(str, Enum, metaclass=utils.OpenEnumMeta):
54
+ class OutputNewrelicFailedRequestLoggingMode(str, Enum):
58
55
  r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
59
56
 
60
57
  PAYLOAD = "payload"
@@ -116,7 +113,7 @@ class OutputNewrelicTimeoutRetrySettings(BaseModel):
116
113
  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)."""
117
114
 
118
115
 
119
- class OutputNewrelicBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
116
+ class OutputNewrelicBackpressureBehavior(str, Enum):
120
117
  r"""How to handle events when all receivers are exerting backpressure"""
121
118
 
122
119
  BLOCK = "block"
@@ -124,28 +121,28 @@ class OutputNewrelicBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMeta
124
121
  QUEUE = "queue"
125
122
 
126
123
 
127
- class OutputNewrelicAuthenticationMethod(str, Enum, metaclass=utils.OpenEnumMeta):
124
+ class OutputNewrelicAuthenticationMethod(str, Enum):
128
125
  r"""Enter API key directly, or select a stored secret"""
129
126
 
130
127
  MANUAL = "manual"
131
128
  SECRET = "secret"
132
129
 
133
130
 
134
- class OutputNewrelicCompression(str, Enum, metaclass=utils.OpenEnumMeta):
131
+ class OutputNewrelicCompression(str, Enum):
135
132
  r"""Codec to use to compress the persisted data"""
136
133
 
137
134
  NONE = "none"
138
135
  GZIP = "gzip"
139
136
 
140
137
 
141
- class OutputNewrelicQueueFullBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
138
+ class OutputNewrelicQueueFullBehavior(str, Enum):
142
139
  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."""
143
140
 
144
141
  BLOCK = "block"
145
142
  DROP = "drop"
146
143
 
147
144
 
148
- class OutputNewrelicMode(str, Enum, metaclass=utils.OpenEnumMeta):
145
+ class OutputNewrelicMode(str, Enum):
149
146
  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."""
150
147
 
151
148
  ERROR = "error"
@@ -260,9 +257,7 @@ class OutputNewrelic(BaseModel):
260
257
  streamtags: Optional[List[str]] = None
261
258
  r"""Tags for filtering and grouping in @{product}"""
262
259
 
263
- region: Annotated[
264
- Optional[OutputNewrelicRegion], PlainValidator(validate_open_enum(False))
265
- ] = OutputNewrelicRegion.US
260
+ region: Optional[OutputNewrelicRegion] = OutputNewrelicRegion.US
266
261
  r"""Which New Relic region endpoint to use."""
267
262
 
268
263
  log_type: Annotated[Optional[str], pydantic.Field(alias="logType")] = ""
@@ -318,10 +313,7 @@ class OutputNewrelic(BaseModel):
318
313
  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."""
319
314
 
320
315
  failed_request_logging_mode: Annotated[
321
- Annotated[
322
- Optional[OutputNewrelicFailedRequestLoggingMode],
323
- PlainValidator(validate_open_enum(False)),
324
- ],
316
+ Optional[OutputNewrelicFailedRequestLoggingMode],
325
317
  pydantic.Field(alias="failedRequestLoggingMode"),
326
318
  ] = OutputNewrelicFailedRequestLoggingMode.NONE
327
319
  r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
@@ -348,20 +340,13 @@ class OutputNewrelic(BaseModel):
348
340
  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."""
349
341
 
350
342
  on_backpressure: Annotated[
351
- Annotated[
352
- Optional[OutputNewrelicBackpressureBehavior],
353
- PlainValidator(validate_open_enum(False)),
354
- ],
343
+ Optional[OutputNewrelicBackpressureBehavior],
355
344
  pydantic.Field(alias="onBackpressure"),
356
345
  ] = OutputNewrelicBackpressureBehavior.BLOCK
357
346
  r"""How to handle events when all receivers are exerting backpressure"""
358
347
 
359
348
  auth_type: Annotated[
360
- Annotated[
361
- Optional[OutputNewrelicAuthenticationMethod],
362
- PlainValidator(validate_open_enum(False)),
363
- ],
364
- pydantic.Field(alias="authType"),
349
+ Optional[OutputNewrelicAuthenticationMethod], pydantic.Field(alias="authType")
365
350
  ] = OutputNewrelicAuthenticationMethod.MANUAL
366
351
  r"""Enter API key directly, or select a stored secret"""
367
352
 
@@ -388,29 +373,19 @@ class OutputNewrelic(BaseModel):
388
373
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/<output-id>."""
389
374
 
390
375
  pq_compress: Annotated[
391
- Annotated[
392
- Optional[OutputNewrelicCompression],
393
- PlainValidator(validate_open_enum(False)),
394
- ],
395
- pydantic.Field(alias="pqCompress"),
376
+ Optional[OutputNewrelicCompression], pydantic.Field(alias="pqCompress")
396
377
  ] = OutputNewrelicCompression.NONE
397
378
  r"""Codec to use to compress the persisted data"""
398
379
 
399
380
  pq_on_backpressure: Annotated[
400
- Annotated[
401
- Optional[OutputNewrelicQueueFullBehavior],
402
- PlainValidator(validate_open_enum(False)),
403
- ],
381
+ Optional[OutputNewrelicQueueFullBehavior],
404
382
  pydantic.Field(alias="pqOnBackpressure"),
405
383
  ] = OutputNewrelicQueueFullBehavior.BLOCK
406
384
  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."""
407
385
 
408
- pq_mode: Annotated[
409
- Annotated[
410
- Optional[OutputNewrelicMode], PlainValidator(validate_open_enum(False))
411
- ],
412
- pydantic.Field(alias="pqMode"),
413
- ] = OutputNewrelicMode.ERROR
386
+ pq_mode: Annotated[Optional[OutputNewrelicMode], pydantic.Field(alias="pqMode")] = (
387
+ OutputNewrelicMode.ERROR
388
+ )
414
389
  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."""
415
390
 
416
391
  pq_controls: Annotated[
@@ -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 OutputNewrelicEventsType(str, Enum):
15
12
  NEWRELIC_EVENTS = "newrelic_events"
16
13
 
17
14
 
18
- class OutputNewrelicEventsRegion(str, Enum, metaclass=utils.OpenEnumMeta):
15
+ class OutputNewrelicEventsRegion(str, Enum):
19
16
  r"""Which New Relic region endpoint to use."""
20
17
 
21
18
  US = "US"
@@ -34,9 +31,7 @@ class OutputNewrelicEventsExtraHTTPHeader(BaseModel):
34
31
  name: Optional[str] = None
35
32
 
36
33
 
37
- class OutputNewrelicEventsFailedRequestLoggingMode(
38
- str, Enum, metaclass=utils.OpenEnumMeta
39
- ):
34
+ class OutputNewrelicEventsFailedRequestLoggingMode(str, Enum):
40
35
  r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
41
36
 
42
37
  PAYLOAD = "payload"
@@ -98,7 +93,7 @@ class OutputNewrelicEventsTimeoutRetrySettings(BaseModel):
98
93
  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)."""
99
94
 
100
95
 
101
- class OutputNewrelicEventsBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
96
+ class OutputNewrelicEventsBackpressureBehavior(str, Enum):
102
97
  r"""How to handle events when all receivers are exerting backpressure"""
103
98
 
104
99
  BLOCK = "block"
@@ -106,28 +101,28 @@ class OutputNewrelicEventsBackpressureBehavior(str, Enum, metaclass=utils.OpenEn
106
101
  QUEUE = "queue"
107
102
 
108
103
 
109
- class OutputNewrelicEventsAuthenticationMethod(str, Enum, metaclass=utils.OpenEnumMeta):
104
+ class OutputNewrelicEventsAuthenticationMethod(str, Enum):
110
105
  r"""Enter API key directly, or select a stored secret"""
111
106
 
112
107
  MANUAL = "manual"
113
108
  SECRET = "secret"
114
109
 
115
110
 
116
- class OutputNewrelicEventsCompression(str, Enum, metaclass=utils.OpenEnumMeta):
111
+ class OutputNewrelicEventsCompression(str, Enum):
117
112
  r"""Codec to use to compress the persisted data"""
118
113
 
119
114
  NONE = "none"
120
115
  GZIP = "gzip"
121
116
 
122
117
 
123
- class OutputNewrelicEventsQueueFullBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
118
+ class OutputNewrelicEventsQueueFullBehavior(str, Enum):
124
119
  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."""
125
120
 
126
121
  BLOCK = "block"
127
122
  DROP = "drop"
128
123
 
129
124
 
130
- class OutputNewrelicEventsMode(str, Enum, metaclass=utils.OpenEnumMeta):
125
+ class OutputNewrelicEventsMode(str, Enum):
131
126
  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."""
132
127
 
133
128
  ERROR = "error"
@@ -248,9 +243,7 @@ class OutputNewrelicEvents(BaseModel):
248
243
  streamtags: Optional[List[str]] = None
249
244
  r"""Tags for filtering and grouping in @{product}"""
250
245
 
251
- region: Annotated[
252
- Optional[OutputNewrelicEventsRegion], PlainValidator(validate_open_enum(False))
253
- ] = OutputNewrelicEventsRegion.US
246
+ region: Optional[OutputNewrelicEventsRegion] = OutputNewrelicEventsRegion.US
254
247
  r"""Which New Relic region endpoint to use."""
255
248
 
256
249
  concurrency: Optional[float] = 5
@@ -297,10 +290,7 @@ class OutputNewrelicEvents(BaseModel):
297
290
  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."""
298
291
 
299
292
  failed_request_logging_mode: Annotated[
300
- Annotated[
301
- Optional[OutputNewrelicEventsFailedRequestLoggingMode],
302
- PlainValidator(validate_open_enum(False)),
303
- ],
293
+ Optional[OutputNewrelicEventsFailedRequestLoggingMode],
304
294
  pydantic.Field(alias="failedRequestLoggingMode"),
305
295
  ] = OutputNewrelicEventsFailedRequestLoggingMode.NONE
306
296
  r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
@@ -327,19 +317,13 @@ class OutputNewrelicEvents(BaseModel):
327
317
  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."""
328
318
 
329
319
  on_backpressure: Annotated[
330
- Annotated[
331
- Optional[OutputNewrelicEventsBackpressureBehavior],
332
- PlainValidator(validate_open_enum(False)),
333
- ],
320
+ Optional[OutputNewrelicEventsBackpressureBehavior],
334
321
  pydantic.Field(alias="onBackpressure"),
335
322
  ] = OutputNewrelicEventsBackpressureBehavior.BLOCK
336
323
  r"""How to handle events when all receivers are exerting backpressure"""
337
324
 
338
325
  auth_type: Annotated[
339
- Annotated[
340
- Optional[OutputNewrelicEventsAuthenticationMethod],
341
- PlainValidator(validate_open_enum(False)),
342
- ],
326
+ Optional[OutputNewrelicEventsAuthenticationMethod],
343
327
  pydantic.Field(alias="authType"),
344
328
  ] = OutputNewrelicEventsAuthenticationMethod.MANUAL
345
329
  r"""Enter API key directly, or select a stored secret"""
@@ -362,29 +346,18 @@ class OutputNewrelicEvents(BaseModel):
362
346
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/<output-id>."""
363
347
 
364
348
  pq_compress: Annotated[
365
- Annotated[
366
- Optional[OutputNewrelicEventsCompression],
367
- PlainValidator(validate_open_enum(False)),
368
- ],
369
- pydantic.Field(alias="pqCompress"),
349
+ Optional[OutputNewrelicEventsCompression], pydantic.Field(alias="pqCompress")
370
350
  ] = OutputNewrelicEventsCompression.NONE
371
351
  r"""Codec to use to compress the persisted data"""
372
352
 
373
353
  pq_on_backpressure: Annotated[
374
- Annotated[
375
- Optional[OutputNewrelicEventsQueueFullBehavior],
376
- PlainValidator(validate_open_enum(False)),
377
- ],
354
+ Optional[OutputNewrelicEventsQueueFullBehavior],
378
355
  pydantic.Field(alias="pqOnBackpressure"),
379
356
  ] = OutputNewrelicEventsQueueFullBehavior.BLOCK
380
357
  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."""
381
358
 
382
359
  pq_mode: Annotated[
383
- Annotated[
384
- Optional[OutputNewrelicEventsMode],
385
- PlainValidator(validate_open_enum(False)),
386
- ],
387
- pydantic.Field(alias="pqMode"),
360
+ Optional[OutputNewrelicEventsMode], pydantic.Field(alias="pqMode")
388
361
  ] = OutputNewrelicEventsMode.ERROR
389
362
  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."""
390
363