cribl-control-plane 0.2.1rc7__py3-none-any.whl → 0.3.0a1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of cribl-control-plane might be problematic. Click here for more details.

Files changed (179) hide show
  1. cribl_control_plane/_version.py +4 -4
  2. cribl_control_plane/errors/__init__.py +5 -8
  3. cribl_control_plane/errors/{healthserverstatus_error.py → healthstatus_error.py} +9 -10
  4. cribl_control_plane/groups_sdk.py +28 -52
  5. cribl_control_plane/health.py +16 -22
  6. cribl_control_plane/models/__init__.py +54 -217
  7. cribl_control_plane/models/appmode.py +14 -0
  8. cribl_control_plane/models/authtoken.py +1 -5
  9. cribl_control_plane/models/cacheconnection.py +0 -20
  10. cribl_control_plane/models/configgroup.py +7 -55
  11. cribl_control_plane/models/configgroupcloud.py +1 -11
  12. cribl_control_plane/models/createconfiggroupbyproductop.py +5 -17
  13. cribl_control_plane/models/createroutesappendbyidop.py +2 -2
  14. cribl_control_plane/models/createversionundoop.py +3 -3
  15. cribl_control_plane/models/cribllakedataset.py +1 -11
  16. cribl_control_plane/models/cribllakedatasetupdate.py +1 -11
  17. cribl_control_plane/models/datasetmetadata.py +1 -11
  18. cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +0 -11
  19. cribl_control_plane/models/deleteoutputpqbyidop.py +2 -2
  20. cribl_control_plane/models/distributedsummary.py +0 -6
  21. cribl_control_plane/models/error.py +16 -0
  22. cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +0 -20
  23. cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +0 -20
  24. cribl_control_plane/models/getconfiggroupbyproductandidop.py +0 -11
  25. cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +0 -11
  26. cribl_control_plane/models/gethealthinfoop.py +17 -0
  27. cribl_control_plane/models/getsummaryop.py +0 -11
  28. cribl_control_plane/models/hbcriblinfo.py +3 -24
  29. cribl_control_plane/models/{healthserverstatus.py → healthstatus.py} +8 -27
  30. cribl_control_plane/models/heartbeatmetadata.py +0 -3
  31. cribl_control_plane/models/input.py +78 -80
  32. cribl_control_plane/models/inputappscope.py +17 -80
  33. cribl_control_plane/models/inputazureblob.py +1 -33
  34. cribl_control_plane/models/inputcollection.py +1 -24
  35. cribl_control_plane/models/inputconfluentcloud.py +18 -195
  36. cribl_control_plane/models/inputcribl.py +1 -24
  37. cribl_control_plane/models/inputcriblhttp.py +17 -62
  38. cribl_control_plane/models/inputcribllakehttp.py +17 -62
  39. cribl_control_plane/models/inputcriblmetrics.py +1 -24
  40. cribl_control_plane/models/inputcribltcp.py +17 -62
  41. cribl_control_plane/models/inputcrowdstrike.py +1 -54
  42. cribl_control_plane/models/inputdatadogagent.py +17 -62
  43. cribl_control_plane/models/inputdatagen.py +1 -24
  44. cribl_control_plane/models/inputedgeprometheus.py +34 -147
  45. cribl_control_plane/models/inputelastic.py +27 -119
  46. cribl_control_plane/models/inputeventhub.py +1 -182
  47. cribl_control_plane/models/inputexec.py +1 -33
  48. cribl_control_plane/models/inputfile.py +3 -42
  49. cribl_control_plane/models/inputfirehose.py +17 -62
  50. cribl_control_plane/models/inputgooglepubsub.py +1 -36
  51. cribl_control_plane/models/inputgrafana.py +32 -157
  52. cribl_control_plane/models/inputhttp.py +17 -62
  53. cribl_control_plane/models/inputhttpraw.py +17 -62
  54. cribl_control_plane/models/inputjournalfiles.py +1 -24
  55. cribl_control_plane/models/inputkafka.py +17 -189
  56. cribl_control_plane/models/inputkinesis.py +1 -80
  57. cribl_control_plane/models/inputkubeevents.py +1 -24
  58. cribl_control_plane/models/inputkubelogs.py +1 -33
  59. cribl_control_plane/models/inputkubemetrics.py +1 -33
  60. cribl_control_plane/models/inputloki.py +17 -71
  61. cribl_control_plane/models/inputmetrics.py +17 -62
  62. cribl_control_plane/models/inputmodeldriventelemetry.py +17 -62
  63. cribl_control_plane/models/inputmsk.py +18 -81
  64. cribl_control_plane/models/inputnetflow.py +1 -24
  65. cribl_control_plane/models/inputoffice365mgmt.py +1 -67
  66. cribl_control_plane/models/inputoffice365msgtrace.py +1 -67
  67. cribl_control_plane/models/inputoffice365service.py +1 -67
  68. cribl_control_plane/models/inputopentelemetry.py +16 -92
  69. cribl_control_plane/models/inputprometheus.py +34 -138
  70. cribl_control_plane/models/inputprometheusrw.py +17 -71
  71. cribl_control_plane/models/inputrawudp.py +1 -24
  72. cribl_control_plane/models/inputs3.py +1 -45
  73. cribl_control_plane/models/inputs3inventory.py +1 -54
  74. cribl_control_plane/models/inputsecuritylake.py +1 -54
  75. cribl_control_plane/models/inputsnmp.py +1 -40
  76. cribl_control_plane/models/inputsplunk.py +17 -85
  77. cribl_control_plane/models/inputsplunkhec.py +16 -70
  78. cribl_control_plane/models/inputsplunksearch.py +1 -63
  79. cribl_control_plane/models/inputsqs.py +1 -56
  80. cribl_control_plane/models/inputsyslog.py +32 -121
  81. cribl_control_plane/models/inputsystemmetrics.py +9 -142
  82. cribl_control_plane/models/inputsystemstate.py +1 -33
  83. cribl_control_plane/models/inputtcp.py +17 -81
  84. cribl_control_plane/models/inputtcpjson.py +17 -71
  85. cribl_control_plane/models/inputwef.py +1 -71
  86. cribl_control_plane/models/inputwindowsmetrics.py +9 -129
  87. cribl_control_plane/models/inputwineventlogs.py +1 -60
  88. cribl_control_plane/models/inputwiz.py +1 -45
  89. cribl_control_plane/models/inputwizwebhook.py +17 -62
  90. cribl_control_plane/models/inputzscalerhec.py +16 -70
  91. cribl_control_plane/models/jobinfo.py +1 -4
  92. cribl_control_plane/models/jobstatus.py +3 -34
  93. cribl_control_plane/models/listconfiggroupbyproductop.py +0 -11
  94. cribl_control_plane/models/logininfo.py +3 -3
  95. cribl_control_plane/models/masterworkerentry.py +1 -11
  96. cribl_control_plane/models/nodeprovidedinfo.py +1 -11
  97. cribl_control_plane/models/nodeupgradestatus.py +0 -38
  98. cribl_control_plane/models/output.py +88 -93
  99. cribl_control_plane/models/outputazureblob.py +1 -110
  100. cribl_control_plane/models/outputazuredataexplorer.py +87 -452
  101. cribl_control_plane/models/outputazureeventhub.py +19 -281
  102. cribl_control_plane/models/outputazurelogs.py +19 -115
  103. cribl_control_plane/models/outputchronicle.py +19 -115
  104. cribl_control_plane/models/outputclickhouse.py +19 -155
  105. cribl_control_plane/models/outputcloudwatch.py +19 -106
  106. cribl_control_plane/models/outputconfluentcloud.py +38 -311
  107. cribl_control_plane/models/outputcriblhttp.py +19 -135
  108. cribl_control_plane/models/outputcribllake.py +1 -97
  109. cribl_control_plane/models/outputcribltcp.py +19 -132
  110. cribl_control_plane/models/outputcrowdstrikenextgensiem.py +20 -129
  111. cribl_control_plane/models/outputdatadog.py +19 -159
  112. cribl_control_plane/models/outputdataset.py +19 -143
  113. cribl_control_plane/models/outputdiskspool.py +1 -11
  114. cribl_control_plane/models/outputdls3.py +1 -152
  115. cribl_control_plane/models/outputdynatracehttp.py +19 -160
  116. cribl_control_plane/models/outputdynatraceotlp.py +19 -160
  117. cribl_control_plane/models/outputelastic.py +19 -163
  118. cribl_control_plane/models/outputelasticcloud.py +19 -140
  119. cribl_control_plane/models/outputexabeam.py +1 -61
  120. cribl_control_plane/models/outputfilesystem.py +1 -87
  121. cribl_control_plane/models/outputgooglechronicle.py +20 -166
  122. cribl_control_plane/models/outputgooglecloudlogging.py +20 -131
  123. cribl_control_plane/models/outputgooglecloudstorage.py +1 -136
  124. cribl_control_plane/models/outputgooglepubsub.py +19 -106
  125. cribl_control_plane/models/outputgrafanacloud.py +37 -288
  126. cribl_control_plane/models/outputgraphite.py +19 -105
  127. cribl_control_plane/models/outputhoneycomb.py +19 -115
  128. cribl_control_plane/models/outputhumiohec.py +19 -126
  129. cribl_control_plane/models/outputinfluxdb.py +19 -130
  130. cribl_control_plane/models/outputkafka.py +34 -302
  131. cribl_control_plane/models/outputkinesis.py +19 -133
  132. cribl_control_plane/models/outputloki.py +17 -129
  133. cribl_control_plane/models/outputminio.py +1 -145
  134. cribl_control_plane/models/outputmsk.py +34 -193
  135. cribl_control_plane/models/outputnewrelic.py +19 -136
  136. cribl_control_plane/models/outputnewrelicevents.py +20 -128
  137. cribl_control_plane/models/outputopentelemetry.py +19 -178
  138. cribl_control_plane/models/outputprometheus.py +19 -115
  139. cribl_control_plane/models/outputring.py +1 -31
  140. cribl_control_plane/models/outputs3.py +1 -152
  141. cribl_control_plane/models/outputsecuritylake.py +1 -114
  142. cribl_control_plane/models/outputsentinel.py +19 -135
  143. cribl_control_plane/models/outputsentineloneaisiem.py +20 -134
  144. cribl_control_plane/models/outputservicenow.py +19 -168
  145. cribl_control_plane/models/outputsignalfx.py +19 -115
  146. cribl_control_plane/models/outputsns.py +17 -113
  147. cribl_control_plane/models/outputsplunk.py +19 -153
  148. cribl_control_plane/models/outputsplunkhec.py +19 -208
  149. cribl_control_plane/models/outputsplunklb.py +19 -182
  150. cribl_control_plane/models/outputsqs.py +17 -124
  151. cribl_control_plane/models/outputstatsd.py +19 -105
  152. cribl_control_plane/models/outputstatsdext.py +19 -105
  153. cribl_control_plane/models/outputsumologic.py +19 -117
  154. cribl_control_plane/models/outputsyslog.py +96 -259
  155. cribl_control_plane/models/outputtcpjson.py +19 -141
  156. cribl_control_plane/models/outputwavefront.py +19 -115
  157. cribl_control_plane/models/outputwebhook.py +19 -161
  158. cribl_control_plane/models/outputxsiam.py +17 -113
  159. cribl_control_plane/models/packinfo.py +5 -8
  160. cribl_control_plane/models/packinstallinfo.py +5 -8
  161. cribl_control_plane/models/resourcepolicy.py +0 -11
  162. cribl_control_plane/models/{uploadpackresponse.py → routecloneconf.py} +4 -4
  163. cribl_control_plane/models/routeconf.py +4 -3
  164. cribl_control_plane/models/runnablejobcollection.py +9 -72
  165. cribl_control_plane/models/runnablejobexecutor.py +9 -32
  166. cribl_control_plane/models/runnablejobscheduledsearch.py +9 -23
  167. cribl_control_plane/models/updateconfiggroupbyproductandidop.py +0 -11
  168. cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +0 -11
  169. cribl_control_plane/packs.py +7 -202
  170. cribl_control_plane/routes_sdk.py +6 -6
  171. cribl_control_plane/tokens.py +15 -23
  172. {cribl_control_plane-0.2.1rc7.dist-info → cribl_control_plane-0.3.0a1.dist-info}/METADATA +9 -50
  173. cribl_control_plane-0.3.0a1.dist-info/RECORD +330 -0
  174. cribl_control_plane/models/groupcreaterequest.py +0 -171
  175. cribl_control_plane/models/outpostnodeinfo.py +0 -16
  176. cribl_control_plane/models/outputdatabricks.py +0 -482
  177. cribl_control_plane/models/updatepacksop.py +0 -25
  178. cribl_control_plane-0.2.1rc7.dist-info/RECORD +0 -331
  179. {cribl_control_plane-0.2.1rc7.dist-info → cribl_control_plane-0.3.0a1.dist-info}/WHEEL +0 -0
