cribl-control-plane 0.0.16__py3-none-any.whl → 0.0.17__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 (133) 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 +4124 -4124
  4. cribl_control_plane/models/createinputop.py +1734 -2771
  5. cribl_control_plane/models/createoutputop.py +2153 -4314
  6. cribl_control_plane/models/healthstatus.py +4 -7
  7. cribl_control_plane/models/inputappscope.py +16 -36
  8. cribl_control_plane/models/inputazureblob.py +8 -19
  9. cribl_control_plane/models/inputcollection.py +6 -15
  10. cribl_control_plane/models/inputconfluentcloud.py +20 -45
  11. cribl_control_plane/models/inputcribl.py +6 -13
  12. cribl_control_plane/models/inputcriblhttp.py +10 -27
  13. cribl_control_plane/models/inputcribllakehttp.py +12 -26
  14. cribl_control_plane/models/inputcriblmetrics.py +6 -14
  15. cribl_control_plane/models/inputcribltcp.py +10 -27
  16. cribl_control_plane/models/inputcrowdstrike.py +12 -28
  17. cribl_control_plane/models/inputdatadogagent.py +10 -28
  18. cribl_control_plane/models/inputdatagen.py +6 -13
  19. cribl_control_plane/models/inputedgeprometheus.py +31 -64
  20. cribl_control_plane/models/inputelastic.py +16 -44
  21. cribl_control_plane/models/inputeventhub.py +8 -19
  22. cribl_control_plane/models/inputexec.py +8 -16
  23. cribl_control_plane/models/inputfile.py +8 -17
  24. cribl_control_plane/models/inputfirehose.py +10 -27
  25. cribl_control_plane/models/inputgooglepubsub.py +8 -23
  26. cribl_control_plane/models/inputgrafana_union.py +35 -81
  27. cribl_control_plane/models/inputhttp.py +10 -27
  28. cribl_control_plane/models/inputhttpraw.py +10 -27
  29. cribl_control_plane/models/inputjournalfiles.py +6 -16
  30. cribl_control_plane/models/inputkafka.py +16 -45
  31. cribl_control_plane/models/inputkinesis.py +16 -42
  32. cribl_control_plane/models/inputkubeevents.py +6 -13
  33. cribl_control_plane/models/inputkubelogs.py +10 -18
  34. cribl_control_plane/models/inputkubemetrics.py +10 -18
  35. cribl_control_plane/models/inputloki.py +12 -33
  36. cribl_control_plane/models/inputmetrics.py +10 -25
  37. cribl_control_plane/models/inputmodeldriventelemetry.py +12 -32
  38. cribl_control_plane/models/inputmsk.py +18 -52
  39. cribl_control_plane/models/inputnetflow.py +6 -15
  40. cribl_control_plane/models/inputoffice365mgmt.py +16 -37
  41. cribl_control_plane/models/inputoffice365msgtrace.py +18 -39
  42. cribl_control_plane/models/inputoffice365service.py +18 -39
  43. cribl_control_plane/models/inputopentelemetry.py +18 -42
  44. cribl_control_plane/models/inputprometheus.py +20 -54
  45. cribl_control_plane/models/inputprometheusrw.py +12 -34
  46. cribl_control_plane/models/inputrawudp.py +6 -15
  47. cribl_control_plane/models/inputs3.py +10 -23
  48. cribl_control_plane/models/inputs3inventory.py +12 -28
  49. cribl_control_plane/models/inputsecuritylake.py +12 -29
  50. cribl_control_plane/models/inputsnmp.py +8 -20
  51. cribl_control_plane/models/inputsplunk.py +14 -37
  52. cribl_control_plane/models/inputsplunkhec.py +12 -33
  53. cribl_control_plane/models/inputsplunksearch.py +16 -37
  54. cribl_control_plane/models/inputsqs.py +12 -31
  55. cribl_control_plane/models/inputsyslog_union.py +29 -53
  56. cribl_control_plane/models/inputsystemmetrics.py +26 -50
  57. cribl_control_plane/models/inputsystemstate.py +10 -18
  58. cribl_control_plane/models/inputtcp.py +12 -33
  59. cribl_control_plane/models/inputtcpjson.py +12 -33
  60. cribl_control_plane/models/inputwef.py +20 -45
  61. cribl_control_plane/models/inputwindowsmetrics.py +26 -46
  62. cribl_control_plane/models/inputwineventlogs.py +12 -22
  63. cribl_control_plane/models/inputwiz.py +10 -25
  64. cribl_control_plane/models/inputzscalerhec.py +12 -33
  65. cribl_control_plane/models/output.py +3 -6
  66. cribl_control_plane/models/outputazureblob.py +20 -52
  67. cribl_control_plane/models/outputazuredataexplorer.py +30 -77
  68. cribl_control_plane/models/outputazureeventhub.py +20 -44
  69. cribl_control_plane/models/outputazurelogs.py +14 -37
  70. cribl_control_plane/models/outputclickhouse.py +22 -59
  71. cribl_control_plane/models/outputcloudwatch.py +12 -33
  72. cribl_control_plane/models/outputconfluentcloud.py +32 -75
  73. cribl_control_plane/models/outputcriblhttp.py +18 -46
  74. cribl_control_plane/models/outputcribllake.py +18 -48
  75. cribl_control_plane/models/outputcribltcp.py +20 -47
  76. cribl_control_plane/models/outputcrowdstrikenextgensiem.py +16 -54
  77. cribl_control_plane/models/outputdatadog.py +22 -50
  78. cribl_control_plane/models/outputdataset.py +20 -48
  79. cribl_control_plane/models/outputdefault.py +2 -5
  80. cribl_control_plane/models/outputdevnull.py +2 -5
  81. cribl_control_plane/models/outputdiskspool.py +4 -9
  82. cribl_control_plane/models/outputdls3.py +26 -72
  83. cribl_control_plane/models/outputdynatracehttp.py +22 -57
  84. cribl_control_plane/models/outputdynatraceotlp.py +24 -59
  85. cribl_control_plane/models/outputelastic.py +20 -45
  86. cribl_control_plane/models/outputelasticcloud.py +14 -40
  87. cribl_control_plane/models/outputexabeam.py +12 -33
  88. cribl_control_plane/models/outputfilesystem.py +16 -41
  89. cribl_control_plane/models/outputgooglechronicle.py +18 -54
  90. cribl_control_plane/models/outputgooglecloudlogging.py +16 -46
  91. cribl_control_plane/models/outputgooglecloudstorage.py +26 -71
  92. cribl_control_plane/models/outputgooglepubsub.py +16 -39
  93. cribl_control_plane/models/{outputgrafanacloud_union.py → outputgrafanacloud.py} +49 -110
  94. cribl_control_plane/models/outputgraphite.py +16 -35
  95. cribl_control_plane/models/outputhoneycomb.py +14 -37
  96. cribl_control_plane/models/outputhumiohec.py +18 -47
  97. cribl_control_plane/models/outputinfluxdb.py +18 -44
  98. cribl_control_plane/models/outputkafka.py +28 -73
  99. cribl_control_plane/models/outputkinesis.py +18 -44
  100. cribl_control_plane/models/outputloki.py +18 -43
  101. cribl_control_plane/models/outputminio.py +26 -69
  102. cribl_control_plane/models/outputmsk.py +30 -81
  103. cribl_control_plane/models/outputnetflow.py +2 -5
  104. cribl_control_plane/models/outputnewrelic.py +20 -45
  105. cribl_control_plane/models/outputnewrelicevents.py +16 -45
  106. cribl_control_plane/models/outputopentelemetry.py +28 -69
  107. cribl_control_plane/models/outputprometheus.py +14 -37
  108. cribl_control_plane/models/outputring.py +10 -21
  109. cribl_control_plane/models/outputrouter.py +2 -5
  110. cribl_control_plane/models/outputs3.py +28 -72
  111. cribl_control_plane/models/outputsecuritylake.py +20 -56
  112. cribl_control_plane/models/outputsentinel.py +20 -49
  113. cribl_control_plane/models/outputsentineloneaisiem.py +20 -54
  114. cribl_control_plane/models/outputservicenow.py +26 -64
  115. cribl_control_plane/models/outputsignalfx.py +16 -39
  116. cribl_control_plane/models/outputsnmp.py +2 -5
  117. cribl_control_plane/models/outputsns.py +16 -40
  118. cribl_control_plane/models/outputsplunk.py +26 -64
  119. cribl_control_plane/models/outputsplunkhec.py +14 -37
  120. cribl_control_plane/models/outputsplunklb.py +36 -83
  121. cribl_control_plane/models/outputsqs.py +18 -45
  122. cribl_control_plane/models/outputstatsd.py +16 -34
  123. cribl_control_plane/models/outputstatsdext.py +14 -33
  124. cribl_control_plane/models/outputsumologic.py +14 -37
  125. cribl_control_plane/models/outputsyslog.py +26 -60
  126. cribl_control_plane/models/outputtcpjson.py +22 -54
  127. cribl_control_plane/models/outputwavefront.py +14 -37
  128. cribl_control_plane/models/outputwebhook.py +24 -60
  129. cribl_control_plane/models/outputxsiam.py +16 -37
  130. {cribl_control_plane-0.0.16.dist-info → cribl_control_plane-0.0.17.dist-info}/METADATA +1 -1
  131. cribl_control_plane-0.0.17.dist-info/RECORD +215 -0
  132. cribl_control_plane-0.0.16.dist-info/RECORD +0 -215
  133. {cribl_control_plane-0.0.16.dist-info → cribl_control_plane-0.0.17.dist-info}/WHEEL +0 -0
