cribl-control-plane 0.0.34__py3-none-any.whl → 0.0.36__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 (30) hide show
  1. cribl_control_plane/_version.py +3 -3
  2. cribl_control_plane/acl.py +4 -4
  3. cribl_control_plane/commits.py +4 -4
  4. cribl_control_plane/configs_versions.py +2 -2
  5. cribl_control_plane/groups_sdk.py +12 -12
  6. cribl_control_plane/models/__init__.py +79 -36
  7. cribl_control_plane/models/createconfiggroupbyproductop.py +3 -10
  8. cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +3 -10
  9. cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +6 -25
  10. cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +6 -25
  11. cribl_control_plane/models/getconfiggroupbyproductandidop.py +3 -10
  12. cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +3 -10
  13. cribl_control_plane/models/getpacksbyidop.py +37 -0
  14. cribl_control_plane/models/getsummaryop.py +3 -10
  15. cribl_control_plane/models/gitfilesresponse.py +7 -5
  16. cribl_control_plane/models/gitrevertparams.py +3 -3
  17. cribl_control_plane/models/gitrevertresult.py +5 -5
  18. cribl_control_plane/models/input.py +19 -16
  19. cribl_control_plane/models/inputwizwebhook.py +393 -0
  20. cribl_control_plane/models/listconfiggroupbyproductop.py +3 -10
  21. cribl_control_plane/models/productscore.py +9 -0
  22. cribl_control_plane/models/updateconfiggroupbyproductandidop.py +3 -10
  23. cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +3 -10
  24. cribl_control_plane/models/workertypes.py +9 -0
  25. cribl_control_plane/packs.py +174 -0
  26. cribl_control_plane/summaries.py +2 -2
  27. cribl_control_plane/teams.py +4 -4
  28. {cribl_control_plane-0.0.34.dist-info → cribl_control_plane-0.0.36.dist-info}/METADATA +3 -2
  29. {cribl_control_plane-0.0.34.dist-info → cribl_control_plane-0.0.36.dist-info}/RECORD +30 -26
  30. {cribl_control_plane-0.0.34.dist-info → cribl_control_plane-0.0.36.dist-info}/WHEEL +0 -0
