cribl-control-plane 0.0.44a2__py3-none-any.whl → 0.0.45__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 (158) hide show
  1. cribl_control_plane/_version.py +3 -3
  2. cribl_control_plane/errors/healthstatus_error.py +2 -8
  3. cribl_control_plane/models/__init__.py +3 -3
  4. cribl_control_plane/models/appmode.py +1 -2
  5. cribl_control_plane/models/cacheconnection.py +2 -10
  6. cribl_control_plane/models/cacheconnectionbackfillstatus.py +1 -2
  7. cribl_control_plane/models/cloudprovider.py +1 -2
  8. cribl_control_plane/models/configgroup.py +2 -7
  9. cribl_control_plane/models/configgroupcloud.py +2 -6
  10. cribl_control_plane/models/createconfiggroupbyproductop.py +2 -8
  11. cribl_control_plane/models/cribllakedataset.py +2 -8
  12. cribl_control_plane/models/datasetmetadata.py +2 -8
  13. cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +2 -7
  14. cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +2 -4
  15. cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +2 -4
  16. cribl_control_plane/models/getconfiggroupbyproductandidop.py +1 -3
  17. cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +2 -7
  18. cribl_control_plane/models/getsummaryop.py +2 -7
  19. cribl_control_plane/models/hbcriblinfo.py +6 -6
  20. cribl_control_plane/models/healthstatus.py +4 -7
  21. cribl_control_plane/models/inputappscope.py +14 -34
  22. cribl_control_plane/models/inputazureblob.py +6 -17
  23. cribl_control_plane/models/inputcollection.py +4 -11
  24. cribl_control_plane/models/inputconfluentcloud.py +20 -47
  25. cribl_control_plane/models/inputcribl.py +4 -11
  26. cribl_control_plane/models/inputcriblhttp.py +8 -23
  27. cribl_control_plane/models/inputcribllakehttp.py +10 -22
  28. cribl_control_plane/models/inputcriblmetrics.py +4 -12
  29. cribl_control_plane/models/inputcribltcp.py +8 -23
  30. cribl_control_plane/models/inputcrowdstrike.py +10 -26
  31. cribl_control_plane/models/inputdatadogagent.py +8 -24
  32. cribl_control_plane/models/inputdatagen.py +4 -11
  33. cribl_control_plane/models/inputedgeprometheus.py +24 -58
  34. cribl_control_plane/models/inputelastic.py +14 -40
  35. cribl_control_plane/models/inputeventhub.py +6 -15
  36. cribl_control_plane/models/inputexec.py +6 -14
  37. cribl_control_plane/models/inputfile.py +6 -15
  38. cribl_control_plane/models/inputfirehose.py +8 -23
  39. cribl_control_plane/models/inputgooglepubsub.py +6 -19
  40. cribl_control_plane/models/inputgrafana.py +24 -67
  41. cribl_control_plane/models/inputhttp.py +8 -23
  42. cribl_control_plane/models/inputhttpraw.py +8 -23
  43. cribl_control_plane/models/inputjournalfiles.py +4 -12
  44. cribl_control_plane/models/inputkafka.py +16 -46
  45. cribl_control_plane/models/inputkinesis.py +14 -38
  46. cribl_control_plane/models/inputkubeevents.py +4 -11
  47. cribl_control_plane/models/inputkubelogs.py +8 -16
  48. cribl_control_plane/models/inputkubemetrics.py +8 -16
  49. cribl_control_plane/models/inputloki.py +10 -29
  50. cribl_control_plane/models/inputmetrics.py +8 -23
  51. cribl_control_plane/models/inputmodeldriventelemetry.py +10 -27
  52. cribl_control_plane/models/inputmsk.py +18 -53
  53. cribl_control_plane/models/inputnetflow.py +4 -11
  54. cribl_control_plane/models/inputoffice365mgmt.py +14 -33
  55. cribl_control_plane/models/inputoffice365msgtrace.py +16 -35
  56. cribl_control_plane/models/inputoffice365service.py +16 -35
  57. cribl_control_plane/models/inputopentelemetry.py +16 -38
  58. cribl_control_plane/models/inputprometheus.py +18 -50
  59. cribl_control_plane/models/inputprometheusrw.py +10 -30
  60. cribl_control_plane/models/inputrawudp.py +4 -11
  61. cribl_control_plane/models/inputs3.py +8 -21
  62. cribl_control_plane/models/inputs3inventory.py +10 -26
  63. cribl_control_plane/models/inputsecuritylake.py +10 -27
  64. cribl_control_plane/models/inputsnmp.py +6 -16
  65. cribl_control_plane/models/inputsplunk.py +12 -33
  66. cribl_control_plane/models/inputsplunkhec.py +10 -29
  67. cribl_control_plane/models/inputsplunksearch.py +14 -33
  68. cribl_control_plane/models/inputsqs.py +10 -27
  69. cribl_control_plane/models/inputsyslog.py +16 -43
  70. cribl_control_plane/models/inputsystemmetrics.py +24 -48
  71. cribl_control_plane/models/inputsystemstate.py +8 -16
  72. cribl_control_plane/models/inputtcp.py +10 -29
  73. cribl_control_plane/models/inputtcpjson.py +10 -29
  74. cribl_control_plane/models/inputwef.py +14 -37
  75. cribl_control_plane/models/inputwindowsmetrics.py +24 -44
  76. cribl_control_plane/models/inputwineventlogs.py +10 -20
  77. cribl_control_plane/models/inputwiz.py +8 -21
  78. cribl_control_plane/models/inputwizwebhook.py +8 -23
  79. cribl_control_plane/models/inputzscalerhec.py +10 -29
  80. cribl_control_plane/models/lakehouseconnectiontype.py +1 -2
  81. cribl_control_plane/models/listconfiggroupbyproductop.py +1 -3
  82. cribl_control_plane/models/masterworkerentry.py +2 -7
  83. cribl_control_plane/models/nodeactiveupgradestatus.py +1 -2
  84. cribl_control_plane/models/nodefailedupgradestatus.py +1 -2
  85. cribl_control_plane/models/nodeskippedupgradestatus.py +1 -2
  86. cribl_control_plane/models/nodeupgradestate.py +1 -2
  87. cribl_control_plane/models/nodeupgradestatus.py +5 -13
  88. cribl_control_plane/models/outputazureblob.py +18 -48
  89. cribl_control_plane/models/outputazuredataexplorer.py +28 -73
  90. cribl_control_plane/models/outputazureeventhub.py +18 -40
  91. cribl_control_plane/models/outputazurelogs.py +12 -35
  92. cribl_control_plane/models/outputclickhouse.py +20 -55
  93. cribl_control_plane/models/outputcloudwatch.py +10 -29
  94. cribl_control_plane/models/outputconfluentcloud.py +32 -77
  95. cribl_control_plane/models/outputcriblhttp.py +16 -44
  96. cribl_control_plane/models/outputcribllake.py +16 -46
  97. cribl_control_plane/models/outputcribltcp.py +18 -45
  98. cribl_control_plane/models/outputcrowdstrikenextgensiem.py +14 -49
  99. cribl_control_plane/models/outputdatadog.py +20 -48
  100. cribl_control_plane/models/outputdataset.py +18 -46
  101. cribl_control_plane/models/outputdiskspool.py +2 -7
  102. cribl_control_plane/models/outputdls3.py +24 -68
  103. cribl_control_plane/models/outputdynatracehttp.py +20 -53
  104. cribl_control_plane/models/outputdynatraceotlp.py +22 -55
  105. cribl_control_plane/models/outputelastic.py +18 -43
  106. cribl_control_plane/models/outputelasticcloud.py +12 -36
  107. cribl_control_plane/models/outputexabeam.py +10 -29
  108. cribl_control_plane/models/outputfilesystem.py +14 -39
  109. cribl_control_plane/models/outputgooglechronicle.py +16 -50
  110. cribl_control_plane/models/outputgooglecloudlogging.py +14 -41
  111. cribl_control_plane/models/outputgooglecloudstorage.py +24 -66
  112. cribl_control_plane/models/outputgooglepubsub.py +10 -31
  113. cribl_control_plane/models/outputgrafanacloud.py +32 -97
  114. cribl_control_plane/models/outputgraphite.py +14 -31
  115. cribl_control_plane/models/outputhoneycomb.py +12 -35
  116. cribl_control_plane/models/outputhumiohec.py +16 -43
  117. cribl_control_plane/models/outputinfluxdb.py +16 -42
  118. cribl_control_plane/models/outputkafka.py +28 -74
  119. cribl_control_plane/models/outputkinesis.py +16 -40
  120. cribl_control_plane/models/outputloki.py +16 -41
  121. cribl_control_plane/models/outputminio.py +24 -65
  122. cribl_control_plane/models/outputmsk.py +30 -82
  123. cribl_control_plane/models/outputnewrelic.py +18 -43
  124. cribl_control_plane/models/outputnewrelicevents.py +14 -41
  125. cribl_control_plane/models/outputopentelemetry.py +26 -67
  126. cribl_control_plane/models/outputprometheus.py +12 -35
  127. cribl_control_plane/models/outputring.py +8 -19
  128. cribl_control_plane/models/outputs3.py +26 -68
  129. cribl_control_plane/models/outputsecuritylake.py +18 -52
  130. cribl_control_plane/models/outputsentinel.py +18 -45
  131. cribl_control_plane/models/outputsentineloneaisiem.py +18 -50
  132. cribl_control_plane/models/outputservicenow.py +24 -60
  133. cribl_control_plane/models/outputsignalfx.py +14 -37
  134. cribl_control_plane/models/outputsns.py +14 -36
  135. cribl_control_plane/models/outputsplunk.py +24 -60
  136. cribl_control_plane/models/outputsplunkhec.py +12 -35
  137. cribl_control_plane/models/outputsplunklb.py +30 -77
  138. cribl_control_plane/models/outputsqs.py +16 -41
  139. cribl_control_plane/models/outputstatsd.py +14 -30
  140. cribl_control_plane/models/outputstatsdext.py +12 -29
  141. cribl_control_plane/models/outputsumologic.py +12 -35
  142. cribl_control_plane/models/outputsyslog.py +24 -58
  143. cribl_control_plane/models/outputtcpjson.py +20 -52
  144. cribl_control_plane/models/outputwavefront.py +12 -35
  145. cribl_control_plane/models/outputwebhook.py +22 -58
  146. cribl_control_plane/models/outputxsiam.py +14 -35
  147. cribl_control_plane/models/productscore.py +1 -2
  148. cribl_control_plane/models/rbacresource.py +1 -2
  149. cribl_control_plane/models/resourcepolicy.py +2 -4
  150. cribl_control_plane/models/runnablejobcollection.py +13 -30
  151. cribl_control_plane/models/runnablejobexecutor.py +4 -13
  152. cribl_control_plane/models/runnablejobscheduledsearch.py +2 -7
  153. cribl_control_plane/models/updateconfiggroupbyproductandidop.py +2 -8
  154. cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +2 -8
  155. cribl_control_plane/models/workertypes.py +1 -2
  156. {cribl_control_plane-0.0.44a2.dist-info → cribl_control_plane-0.0.45.dist-info}/METADATA +1 -1
  157. {cribl_control_plane-0.0.44a2.dist-info → cribl_control_plane-0.0.45.dist-info}/RECORD +158 -158
  158. {cribl_control_plane-0.0.44a2.dist-info → cribl_control_plane-0.0.45.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 OutputDynatraceHTTPType(str, Enum):
15
12
  DYNATRACE_HTTP = "dynatrace_http"
16
13
 
17
14
 
18
- class OutputDynatraceHTTPMethod(str, Enum, metaclass=utils.OpenEnumMeta):
15
+ class OutputDynatraceHTTPMethod(str, Enum):
19
16
  r"""The method to use when sending events"""
20
17
 
21
18
  POST = "POST"
@@ -34,9 +31,7 @@ class OutputDynatraceHTTPExtraHTTPHeader(BaseModel):
34
31
  name: Optional[str] = None
35
32
 
36
33
 
37
- class OutputDynatraceHTTPFailedRequestLoggingMode(
38
- str, Enum, metaclass=utils.OpenEnumMeta
39
- ):
34
+ class OutputDynatraceHTTPFailedRequestLoggingMode(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 OutputDynatraceHTTPTimeoutRetrySettings(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 OutputDynatraceHTTPBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
96
+ class OutputDynatraceHTTPBackpressureBehavior(str, Enum):
102
97
  r"""How to handle events when all receivers are exerting backpressure"""
103
98
 
104
99
  BLOCK = "block"
@@ -106,44 +101,44 @@ class OutputDynatraceHTTPBackpressureBehavior(str, Enum, metaclass=utils.OpenEnu
106
101
  QUEUE = "queue"
107
102
 
108
103
 
109
- class OutputDynatraceHTTPAuthenticationType(str, Enum, metaclass=utils.OpenEnumMeta):
104
+ class OutputDynatraceHTTPAuthenticationType(str, Enum):
110
105
  TOKEN = "token"
111
106
  TEXT_SECRET = "textSecret"
112
107
 
113
108
 
114
- class OutputDynatraceHTTPFormat(str, Enum, metaclass=utils.OpenEnumMeta):
109
+ class OutputDynatraceHTTPFormat(str, Enum):
115
110
  r"""How to format events before sending. Defaults to JSON. Plaintext is not currently supported."""
116
111
 
117
112
  JSON_ARRAY = "json_array"
118
113
  PLAINTEXT = "plaintext"
119
114
 
120
115
 
121
- class Endpoint(str, Enum, metaclass=utils.OpenEnumMeta):
116
+ class Endpoint(str, Enum):
122
117
  CLOUD = "cloud"
123
118
  ACTIVE_GATE = "activeGate"
124
119
  MANUAL = "manual"
125
120
 
126
121
 
127
- class TelemetryType(str, Enum, metaclass=utils.OpenEnumMeta):
122
+ class TelemetryType(str, Enum):
128
123
  LOGS = "logs"
129
124
  METRICS = "metrics"
130
125
 
131
126
 
132
- class OutputDynatraceHTTPCompression(str, Enum, metaclass=utils.OpenEnumMeta):
127
+ class OutputDynatraceHTTPCompression(str, Enum):
133
128
  r"""Codec to use to compress the persisted data"""
134
129
 
135
130
  NONE = "none"
136
131
  GZIP = "gzip"
137
132
 
138
133
 
139
- class OutputDynatraceHTTPQueueFullBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
134
+ class OutputDynatraceHTTPQueueFullBehavior(str, Enum):
140
135
  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."""
141
136
 
142
137
  BLOCK = "block"
143
138
  DROP = "drop"
144
139
 
145
140
 
146
- class OutputDynatraceHTTPMode(str, Enum, metaclass=utils.OpenEnumMeta):
141
+ class OutputDynatraceHTTPMode(str, Enum):
147
142
  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."""
148
143
 
149
144
  ERROR = "error"
@@ -266,9 +261,7 @@ class OutputDynatraceHTTP(BaseModel):
266
261
  streamtags: Optional[List[str]] = None
267
262
  r"""Tags for filtering and grouping in @{product}"""
268
263
 
269
- method: Annotated[
270
- Optional[OutputDynatraceHTTPMethod], PlainValidator(validate_open_enum(False))
271
- ] = OutputDynatraceHTTPMethod.POST
264
+ method: Optional[OutputDynatraceHTTPMethod] = OutputDynatraceHTTPMethod.POST
272
265
  r"""The method to use when sending events"""
273
266
 
274
267
  keep_alive: Annotated[Optional[bool], pydantic.Field(alias="keepAlive")] = True
@@ -318,10 +311,7 @@ class OutputDynatraceHTTP(BaseModel):
318
311
  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
312
 
320
313
  failed_request_logging_mode: Annotated[
321
- Annotated[
322
- Optional[OutputDynatraceHTTPFailedRequestLoggingMode],
323
- PlainValidator(validate_open_enum(False)),
324
- ],
314
+ Optional[OutputDynatraceHTTPFailedRequestLoggingMode],
325
315
  pydantic.Field(alias="failedRequestLoggingMode"),
326
316
  ] = OutputDynatraceHTTPFailedRequestLoggingMode.NONE
327
317
  r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
@@ -348,38 +338,25 @@ class OutputDynatraceHTTP(BaseModel):
348
338
  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
339
 
350
340
  on_backpressure: Annotated[
351
- Annotated[
352
- Optional[OutputDynatraceHTTPBackpressureBehavior],
353
- PlainValidator(validate_open_enum(False)),
354
- ],
341
+ Optional[OutputDynatraceHTTPBackpressureBehavior],
355
342
  pydantic.Field(alias="onBackpressure"),
356
343
  ] = OutputDynatraceHTTPBackpressureBehavior.BLOCK
357
344
  r"""How to handle events when all receivers are exerting backpressure"""
358
345
 
359
346
  auth_type: Annotated[
360
- Annotated[
361
- Optional[OutputDynatraceHTTPAuthenticationType],
362
- PlainValidator(validate_open_enum(False)),
363
- ],
347
+ Optional[OutputDynatraceHTTPAuthenticationType],
364
348
  pydantic.Field(alias="authType"),
365
349
  ] = OutputDynatraceHTTPAuthenticationType.TOKEN
366
350
 
367
351
  format_: Annotated[
368
- Annotated[
369
- Optional[OutputDynatraceHTTPFormat],
370
- PlainValidator(validate_open_enum(False)),
371
- ],
372
- pydantic.Field(alias="format"),
352
+ Optional[OutputDynatraceHTTPFormat], pydantic.Field(alias="format")
373
353
  ] = OutputDynatraceHTTPFormat.JSON_ARRAY
374
354
  r"""How to format events before sending. Defaults to JSON. Plaintext is not currently supported."""
375
355
 
376
- endpoint: Annotated[
377
- Optional[Endpoint], PlainValidator(validate_open_enum(False))
378
- ] = Endpoint.CLOUD
356
+ endpoint: Optional[Endpoint] = Endpoint.CLOUD
379
357
 
380
358
  telemetry_type: Annotated[
381
- Annotated[Optional[TelemetryType], PlainValidator(validate_open_enum(False))],
382
- pydantic.Field(alias="telemetryType"),
359
+ Optional[TelemetryType], pydantic.Field(alias="telemetryType")
383
360
  ] = TelemetryType.LOGS
384
361
 
385
362
  total_memory_limit_kb: Annotated[
@@ -403,28 +380,18 @@ class OutputDynatraceHTTP(BaseModel):
403
380
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/<output-id>."""
404
381
 
405
382
  pq_compress: Annotated[
406
- Annotated[
407
- Optional[OutputDynatraceHTTPCompression],
408
- PlainValidator(validate_open_enum(False)),
409
- ],
410
- pydantic.Field(alias="pqCompress"),
383
+ Optional[OutputDynatraceHTTPCompression], pydantic.Field(alias="pqCompress")
411
384
  ] = OutputDynatraceHTTPCompression.NONE
412
385
  r"""Codec to use to compress the persisted data"""
413
386
 
414
387
  pq_on_backpressure: Annotated[
415
- Annotated[
416
- Optional[OutputDynatraceHTTPQueueFullBehavior],
417
- PlainValidator(validate_open_enum(False)),
418
- ],
388
+ Optional[OutputDynatraceHTTPQueueFullBehavior],
419
389
  pydantic.Field(alias="pqOnBackpressure"),
420
390
  ] = OutputDynatraceHTTPQueueFullBehavior.BLOCK
421
391
  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."""
422
392
 
423
393
  pq_mode: Annotated[
424
- Annotated[
425
- Optional[OutputDynatraceHTTPMode], PlainValidator(validate_open_enum(False))
426
- ],
427
- pydantic.Field(alias="pqMode"),
394
+ Optional[OutputDynatraceHTTPMode], pydantic.Field(alias="pqMode")
428
395
  ] = OutputDynatraceHTTPMode.ERROR
429
396
  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."""
430
397
 
@@ -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,19 +12,19 @@ class OutputDynatraceOtlpType(str, Enum):
15
12
  DYNATRACE_OTLP = "dynatrace_otlp"
16
13
 
17
14
 
18
- class OutputDynatraceOtlpProtocol(str, Enum, metaclass=utils.OpenEnumMeta):
15
+ class OutputDynatraceOtlpProtocol(str, Enum):
19
16
  r"""Select a transport option for Dynatrace"""
20
17
 
21
18
  HTTP = "http"
22
19
 
23
20
 
24
- class OutputDynatraceOTLPOTLPVersion(str, Enum, metaclass=utils.OpenEnumMeta):
21
+ class OutputDynatraceOTLPOTLPVersion(str, Enum):
25
22
  r"""The version of OTLP Protobuf definitions to use when structuring data to send"""
26
23
 
27
24
  ONE_DOT_3_DOT_1 = "1.3.1"
28
25
 
29
26
 
30
- class OutputDynatraceOtlpCompressCompression(str, Enum, metaclass=utils.OpenEnumMeta):
27
+ class OutputDynatraceOtlpCompressCompression(str, Enum):
31
28
  r"""Type of compression to apply to messages sent to the OpenTelemetry endpoint"""
32
29
 
33
30
  NONE = "none"
@@ -35,9 +32,7 @@ class OutputDynatraceOtlpCompressCompression(str, Enum, metaclass=utils.OpenEnum
35
32
  GZIP = "gzip"
36
33
 
37
34
 
38
- class OutputDynatraceOtlpHTTPCompressCompression(
39
- str, Enum, metaclass=utils.OpenEnumMeta
40
- ):
35
+ class OutputDynatraceOtlpHTTPCompressCompression(str, Enum):
41
36
  r"""Type of compression to apply to messages sent to the OpenTelemetry endpoint"""
42
37
 
43
38
  NONE = "none"
@@ -55,9 +50,7 @@ class OutputDynatraceOtlpMetadatum(BaseModel):
55
50
  key: Optional[str] = ""
56
51
 
57
52
 
58
- class OutputDynatraceOtlpFailedRequestLoggingMode(
59
- str, Enum, metaclass=utils.OpenEnumMeta
60
- ):
53
+ class OutputDynatraceOtlpFailedRequestLoggingMode(str, Enum):
61
54
  r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
62
55
 
63
56
  PAYLOAD = "payload"
@@ -65,14 +58,14 @@ class OutputDynatraceOtlpFailedRequestLoggingMode(
65
58
  NONE = "none"
66
59
 
67
60
 
68
- class EndpointType(str, Enum, metaclass=utils.OpenEnumMeta):
61
+ class EndpointType(str, Enum):
69
62
  r"""Select the type of Dynatrace endpoint configured"""
70
63
 
71
64
  SAAS = "saas"
72
65
  AG = "ag"
73
66
 
74
67
 
75
- class OutputDynatraceOtlpBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
68
+ class OutputDynatraceOtlpBackpressureBehavior(str, Enum):
76
69
  r"""How to handle events when all receivers are exerting backpressure"""
77
70
 
78
71
  BLOCK = "block"
@@ -145,21 +138,21 @@ class OutputDynatraceOtlpTimeoutRetrySettings(BaseModel):
145
138
  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)."""
146
139
 
147
140
 
148
- class OutputDynatraceOtlpPqCompressCompression(str, Enum, metaclass=utils.OpenEnumMeta):
141
+ class OutputDynatraceOtlpPqCompressCompression(str, Enum):
149
142
  r"""Codec to use to compress the persisted data"""
150
143
 
151
144
  NONE = "none"
152
145
  GZIP = "gzip"
153
146
 
154
147
 
155
- class OutputDynatraceOtlpQueueFullBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
148
+ class OutputDynatraceOtlpQueueFullBehavior(str, Enum):
156
149
  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."""
157
150
 
158
151
  BLOCK = "block"
159
152
  DROP = "drop"
160
153
 
161
154
 
162
- class OutputDynatraceOtlpMode(str, Enum, metaclass=utils.OpenEnumMeta):
155
+ class OutputDynatraceOtlpMode(str, Enum):
163
156
  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."""
164
157
 
165
158
  ERROR = "error"
@@ -289,9 +282,7 @@ class OutputDynatraceOtlp(BaseModel):
289
282
  streamtags: Optional[List[str]] = None
290
283
  r"""Tags for filtering and grouping in @{product}"""
291
284
 
292
- protocol: Annotated[
293
- Optional[OutputDynatraceOtlpProtocol], PlainValidator(validate_open_enum(False))
294
- ] = OutputDynatraceOtlpProtocol.HTTP
285
+ protocol: Optional[OutputDynatraceOtlpProtocol] = OutputDynatraceOtlpProtocol.HTTP
295
286
  r"""Select a transport option for Dynatrace"""
296
287
 
297
288
  endpoint: Optional[str] = (
@@ -300,25 +291,17 @@ class OutputDynatraceOtlp(BaseModel):
300
291
  r"""The endpoint where Dynatrace events will be sent. Enter any valid URL or an IP address (IPv4 or IPv6; enclose IPv6 addresses in square brackets)"""
301
292
 
302
293
  otlp_version: Annotated[
303
- Annotated[
304
- Optional[OutputDynatraceOTLPOTLPVersion],
305
- PlainValidator(validate_open_enum(False)),
306
- ],
307
- pydantic.Field(alias="otlpVersion"),
294
+ Optional[OutputDynatraceOTLPOTLPVersion], pydantic.Field(alias="otlpVersion")
308
295
  ] = OutputDynatraceOTLPOTLPVersion.ONE_DOT_3_DOT_1
309
296
  r"""The version of OTLP Protobuf definitions to use when structuring data to send"""
310
297
 
311
- compress: Annotated[
312
- Optional[OutputDynatraceOtlpCompressCompression],
313
- PlainValidator(validate_open_enum(False)),
314
- ] = OutputDynatraceOtlpCompressCompression.GZIP
298
+ compress: Optional[OutputDynatraceOtlpCompressCompression] = (
299
+ OutputDynatraceOtlpCompressCompression.GZIP
300
+ )
315
301
  r"""Type of compression to apply to messages sent to the OpenTelemetry endpoint"""
316
302
 
317
303
  http_compress: Annotated[
318
- Annotated[
319
- Optional[OutputDynatraceOtlpHTTPCompressCompression],
320
- PlainValidator(validate_open_enum(False)),
321
- ],
304
+ Optional[OutputDynatraceOtlpHTTPCompressCompression],
322
305
  pydantic.Field(alias="httpCompress"),
323
306
  ] = OutputDynatraceOtlpHTTPCompressCompression.GZIP
324
307
  r"""Type of compression to apply to messages sent to the OpenTelemetry endpoint"""
@@ -358,10 +341,7 @@ class OutputDynatraceOtlp(BaseModel):
358
341
  r"""Maximum time between requests. Small values could cause the payload size to be smaller than the configured Body size limit."""
359
342
 
360
343
  failed_request_logging_mode: Annotated[
361
- Annotated[
362
- Optional[OutputDynatraceOtlpFailedRequestLoggingMode],
363
- PlainValidator(validate_open_enum(False)),
364
- ],
344
+ Optional[OutputDynatraceOtlpFailedRequestLoggingMode],
365
345
  pydantic.Field(alias="failedRequestLoggingMode"),
366
346
  ] = OutputDynatraceOtlpFailedRequestLoggingMode.NONE
367
347
  r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
@@ -380,8 +360,7 @@ class OutputDynatraceOtlp(BaseModel):
380
360
  r"""Disable to close the connection immediately after sending the outgoing request"""
381
361
 
382
362
  endpoint_type: Annotated[
383
- Annotated[Optional[EndpointType], PlainValidator(validate_open_enum(False))],
384
- pydantic.Field(alias="endpointType"),
363
+ Optional[EndpointType], pydantic.Field(alias="endpointType")
385
364
  ] = EndpointType.SAAS
386
365
  r"""Select the type of Dynatrace endpoint configured"""
387
366
 
@@ -390,10 +369,7 @@ class OutputDynatraceOtlp(BaseModel):
390
369
  )
391
370
 
392
371
  on_backpressure: Annotated[
393
- Annotated[
394
- Optional[OutputDynatraceOtlpBackpressureBehavior],
395
- PlainValidator(validate_open_enum(False)),
396
- ],
372
+ Optional[OutputDynatraceOtlpBackpressureBehavior],
397
373
  pydantic.Field(alias="onBackpressure"),
398
374
  ] = OutputDynatraceOtlpBackpressureBehavior.BLOCK
399
375
  r"""How to handle events when all receivers are exerting backpressure"""
@@ -454,28 +430,19 @@ class OutputDynatraceOtlp(BaseModel):
454
430
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/<output-id>."""
455
431
 
456
432
  pq_compress: Annotated[
457
- Annotated[
458
- Optional[OutputDynatraceOtlpPqCompressCompression],
459
- PlainValidator(validate_open_enum(False)),
460
- ],
433
+ Optional[OutputDynatraceOtlpPqCompressCompression],
461
434
  pydantic.Field(alias="pqCompress"),
462
435
  ] = OutputDynatraceOtlpPqCompressCompression.NONE
463
436
  r"""Codec to use to compress the persisted data"""
464
437
 
465
438
  pq_on_backpressure: Annotated[
466
- Annotated[
467
- Optional[OutputDynatraceOtlpQueueFullBehavior],
468
- PlainValidator(validate_open_enum(False)),
469
- ],
439
+ Optional[OutputDynatraceOtlpQueueFullBehavior],
470
440
  pydantic.Field(alias="pqOnBackpressure"),
471
441
  ] = OutputDynatraceOtlpQueueFullBehavior.BLOCK
472
442
  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."""
473
443
 
474
444
  pq_mode: Annotated[
475
- Annotated[
476
- Optional[OutputDynatraceOtlpMode], PlainValidator(validate_open_enum(False))
477
- ],
478
- pydantic.Field(alias="pqMode"),
445
+ Optional[OutputDynatraceOtlpMode], pydantic.Field(alias="pqMode")
479
446
  ] = OutputDynatraceOtlpMode.ERROR
480
447
  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."""
481
448
 
@@ -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 OutputElasticExtraHTTPHeader(BaseModel):
26
23
  name: Optional[str] = None
27
24
 
28
25
 
29
- class OutputElasticFailedRequestLoggingMode(str, Enum, metaclass=utils.OpenEnumMeta):
26
+ class OutputElasticFailedRequestLoggingMode(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"
@@ -99,7 +96,7 @@ class OutputElasticExtraParam(BaseModel):
99
96
  value: str
100
97
 
101
98
 
102
- class OutputElasticAuthenticationMethod(str, Enum, metaclass=utils.OpenEnumMeta):
99
+ class OutputElasticAuthenticationMethod(str, Enum):
103
100
  r"""Enter credentials directly, or select a stored secret"""
104
101
 
105
102
  MANUAL = "manual"
@@ -118,16 +115,12 @@ class OutputElasticAuth(BaseModel):
118
115
  disabled: Optional[bool] = True
119
116
 
120
117
  auth_type: Annotated[
121
- Annotated[
122
- Optional[OutputElasticAuthenticationMethod],
123
- PlainValidator(validate_open_enum(False)),
124
- ],
125
- pydantic.Field(alias="authType"),
118
+ Optional[OutputElasticAuthenticationMethod], pydantic.Field(alias="authType")
126
119
  ] = OutputElasticAuthenticationMethod.MANUAL
127
120
  r"""Enter credentials directly, or select a stored secret"""
128
121
 
129
122
 
130
- class ElasticVersion(str, Enum, metaclass=utils.OpenEnumMeta):
123
+ class ElasticVersion(str, Enum):
131
124
  r"""Optional Elasticsearch version, used to format events. If not specified, will auto-discover version."""
132
125
 
133
126
  AUTO = "auto"
@@ -135,14 +128,14 @@ class ElasticVersion(str, Enum, metaclass=utils.OpenEnumMeta):
135
128
  SEVEN = "7"
136
129
 
137
130
 
138
- class WriteAction(str, Enum, metaclass=utils.OpenEnumMeta):
131
+ class WriteAction(str, Enum):
139
132
  r"""Action to use when writing events. Must be set to `Create` when writing to a data stream."""
140
133
 
141
134
  INDEX = "index"
142
135
  CREATE = "create"
143
136
 
144
137
 
145
- class OutputElasticBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
138
+ class OutputElasticBackpressureBehavior(str, Enum):
146
139
  r"""How to handle events when all receivers are exerting backpressure"""
147
140
 
148
141
  BLOCK = "block"
@@ -165,21 +158,21 @@ class OutputElasticURL(BaseModel):
165
158
  r"""Assign a weight (>0) to each endpoint to indicate its traffic-handling capability"""
166
159
 
167
160
 
168
- class OutputElasticCompression(str, Enum, metaclass=utils.OpenEnumMeta):
161
+ class OutputElasticCompression(str, Enum):
169
162
  r"""Codec to use to compress the persisted data"""
170
163
 
171
164
  NONE = "none"
172
165
  GZIP = "gzip"
173
166
 
174
167
 
175
- class OutputElasticQueueFullBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
168
+ class OutputElasticQueueFullBehavior(str, Enum):
176
169
  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."""
177
170
 
178
171
  BLOCK = "block"
179
172
  DROP = "drop"
180
173
 
181
174
 
182
- class OutputElasticMode(str, Enum, metaclass=utils.OpenEnumMeta):
175
+ class OutputElasticMode(str, Enum):
183
176
  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."""
184
177
 
185
178
  ERROR = "error"
@@ -354,10 +347,7 @@ class OutputElastic(BaseModel):
354
347
  r"""Headers to add to all events"""
355
348
 
356
349
  failed_request_logging_mode: Annotated[
357
- Annotated[
358
- Optional[OutputElasticFailedRequestLoggingMode],
359
- PlainValidator(validate_open_enum(False)),
360
- ],
350
+ Optional[OutputElasticFailedRequestLoggingMode],
361
351
  pydantic.Field(alias="failedRequestLoggingMode"),
362
352
  ] = OutputElasticFailedRequestLoggingMode.NONE
363
353
  r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
@@ -390,8 +380,7 @@ class OutputElastic(BaseModel):
390
380
  auth: Optional[OutputElasticAuth] = None
391
381
 
392
382
  elastic_version: Annotated[
393
- Annotated[Optional[ElasticVersion], PlainValidator(validate_open_enum(False))],
394
- pydantic.Field(alias="elasticVersion"),
383
+ Optional[ElasticVersion], pydantic.Field(alias="elasticVersion")
395
384
  ] = ElasticVersion.AUTO
396
385
  r"""Optional Elasticsearch version, used to format events. If not specified, will auto-discover version."""
397
386
 
@@ -406,8 +395,7 @@ class OutputElastic(BaseModel):
406
395
  r"""Include the `document_id` field when sending events to an Elastic TSDS (time series data stream)"""
407
396
 
408
397
  write_action: Annotated[
409
- Annotated[Optional[WriteAction], PlainValidator(validate_open_enum(False))],
410
- pydantic.Field(alias="writeAction"),
398
+ Optional[WriteAction], pydantic.Field(alias="writeAction")
411
399
  ] = WriteAction.CREATE
412
400
  r"""Action to use when writing events. Must be set to `Create` when writing to a data stream."""
413
401
 
@@ -417,10 +405,7 @@ class OutputElastic(BaseModel):
417
405
  r"""Retry failed events when a bulk request to Elastic is successful, but the response body returns an error for one or more events in the batch"""
418
406
 
419
407
  on_backpressure: Annotated[
420
- Annotated[
421
- Optional[OutputElasticBackpressureBehavior],
422
- PlainValidator(validate_open_enum(False)),
423
- ],
408
+ Optional[OutputElasticBackpressureBehavior],
424
409
  pydantic.Field(alias="onBackpressure"),
425
410
  ] = OutputElasticBackpressureBehavior.BLOCK
426
411
  r"""How to handle events when all receivers are exerting backpressure"""
@@ -464,29 +449,19 @@ class OutputElastic(BaseModel):
464
449
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/<output-id>."""
465
450
 
466
451
  pq_compress: Annotated[
467
- Annotated[
468
- Optional[OutputElasticCompression],
469
- PlainValidator(validate_open_enum(False)),
470
- ],
471
- pydantic.Field(alias="pqCompress"),
452
+ Optional[OutputElasticCompression], pydantic.Field(alias="pqCompress")
472
453
  ] = OutputElasticCompression.NONE
473
454
  r"""Codec to use to compress the persisted data"""
474
455
 
475
456
  pq_on_backpressure: Annotated[
476
- Annotated[
477
- Optional[OutputElasticQueueFullBehavior],
478
- PlainValidator(validate_open_enum(False)),
479
- ],
457
+ Optional[OutputElasticQueueFullBehavior],
480
458
  pydantic.Field(alias="pqOnBackpressure"),
481
459
  ] = OutputElasticQueueFullBehavior.BLOCK
482
460
  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."""
483
461
 
484
- pq_mode: Annotated[
485
- Annotated[
486
- Optional[OutputElasticMode], PlainValidator(validate_open_enum(False))
487
- ],
488
- pydantic.Field(alias="pqMode"),
489
- ] = OutputElasticMode.ERROR
462
+ pq_mode: Annotated[Optional[OutputElasticMode], pydantic.Field(alias="pqMode")] = (
463
+ OutputElasticMode.ERROR
464
+ )
490
465
  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."""
491
466
 
492
467
  pq_controls: Annotated[