@@ -1,17 +1,14 @@
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 Any, List, Optional
11
8
  from typing_extensions import Annotated, NotRequired, TypedDict
12
9
 
13
10
 
14
- class InputFirehoseType(str, Enum, metaclass=utils.OpenEnumMeta):
11
+ class InputFirehoseType(str, Enum):
15
12
  FIREHOSE = "firehose"
16
13
 
17
14
 
@@ -26,14 +23,14 @@ class InputFirehoseConnection(BaseModel):
26
23
  pipeline: Optional[str] = None
27
24
 
28
25
 
29
- class InputFirehoseMode(str, Enum, metaclass=utils.OpenEnumMeta):
26
+ class InputFirehoseMode(str, Enum):
30
27
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
31
28
 
32
29
  SMART = "smart"
33
30
  ALWAYS = "always"
34
31
 
35
32
 
36
- class InputFirehoseCompression(str, Enum, metaclass=utils.OpenEnumMeta):
33
+ class InputFirehoseCompression(str, Enum):
37
34
  r"""Codec to use to compress the persisted data"""
38
35
 
39
36
  NONE = "none"
@@ -58,9 +55,7 @@ class InputFirehosePqTypedDict(TypedDict):
58
55
 
59
56
 
60
57
  class InputFirehosePq(BaseModel):