@@ -1,12 +1,11 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from cribl_control_plane import models, utils
4
+ from cribl_control_plane import utils
5
5
  from cribl_control_plane.types import BaseModel
6
6
  from cribl_control_plane.utils import validate_open_enum
7
7
  from enum import Enum
8
8
  import pydantic
9
- from pydantic import field_serializer
10
9
  from pydantic.functional_validators import PlainValidator
11
10
  from typing import List, Optional
12
11
  from typing_extensions import Annotated, NotRequired, TypedDict
@@ -30,18 +29,14 @@ class InputOffice365MgmtConnection(BaseModel):
30
29
  class InputOffice365MgmtMode(str, Enum, metaclass=utils.OpenEnumMeta):
31
30
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
32
31
 
33
- # Smart
34
32
  SMART = "smart"
35
- # Always On
36
33
  ALWAYS = "always"
37
34
 
38
35
 
39
36
  class InputOffice365MgmtCompression(str, Enum, metaclass=utils.OpenEnumMeta):
40
37
  r"""Codec to use to compress the persisted data"""
41
38
 
42
- # None
43
39
  NONE = "none"
44
- # Gzip
45
40
  GZIP = "gzip"
46
41
 
47
42
 
@@ -108,35 +103,13 @@ class InputOffice365MgmtPq(BaseModel):
108
103
  Optional[InputOffice365MgmtPqControls], pydantic.Field(alias="pqControls")