@@ -0,0 +1,393 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from cribl_control_plane.types import BaseModel
5
+ from enum import Enum
6
+ import pydantic
7
+ from typing import Any, List, Optional
8
+ from typing_extensions import Annotated, NotRequired, TypedDict
9
+
10
+
11
+ class InputWizWebhookType(str, Enum):
12
+ WIZ_WEBHOOK = "wiz_webhook"
13
+
14
+
15
+ class InputWizWebhookConnectionTypedDict(TypedDict):
16
+ output: str
17
+ pipeline: NotRequired[str]
18
+
19
+
20
+ class InputWizWebhookConnection(BaseModel):
21
+ output: str
22
+
23
+ pipeline: Optional[str] = None
24
+
25
+
26
+ class InputWizWebhookMode(str, Enum):
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."""
28
+
29
+ SMART = "smart"
30
+ ALWAYS = "always"
31
+
32
+
33
+ class InputWizWebhookCompression(str, Enum):
34
+ r"""Codec to use to compress the persisted data"""
35
+
36
+ NONE = "none"
37
+ GZIP = "gzip"
38
+
39
+
40
+ class InputWizWebhookPqTypedDict(TypedDict):
41
+ mode: NotRequired[InputWizWebhookMode]
42
+ 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."""
43
+ max_buffer_size: NotRequired[float]
44
+ r"""The maximum number of events to hold in memory before writing the events to disk"""
45
+ commit_frequency: NotRequired[float]
46
+ r"""The number of events to send downstream before committing that Stream has read them"""
47
+ max_file_size: NotRequired[str]
48
+ r"""The maximum size to store in each queue file before closing and optionally compressing. Enter a numeral with units of KB, MB, etc."""
49
+ max_size: NotRequired[str]
50
+ r"""The maximum disk space that the queue can consume (as an average per Worker Process) before queueing stops. Enter a numeral with units of KB, MB, etc."""
51
+ path: NotRequired[str]
52
+ r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
53
+ compress: NotRequired[InputWizWebhookCompression]
54
+ r"""Codec to use to compress the persisted data"""
55
+
56
+
57
+ class InputWizWebhookPq(BaseModel):
58
+ mode: Optional[InputWizWebhookMode] = InputWizWebhookMode.ALWAYS
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."""
60
+
61
+ max_buffer_size: Annotated[
62
+ Optional[float], pydantic.Field(alias="maxBufferSize")
63
+ ] = 1000
64
+ r"""The maximum number of events to hold in memory before writing the events to disk"""
65
+
66
+ commit_frequency: Annotated[
67
+ Optional[float], pydantic.Field(alias="commitFrequency")
68
+ ] = 42
69
+ r"""The number of events to send downstream before committing that Stream has read them"""
70
+
71
+ max_file_size: Annotated[Optional[str], pydantic.Field(alias="maxFileSize")] = (
72
+ "1 MB"
73
+ )
74
+ r"""The maximum size to store in each queue file before closing and optionally compressing. Enter a numeral with units of KB, MB, etc."""
75
+
76
+ max_size: Annotated[Optional[str], pydantic.Field(alias="maxSize")] = "5GB"
77
+ r"""The maximum disk space that the queue can consume (as an average per Worker Process) before queueing stops. Enter a numeral with units of KB, MB, etc."""
78
+
79
+ path: Optional[str] = "$CRIBL_HOME/state/queues"
80
+ r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
81
+
82
+ compress: Optional[InputWizWebhookCompression] = InputWizWebhookCompression.NONE
83
+ r"""Codec to use to compress the persisted data"""
84
+
85
+
86
+ class InputWizWebhookMinimumTLSVersion(str, Enum):
87
+ TL_SV1 = "TLSv1"
88
+ TL_SV1_1 = "TLSv1.1"
89
+ TL_SV1_2 = "TLSv1.2"
90
+ TL_SV1_3 = "TLSv1.3"
91
+
92
+
93
+ class InputWizWebhookMaximumTLSVersion(str, Enum):
94
+ TL_SV1 = "TLSv1"
95
+ TL_SV1_1 = "TLSv1.1"
96
+ TL_SV1_2 = "TLSv1.2"
97
+ TL_SV1_3 = "TLSv1.3"
98
+
99
+
100
+ class InputWizWebhookTLSSettingsServerSideTypedDict(TypedDict):
101
+ disabled: NotRequired[bool]
102
+ certificate_name: NotRequired[str]
103
+ r"""The name of the predefined certificate"""
104
+ priv_key_path: NotRequired[str]
105
+ r"""Path on server containing the private key to use. PEM format. Can reference $ENV_VARS."""
106
+ passphrase: NotRequired[str]
107
+ r"""Passphrase to use to decrypt private key"""
108
+ cert_path: NotRequired[str]
109
+ r"""Path on server containing certificates to use. PEM format. Can reference $ENV_VARS."""
110
+ ca_path: NotRequired[str]
111
+ r"""Path on server containing CA certificates to use. PEM format. Can reference $ENV_VARS."""
112
+ request_cert: NotRequired[bool]
113
+ r"""Require clients to present their certificates. Used to perform client authentication using SSL certs."""
114
+ reject_unauthorized: NotRequired[Any]
115
+ common_name_regex: NotRequired[Any]
116
+ min_version: NotRequired[InputWizWebhookMinimumTLSVersion]
117
+ max_version: NotRequired[InputWizWebhookMaximumTLSVersion]
118
+
119
+
120
+ class InputWizWebhookTLSSettingsServerSide(BaseModel):
121
+ disabled: Optional[bool] = True
122
+
123
+ certificate_name: Annotated[
124
+ Optional[str], pydantic.Field(alias="certificateName")
125
+ ] = None
126
+ r"""The name of the predefined certificate"""
127
+
128
+ priv_key_path: Annotated[Optional[str], pydantic.Field(alias="privKeyPath")] = None
129
+ r"""Path on server containing the private key to use. PEM format. Can reference $ENV_VARS."""
130
+
131
+ passphrase: Optional[str] = None
132
+ r"""Passphrase to use to decrypt private key"""
133
+
134
+ cert_path: Annotated[Optional[str], pydantic.Field(alias="certPath")] = None
135
+ r"""Path on server containing certificates to use. PEM format. Can reference $ENV_VARS."""
136
+
137
+ ca_path: Annotated[Optional[str], pydantic.Field(alias="caPath")] = None
138
+ r"""Path on server containing CA certificates to use. PEM format. Can reference $ENV_VARS."""
139
+
140
+ request_cert: Annotated[Optional[bool], pydantic.Field(alias="requestCert")] = False
141
+ r"""Require clients to present their certificates. Used to perform client authentication using SSL certs."""
142
+
143
+ reject_unauthorized: Annotated[
144
+ Optional[Any], pydantic.Field(alias="rejectUnauthorized")
145
+ ] = None
146
+
147
+ common_name_regex: Annotated[
148
+ Optional[Any], pydantic.Field(alias="commonNameRegex")
149
+ ] = None
150
+
151
+ min_version: Annotated[
152
+ Optional[InputWizWebhookMinimumTLSVersion], pydantic.Field(alias="minVersion")
153
+ ] = None
154
+
155
+ max_version: Annotated[
156
+ Optional[InputWizWebhookMaximumTLSVersion], pydantic.Field(alias="maxVersion")
157
+ ] = None
158
+
159
+
160
+ class InputWizWebhookMetadatumTypedDict(TypedDict):
161
+ name: str
162
+ value: str
163
+ r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
164
+
165
+
166
+ class InputWizWebhookMetadatum(BaseModel):
167
+ name: str
168
+
169
+ value: str
170
+ r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
171
+
172
+
173
+ class InputWizWebhookAuthTokensExtMetadatumTypedDict(TypedDict):
174
+ name: str
175
+ value: str
176
+ r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
177
+
178
+
179
+ class InputWizWebhookAuthTokensExtMetadatum(BaseModel):
180
+ name: str
181
+
182
+ value: str
183
+ r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
184
+
185
+
186
+ class InputWizWebhookAuthTokensExtTypedDict(TypedDict):
187
+ token: str
188
+ r"""Shared secret to be provided by any client (Authorization: <token>)"""
189
+ description: NotRequired[str]
190
+ metadata: NotRequired[List[InputWizWebhookAuthTokensExtMetadatumTypedDict]]
191
+ r"""Fields to add to events referencing this token"""
192
+
193
+
194
+ class InputWizWebhookAuthTokensExt(BaseModel):
195
+ token: str
196
+ r"""Shared secret to be provided by any client (Authorization: <token>)"""
197
+
198
+ description: Optional[str] = None
199
+
200
+ metadata: Optional[List[InputWizWebhookAuthTokensExtMetadatum]] = None
201
+ r"""Fields to add to events referencing this token"""
202
+
203
+
204
+ class InputWizWebhookTypedDict(TypedDict):
205
+ type: InputWizWebhookType
206
+ port: float
207
+ r"""Port to listen on"""
208
+ id: NotRequired[str]
209
+ r"""Unique ID for this input"""
210
+ disabled: NotRequired[bool]
211
+ pipeline: NotRequired[str]
212
+ r"""Pipeline to process data from this Source before sending it through the Routes"""
213
+ send_to_routes: NotRequired[bool]
214
+ r"""Select whether to send data to Routes, or directly to Destinations."""
215
+ environment: NotRequired[str]
216
+ r"""Optionally, enable this config only on a specified Git branch. If empty, will be enabled everywhere."""
217
+ pq_enabled: NotRequired[bool]
218
+ r"""Use a disk queue to minimize data loss when connected services block. See [Cribl Docs](https://docs.cribl.io/stream/persistent-queues) for PQ defaults (Cribl-managed Cloud Workers) and configuration options (on-prem and hybrid Workers)."""
219
+ streamtags: NotRequired[List[str]]
220
+ r"""Tags for filtering and grouping in @{product}"""
221
+ connections: NotRequired[List[InputWizWebhookConnectionTypedDict]]
222
+ r"""Direct connections to Destinations, and optionally via a Pipeline or a Pack"""
223
+ pq: NotRequired[InputWizWebhookPqTypedDict]
224
+ host: NotRequired[str]
225
+ r"""Address to bind on. Defaults to 0.0.0.0 (all addresses)."""
226
+ auth_tokens: NotRequired[List[str]]
227
+ r"""Shared secrets to be provided by any client (Authorization: <token>). If empty, unauthorized access is permitted."""
228
+ tls: NotRequired[InputWizWebhookTLSSettingsServerSideTypedDict]
229
+ max_active_req: NotRequired[float]
230
+ r"""Maximum number of active requests allowed per Worker Process. Set to 0 for unlimited. Caution: Increasing the limit above the default value, or setting it to unlimited, may degrade performance and reduce throughput."""
231
+ max_requests_per_socket: NotRequired[int]
232
+ r"""Maximum number of requests per socket before @{product} instructs the client to close the connection. Default is 0 (unlimited)."""
233
+ enable_proxy_header: NotRequired[bool]
234
+ r"""Extract the client IP and port from PROXY protocol v1/v2. When enabled, the X-Forwarded-For header is ignored. Disable to use the X-Forwarded-For header for client IP extraction."""
235
+ capture_headers: NotRequired[bool]
236
+ r"""Add request headers to events, in the __headers field"""
237
+ activity_log_sample_rate: NotRequired[float]
238
+ r"""How often request activity is logged at the `info` level. A value of 1 would log every request, 10 every 10th request, etc."""
239
+ request_timeout: NotRequired[float]
240
+ r"""How long to wait for an incoming request to complete before aborting it. Use 0 to disable."""
241
+ socket_timeout: NotRequired[float]
242
+ r"""How long @{product} should wait before assuming that an inactive socket has timed out. To wait forever, set to 0."""
243
+ keep_alive_timeout: NotRequired[float]
244
+ r"""After the last response is sent, @{product} will wait this long for additional data before closing the socket connection. Minimum 1 second, maximum 600 seconds (10 minutes)."""
245
+ enable_health_check: NotRequired[bool]
246
+ r"""Expose the /cribl_health endpoint, which returns 200 OK when this Source is healthy"""
247
+ ip_allowlist_regex: NotRequired[str]
248
+ r"""Messages from matched IP addresses will be processed, unless also matched by the denylist"""
249
+ ip_denylist_regex: NotRequired[str]
250
+ r"""Messages from matched IP addresses will be ignored. This takes precedence over the allowlist."""
251
+ breaker_rulesets: NotRequired[List[str]]
252
+ r"""A list of event-breaking rulesets that will be applied, in order, to the input data stream"""
253
+ stale_channel_flush_ms: NotRequired[float]
254
+ r"""How long (in milliseconds) the Event Breaker will wait for new data to be sent to a specific channel before flushing the data stream out, as is, to the Pipelines"""
255
+ metadata: NotRequired[List[InputWizWebhookMetadatumTypedDict]]
256
+ r"""Fields to add to events from this input"""
257
+ allowed_paths: NotRequired[List[str]]
258
+ r"""List of URI paths accepted by this input. Wildcards are supported (such as /api/v*/hook). Defaults to allow all."""
259
+ allowed_methods: NotRequired[List[str]]
260
+ r"""List of HTTP methods accepted by this input. Wildcards are supported (such as P*, GET). Defaults to allow all."""
261
+ auth_tokens_ext: NotRequired[List[InputWizWebhookAuthTokensExtTypedDict]]
262
+ r"""Shared secrets to be provided by any client (Authorization: <token>). If empty, unauthorized access is permitted."""
263
+ description: NotRequired[str]
264
+
265
+
266
+ class InputWizWebhook(BaseModel):
267
+ type: InputWizWebhookType
268
+
269
+ port: float
270
+ r"""Port to listen on"""
271
+
272
+ id: Optional[str] = None
273
+ r"""Unique ID for this input"""
274
+
275
+ disabled: Optional[bool] = False
276
+
277
+ pipeline: Optional[str] = None
278
+ r"""Pipeline to process data from this Source before sending it through the Routes"""
279
+
280
+ send_to_routes: Annotated[Optional[bool], pydantic.Field(alias="sendToRoutes")] = (
281
+ True
282
+ )
283
+ r"""Select whether to send data to Routes, or directly to Destinations."""
284
+
285
+ environment: Optional[str] = None
286
+ r"""Optionally, enable this config only on a specified Git branch. If empty, will be enabled everywhere."""
287
+
288
+ pq_enabled: Annotated[Optional[bool], pydantic.Field(alias="pqEnabled")] = False
289
+ r"""Use a disk queue to minimize data loss when connected services block. See [Cribl Docs](https://docs.cribl.io/stream/persistent-queues) for PQ defaults (Cribl-managed Cloud Workers) and configuration options (on-prem and hybrid Workers)."""
290
+
291
+ streamtags: Optional[List[str]] = None
292
+ r"""Tags for filtering and grouping in @{product}"""
293
+
294
+ connections: Optional[List[InputWizWebhookConnection]] = None
295
+ r"""Direct connections to Destinations, and optionally via a Pipeline or a Pack"""
296
+
297
+ pq: Optional[InputWizWebhookPq] = None
298
+
299
+ host: Optional[str] = "0.0.0.0"
300
+ r"""Address to bind on. Defaults to 0.0.0.0 (all addresses)."""
301
+
302
+ auth_tokens: Annotated[Optional[List[str]], pydantic.Field(alias="authTokens")] = (
303
+ None
304
+ )
305
+ r"""Shared secrets to be provided by any client (Authorization: <token>). If empty, unauthorized access is permitted."""
306
+
307
+ tls: Optional[InputWizWebhookTLSSettingsServerSide] = None
308
+
309
+ max_active_req: Annotated[Optional[float], pydantic.Field(alias="maxActiveReq")] = (
310
+ 256
311
+ )
312
+ r"""Maximum number of active requests allowed per Worker Process. Set to 0 for unlimited. Caution: Increasing the limit above the default value, or setting it to unlimited, may degrade performance and reduce throughput."""
313
+
314
+ max_requests_per_socket: Annotated[
315
+ Optional[int], pydantic.Field(alias="maxRequestsPerSocket")
316
+ ] = 0
317
+ r"""Maximum number of requests per socket before @{product} instructs the client to close the connection. Default is 0 (unlimited)."""
318
+
319
+ enable_proxy_header: Annotated[
320
+ Optional[bool], pydantic.Field(alias="enableProxyHeader")
321
+ ] = False
322
+ r"""Extract the client IP and port from PROXY protocol v1/v2. When enabled, the X-Forwarded-For header is ignored. Disable to use the X-Forwarded-For header for client IP extraction."""
323
+
324
+ capture_headers: Annotated[
325
+ Optional[bool], pydantic.Field(alias="captureHeaders")
326
+ ] = False
327
+ r"""Add request headers to events, in the __headers field"""
328
+
329
+ activity_log_sample_rate: Annotated[
330
+ Optional[float], pydantic.Field(alias="activityLogSampleRate")
331
+ ] = 100
332
+ r"""How often request activity is logged at the `info` level. A value of 1 would log every request, 10 every 10th request, etc."""
333
+
334
+ request_timeout: Annotated[
335
+ Optional[float], pydantic.Field(alias="requestTimeout")
336
+ ] = 0
337
+ r"""How long to wait for an incoming request to complete before aborting it. Use 0 to disable."""
338
+
339
+ socket_timeout: Annotated[
340
+ Optional[float], pydantic.Field(alias="socketTimeout")
341
+ ] = 0
342
+ r"""How long @{product} should wait before assuming that an inactive socket has timed out. To wait forever, set to 0."""
343
+
344
+ keep_alive_timeout: Annotated[
345
+ Optional[float], pydantic.Field(alias="keepAliveTimeout")
346
+ ] = 5
347
+ r"""After the last response is sent, @{product} will wait this long for additional data before closing the socket connection. Minimum 1 second, maximum 600 seconds (10 minutes)."""
348
+
349
+ enable_health_check: Annotated[
350
+ Optional[bool], pydantic.Field(alias="enableHealthCheck")
351
+ ] = False
352
+ r"""Expose the /cribl_health endpoint, which returns 200 OK when this Source is healthy"""
353
+
354
+ ip_allowlist_regex: Annotated[
355
+ Optional[str], pydantic.Field(alias="ipAllowlistRegex")
356
+ ] = "/.*/"
357
+ r"""Messages from matched IP addresses will be processed, unless also matched by the denylist"""
358
+
359
+ ip_denylist_regex: Annotated[
360
+ Optional[str], pydantic.Field(alias="ipDenylistRegex")
361
+ ] = "/^$/"
362
+ r"""Messages from matched IP addresses will be ignored. This takes precedence over the allowlist."""
363
+
364
+ breaker_rulesets: Annotated[
365
+ Optional[List[str]], pydantic.Field(alias="breakerRulesets")
366
+ ] = None
367
+ r"""A list of event-breaking rulesets that will be applied, in order, to the input data stream"""
368
+
369
+ stale_channel_flush_ms: Annotated[
370
+ Optional[float], pydantic.Field(alias="staleChannelFlushMs")
371
+ ] = 10000
372
+ r"""How long (in milliseconds) the Event Breaker will wait for new data to be sent to a specific channel before flushing the data stream out, as is, to the Pipelines"""
373
+
374
+ metadata: Optional[List[InputWizWebhookMetadatum]] = None
375
+ r"""Fields to add to events from this input"""
376
+
377
+ allowed_paths: Annotated[
378
+ Optional[List[str]], pydantic.Field(alias="allowedPaths")
379
+ ] = None
380
+ r"""List of URI paths accepted by this input. Wildcards are supported (such as /api/v*/hook). Defaults to allow all."""
381
+
382
+ allowed_methods: Annotated[
383
+ Optional[List[str]], pydantic.Field(alias="allowedMethods")
384
+ ] = None
385
+ r"""List of HTTP methods accepted by this input. Wildcards are supported (such as P*, GET). Defaults to allow all."""
386
+
387
+ auth_tokens_ext: Annotated[
388
+ Optional[List[InputWizWebhookAuthTokensExt]],
389
+ pydantic.Field(alias="authTokensExt"),
390
+ ] = None
391
+ r"""Shared secrets to be provided by any client (Authorization: <token>). If empty, unauthorized access is permitted."""
392
+
393
+ description: Optional[str] = None
@@ -2,26 +2,19 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .configgroup import ConfigGroup, ConfigGroupTypedDict
5
+ from .productscore import ProductsCore
5
6
  from cribl_control_plane.types import BaseModel
6
7
  from cribl_control_plane.utils import (
7
8
  FieldMetadata,
8
9
  PathParamMetadata,
9
10
  QueryParamMetadata,
10
11
  )
11
- from enum import Enum
12
12
  from typing import List, Optional
13
13
  from typing_extensions import Annotated, NotRequired, TypedDict
14
14
 
15
15
 
16
- class ListConfigGroupByProductProduct(str, Enum):
17
- r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
18
-
19
- STREAM = "stream"
20
- EDGE = "edge"
21
-
22
-
23
16
  class ListConfigGroupByProductRequestTypedDict(TypedDict):
24
- product: ListConfigGroupByProductProduct
17
+ product: ProductsCore
25
18
  r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
26
19
  fields: NotRequired[str]
27
20
  r"""Comma-separated list of additional properties to include in the response. Available values are <code>git.commit</code>, <code>git.localChanges</code>, and <code>git.log</code>."""
@@ -29,7 +22,7 @@ class ListConfigGroupByProductRequestTypedDict(TypedDict):
29
22
 
30
23
  class ListConfigGroupByProductRequest(BaseModel):
31
24
  product: Annotated[
32
- ListConfigGroupByProductProduct,
25
+ ProductsCore,
33
26
  FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
34
27
  ]
35
28
  r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
@@ -0,0 +1,9 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from enum import Enum
5
+
6
+
7
+ class ProductsCore(str, Enum):
8
+ STREAM = "stream"
9
+ EDGE = "edge"
@@ -2,23 +2,16 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .configgroup import ConfigGroup, ConfigGroupTypedDict
5
+ from .productscore import ProductsCore
5
6
  from cribl_control_plane.types import BaseModel
6
7
  from cribl_control_plane.utils import FieldMetadata, PathParamMetadata, RequestMetadata
7
- from enum import Enum
8
8
  import pydantic
9
9
  from typing import List, Optional
10
10
  from typing_extensions import Annotated, NotRequired, TypedDict
11
11
 
12
12
 
13
- class UpdateConfigGroupByProductAndIDProduct(str, Enum):
14
- r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
15
-
16
- STREAM = "stream"
17
- EDGE = "edge"
18
-
19
-
20
13
  class UpdateConfigGroupByProductAndIDRequestTypedDict(TypedDict):
21
- product: UpdateConfigGroupByProductAndIDProduct
14
+ product: ProductsCore
22
15
  r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
23
16
  id_param: str
24
17
  r"""The <code>id</code> of the Worker Group or Edge Fleet to update."""
@@ -28,7 +21,7 @@ class UpdateConfigGroupByProductAndIDRequestTypedDict(TypedDict):
28
21
 
29
22
  class UpdateConfigGroupByProductAndIDRequest(BaseModel):
30
23
  product: Annotated[
31
- UpdateConfigGroupByProductAndIDProduct,
24
+ ProductsCore,
32
25
  FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
33
26
  ]
34
27
  r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
@@ -3,22 +3,15 @@
3
3
  from __future__ import annotations
4
4
  from .configgroup import ConfigGroup, ConfigGroupTypedDict
5
5
  from .deployrequest import DeployRequest, DeployRequestTypedDict
6
+ from .productscore import ProductsCore
6
7
  from cribl_control_plane.types import BaseModel
7
8
  from cribl_control_plane.utils import FieldMetadata, PathParamMetadata, RequestMetadata
8
- from enum import Enum
9
9
  from typing import List, Optional
10
10
  from typing_extensions import Annotated, NotRequired, TypedDict
11
11
 
12
12
 
13
- class UpdateConfigGroupDeployByProductAndIDProduct(str, Enum):
14
- r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
15
-
16
- STREAM = "stream"
17
- EDGE = "edge"
18
-
19
-
20
13
  class UpdateConfigGroupDeployByProductAndIDRequestTypedDict(TypedDict):
21
- product: UpdateConfigGroupDeployByProductAndIDProduct
14
+ product: ProductsCore
22
15
  r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
23
16
  id: str
24
17
  r"""The <code>id</code> of the target Worker Group or Edge Fleet for commit deployment."""
@@ -28,7 +21,7 @@ class UpdateConfigGroupDeployByProductAndIDRequestTypedDict(TypedDict):
28
21
 
29
22
  class UpdateConfigGroupDeployByProductAndIDRequest(BaseModel):
30
23
  product: Annotated[
31
- UpdateConfigGroupDeployByProductAndIDProduct,
24
+ ProductsCore,
32
25
  FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
33
26
  ]
34
27
  r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
@@ -0,0 +1,9 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from enum import Enum
5
+
6
+
7
+ class WorkerTypes(str, Enum):
8
+ WORKER = "worker"
9
+ MANAGED_EDGE = "managed-edge"