61
- mode: Annotated[
62
- Optional[InputFirehoseMode], PlainValidator(validate_open_enum(False))
63
- ] = InputFirehoseMode.ALWAYS
58
+ mode: Optional[InputFirehoseMode] = InputFirehoseMode.ALWAYS
64
59
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
65
60
 
66
61
  max_buffer_size: Annotated[
@@ -84,20 +79,18 @@ class InputFirehosePq(BaseModel):
84
79
  path: Optional[str] = "$CRIBL_HOME/state/queues"
85
80
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
86
81
 
87
- compress: Annotated[
88
- Optional[InputFirehoseCompression], PlainValidator(validate_open_enum(False))
89
- ] = InputFirehoseCompression.NONE
82
+ compress: Optional[InputFirehoseCompression] = InputFirehoseCompression.NONE
90
83
  r"""Codec to use to compress the persisted data"""
91
84
 
92
85
 
93
- class InputFirehoseMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
86
+ class InputFirehoseMinimumTLSVersion(str, Enum):
94
87
  TL_SV1 = "TLSv1"
95
88
  TL_SV1_1 = "TLSv1.1"
96
89
  TL_SV1_2 = "TLSv1.2"
97
90
  TL_SV1_3 = "TLSv1.3"
98
91
 
99
92
 
100
- class InputFirehoseMaximumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
93
+ class InputFirehoseMaximumTLSVersion(str, Enum):
101
94
  TL_SV1 = "TLSv1"
102
95
  TL_SV1_1 = "TLSv1.1"
103
96
  TL_SV1_2 = "TLSv1.2"
@@ -156,19 +149,11 @@ class InputFirehoseTLSSettingsServerSide(BaseModel):
156
149
  ] = None
157
150
 
158
151
  min_version: Annotated[
159
- Annotated[
160
- Optional[InputFirehoseMinimumTLSVersion],
161
- PlainValidator(validate_open_enum(False)),
162
- ],
163
- pydantic.Field(alias="minVersion"),
152
+ Optional[InputFirehoseMinimumTLSVersion], pydantic.Field(alias="minVersion")
164
153
  ] = None
165
154
 
166
155
  max_version: Annotated[
167
- Annotated[
168
- Optional[InputFirehoseMaximumTLSVersion],
169
- PlainValidator(validate_open_enum(False)),
170
- ],
171
- pydantic.Field(alias="maxVersion"),
156
+ Optional[InputFirehoseMaximumTLSVersion], pydantic.Field(alias="maxVersion")
172
157
  ] = None
173
158
 
174
159
 
@@ -244,9 +229,7 @@ class InputFirehose(BaseModel):
244
229
  id: Optional[str] = None
245
230
  r"""Unique ID for this input"""
246
231
 
247
- type: Annotated[
248
- Optional[InputFirehoseType], PlainValidator(validate_open_enum(False))
249
- ] = None
232
+ type: Optional[InputFirehoseType] = None
250
233
 
251
234
  disabled: Optional[bool] = False
252
235
 
@@ -1,17 +1,14 @@
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
 
13
10
 
14
- class InputGooglePubsubType(str, Enum, metaclass=utils.OpenEnumMeta):
11
+ class InputGooglePubsubType(str, Enum):
15
12
  GOOGLE_PUBSUB = "google_pubsub"
16
13
 