109
104
  ] = None
110
105
 
111
- @field_serializer("mode")
112
- def serialize_mode(self, value):
113
- if isinstance(value, str):
114
- try:
115
- return models.InputOffice365MgmtMode(value)
116
- except ValueError:
117
- return value
118
- return value
119
-
120
- @field_serializer("compress")
121
- def serialize_compress(self, value):
122
- if isinstance(value, str):
123
- try:
124
- return models.InputOffice365MgmtCompression(value)
125
- except ValueError:
126
- return value
127
- return value
128
-
129
106
 
130
107
  class InputOffice365MgmtSubscriptionPlan(str, Enum, metaclass=utils.OpenEnumMeta):
131
108
  r"""Office 365 subscription plan for your organization, typically Office 365 Enterprise"""
132
109
 
133
- # Office 365 Enterprise
134
110
  ENTERPRISE_GCC = "enterprise_gcc"
135
- # Office 365 GCC
136
111
  GCC = "gcc"
137
- # Office 365 GCC High
138
112
  GCC_HIGH = "gcc_high"
139
- # Office 365 DoD
140
113
  DOD = "dod"
141
114
 
142
115
 
@@ -193,24 +166,12 @@ class InputOffice365MgmtContentConfig(BaseModel):
193
166
 
194
167
  enabled: Optional[bool] = None
