cribl-control-plane 0.4.0a6__py3-none-any.whl → 0.4.0b12__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.
- cribl_control_plane/_version.py +4 -4
- cribl_control_plane/acl.py +16 -6
- cribl_control_plane/basesdk.py +6 -0
- cribl_control_plane/branches.py +28 -8
- cribl_control_plane/commits.py +112 -42
- cribl_control_plane/commits_files.py +32 -12
- cribl_control_plane/configs_versions.py +16 -10
- cribl_control_plane/destinations.py +80 -30
- cribl_control_plane/destinations_pq.py +32 -12
- cribl_control_plane/groups_sdk.py +96 -60
- cribl_control_plane/health.py +12 -2
- cribl_control_plane/hectokens.py +32 -20
- cribl_control_plane/lakedatasets.py +80 -50
- cribl_control_plane/models/__init__.py +266 -438
- cribl_control_plane/models/configgroup.py +1 -0
- cribl_control_plane/models/{getversionbranchop.py → countedbranchinfo.py} +2 -6
- cribl_control_plane/models/countedconfiggroup.py +20 -0
- cribl_control_plane/models/countedcribllakedataset.py +20 -0
- cribl_control_plane/models/counteddistributedsummary.py +20 -0
- cribl_control_plane/models/countedgitcommitsummary.py +20 -0
- cribl_control_plane/models/countedgitcountresult.py +20 -0
- cribl_control_plane/models/{createinputop.py → countedgitdiffresult.py} +5 -9
- cribl_control_plane/models/countedgitfilesresponse.py +20 -0
- cribl_control_plane/models/{getversioninfoop.py → countedgitinfo.py} +2 -6
- cribl_control_plane/models/countedgitlogresult.py +20 -0
- cribl_control_plane/models/countedgitrevertresult.py +20 -0
- cribl_control_plane/models/countedgitshowresult.py +20 -0
- cribl_control_plane/models/countedgitstatusresult.py +20 -0
- cribl_control_plane/models/{listinputop.py → countedinput.py} +2 -6
- cribl_control_plane/models/countedinputsplunkhec.py +20 -0
- cribl_control_plane/models/countedjobinfo.py +20 -0
- cribl_control_plane/models/countedmasterworkerentry.py +20 -0
- cribl_control_plane/models/countednumber.py +19 -0
- cribl_control_plane/models/countedobject.py +19 -0
- cribl_control_plane/models/{listoutputop.py → countedoutput.py} +2 -6
- cribl_control_plane/models/{createoutputop.py → countedoutputsamplesresponse.py} +5 -9
- cribl_control_plane/models/countedoutputtestresponse.py +20 -0
- cribl_control_plane/models/countedpackinfo.py +20 -0
- cribl_control_plane/models/{createpacksop.py → countedpackinstallinfo.py} +2 -6
- cribl_control_plane/models/{listpipelineop.py → countedpipeline.py} +2 -6
- cribl_control_plane/models/{listroutesop.py → countedroutes.py} +2 -6
- cribl_control_plane/models/{createversionpushop.py → countedstring.py} +2 -6
- cribl_control_plane/models/countedteamaccesscontrollist.py +20 -0
- cribl_control_plane/models/counteduseraccesscontrollist.py +20 -0
- cribl_control_plane/models/createauthloginop.py +18 -0
- cribl_control_plane/models/createconfiggroupbyproductop.py +1 -20
- cribl_control_plane/models/createcribllakedatasetbylakeidop.py +1 -19
- cribl_control_plane/models/createinputhectokenbyidop.py +1 -20
- cribl_control_plane/models/createoutputtestbyidop.py +1 -20
- cribl_control_plane/models/createroutesappendbyidop.py +2 -20
- cribl_control_plane/models/createversioncommitop.py +1 -19
- cribl_control_plane/models/createversionrevertop.py +1 -19
- cribl_control_plane/models/createversionundoop.py +1 -18
- cribl_control_plane/models/criblevent.py +15 -0
- cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +1 -20
- cribl_control_plane/models/deletecribllakedatasetbylakeidandidop.py +1 -20
- cribl_control_plane/models/deleteinputbyidop.py +1 -20
- cribl_control_plane/models/deleteoutputbyidop.py +1 -20
- cribl_control_plane/models/deleteoutputpqbyidop.py +1 -19
- cribl_control_plane/models/deletepacksbyidop.py +1 -20
- cribl_control_plane/models/deletepipelinebyidop.py +1 -20
- cribl_control_plane/models/difffiles.py +5 -46
- cribl_control_plane/models/diffline.py +26 -0
- cribl_control_plane/models/difflinecontext.py +28 -0
- cribl_control_plane/models/difflinedelete.py +25 -0
- cribl_control_plane/models/difflineinsert.py +25 -0
- cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +1 -19
- cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +1 -19
- cribl_control_plane/models/getconfiggroupbyproductandidop.py +1 -19
- cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +1 -19
- cribl_control_plane/models/getcribllakedatasetbylakeidandidop.py +1 -20
- cribl_control_plane/models/getcribllakedatasetbylakeidop.py +1 -20
- cribl_control_plane/models/getinputbyidop.py +1 -20
- cribl_control_plane/models/getmasterworkerentryop.py +1 -18
- cribl_control_plane/models/getoutputbyidop.py +1 -20
- cribl_control_plane/models/getoutputpqbyidop.py +1 -20
- cribl_control_plane/models/getoutputsamplesbyidop.py +1 -20
- cribl_control_plane/models/getpacksbyidop.py +1 -20
- cribl_control_plane/models/getpacksop.py +1 -19
- cribl_control_plane/models/getpipelinebyidop.py +1 -20
- cribl_control_plane/models/getroutesbyidop.py +1 -20
- cribl_control_plane/models/getsummaryop.py +1 -19
- cribl_control_plane/models/getversioncountop.py +1 -19
- cribl_control_plane/models/getversiondiffop.py +1 -19
- cribl_control_plane/models/getversionfilesop.py +1 -19
- cribl_control_plane/models/getversionop.py +1 -19
- cribl_control_plane/models/getversionshowop.py +1 -19
- cribl_control_plane/models/getversionstatusop.py +1 -19
- cribl_control_plane/models/groupcreaterequest.py +1 -0
- cribl_control_plane/models/hbcriblinfo.py +3 -4
- cribl_control_plane/models/heartbeatmetadata.py +3 -11
- cribl_control_plane/models/inputcloudflarehec.py +9 -4
- cribl_control_plane/models/inputconfluentcloud.py +4 -2
- cribl_control_plane/models/inputcribllakehttp.py +15 -0
- cribl_control_plane/models/inputkafka.py +4 -2
- cribl_control_plane/models/inputmsk.py +4 -2
- cribl_control_plane/models/inputsnmp.py +33 -7
- cribl_control_plane/models/inputsplunkhec.py +8 -4
- cribl_control_plane/models/inputwef.py +23 -0
- cribl_control_plane/models/inputwiz.py +95 -0
- cribl_control_plane/models/inputzscalerhec.py +8 -4
- cribl_control_plane/models/listconfiggroupbyproductop.py +1 -19
- cribl_control_plane/models/listmasterworkerentryop.py +1 -19
- cribl_control_plane/models/masterworkerentry.py +3 -11
- cribl_control_plane/models/nodeprovidedinfo.py +2 -10
- cribl_control_plane/models/outputsplunklb.py +10 -0
- cribl_control_plane/models/runnablejobcollection.py +0 -56
- cribl_control_plane/models/runnablejobexecutor.py +0 -28
- cribl_control_plane/models/runnablejobscheduledsearch.py +0 -28
- cribl_control_plane/models/updateconfiggroupbyproductandidop.py +1 -19
- cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +1 -20
- cribl_control_plane/models/updatecribllakedatasetbylakeidandidop.py +1 -20
- cribl_control_plane/models/updateinputbyidop.py +1 -19
- cribl_control_plane/models/updateinputhectokenbyidandtokenop.py +1 -20
- cribl_control_plane/models/updateoutputbyidop.py +1 -19
- cribl_control_plane/models/updatepacksbyidop.py +1 -20
- cribl_control_plane/models/updatepipelinebyidop.py +1 -19
- cribl_control_plane/models/updateroutesbyidop.py +1 -19
- cribl_control_plane/nodes.py +32 -20
- cribl_control_plane/packs.py +92 -32
- cribl_control_plane/pipelines.py +80 -30
- cribl_control_plane/routes_sdk.py +64 -28
- cribl_control_plane/samples.py +32 -16
- cribl_control_plane/sources.py +80 -30
- cribl_control_plane/statuses.py +16 -6
- cribl_control_plane/summaries.py +16 -6
- cribl_control_plane/teams.py +16 -6
- cribl_control_plane/tokens.py +28 -8
- cribl_control_plane/utils/forms.py +21 -10
- cribl_control_plane/utils/queryparams.py +14 -2
- cribl_control_plane/versions_configs.py +16 -6
- {cribl_control_plane-0.4.0a6.dist-info → cribl_control_plane-0.4.0b12.dist-info}/METADATA +1 -1
- {cribl_control_plane-0.4.0a6.dist-info → cribl_control_plane-0.4.0b12.dist-info}/RECORD +135 -113
- cribl_control_plane/models/createpipelineop.py +0 -24
- cribl_control_plane/models/lookupversions.py +0 -13
- {cribl_control_plane-0.4.0a6.dist-info → cribl_control_plane-0.4.0b12.dist-info}/WHEEL +0 -0
- {cribl_control_plane-0.4.0a6.dist-info → cribl_control_plane-0.4.0b12.dist-info}/licenses/LICENSE +0 -0
cribl_control_plane/sources.py
CHANGED
|
@@ -33,7 +33,7 @@ class Sources(BaseSDK):
|
|
|
33
33
|
server_url: Optional[str] = None,
|
|
34
34
|
timeout_ms: Optional[int] = None,
|
|
35
35
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
36
|
-
) -> models.
|
|
36
|
+
) -> models.CountedInput:
|
|
37
37
|
r"""List all Sources
|
|
38
38
|
|
|
39
39
|
Get a list of all Sources.
|
|
@@ -65,16 +65,21 @@ class Sources(BaseSDK):
|
|
|
65
65
|
accept_header_value="application/json",
|
|
66
66
|
http_headers=http_headers,
|
|
67
67
|
security=self.sdk_configuration.security,
|
|
68
|
+
allow_empty_value=None,
|
|
68
69
|
timeout_ms=timeout_ms,
|
|
69
70
|
)
|
|
70
71
|
|
|
71
72
|
if retries == UNSET:
|
|
72
73
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
73
74
|
retries = self.sdk_configuration.retry_config
|
|
75
|
+
else:
|
|
76
|
+
retries = utils.RetryConfig(
|
|
77
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
78
|
+
)
|
|
74
79
|
|
|
75
80
|
retry_config = None
|
|
76
81
|
if isinstance(retries, utils.RetryConfig):
|
|
77
|
-
retry_config = (retries, ["429"
|
|
82
|
+
retry_config = (retries, ["429"])
|
|
78
83
|
|
|
79
84
|
http_res = self.do_request(
|
|
80
85
|
hook_ctx=HookContext(
|
|
@@ -93,7 +98,7 @@ class Sources(BaseSDK):
|
|
|
93
98
|
|
|
94
99
|
response_data: Any = None
|
|
95
100
|
if utils.match_response(http_res, "200", "application/json"):
|
|
96
|
-
return unmarshal_json_response(models.
|
|
101
|
+
return unmarshal_json_response(models.CountedInput, http_res)
|
|
97
102
|
if utils.match_response(http_res, "500", "application/json"):
|
|
98
103
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
99
104
|
raise errors.Error(response_data, http_res)
|
|
@@ -113,7 +118,7 @@ class Sources(BaseSDK):
|
|
|
113
118
|
server_url: Optional[str] = None,
|
|
114
119
|
timeout_ms: Optional[int] = None,
|
|
115
120
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
116
|
-
) -> models.
|
|
121
|
+
) -> models.CountedInput:
|
|
117
122
|
r"""List all Sources
|
|
118
123
|
|
|
119
124
|
Get a list of all Sources.
|
|
@@ -145,16 +150,21 @@ class Sources(BaseSDK):
|
|
|
145
150
|
accept_header_value="application/json",
|
|
146
151
|
http_headers=http_headers,
|
|
147
152
|
security=self.sdk_configuration.security,
|
|
153
|
+
allow_empty_value=None,
|
|
148
154
|
timeout_ms=timeout_ms,
|
|
149
155
|
)
|
|
150
156
|
|
|
151
157
|
if retries == UNSET:
|
|
152
158
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
153
159
|
retries = self.sdk_configuration.retry_config
|
|
160
|
+
else:
|
|
161
|
+
retries = utils.RetryConfig(
|
|
162
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
163
|
+
)
|
|
154
164
|
|
|
155
165
|
retry_config = None
|
|
156
166
|
if isinstance(retries, utils.RetryConfig):
|
|
157
|
-
retry_config = (retries, ["429"
|
|
167
|
+
retry_config = (retries, ["429"])
|
|
158
168
|
|
|
159
169
|
http_res = await self.do_request_async(
|
|
160
170
|
hook_ctx=HookContext(
|
|
@@ -173,7 +183,7 @@ class Sources(BaseSDK):
|
|
|
173
183
|
|
|
174
184
|
response_data: Any = None
|
|
175
185
|
if utils.match_response(http_res, "200", "application/json"):
|
|
176
|
-
return unmarshal_json_response(models.
|
|
186
|
+
return unmarshal_json_response(models.CountedInput, http_res)
|
|
177
187
|
if utils.match_response(http_res, "500", "application/json"):
|
|
178
188
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
179
189
|
raise errors.Error(response_data, http_res)
|
|
@@ -194,7 +204,7 @@ class Sources(BaseSDK):
|
|
|
194
204
|
server_url: Optional[str] = None,
|
|
195
205
|
timeout_ms: Optional[int] = None,
|
|
196
206
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
197
|
-
) -> models.
|
|
207
|
+
) -> models.CountedInput:
|
|
198
208
|
r"""Create a Source
|
|
199
209
|
|
|
200
210
|
Create a new Source.
|
|
@@ -235,16 +245,21 @@ class Sources(BaseSDK):
|
|
|
235
245
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
236
246
|
request, False, False, "json", models.Input
|
|
237
247
|
),
|
|
248
|
+
allow_empty_value=None,
|
|
238
249
|
timeout_ms=timeout_ms,
|
|
239
250
|
)
|
|
240
251
|
|
|
241
252
|
if retries == UNSET:
|
|
242
253
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
243
254
|
retries = self.sdk_configuration.retry_config
|
|
255
|
+
else:
|
|
256
|
+
retries = utils.RetryConfig(
|
|
257
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
258
|
+
)
|
|
244
259
|
|
|
245
260
|
retry_config = None
|
|
246
261
|
if isinstance(retries, utils.RetryConfig):
|
|
247
|
-
retry_config = (retries, ["429"
|
|
262
|
+
retry_config = (retries, ["429"])
|
|
248
263
|
|
|
249
264
|
http_res = self.do_request(
|
|
250
265
|
hook_ctx=HookContext(
|
|
@@ -263,7 +278,7 @@ class Sources(BaseSDK):
|
|
|
263
278
|
|
|
264
279
|
response_data: Any = None
|
|
265
280
|
if utils.match_response(http_res, "200", "application/json"):
|
|
266
|
-
return unmarshal_json_response(models.
|
|
281
|
+
return unmarshal_json_response(models.CountedInput, http_res)
|
|
267
282
|
if utils.match_response(http_res, "500", "application/json"):
|
|
268
283
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
269
284
|
raise errors.Error(response_data, http_res)
|
|
@@ -284,7 +299,7 @@ class Sources(BaseSDK):
|
|
|
284
299
|
server_url: Optional[str] = None,
|
|
285
300
|
timeout_ms: Optional[int] = None,
|
|
286
301
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
287
|
-
) -> models.
|
|
302
|
+
) -> models.CountedInput:
|
|
288
303
|
r"""Create a Source
|
|
289
304
|
|
|
290
305
|
Create a new Source.
|
|
@@ -325,16 +340,21 @@ class Sources(BaseSDK):
|
|
|
325
340
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
326
341
|
request, False, False, "json", models.Input
|
|
327
342
|
),
|
|
343
|
+
allow_empty_value=None,
|
|
328
344
|
timeout_ms=timeout_ms,
|
|
329
345
|
)
|
|
330
346
|
|
|
331
347
|
if retries == UNSET:
|
|
332
348
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
333
349
|
retries = self.sdk_configuration.retry_config
|
|
350
|
+
else:
|
|
351
|
+
retries = utils.RetryConfig(
|
|
352
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
353
|
+
)
|
|
334
354
|
|
|
335
355
|
retry_config = None
|
|
336
356
|
if isinstance(retries, utils.RetryConfig):
|
|
337
|
-
retry_config = (retries, ["429"
|
|
357
|
+
retry_config = (retries, ["429"])
|
|
338
358
|
|
|
339
359
|
http_res = await self.do_request_async(
|
|
340
360
|
hook_ctx=HookContext(
|
|
@@ -353,7 +373,7 @@ class Sources(BaseSDK):
|
|
|
353
373
|
|
|
354
374
|
response_data: Any = None
|
|
355
375
|
if utils.match_response(http_res, "200", "application/json"):
|
|
356
|
-
return unmarshal_json_response(models.
|
|
376
|
+
return unmarshal_json_response(models.CountedInput, http_res)
|
|
357
377
|
if utils.match_response(http_res, "500", "application/json"):
|
|
358
378
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
359
379
|
raise errors.Error(response_data, http_res)
|
|
@@ -374,7 +394,7 @@ class Sources(BaseSDK):
|
|
|
374
394
|
server_url: Optional[str] = None,
|
|
375
395
|
timeout_ms: Optional[int] = None,
|
|
376
396
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
377
|
-
) -> models.
|
|
397
|
+
) -> models.CountedInput:
|
|
378
398
|
r"""Get a Source
|
|
379
399
|
|
|
380
400
|
Get the specified Source.
|
|
@@ -412,16 +432,21 @@ class Sources(BaseSDK):
|
|
|
412
432
|
accept_header_value="application/json",
|
|
413
433
|
http_headers=http_headers,
|
|
414
434
|
security=self.sdk_configuration.security,
|
|
435
|
+
allow_empty_value=None,
|
|
415
436
|
timeout_ms=timeout_ms,
|
|
416
437
|
)
|
|
417
438
|
|
|
418
439
|
if retries == UNSET:
|
|
419
440
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
420
441
|
retries = self.sdk_configuration.retry_config
|
|
442
|
+
else:
|
|
443
|
+
retries = utils.RetryConfig(
|
|
444
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
445
|
+
)
|
|
421
446
|
|
|
422
447
|
retry_config = None
|
|
423
448
|
if isinstance(retries, utils.RetryConfig):
|
|
424
|
-
retry_config = (retries, ["429"
|
|
449
|
+
retry_config = (retries, ["429"])
|
|
425
450
|
|
|
426
451
|
http_res = self.do_request(
|
|
427
452
|
hook_ctx=HookContext(
|
|
@@ -440,7 +465,7 @@ class Sources(BaseSDK):
|
|
|
440
465
|
|
|
441
466
|
response_data: Any = None
|
|
442
467
|
if utils.match_response(http_res, "200", "application/json"):
|
|
443
|
-
return unmarshal_json_response(models.
|
|
468
|
+
return unmarshal_json_response(models.CountedInput, http_res)
|
|
444
469
|
if utils.match_response(http_res, "500", "application/json"):
|
|
445
470
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
446
471
|
raise errors.Error(response_data, http_res)
|
|
@@ -461,7 +486,7 @@ class Sources(BaseSDK):
|
|
|
461
486
|
server_url: Optional[str] = None,
|
|
462
487
|
timeout_ms: Optional[int] = None,
|
|
463
488
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
464
|
-
) -> models.
|
|
489
|
+
) -> models.CountedInput:
|
|
465
490
|
r"""Get a Source
|
|
466
491
|
|
|
467
492
|
Get the specified Source.
|
|
@@ -499,16 +524,21 @@ class Sources(BaseSDK):
|
|
|
499
524
|
accept_header_value="application/json",
|
|
500
525
|
http_headers=http_headers,
|
|
501
526
|
security=self.sdk_configuration.security,
|
|
527
|
+
allow_empty_value=None,
|
|
502
528
|
timeout_ms=timeout_ms,
|
|
503
529
|
)
|
|
504
530
|
|
|
505
531
|
if retries == UNSET:
|
|
506
532
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
507
533
|
retries = self.sdk_configuration.retry_config
|
|
534
|
+
else:
|
|
535
|
+
retries = utils.RetryConfig(
|
|
536
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
537
|
+
)
|
|
508
538
|
|
|
509
539
|
retry_config = None
|
|
510
540
|
if isinstance(retries, utils.RetryConfig):
|
|
511
|
-
retry_config = (retries, ["429"
|
|
541
|
+
retry_config = (retries, ["429"])
|
|
512
542
|
|
|
513
543
|
http_res = await self.do_request_async(
|
|
514
544
|
hook_ctx=HookContext(
|
|
@@ -527,7 +557,7 @@ class Sources(BaseSDK):
|
|
|
527
557
|
|
|
528
558
|
response_data: Any = None
|
|
529
559
|
if utils.match_response(http_res, "200", "application/json"):
|
|
530
|
-
return unmarshal_json_response(models.
|
|
560
|
+
return unmarshal_json_response(models.CountedInput, http_res)
|
|
531
561
|
if utils.match_response(http_res, "500", "application/json"):
|
|
532
562
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
533
563
|
raise errors.Error(response_data, http_res)
|
|
@@ -549,7 +579,7 @@ class Sources(BaseSDK):
|
|
|
549
579
|
server_url: Optional[str] = None,
|
|
550
580
|
timeout_ms: Optional[int] = None,
|
|
551
581
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
552
|
-
) -> models.
|
|
582
|
+
) -> models.CountedInput:
|
|
553
583
|
r"""Update a Source
|
|
554
584
|
|
|
555
585
|
Update the specified Source.</br></br>Provide a complete representation of the Source that you want to update in the request body. This endpoint does not support partial updates. Cribl removes any omitted fields when updating the Source.</br></br>Confirm that the configuration in your request body is correct before sending the request. If the configuration is incorrect, the updated Source might not function as expected.
|
|
@@ -592,16 +622,21 @@ class Sources(BaseSDK):
|
|
|
592
622
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
593
623
|
request.input, False, False, "json", models.Input
|
|
594
624
|
),
|
|
625
|
+
allow_empty_value=None,
|
|
595
626
|
timeout_ms=timeout_ms,
|
|
596
627
|
)
|
|
597
628
|
|
|
598
629
|
if retries == UNSET:
|
|
599
630
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
600
631
|
retries = self.sdk_configuration.retry_config
|
|
632
|
+
else:
|
|
633
|
+
retries = utils.RetryConfig(
|
|
634
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
635
|
+
)
|
|
601
636
|
|
|
602
637
|
retry_config = None
|
|
603
638
|
if isinstance(retries, utils.RetryConfig):
|
|
604
|
-
retry_config = (retries, ["429"
|
|
639
|
+
retry_config = (retries, ["429"])
|
|
605
640
|
|
|
606
641
|
http_res = self.do_request(
|
|
607
642
|
hook_ctx=HookContext(
|
|
@@ -620,7 +655,7 @@ class Sources(BaseSDK):
|
|
|
620
655
|
|
|
621
656
|
response_data: Any = None
|
|
622
657
|
if utils.match_response(http_res, "200", "application/json"):
|
|
623
|
-
return unmarshal_json_response(models.
|
|
658
|
+
return unmarshal_json_response(models.CountedInput, http_res)
|
|
624
659
|
if utils.match_response(http_res, "500", "application/json"):
|
|
625
660
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
626
661
|
raise errors.Error(response_data, http_res)
|
|
@@ -642,7 +677,7 @@ class Sources(BaseSDK):
|
|
|
642
677
|
server_url: Optional[str] = None,
|
|
643
678
|
timeout_ms: Optional[int] = None,
|
|
644
679
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
645
|
-
) -> models.
|
|
680
|
+
) -> models.CountedInput:
|
|
646
681
|
r"""Update a Source
|
|
647
682
|
|
|
648
683
|
Update the specified Source.</br></br>Provide a complete representation of the Source that you want to update in the request body. This endpoint does not support partial updates. Cribl removes any omitted fields when updating the Source.</br></br>Confirm that the configuration in your request body is correct before sending the request. If the configuration is incorrect, the updated Source might not function as expected.
|
|
@@ -685,16 +720,21 @@ class Sources(BaseSDK):
|
|
|
685
720
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
686
721
|
request.input, False, False, "json", models.Input
|
|
687
722
|
),
|
|
723
|
+
allow_empty_value=None,
|
|
688
724
|
timeout_ms=timeout_ms,
|
|
689
725
|
)
|
|
690
726
|
|
|
691
727
|
if retries == UNSET:
|
|
692
728
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
693
729
|
retries = self.sdk_configuration.retry_config
|
|
730
|
+
else:
|
|
731
|
+
retries = utils.RetryConfig(
|
|
732
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
733
|
+
)
|
|
694
734
|
|
|
695
735
|
retry_config = None
|
|
696
736
|
if isinstance(retries, utils.RetryConfig):
|
|
697
|
-
retry_config = (retries, ["429"
|
|
737
|
+
retry_config = (retries, ["429"])
|
|
698
738
|
|
|
699
739
|
http_res = await self.do_request_async(
|
|
700
740
|
hook_ctx=HookContext(
|
|
@@ -713,7 +753,7 @@ class Sources(BaseSDK):
|
|
|
713
753
|
|
|
714
754
|
response_data: Any = None
|
|
715
755
|
if utils.match_response(http_res, "200", "application/json"):
|
|
716
|
-
return unmarshal_json_response(models.
|
|
756
|
+
return unmarshal_json_response(models.CountedInput, http_res)
|
|
717
757
|
if utils.match_response(http_res, "500", "application/json"):
|
|
718
758
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
719
759
|
raise errors.Error(response_data, http_res)
|
|
@@ -734,7 +774,7 @@ class Sources(BaseSDK):
|
|
|
734
774
|
server_url: Optional[str] = None,
|
|
735
775
|
timeout_ms: Optional[int] = None,
|
|
736
776
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
737
|
-
) -> models.
|
|
777
|
+
) -> models.CountedInput:
|
|
738
778
|
r"""Delete a Source
|
|
739
779
|
|
|
740
780
|
Delete the specified Source.
|
|
@@ -772,16 +812,21 @@ class Sources(BaseSDK):
|
|
|
772
812
|
accept_header_value="application/json",
|
|
773
813
|
http_headers=http_headers,
|
|
774
814
|
security=self.sdk_configuration.security,
|
|
815
|
+
allow_empty_value=None,
|
|
775
816
|
timeout_ms=timeout_ms,
|
|
776
817
|
)
|
|
777
818
|
|
|
778
819
|
if retries == UNSET:
|
|
779
820
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
780
821
|
retries = self.sdk_configuration.retry_config
|
|
822
|
+
else:
|
|
823
|
+
retries = utils.RetryConfig(
|
|
824
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
825
|
+
)
|
|
781
826
|
|
|
782
827
|
retry_config = None
|
|
783
828
|
if isinstance(retries, utils.RetryConfig):
|
|
784
|
-
retry_config = (retries, ["429"
|
|
829
|
+
retry_config = (retries, ["429"])
|
|
785
830
|
|
|
786
831
|
http_res = self.do_request(
|
|
787
832
|
hook_ctx=HookContext(
|
|
@@ -800,7 +845,7 @@ class Sources(BaseSDK):
|
|
|
800
845
|
|
|
801
846
|
response_data: Any = None
|
|
802
847
|
if utils.match_response(http_res, "200", "application/json"):
|
|
803
|
-
return unmarshal_json_response(models.
|
|
848
|
+
return unmarshal_json_response(models.CountedInput, http_res)
|
|
804
849
|
if utils.match_response(http_res, "500", "application/json"):
|
|
805
850
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
806
851
|
raise errors.Error(response_data, http_res)
|
|
@@ -821,7 +866,7 @@ class Sources(BaseSDK):
|
|
|
821
866
|
server_url: Optional[str] = None,
|
|
822
867
|
timeout_ms: Optional[int] = None,
|
|
823
868
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
824
|
-
) -> models.
|
|
869
|
+
) -> models.CountedInput:
|
|
825
870
|
r"""Delete a Source
|
|
826
871
|
|
|
827
872
|
Delete the specified Source.
|
|
@@ -859,16 +904,21 @@ class Sources(BaseSDK):
|
|
|
859
904
|
accept_header_value="application/json",
|
|
860
905
|
http_headers=http_headers,
|
|
861
906
|
security=self.sdk_configuration.security,
|
|
907
|
+
allow_empty_value=None,
|
|
862
908
|
timeout_ms=timeout_ms,
|
|
863
909
|
)
|
|
864
910
|
|
|
865
911
|
if retries == UNSET:
|
|
866
912
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
867
913
|
retries = self.sdk_configuration.retry_config
|
|
914
|
+
else:
|
|
915
|
+
retries = utils.RetryConfig(
|
|
916
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
917
|
+
)
|
|
868
918
|
|
|
869
919
|
retry_config = None
|
|
870
920
|
if isinstance(retries, utils.RetryConfig):
|
|
871
|
-
retry_config = (retries, ["429"
|
|
921
|
+
retry_config = (retries, ["429"])
|
|
872
922
|
|
|
873
923
|
http_res = await self.do_request_async(
|
|
874
924
|
hook_ctx=HookContext(
|
|
@@ -887,7 +937,7 @@ class Sources(BaseSDK):
|
|
|
887
937
|
|
|
888
938
|
response_data: Any = None
|
|
889
939
|
if utils.match_response(http_res, "200", "application/json"):
|
|
890
|
-
return unmarshal_json_response(models.
|
|
940
|
+
return unmarshal_json_response(models.CountedInput, http_res)
|
|
891
941
|
if utils.match_response(http_res, "500", "application/json"):
|
|
892
942
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
893
943
|
raise errors.Error(response_data, http_res)
|
cribl_control_plane/statuses.py
CHANGED
|
@@ -18,7 +18,7 @@ class Statuses(BaseSDK):
|
|
|
18
18
|
server_url: Optional[str] = None,
|
|
19
19
|
timeout_ms: Optional[int] = None,
|
|
20
20
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
21
|
-
) -> models.
|
|
21
|
+
) -> models.CountedGitStatusResult:
|
|
22
22
|
r"""Get the status of the current working tree
|
|
23
23
|
|
|
24
24
|
Get the status of the current working tree of the Git repository used for Cribl configuration. The response includes details about modified, staged, untracked, and conflicted files, as well as branch and remote tracking information.
|
|
@@ -56,16 +56,21 @@ class Statuses(BaseSDK):
|
|
|
56
56
|
accept_header_value="application/json",
|
|
57
57
|
http_headers=http_headers,
|
|
58
58
|
security=self.sdk_configuration.security,
|
|
59
|
+
allow_empty_value=None,
|
|
59
60
|
timeout_ms=timeout_ms,
|
|
60
61
|
)
|
|
61
62
|
|
|
62
63
|
if retries == UNSET:
|
|
63
64
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
64
65
|
retries = self.sdk_configuration.retry_config
|
|
66
|
+
else:
|
|
67
|
+
retries = utils.RetryConfig(
|
|
68
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
69
|
+
)
|
|
65
70
|
|
|
66
71
|
retry_config = None
|
|
67
72
|
if isinstance(retries, utils.RetryConfig):
|
|
68
|
-
retry_config = (retries, ["429"
|
|
73
|
+
retry_config = (retries, ["429"])
|
|
69
74
|
|
|
70
75
|
http_res = self.do_request(
|
|
71
76
|
hook_ctx=HookContext(
|
|
@@ -84,7 +89,7 @@ class Statuses(BaseSDK):
|
|
|
84
89
|
|
|
85
90
|
response_data: Any = None
|
|
86
91
|
if utils.match_response(http_res, "200", "application/json"):
|
|
87
|
-
return unmarshal_json_response(models.
|
|
92
|
+
return unmarshal_json_response(models.CountedGitStatusResult, http_res)
|
|
88
93
|
if utils.match_response(http_res, "500", "application/json"):
|
|
89
94
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
90
95
|
raise errors.Error(response_data, http_res)
|
|
@@ -105,7 +110,7 @@ class Statuses(BaseSDK):
|
|
|
105
110
|
server_url: Optional[str] = None,
|
|
106
111
|
timeout_ms: Optional[int] = None,
|
|
107
112
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
108
|
-
) -> models.
|
|
113
|
+
) -> models.CountedGitStatusResult:
|
|
109
114
|
r"""Get the status of the current working tree
|
|
110
115
|
|
|
111
116
|
Get the status of the current working tree of the Git repository used for Cribl configuration. The response includes details about modified, staged, untracked, and conflicted files, as well as branch and remote tracking information.
|
|
@@ -143,16 +148,21 @@ class Statuses(BaseSDK):
|
|
|
143
148
|
accept_header_value="application/json",
|
|
144
149
|
http_headers=http_headers,
|
|
145
150
|
security=self.sdk_configuration.security,
|
|
151
|
+
allow_empty_value=None,
|
|
146
152
|
timeout_ms=timeout_ms,
|
|
147
153
|
)
|
|
148
154
|
|
|
149
155
|
if retries == UNSET:
|
|
150
156
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
151
157
|
retries = self.sdk_configuration.retry_config
|
|
158
|
+
else:
|
|
159
|
+
retries = utils.RetryConfig(
|
|
160
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
161
|
+
)
|
|
152
162
|
|
|
153
163
|
retry_config = None
|
|
154
164
|
if isinstance(retries, utils.RetryConfig):
|
|
155
|
-
retry_config = (retries, ["429"
|
|
165
|
+
retry_config = (retries, ["429"])
|
|
156
166
|
|
|
157
167
|
http_res = await self.do_request_async(
|
|
158
168
|
hook_ctx=HookContext(
|
|
@@ -171,7 +181,7 @@ class Statuses(BaseSDK):
|
|
|
171
181
|
|
|
172
182
|
response_data: Any = None
|
|
173
183
|
if utils.match_response(http_res, "200", "application/json"):
|
|
174
|
-
return unmarshal_json_response(models.
|
|
184
|
+
return unmarshal_json_response(models.CountedGitStatusResult, http_res)
|
|
175
185
|
if utils.match_response(http_res, "500", "application/json"):
|
|
176
186
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
177
187
|
raise errors.Error(response_data, http_res)
|
cribl_control_plane/summaries.py
CHANGED
|
@@ -18,7 +18,7 @@ class Summaries(BaseSDK):
|
|
|
18
18
|
server_url: Optional[str] = None,
|
|
19
19
|
timeout_ms: Optional[int] = None,
|
|
20
20
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
21
|
-
) -> models.
|
|
21
|
+
) -> models.CountedDistributedSummary:
|
|
22
22
|
r"""Get a summary of the Distributed deployment
|
|
23
23
|
|
|
24
24
|
Get a summary of the Distributed deployment. The response includes counts of Worker Groups, Edge Fleets, Pipelines, Routes, Sources, Destinations, and Worker and Edge Nodes, as well as statistics for the Worker and Edge Nodes.
|
|
@@ -56,16 +56,21 @@ class Summaries(BaseSDK):
|
|
|
56
56
|
accept_header_value="application/json",
|
|
57
57
|
http_headers=http_headers,
|
|
58
58
|
security=self.sdk_configuration.security,
|
|
59
|
+
allow_empty_value=None,
|
|
59
60
|
timeout_ms=timeout_ms,
|
|
60
61
|
)
|
|
61
62
|
|
|
62
63
|
if retries == UNSET:
|
|
63
64
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
64
65
|
retries = self.sdk_configuration.retry_config
|
|
66
|
+
else:
|
|
67
|
+
retries = utils.RetryConfig(
|
|
68
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
69
|
+
)
|
|
65
70
|
|
|
66
71
|
retry_config = None
|
|
67
72
|
if isinstance(retries, utils.RetryConfig):
|
|
68
|
-
retry_config = (retries, ["429"
|
|
73
|
+
retry_config = (retries, ["429"])
|
|
69
74
|
|
|
70
75
|
http_res = self.do_request(
|
|
71
76
|
hook_ctx=HookContext(
|
|
@@ -84,7 +89,7 @@ class Summaries(BaseSDK):
|
|
|
84
89
|
|
|
85
90
|
response_data: Any = None
|
|
86
91
|
if utils.match_response(http_res, "200", "application/json"):
|
|
87
|
-
return unmarshal_json_response(models.
|
|
92
|
+
return unmarshal_json_response(models.CountedDistributedSummary, http_res)
|
|
88
93
|
if utils.match_response(http_res, "500", "application/json"):
|
|
89
94
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
90
95
|
raise errors.Error(response_data, http_res)
|
|
@@ -105,7 +110,7 @@ class Summaries(BaseSDK):
|
|
|
105
110
|
server_url: Optional[str] = None,
|
|
106
111
|
timeout_ms: Optional[int] = None,
|
|
107
112
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
108
|
-
) -> models.
|
|
113
|
+
) -> models.CountedDistributedSummary:
|
|
109
114
|
r"""Get a summary of the Distributed deployment
|
|
110
115
|
|
|
111
116
|
Get a summary of the Distributed deployment. The response includes counts of Worker Groups, Edge Fleets, Pipelines, Routes, Sources, Destinations, and Worker and Edge Nodes, as well as statistics for the Worker and Edge Nodes.
|
|
@@ -143,16 +148,21 @@ class Summaries(BaseSDK):
|
|
|
143
148
|
accept_header_value="application/json",
|
|
144
149
|
http_headers=http_headers,
|
|
145
150
|
security=self.sdk_configuration.security,
|
|
151
|
+
allow_empty_value=None,
|
|
146
152
|
timeout_ms=timeout_ms,
|
|
147
153
|
)
|
|
148
154
|
|
|
149
155
|
if retries == UNSET:
|
|
150
156
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
151
157
|
retries = self.sdk_configuration.retry_config
|
|
158
|
+
else:
|
|
159
|
+
retries = utils.RetryConfig(
|
|
160
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
161
|
+
)
|
|
152
162
|
|
|
153
163
|
retry_config = None
|
|
154
164
|
if isinstance(retries, utils.RetryConfig):
|
|
155
|
-
retry_config = (retries, ["429"
|
|
165
|
+
retry_config = (retries, ["429"])
|
|
156
166
|
|
|
157
167
|
http_res = await self.do_request_async(
|
|
158
168
|
hook_ctx=HookContext(
|
|
@@ -171,7 +181,7 @@ class Summaries(BaseSDK):
|
|
|
171
181
|
|
|
172
182
|
response_data: Any = None
|
|
173
183
|
if utils.match_response(http_res, "200", "application/json"):
|
|
174
|
-
return unmarshal_json_response(models.
|
|
184
|
+
return unmarshal_json_response(models.CountedDistributedSummary, http_res)
|
|
175
185
|
if utils.match_response(http_res, "500", "application/json"):
|
|
176
186
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
177
187
|
raise errors.Error(response_data, http_res)
|
cribl_control_plane/teams.py
CHANGED
|
@@ -20,7 +20,7 @@ class Teams(BaseSDK):
|
|
|
20
20
|
server_url: Optional[str] = None,
|
|
21
21
|
timeout_ms: Optional[int] = None,
|
|
22
22
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
23
|
-
) -> models.
|
|
23
|
+
) -> models.CountedTeamAccessControlList:
|
|
24
24
|
r"""Get the Access Control List for teams with permissions on a Worker Group or Edge Fleet for the specified Cribl product
|
|
25
25
|
|
|
26
26
|
Get the Access Control List (ACL) for teams that have permissions on a Worker Group or Edge Fleet for the specified Cribl product.
|
|
@@ -62,16 +62,21 @@ class Teams(BaseSDK):
|
|
|
62
62
|
accept_header_value="application/json",
|
|
63
63
|
http_headers=http_headers,
|
|
64
64
|
security=self.sdk_configuration.security,
|
|
65
|
+
allow_empty_value=None,
|
|
65
66
|
timeout_ms=timeout_ms,
|
|
66
67
|
)
|
|
67
68
|
|
|
68
69
|
if retries == UNSET:
|
|
69
70
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
70
71
|
retries = self.sdk_configuration.retry_config
|
|
72
|
+
else:
|
|
73
|
+
retries = utils.RetryConfig(
|
|
74
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
75
|
+
)
|
|
71
76
|
|
|
72
77
|
retry_config = None
|
|
73
78
|
if isinstance(retries, utils.RetryConfig):
|
|
74
|
-
retry_config = (retries, ["429"
|
|
79
|
+
retry_config = (retries, ["429"])
|
|
75
80
|
|
|
76
81
|
http_res = self.do_request(
|
|
77
82
|
hook_ctx=HookContext(
|
|
@@ -91,7 +96,7 @@ class Teams(BaseSDK):
|
|
|
91
96
|
response_data: Any = None
|
|
92
97
|
if utils.match_response(http_res, "200", "application/json"):
|
|
93
98
|
return unmarshal_json_response(
|
|
94
|
-
models.
|
|
99
|
+
models.CountedTeamAccessControlList, http_res
|
|
95
100
|
)
|
|
96
101
|
if utils.match_response(http_res, "500", "application/json"):
|
|
97
102
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
@@ -115,7 +120,7 @@ class Teams(BaseSDK):
|
|
|
115
120
|
server_url: Optional[str] = None,
|
|
116
121
|
timeout_ms: Optional[int] = None,
|
|
117
122
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
118
|
-
) -> models.
|
|
123
|
+
) -> models.CountedTeamAccessControlList:
|
|
119
124
|
r"""Get the Access Control List for teams with permissions on a Worker Group or Edge Fleet for the specified Cribl product
|
|
120
125
|
|
|
121
126
|
Get the Access Control List (ACL) for teams that have permissions on a Worker Group or Edge Fleet for the specified Cribl product.
|
|
@@ -157,16 +162,21 @@ class Teams(BaseSDK):
|
|
|
157
162
|
accept_header_value="application/json",
|
|
158
163
|
http_headers=http_headers,
|
|
159
164
|
security=self.sdk_configuration.security,
|
|
165
|
+
allow_empty_value=None,
|
|
160
166
|
timeout_ms=timeout_ms,
|
|
161
167
|
)
|
|
162
168
|
|
|
163
169
|
if retries == UNSET:
|
|
164
170
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
165
171
|
retries = self.sdk_configuration.retry_config
|
|
172
|
+
else:
|
|
173
|
+
retries = utils.RetryConfig(
|
|
174
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
175
|
+
)
|
|
166
176
|
|
|
167
177
|
retry_config = None
|
|
168
178
|
if isinstance(retries, utils.RetryConfig):
|
|
169
|
-
retry_config = (retries, ["429"
|
|
179
|
+
retry_config = (retries, ["429"])
|
|
170
180
|
|
|
171
181
|
http_res = await self.do_request_async(
|
|
172
182
|
hook_ctx=HookContext(
|
|
@@ -186,7 +196,7 @@ class Teams(BaseSDK):
|
|
|
186
196
|
response_data: Any = None
|
|
187
197
|
if utils.match_response(http_res, "200", "application/json"):
|
|
188
198
|
return unmarshal_json_response(
|
|
189
|
-
models.
|
|
199
|
+
models.CountedTeamAccessControlList, http_res
|
|
190
200
|
)
|
|
191
201
|
if utils.match_response(http_res, "500", "application/json"):
|
|
192
202
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|