17
14
 
@@ -26,14 +23,14 @@ class InputGooglePubsubConnection(BaseModel):
26
23
  pipeline: Optional[str] = None
27
24
 
28
25
 
29
- class InputGooglePubsubMode(str, Enum, metaclass=utils.OpenEnumMeta):
26
+ class InputGooglePubsubMode(str, Enum):
30
27
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
31
28
 
32
29
  SMART = "smart"
33
30
  ALWAYS = "always"
34
31
 
35
32
 
36
- class InputGooglePubsubCompression(str, Enum, metaclass=utils.OpenEnumMeta):
33
+ class InputGooglePubsubCompression(str, Enum):
37
34
  r"""Codec to use to compress the persisted data"""
38
35
 
39
36
  NONE = "none"
@@ -58,9 +55,7 @@ class InputGooglePubsubPqTypedDict(TypedDict):
58
55
 
59
56
 
60
57
  class InputGooglePubsubPq(BaseModel):
61
- mode: Annotated[
62
- Optional[InputGooglePubsubMode], PlainValidator(validate_open_enum(False))
63
- ] = InputGooglePubsubMode.ALWAYS
58
+ mode: Optional[InputGooglePubsubMode] = InputGooglePubsubMode.ALWAYS
64
59
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
65
60
 
66
61
  max_buffer_size: Annotated[
@@ -84,16 +79,11 @@ class InputGooglePubsubPq(BaseModel):
84
79
  path: Optional[str] = "$CRIBL_HOME/state/queues"
85
80
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
86
81
 
87
- compress: Annotated[
88
- Optional[InputGooglePubsubCompression],
89
- PlainValidator(validate_open_enum(False)),
90
- ] = InputGooglePubsubCompression.NONE
82
+ compress: Optional[InputGooglePubsubCompression] = InputGooglePubsubCompression.NONE
91
83
  r"""Codec to use to compress the persisted data"""
92
84
 
93
85
 
94
- class InputGooglePubsubGoogleAuthenticationMethod(
95
- str, Enum, metaclass=utils.OpenEnumMeta
96
- ):
86
+ class InputGooglePubsubGoogleAuthenticationMethod(str, Enum):
97
87
  r"""Choose Auto to use Google Application Default Credentials (ADC), Manual to enter Google service account credentials directly, or Secret to select or create a stored secret that references Google service account credentials."""
98
88
 
99
89
  AUTO = "auto"
@@ -171,9 +161,7 @@ class InputGooglePubsub(BaseModel):
171
161
  id: Optional[str] = None
172
162
  r"""Unique ID for this input"""
173
163
 
174
- type: Annotated[
175
- Optional[InputGooglePubsubType], PlainValidator(validate_open_enum(False))
176
- ] = None
164
+ type: Optional[InputGooglePubsubType] = None
177
165
 
178
166
  disabled: Optional[bool] = False
179
167
 
@@ -211,10 +199,7 @@ class InputGooglePubsub(BaseModel):
211
199
  r"""Region to retrieve messages from. Select 'default' to allow Google to auto-select the nearest region. When using ordered delivery, the selected region must be allowed by message storage policy."""
212
200
 
213
201
  google_auth_method: Annotated[
214
- Annotated[
215
- Optional[InputGooglePubsubGoogleAuthenticationMethod],
216
- PlainValidator(validate_open_enum(False)),
217
- ],
202
+ Optional[InputGooglePubsubGoogleAuthenticationMethod],
218
203
  pydantic.Field(alias="googleAuthMethod"),
219
204
  ] = InputGooglePubsubGoogleAuthenticationMethod.MANUAL
220
205
  r"""Choose Auto to use Google Application Default Credentials (ADC), Manual to enter Google service account credentials directly, or Secret to select or create a stored secret that references Google service account credentials."""
@@ -1,17 +1,14 @@
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 Any, List, Optional, Union
11
8
  from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
12
9
 
13
10
 
14
- class InputGrafanaType2(str, Enum, metaclass=utils.OpenEnumMeta):
11
+ class InputGrafanaType2(str, Enum):
15
12
  GRAFANA = "grafana"
16
13
 
17
14
 
@@ -26,14 +23,14 @@ class InputGrafanaConnection2(BaseModel):
26
23
  pipeline: Optional[str] = None
27
24
 
28
25
 
29
- class InputGrafanaMode2(str, Enum, metaclass=utils.OpenEnumMeta):
26
+ class InputGrafanaMode2(str, Enum):
30
27
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
31
28
 
32
29
  SMART = "smart"
33
30
  ALWAYS = "always"
34
31
 
35
32
 
36
- class InputGrafanaCompression2(str, Enum, metaclass=utils.OpenEnumMeta):
33
+ class InputGrafanaCompression2(str, Enum):
37
34
  r"""Codec to use to compress the persisted data"""
38
35
 
39
36
  NONE = "none"
@@ -58,9 +55,7 @@ class InputGrafanaPq2TypedDict(TypedDict):
58
55
 
59
56
 
60
57
  class InputGrafanaPq2(BaseModel):
61
- mode: Annotated[
62
- Optional[InputGrafanaMode2], PlainValidator(validate_open_enum(False))
63
- ] = InputGrafanaMode2.ALWAYS
58
+ mode: Optional[InputGrafanaMode2] = InputGrafanaMode2.ALWAYS
64
59
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
65
60
 
66
61
  max_buffer_size: Annotated[
@@ -84,20 +79,18 @@ class InputGrafanaPq2(BaseModel):
84
79
  path: Optional[str] = "$CRIBL_HOME/state/queues"
85
80
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
86
81
 
87
- compress: Annotated[
88
- Optional[InputGrafanaCompression2], PlainValidator(validate_open_enum(False))
89
- ] = InputGrafanaCompression2.NONE
82
+ compress: Optional[InputGrafanaCompression2] = InputGrafanaCompression2.NONE
90
83
  r"""Codec to use to compress the persisted data"""
91
84
 
92
85
 
93
- class InputGrafanaMinimumTLSVersion2(str, Enum, metaclass=utils.OpenEnumMeta):
86
+ class InputGrafanaMinimumTLSVersion2(str, Enum):
94
87
  TL_SV1 = "TLSv1"
95
88
  TL_SV1_1 = "TLSv1.1"
96
89
  TL_SV1_2 = "TLSv1.2"
97
90
  TL_SV1_3 = "TLSv1.3"
98
91
 
99
92
 
100
- class InputGrafanaMaximumTLSVersion2(str, Enum, metaclass=utils.OpenEnumMeta):
93
+ class InputGrafanaMaximumTLSVersion2(str, Enum):
101
94
  TL_SV1 = "TLSv1"
102
95
  TL_SV1_1 = "TLSv1.1"
103
96
  TL_SV1_2 = "TLSv1.2"
@@ -156,25 +149,15 @@ class InputGrafanaTLSSettingsServerSide2(BaseModel):
156
149
  ] = None
157
150
 
158
151
  min_version: Annotated[
159
- Annotated[
160
- Optional[InputGrafanaMinimumTLSVersion2],
161
- PlainValidator(validate_open_enum(False)),
162
- ],
163
- pydantic.Field(alias="minVersion"),
152
+ Optional[InputGrafanaMinimumTLSVersion2], pydantic.Field(alias="minVersion")
164
153
  ] = None
165
154
 
166
155
  max_version: Annotated[
167
- Annotated[
168
- Optional[InputGrafanaMaximumTLSVersion2],
169
- PlainValidator(validate_open_enum(False)),
170
- ],
171
- pydantic.Field(alias="maxVersion"),
156
+ Optional[InputGrafanaMaximumTLSVersion2], pydantic.Field(alias="maxVersion")
172
157
  ] = None
173
158
 
174
159
 
175
- class InputGrafanaPrometheusAuthAuthenticationType2(
176
- str, Enum, metaclass=utils.OpenEnumMeta
177
- ):
160
+ class InputGrafanaPrometheusAuthAuthenticationType2(str, Enum):
178
161
  r"""Remote Write authentication type"""
179
162
 
180
163
  NONE = "none"
@@ -246,10 +229,7 @@ class InputGrafanaPrometheusAuth2TypedDict(TypedDict):
246
229
 
247
230
  class InputGrafanaPrometheusAuth2(BaseModel):
248
231
  auth_type: Annotated[
249
- Annotated[
250
- Optional[InputGrafanaPrometheusAuthAuthenticationType2],
251
- PlainValidator(validate_open_enum(False)),
252
- ],
232
+ Optional[InputGrafanaPrometheusAuthAuthenticationType2],
253
233
  pydantic.Field(alias="authType"),
254
234
  ] = InputGrafanaPrometheusAuthAuthenticationType2.NONE
255
235
  r"""Remote Write authentication type"""
@@ -306,7 +286,7 @@ class InputGrafanaPrometheusAuth2(BaseModel):
306
286
  r"""Additional headers to send in the OAuth login request. @{product} will automatically add the content-type header 'application/x-www-form-urlencoded' when sending this request."""
307
287
 
308
288
 
309
- class InputGrafanaLokiAuthAuthenticationType2(str, Enum, metaclass=utils.OpenEnumMeta):
289
+ class InputGrafanaLokiAuthAuthenticationType2(str, Enum):
310
290
  r"""Loki logs authentication type"""
311
291
 
312
292
  NONE = "none"
@@ -378,10 +358,7 @@ class InputGrafanaLokiAuth2TypedDict(TypedDict):
378
358
 
379
359
  class InputGrafanaLokiAuth2(BaseModel):
380
360
  auth_type: Annotated[
381
- Annotated[
382
- Optional[InputGrafanaLokiAuthAuthenticationType2],
383
- PlainValidator(validate_open_enum(False)),
384
- ],
361
+ Optional[InputGrafanaLokiAuthAuthenticationType2],
385
362
  pydantic.Field(alias="authType"),
386
363
  ] = InputGrafanaLokiAuthAuthenticationType2.NONE
387
364
  r"""Loki logs authentication type"""
@@ -451,7 +428,7 @@ class InputGrafanaMetadatum2(BaseModel):
451
428
  r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
452
429
 
453
430
 
454
- class InputGrafana2TypedDict(TypedDict):
431
+ class InputGrafanaGrafana2TypedDict(TypedDict):
455
432
  port: float
456
433
  r"""Port to listen on"""
457
434
  id: NotRequired[str]
@@ -507,16 +484,14 @@ class InputGrafana2TypedDict(TypedDict):
507
484
  description: NotRequired[str]
508
485
 
509
486
 
510
- class InputGrafana2(BaseModel):
487
+ class InputGrafanaGrafana2(BaseModel):
511
488
  port: float
512
489
  r"""Port to listen on"""
513
490
 
514
491
  id: Optional[str] = None
515
492
  r"""Unique ID for this input"""
516
493
 
517
- type: Annotated[
518
- Optional[InputGrafanaType2], PlainValidator(validate_open_enum(False))
519
- ] = None
494
+ type: Optional[InputGrafanaType2] = None
520
495
 
521
496
  disabled: Optional[bool] = False
522
497
 
@@ -626,7 +601,7 @@ class InputGrafana2(BaseModel):
626
601
  description: Optional[str] = None
627
602
 
628
603
 
629
- class InputGrafanaType1(str, Enum, metaclass=utils.OpenEnumMeta):
604
+ class InputGrafanaType1(str, Enum):
630
605
  GRAFANA = "grafana"
631
606
 
632
607
 
@@ -641,14 +616,14 @@ class InputGrafanaConnection1(BaseModel):
641
616
  pipeline: Optional[str] = None
642
617
 
643
618
 
644
- class InputGrafanaMode1(str, Enum, metaclass=utils.OpenEnumMeta):
619
+ class InputGrafanaMode1(str, Enum):
645
620
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
646
621
 
647
622
  SMART = "smart"
648
623
  ALWAYS = "always"
649
624
 
650
625
 
651
- class InputGrafanaCompression1(str, Enum, metaclass=utils.OpenEnumMeta):
626
+ class InputGrafanaCompression1(str, Enum):
652
627
  r"""Codec to use to compress the persisted data"""
653
628
 
654
629
  NONE = "none"
@@ -673,9 +648,7 @@ class InputGrafanaPq1TypedDict(TypedDict):
673
648
 
674
649
 
675
650
  class InputGrafanaPq1(BaseModel):
676
- mode: Annotated[
677
- Optional[InputGrafanaMode1], PlainValidator(validate_open_enum(False))
678
- ] = InputGrafanaMode1.ALWAYS
651
+ mode: Optional[InputGrafanaMode1] = InputGrafanaMode1.ALWAYS
679
652
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
680
653
 
681
654
  max_buffer_size: Annotated[
@@ -699,20 +672,18 @@ class InputGrafanaPq1(BaseModel):
699
672
  path: Optional[str] = "$CRIBL_HOME/state/queues"
700
673
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
701
674
 
702
- compress: Annotated[
703
- Optional[InputGrafanaCompression1], PlainValidator(validate_open_enum(False))
704
- ] = InputGrafanaCompression1.NONE
675
+ compress: Optional[InputGrafanaCompression1] = InputGrafanaCompression1.NONE
705
676
  r"""Codec to use to compress the persisted data"""
706
677
 
707
678
 
708
- class InputGrafanaMinimumTLSVersion1(str, Enum, metaclass=utils.OpenEnumMeta):
679
+ class InputGrafanaMinimumTLSVersion1(str, Enum):
709
680
  TL_SV1 = "TLSv1"
710
681
  TL_SV1_1 = "TLSv1.1"
711
682
  TL_SV1_2 = "TLSv1.2"
712
683
  TL_SV1_3 = "TLSv1.3"
713
684
 
714
685
 
715
- class InputGrafanaMaximumTLSVersion1(str, Enum, metaclass=utils.OpenEnumMeta):
686
+ class InputGrafanaMaximumTLSVersion1(str, Enum):
716
687
  TL_SV1 = "TLSv1"
717
688
  TL_SV1_1 = "TLSv1.1"
718
689
  TL_SV1_2 = "TLSv1.2"
@@ -771,25 +742,15 @@ class InputGrafanaTLSSettingsServerSide1(BaseModel):
771
742
  ] = None
772
743
 
773
744
  min_version: Annotated[
774
- Annotated[
775
- Optional[InputGrafanaMinimumTLSVersion1],
776
- PlainValidator(validate_open_enum(False)),
777
- ],
778
- pydantic.Field(alias="minVersion"),
745
+ Optional[InputGrafanaMinimumTLSVersion1], pydantic.Field(alias="minVersion")
779
746
  ] = None
780
747
 
781
748
  max_version: Annotated[
782
- Annotated[
783
- Optional[InputGrafanaMaximumTLSVersion1],
784
- PlainValidator(validate_open_enum(False)),
785
- ],
786
- pydantic.Field(alias="maxVersion"),
749
+ Optional[InputGrafanaMaximumTLSVersion1], pydantic.Field(alias="maxVersion")
787
750
  ] = None
788
751
 
789
752
 
790
- class InputGrafanaPrometheusAuthAuthenticationType1(
791
- str, Enum, metaclass=utils.OpenEnumMeta
792
- ):
753
+ class InputGrafanaPrometheusAuthAuthenticationType1(str, Enum):
793
754
  r"""Remote Write authentication type"""
794
755
 
795
756
  NONE = "none"
@@ -861,10 +822,7 @@ class InputGrafanaPrometheusAuth1TypedDict(TypedDict):
861
822
 
862
823
  class InputGrafanaPrometheusAuth1(BaseModel):
863
824
  auth_type: Annotated[
864
- Annotated[
865
- Optional[InputGrafanaPrometheusAuthAuthenticationType1],
866
- PlainValidator(validate_open_enum(False)),
867
- ],
825
+ Optional[InputGrafanaPrometheusAuthAuthenticationType1],
868
826
  pydantic.Field(alias="authType"),
869
827
  ] = InputGrafanaPrometheusAuthAuthenticationType1.NONE
870
828
  r"""Remote Write authentication type"""
@@ -921,7 +879,7 @@ class InputGrafanaPrometheusAuth1(BaseModel):
921
879
  r"""Additional headers to send in the OAuth login request. @{product} will automatically add the content-type header 'application/x-www-form-urlencoded' when sending this request."""
922
880
 
923
881
 
924
- class InputGrafanaLokiAuthAuthenticationType1(str, Enum, metaclass=utils.OpenEnumMeta):
882
+ class InputGrafanaLokiAuthAuthenticationType1(str, Enum):
925
883
  r"""Loki logs authentication type"""
926
884
 
927
885
  NONE = "none"
@@ -993,10 +951,7 @@ class InputGrafanaLokiAuth1TypedDict(TypedDict):
993
951
 
994
952
  class InputGrafanaLokiAuth1(BaseModel):
995
953
  auth_type: Annotated[
996
- Annotated[
997
- Optional[InputGrafanaLokiAuthAuthenticationType1],
998
- PlainValidator(validate_open_enum(False)),
999
- ],
954
+ Optional[InputGrafanaLokiAuthAuthenticationType1],
1000
955
  pydantic.Field(alias="authType"),
1001
956
  ] = InputGrafanaLokiAuthAuthenticationType1.NONE
1002
957
  r"""Loki logs authentication type"""
@@ -1066,7 +1021,7 @@ class InputGrafanaMetadatum1(BaseModel):
1066
1021
  r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
1067
1022
 
1068
1023
 
1069
- class InputGrafana1TypedDict(TypedDict):
1024
+ class InputGrafanaGrafana1TypedDict(TypedDict):
1070
1025
  port: float
1071
1026
  r"""Port to listen on"""
1072
1027
  id: NotRequired[str]
@@ -1122,16 +1077,14 @@ class InputGrafana1TypedDict(TypedDict):
1122
1077
  description: NotRequired[str]
1123
1078
 
1124
1079
 
1125
- class InputGrafana1(BaseModel):
1080
+ class InputGrafanaGrafana1(BaseModel):
1126
1081
  port: float
1127
1082
  r"""Port to listen on"""
1128
1083
 
1129
1084
  id: Optional[str] = None
1130
1085
  r"""Unique ID for this input"""
1131
1086
 
1132
- type: Annotated[
1133
- Optional[InputGrafanaType1], PlainValidator(validate_open_enum(False))
1134
- ] = None
1087
+ type: Optional[InputGrafanaType1] = None
1135
1088
 
1136
1089
  disabled: Optional[bool] = False
1137
1090
 
@@ -1242,10 +1195,11 @@ class InputGrafana1(BaseModel):
1242
1195
 
1243
1196
 
1244
1197
  InputGrafanaUnionTypedDict = TypeAliasType(
1245
- "InputGrafanaUnionTypedDict", Union[InputGrafana1TypedDict, InputGrafana2TypedDict]
1198
+ "InputGrafanaUnionTypedDict",
1199
+ Union[InputGrafanaGrafana1TypedDict, InputGrafanaGrafana2TypedDict],
1246
1200
  )
1247
1201
 
1248
1202
 
1249
1203
  InputGrafanaUnion = TypeAliasType(
1250
- "InputGrafanaUnion", Union[InputGrafana1, InputGrafana2]
1204
+ "InputGrafanaUnion", Union[InputGrafanaGrafana1, InputGrafanaGrafana2]
1251
1205
  )
@@ -1,17 +1,14 @@
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 Any, List, Optional
11
8
  from typing_extensions import Annotated, NotRequired, TypedDict
12
9
 
13
10
 
14
- class InputHTTPType(str, Enum, metaclass=utils.OpenEnumMeta):
11
+ class InputHTTPType(str, Enum):
15
12
  HTTP = "http"
16
13
 
17
14
 
@@ -26,14 +23,14 @@ class InputHTTPConnection(BaseModel):
26
23
  pipeline: Optional[str] = None
27
24
 
28
25
 
29
- class InputHTTPMode(str, Enum, metaclass=utils.OpenEnumMeta):
26
+ class InputHTTPMode(str, Enum):
30
27
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
31
28
 
32
29
  SMART = "smart"
33
30
  ALWAYS = "always"
34
31
 
35
32
 
36
- class InputHTTPCompression(str, Enum, metaclass=utils.OpenEnumMeta):
33
+ class InputHTTPCompression(str, Enum):
37
34
  r"""Codec to use to compress the persisted data"""
38
35
 
39
36
  NONE = "none"
@@ -58,9 +55,7 @@ class InputHTTPPqTypedDict(TypedDict):
58
55
 
59
56
 
60
57
  class InputHTTPPq(BaseModel):
61
- mode: Annotated[
62
- Optional[InputHTTPMode], PlainValidator(validate_open_enum(False))
63
- ] = InputHTTPMode.ALWAYS
58
+ mode: Optional[InputHTTPMode] = InputHTTPMode.ALWAYS
64
59
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
65
60
 
66
61
  max_buffer_size: Annotated[
@@ -84,20 +79,18 @@ class InputHTTPPq(BaseModel):
84
79
  path: Optional[str] = "$CRIBL_HOME/state/queues"
85
80
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
86
81
 
87
- compress: Annotated[
88
- Optional[InputHTTPCompression], PlainValidator(validate_open_enum(False))
89
- ] = InputHTTPCompression.NONE
82
+ compress: Optional[InputHTTPCompression] = InputHTTPCompression.NONE
90
83
  r"""Codec to use to compress the persisted data"""
91
84
 
92
85
 
93
- class InputHTTPMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
86
+ class InputHTTPMinimumTLSVersion(str, Enum):
94
87
  TL_SV1 = "TLSv1"
95
88
  TL_SV1_1 = "TLSv1.1"
96
89
  TL_SV1_2 = "TLSv1.2"
97
90
  TL_SV1_3 = "TLSv1.3"
98
91
 
99
92
 
100
- class InputHTTPMaximumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
93
+ class InputHTTPMaximumTLSVersion(str, Enum):
101
94
  TL_SV1 = "TLSv1"
102
95
  TL_SV1_1 = "TLSv1.1"
103
96
  TL_SV1_2 = "TLSv1.2"
@@ -156,19 +149,11 @@ class InputHTTPTLSSettingsServerSide(BaseModel):
156
149
  ] = None
157
150
 
158
151
  min_version: Annotated[
159
- Annotated[
160
- Optional[InputHTTPMinimumTLSVersion],
161
- PlainValidator(validate_open_enum(False)),
162
- ],
163
- pydantic.Field(alias="minVersion"),
152
+ Optional[InputHTTPMinimumTLSVersion], pydantic.Field(alias="minVersion")
164
153
  ] = None
165
154
 
166
155
  max_version: Annotated[
167
- Annotated[
168
- Optional[InputHTTPMaximumTLSVersion],
169
- PlainValidator(validate_open_enum(False)),
170
- ],
171
- pydantic.Field(alias="maxVersion"),
156
+ Optional[InputHTTPMaximumTLSVersion], pydantic.Field(alias="maxVersion")
172
157
  ] = None
173
158
 
174
159
 
@@ -284,9 +269,7 @@ class InputHTTP(BaseModel):
284
269
  id: Optional[str] = None
285
270
  r"""Unique ID for this input"""
286
271
 
287
- type: Annotated[
288
- Optional[InputHTTPType], PlainValidator(validate_open_enum(False))
289
- ] = None
272
+ type: Optional[InputHTTPType] = None
290
273
 
291
274
  disabled: Optional[bool] = False
292
275