195
168
 
196
- @field_serializer("log_level")
197
- def serialize_log_level(self, value):
198
- if isinstance(value, str):
199
- try:
200
- return models.InputOffice365MgmtLogLevel(value)
201
- except ValueError:
202
- return value
203
- return value
204
-
205
169
 
206
170
  class InputOffice365MgmtRetryType(str, Enum, metaclass=utils.OpenEnumMeta):
207
171
  r"""The algorithm to use when performing HTTP retries"""
208
172
 
209
- # Disabled
210
173
  NONE = "none"
211
- # Backoff
212
174
  BACKOFF = "backoff"
213
- # Static
214
175
  STATIC = "static"
215
176
 
216
177
 
@@ -266,15 +227,6 @@ class InputOffice365MgmtRetryRules(BaseModel):
266
227
  ] = False
267
228
  r"""Retry request when a connection reset (ECONNRESET) error occurs"""
268
229
 
269
- @field_serializer("type")
270
- def serialize_type(self, value):
271
- if isinstance(value, str):
272
- try:
273
- return models.InputOffice365MgmtRetryType(value)
274
- except ValueError:
275
- return value
276
- return value
277
-
278
230
 
279
231
  class InputOffice365MgmtAuthenticationMethod(str, Enum, metaclass=utils.OpenEnumMeta):
280
232
  r"""Enter client secret directly, or select a stored secret"""
@@ -443,21 +395,3 @@ class InputOffice365Mgmt(BaseModel):
443
395
 
444
396
  text_secret: Annotated[Optional[str], pydantic.Field(alias="textSecret")] = None
445
397
  r"""Select or create a stored text secret"""
446
-
447
- @field_serializer("plan_type")
448
- def serialize_plan_type(self, value):
449
- if isinstance(value, str):
450
- try:
451
- return models.InputOffice365MgmtSubscriptionPlan(value)
452
- except ValueError:
453
- return value
454
- return value
455
-
456
- @field_serializer("auth_type")
457
- def serialize_auth_type(self, value):
458
- if isinstance(value, str):
459
- try:
460
- return models.InputOffice365MgmtAuthenticationMethod(value)
461
- except ValueError:
462
- return value
463
- return value
@@ -1,12 +1,11 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from cribl_control_plane import models, utils
4
+ from cribl_control_plane import utils
5
5
  from cribl_control_plane.types import BaseModel
6
6
  from cribl_control_plane.utils import validate_open_enum
7
7
  from enum import Enum
8
8
  import pydantic
9
- from pydantic import field_serializer
10
9
  from pydantic.functional_validators import PlainValidator
11
10
  from typing import List, Optional
12
11
  from typing_extensions import Annotated, NotRequired, TypedDict
@@ -30,18 +29,14 @@ class InputOffice365MsgTraceConnection(BaseModel):
30
29
  class InputOffice365MsgTraceMode(str, Enum, metaclass=utils.OpenEnumMeta):
31
30
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
32
31
 
33
- # Smart
34
32
  SMART = "smart"
35
- # Always On
36
33
  ALWAYS = "always"
37
34
 
38
35
 
39
36
  class InputOffice365MsgTraceCompression(str, Enum, metaclass=utils.OpenEnumMeta):
40
37
  r"""Codec to use to compress the persisted data"""
41
38
 
42
- # None
43
39
  NONE = "none"
44
- # Gzip
45
40
  GZIP = "gzip"
46
41
 
47
42
 
@@ -108,24 +103,6 @@ class InputOffice365MsgTracePq(BaseModel):
108
103
  Optional[InputOffice365MsgTracePqControls], pydantic.Field(alias="pqControls")
109
104
  ] = None
110
105
 
111
- @field_serializer("mode")
112
- def serialize_mode(self, value):
113
- if isinstance(value, str):
114
- try:
115
- return models.InputOffice365MsgTraceMode(value)
116
- except ValueError:
117
- return value
118
- return value
119
-
120
- @field_serializer("compress")
121
- def serialize_compress(self, value):
122
- if isinstance(value, str):
123
- try:
124
- return models.InputOffice365MsgTraceCompression(value)
125
- except ValueError:
126
- return value
127
- return value
128
-
129
106
 
130
107
  class InputOffice365MsgTraceAuthenticationMethod(
131
108
  str, Enum, metaclass=utils.OpenEnumMeta
@@ -165,11 +142,8 @@ class InputOffice365MsgTraceMetadatum(BaseModel):
165
142
  class InputOffice365MsgTraceRetryType(str, Enum, metaclass=utils.OpenEnumMeta):
166
143
  r"""The algorithm to use when performing HTTP retries"""
167
144
 
168
- # Disabled
169
145
  NONE = "none"
170
- # Backoff
171
146
  BACKOFF = "backoff"
172
- # Static
173
147
  STATIC = "static"
174
148
 
175
149
 
@@ -226,26 +200,13 @@ class InputOffice365MsgTraceRetryRules(BaseModel):
226
200
  ] = False
227
201
  r"""Retry request when a connection reset (ECONNRESET) error occurs"""
228
202
 
229
- @field_serializer("type")
230
- def serialize_type(self, value):
231
- if isinstance(value, str):
232
- try:
233
- return models.InputOffice365MsgTraceRetryType(value)
234
- except ValueError:
235
- return value
236
- return value
237
-
238
203
 
239
204
  class InputOffice365MsgTraceSubscriptionPlan(str, Enum, metaclass=utils.OpenEnumMeta):
240
205
  r"""Office 365 subscription plan for your organization, typically Office 365 Enterprise"""
241
206
 
242
- # Office 365 Enterprise
243
207
  ENTERPRISE_GCC = "enterprise_gcc"
244
- # Office 365 GCC
245
208
  GCC = "gcc"
246
- # Office 365 GCC High
247
209
  GCC_HIGH = "gcc_high"
248
- # Office 365 DoD
249
210
  DOD = "dod"
250
211
 
251
212
 
@@ -497,30 +458,3 @@ class InputOffice365MsgTrace(BaseModel):
497
458
  cert_options: Annotated[
498
459
  Optional[CertOptions], pydantic.Field(alias="certOptions")
499
460
  ] = None
500
-
501
- @field_serializer("auth_type")
502
- def serialize_auth_type(self, value):
503
- if isinstance(value, str):
504
- try:
505
- return models.InputOffice365MsgTraceAuthenticationMethod(value)
506
- except ValueError:
507
- return value
508
- return value
509
-
510
- @field_serializer("log_level")
511
- def serialize_log_level(self, value):
512
- if isinstance(value, str):
513
- try:
514
- return models.InputOffice365MsgTraceLogLevel(value)
515
- except ValueError:
516
- return value
517
- return value
518
-
519
- @field_serializer("plan_type")
520
- def serialize_plan_type(self, value):
521
- if isinstance(value, str):
522
- try:
523
- return models.InputOffice365MsgTraceSubscriptionPlan(value)
524
- except ValueError:
525
- return value
526
- return value
@@ -1,12 +1,11 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from cribl_control_plane import models, utils
4
+ from cribl_control_plane import utils
5
5
  from cribl_control_plane.types import BaseModel
6
6
  from cribl_control_plane.utils import validate_open_enum
7
7
  from enum import Enum
8
8
  import pydantic
9
- from pydantic import field_serializer
10
9
  from pydantic.functional_validators import PlainValidator
11
10
  from typing import List, Optional
12
11
  from typing_extensions import Annotated, NotRequired, TypedDict
@@ -30,18 +29,14 @@ class InputOffice365ServiceConnection(BaseModel):
30
29
  class InputOffice365ServiceMode(str, Enum, metaclass=utils.OpenEnumMeta):
31
30
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
32
31
 
33
- # Smart
34
32
  SMART = "smart"
35
- # Always On
36
33
  ALWAYS = "always"
37
34
 
38
35
 
39
36
  class InputOffice365ServiceCompression(str, Enum, metaclass=utils.OpenEnumMeta):
40
37
  r"""Codec to use to compress the persisted data"""
41
38
 
42
- # None
43
39
  NONE = "none"
44
- # Gzip
45
40
  GZIP = "gzip"
46
41
 
47
42
 
@@ -108,35 +103,13 @@ class InputOffice365ServicePq(BaseModel):
108
103
  Optional[InputOffice365ServicePqControls], pydantic.Field(alias="pqControls")
109
104
  ] = None
110
105
 
111
- @field_serializer("mode")
112
- def serialize_mode(self, value):
113
- if isinstance(value, str):
114
- try:
115
- return models.InputOffice365ServiceMode(value)
116
- except ValueError:
117
- return value
118
- return value
119
-
120
- @field_serializer("compress")
121
- def serialize_compress(self, value):
122
- if isinstance(value, str):
123
- try:
124
- return models.InputOffice365ServiceCompression(value)
125
- except ValueError:
126
- return value
127
- return value
128
-
129
106
 
130
107
  class InputOffice365ServiceSubscriptionPlan(str, Enum, metaclass=utils.OpenEnumMeta):
131
108
  r"""Office 365 subscription plan for your organization, typically Office 365 Enterprise"""
132
109
 
133
- # Office 365 Enterprise
134
110
  ENTERPRISE_GCC = "enterprise_gcc"
135
- # Office 365 GCC
136
111
  GCC = "gcc"
137
- # Office 365 GCC High
138
112
  GCC_HIGH = "gcc_high"
139
- # Office 365 DoD
140
113
  DOD = "dod"
141
114
 
142
115
 
@@ -193,24 +166,12 @@ class InputOffice365ServiceContentConfig(BaseModel):
193
166
 
194
167
  enabled: Optional[bool] = None
195
168
 
196
- @field_serializer("log_level")
197
- def serialize_log_level(self, value):
198
- if isinstance(value, str):
199
- try:
200
- return models.InputOffice365ServiceLogLevel(value)
201
- except ValueError:
202
- return value
203
- return value
204
-
205
169
 
206
170
  class InputOffice365ServiceRetryType(str, Enum, metaclass=utils.OpenEnumMeta):
207
171
  r"""The algorithm to use when performing HTTP retries"""
208
172
 
209
- # Disabled
210
173
  NONE = "none"
211
- # Backoff
212
174
  BACKOFF = "backoff"
213
- # Static
214
175
  STATIC = "static"
215
176
 
216
177
 
@@ -267,15 +228,6 @@ class InputOffice365ServiceRetryRules(BaseModel):
267
228
  ] = False
268
229
  r"""Retry request when a connection reset (ECONNRESET) error occurs"""
269
230
 
270
- @field_serializer("type")
271
- def serialize_type(self, value):
272
- if isinstance(value, str):
273
- try:
274
- return models.InputOffice365ServiceRetryType(value)
275
- except ValueError:
276
- return value
277
- return value
278
-
279
231
 
280
232
  class InputOffice365ServiceAuthenticationMethod(
281
233
  str, Enum, metaclass=utils.OpenEnumMeta
@@ -434,21 +386,3 @@ class InputOffice365Service(BaseModel):
434
386
 
435
387
  text_secret: Annotated[Optional[str], pydantic.Field(alias="textSecret")] = None
436
388
  r"""Select or create a stored text secret"""
437
-
438
- @field_serializer("plan_type")
439
- def serialize_plan_type(self, value):
440
- if isinstance(value, str):
441
- try:
442
- return models.InputOffice365ServiceSubscriptionPlan(value)
443
- except ValueError:
444
- return value
445
- return value
446
-
447
- @field_serializer("auth_type")
448
- def serialize_auth_type(self, value):
449
- if isinstance(value, str):
450
- try:
451
- return models.InputOffice365ServiceAuthenticationMethod(value)
452
- except ValueError:
453
- return value
454
- return value
@@ -1,12 +1,11 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from cribl_control_plane import models, utils
4
+ from cribl_control_plane import utils
5
5
  from cribl_control_plane.types import BaseModel
6
6
  from cribl_control_plane.utils import validate_open_enum
7
7
  from enum import Enum
8
8
  import pydantic
9
- from pydantic import field_serializer
10
9
  from pydantic.functional_validators import PlainValidator
11
10
  from typing import Any, List, Optional
12
11
  from typing_extensions import Annotated, NotRequired, TypedDict
@@ -30,18 +29,14 @@ class InputOpenTelemetryConnection(BaseModel):
30
29
  class InputOpenTelemetryMode(str, Enum, metaclass=utils.OpenEnumMeta):
31
30
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
32
31
 
33
- # Smart
34
32
  SMART = "smart"
35
- # Always On
36
33
  ALWAYS = "always"
37
34
 
38
35
 
39
36
  class InputOpenTelemetryCompression(str, Enum, metaclass=utils.OpenEnumMeta):
40
37
  r"""Codec to use to compress the persisted data"""
41
38
 
42
- # None
43
39
  NONE = "none"
44
- # Gzip
45
40
  GZIP = "gzip"
46
41
 
47
42
 
@@ -108,24 +103,6 @@ class InputOpenTelemetryPq(BaseModel):
108
103
  Optional[InputOpenTelemetryPqControls], pydantic.Field(alias="pqControls")
109
104
  ] = None
110
105
 
111
- @field_serializer("mode")
112
- def serialize_mode(self, value):
113
- if isinstance(value, str):
114
- try:
115
- return models.InputOpenTelemetryMode(value)
116
- except ValueError:
117
- return value
118
- return value
119
-
120
- @field_serializer("compress")
121
- def serialize_compress(self, value):
122
- if isinstance(value, str):
123
- try:
124
- return models.InputOpenTelemetryCompression(value)
125
- except ValueError:
126
- return value
127
- return value
128
-
129
106
 
130
107
  class InputOpenTelemetryMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
131
108
  TL_SV1 = "TLSv1"
@@ -143,12 +120,6 @@ class InputOpenTelemetryMaximumTLSVersion(str, Enum, metaclass=utils.OpenEnumMet
143
120
 
144
121
  class InputOpenTelemetryTLSSettingsServerSideTypedDict(TypedDict):
145
122
  disabled: NotRequired[bool]
146
- request_cert: NotRequired[bool]
147
- r"""Require clients to present their certificates. Used to perform client authentication using SSL certs."""
148
- reject_unauthorized: NotRequired[bool]
149
- r"""Reject certificates not authorized by a CA in the CA certificate path or by another trusted CA (such as the system's)"""
150
- common_name_regex: NotRequired[str]
151
- r"""Regex matching allowable common names in peer certificates' subject attribute"""
152
123
  certificate_name: NotRequired[str]
153
124
  r"""The name of the predefined certificate"""
154
125
  priv_key_path: NotRequired[str]
@@ -159,6 +130,10 @@ class InputOpenTelemetryTLSSettingsServerSideTypedDict(TypedDict):
159
130
  r"""Path on server containing certificates to use. PEM format. Can reference $ENV_VARS."""
160
131
  ca_path: NotRequired[str]
161
132
  r"""Path on server containing CA certificates to use. PEM format. Can reference $ENV_VARS."""
133
+ request_cert: NotRequired[bool]
134
+ r"""Require clients to present their certificates. Used to perform client authentication using SSL certs."""
135
+ reject_unauthorized: NotRequired[Any]
136
+ common_name_regex: NotRequired[Any]
162
137
  min_version: NotRequired[InputOpenTelemetryMinimumTLSVersion]
163
138
  max_version: NotRequired[InputOpenTelemetryMaximumTLSVersion]
164
139
 
@@ -166,19 +141,6 @@ class InputOpenTelemetryTLSSettingsServerSideTypedDict(TypedDict):
166
141
  class InputOpenTelemetryTLSSettingsServerSide(BaseModel):
167
142
  disabled: Optional[bool] = True
168
143
 
169
- request_cert: Annotated[Optional[bool], pydantic.Field(alias="requestCert")] = False
170
- r"""Require clients to present their certificates. Used to perform client authentication using SSL certs."""
171
-
172
- reject_unauthorized: Annotated[
173
- Optional[bool], pydantic.Field(alias="rejectUnauthorized")
174
- ] = True
175
- r"""Reject certificates not authorized by a CA in the CA certificate path or by another trusted CA (such as the system's)"""
176
-
177
- common_name_regex: Annotated[
178
- Optional[str], pydantic.Field(alias="commonNameRegex")
179
- ] = "/.*/"
180
- r"""Regex matching allowable common names in peer certificates' subject attribute"""
181
-
182
144
  certificate_name: Annotated[
183
145
  Optional[str], pydantic.Field(alias="certificateName")
184
146
  ] = None
@@ -196,6 +158,17 @@ class InputOpenTelemetryTLSSettingsServerSide(BaseModel):
196
158
  ca_path: Annotated[Optional[str], pydantic.Field(alias="caPath")] = None
197
159
  r"""Path on server containing CA certificates to use. PEM format. Can reference $ENV_VARS."""
198
160
 
161
+ request_cert: Annotated[Optional[bool], pydantic.Field(alias="requestCert")] = False
162
+ r"""Require clients to present their certificates. Used to perform client authentication using SSL certs."""
163
+
164
+ reject_unauthorized: Annotated[
165
+ Optional[Any], pydantic.Field(alias="rejectUnauthorized")
166
+ ] = None
167
+
168
+ common_name_regex: Annotated[
169
+ Optional[Any], pydantic.Field(alias="commonNameRegex")
170
+ ] = None
171
+
199
172
  min_version: Annotated[
200
173
  Annotated[
201
174
  Optional[InputOpenTelemetryMinimumTLSVersion],
@@ -212,40 +185,18 @@ class InputOpenTelemetryTLSSettingsServerSide(BaseModel):
212
185
  pydantic.Field(alias="maxVersion"),
213
186
  ] = None
214
187
 
215
- @field_serializer("min_version")
216
- def serialize_min_version(self, value):
217
- if isinstance(value, str):
218
- try:
219
- return models.InputOpenTelemetryMinimumTLSVersion(value)
220
- except ValueError:
221
- return value
222
- return value
223
-
224
- @field_serializer("max_version")
225
- def serialize_max_version(self, value):
226
- if isinstance(value, str):
227
- try:
228
- return models.InputOpenTelemetryMaximumTLSVersion(value)
229
- except ValueError:
230
- return value
231
- return value
232
-
233
188
 
234
189
  class InputOpenTelemetryProtocol(str, Enum, metaclass=utils.OpenEnumMeta):
235
190
  r"""Select whether to leverage gRPC or HTTP for OpenTelemetry"""
236
191
 
237
- # gRPC
238
192
  GRPC = "grpc"
239
- # HTTP
240
193
  HTTP = "http"
241
194
 
242
195
 
243
196
  class InputOpenTelemetryOTLPVersion(str, Enum, metaclass=utils.OpenEnumMeta):
244
197
  r"""The version of OTLP Protobuf definitions to use when interpreting received data"""
245
198
 
246
- # 0.10.0
247
199
  ZERO_DOT_10_DOT_0 = "0.10.0"
248
- # 1.3.1
249
200
  ONE_DOT_3_DOT_1 = "1.3.1"
250
201
 
251
202
 
@@ -576,30 +527,3 @@ class InputOpenTelemetry(BaseModel):
576
527
 
577
528
  extract_logs: Annotated[Optional[bool], pydantic.Field(alias="extractLogs")] = False
578
529
  r"""Enable to extract each incoming log record to a separate event"""
579
-
580
- @field_serializer("protocol")
581
- def serialize_protocol(self, value):
582
- if isinstance(value, str):
583
- try:
584
- return models.InputOpenTelemetryProtocol(value)
585
- except ValueError:
586
- return value
587
- return value
588
-
589
- @field_serializer("otlp_version")
590
- def serialize_otlp_version(self, value):
591
- if isinstance(value, str):
592
- try:
593
- return models.InputOpenTelemetryOTLPVersion(value)
594
- except ValueError:
595
- return value
596
- return value
597
-
598
- @field_serializer("auth_type")
599
- def serialize_auth_type(self, value):
600
- if isinstance(value, str):
601
- try:
602
- return models.InputOpenTelemetryAuthenticationType(value)
603
- except ValueError:
604
- return value
605
- return value