cribl-control-plane 0.4.0a12__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 +14 -6
- cribl_control_plane/branches.py +24 -8
- cribl_control_plane/commits.py +98 -42
- cribl_control_plane/commits_files.py +28 -12
- cribl_control_plane/configs_versions.py +14 -10
- cribl_control_plane/destinations.py +70 -30
- cribl_control_plane/destinations_pq.py +28 -12
- cribl_control_plane/groups_sdk.py +84 -60
- cribl_control_plane/health.py +10 -2
- cribl_control_plane/hectokens.py +28 -32
- cribl_control_plane/lakedatasets.py +70 -86
- cribl_control_plane/models/__init__.py +266 -438
- cribl_control_plane/models/addhectokenrequest.py +1 -7
- 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 +2 -79
- 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/outputnetflow.py +0 -7
- 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/updatehectokenrequest.py +1 -7
- 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 +28 -20
- cribl_control_plane/packs.py +80 -32
- cribl_control_plane/pipelines.py +70 -30
- cribl_control_plane/routes_sdk.py +56 -28
- cribl_control_plane/samples.py +28 -16
- cribl_control_plane/sources.py +70 -30
- cribl_control_plane/statuses.py +14 -6
- cribl_control_plane/summaries.py +14 -6
- cribl_control_plane/teams.py +14 -6
- cribl_control_plane/tokens.py +26 -8
- cribl_control_plane/versions_configs.py +14 -6
- {cribl_control_plane-0.4.0a12.dist-info → cribl_control_plane-0.4.0b12.dist-info}/METADATA +23 -23
- {cribl_control_plane-0.4.0a12.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.0a12.dist-info → cribl_control_plane-0.4.0b12.dist-info}/WHEEL +0 -0
- {cribl_control_plane-0.4.0a12.dist-info → cribl_control_plane-0.4.0b12.dist-info}/licenses/LICENSE +0 -0
cribl_control_plane/packs.py
CHANGED
|
@@ -23,7 +23,7 @@ class Packs(BaseSDK):
|
|
|
23
23
|
server_url: Optional[str] = None,
|
|
24
24
|
timeout_ms: Optional[int] = None,
|
|
25
25
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
26
|
-
) -> models.
|
|
26
|
+
) -> models.CountedPackInstallInfo:
|
|
27
27
|
r"""Install a Pack
|
|
28
28
|
|
|
29
29
|
Install a Pack.<br><br>To install an uploaded Pack, provide the <code>source</code> value from the <code>PUT /packs</code> response as the <code>source</code> parameter in the request body.<br><br>To install a Pack by importing from a URL, provide the direct URL location of the <code>.crbl</code> file for the Pack as the <code>source</code> parameter in the request body.<br><br>To install a Pack by importing from a Git repository, provide <code>git+<repo-url></code> as the <code>source</code> parameter in the request body.<br><br>If you do not include the <code>source</code> parameter in the request body, an empty Pack is created.
|
|
@@ -71,10 +71,14 @@ class Packs(BaseSDK):
|
|
|
71
71
|
if retries == UNSET:
|
|
72
72
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
73
73
|
retries = self.sdk_configuration.retry_config
|
|
74
|
+
else:
|
|
75
|
+
retries = utils.RetryConfig(
|
|
76
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
77
|
+
)
|
|
74
78
|
|
|
75
79
|
retry_config = None
|
|
76
80
|
if isinstance(retries, utils.RetryConfig):
|
|
77
|
-
retry_config = (retries, ["429"
|
|
81
|
+
retry_config = (retries, ["429"])
|
|
78
82
|
|
|
79
83
|
http_res = self.do_request(
|
|
80
84
|
hook_ctx=HookContext(
|
|
@@ -93,7 +97,7 @@ class Packs(BaseSDK):
|
|
|
93
97
|
|
|
94
98
|
response_data: Any = None
|
|
95
99
|
if utils.match_response(http_res, "200", "application/json"):
|
|
96
|
-
return unmarshal_json_response(models.
|
|
100
|
+
return unmarshal_json_response(models.CountedPackInstallInfo, http_res)
|
|
97
101
|
if utils.match_response(http_res, "500", "application/json"):
|
|
98
102
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
99
103
|
raise errors.Error(response_data, http_res)
|
|
@@ -116,7 +120,7 @@ class Packs(BaseSDK):
|
|
|
116
120
|
server_url: Optional[str] = None,
|
|
117
121
|
timeout_ms: Optional[int] = None,
|
|
118
122
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
119
|
-
) -> models.
|
|
123
|
+
) -> models.CountedPackInstallInfo:
|
|
120
124
|
r"""Install a Pack
|
|
121
125
|
|
|
122
126
|
Install a Pack.<br><br>To install an uploaded Pack, provide the <code>source</code> value from the <code>PUT /packs</code> response as the <code>source</code> parameter in the request body.<br><br>To install a Pack by importing from a URL, provide the direct URL location of the <code>.crbl</code> file for the Pack as the <code>source</code> parameter in the request body.<br><br>To install a Pack by importing from a Git repository, provide <code>git+<repo-url></code> as the <code>source</code> parameter in the request body.<br><br>If you do not include the <code>source</code> parameter in the request body, an empty Pack is created.
|
|
@@ -164,10 +168,14 @@ class Packs(BaseSDK):
|
|
|
164
168
|
if retries == UNSET:
|
|
165
169
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
166
170
|
retries = self.sdk_configuration.retry_config
|
|
171
|
+
else:
|
|
172
|
+
retries = utils.RetryConfig(
|
|
173
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
174
|
+
)
|
|
167
175
|
|
|
168
176
|
retry_config = None
|
|
169
177
|
if isinstance(retries, utils.RetryConfig):
|
|
170
|
-
retry_config = (retries, ["429"
|
|
178
|
+
retry_config = (retries, ["429"])
|
|
171
179
|
|
|
172
180
|
http_res = await self.do_request_async(
|
|
173
181
|
hook_ctx=HookContext(
|
|
@@ -186,7 +194,7 @@ class Packs(BaseSDK):
|
|
|
186
194
|
|
|
187
195
|
response_data: Any = None
|
|
188
196
|
if utils.match_response(http_res, "200", "application/json"):
|
|
189
|
-
return unmarshal_json_response(models.
|
|
197
|
+
return unmarshal_json_response(models.CountedPackInstallInfo, http_res)
|
|
190
198
|
if utils.match_response(http_res, "500", "application/json"):
|
|
191
199
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
192
200
|
raise errors.Error(response_data, http_res)
|
|
@@ -207,7 +215,7 @@ class Packs(BaseSDK):
|
|
|
207
215
|
server_url: Optional[str] = None,
|
|
208
216
|
timeout_ms: Optional[int] = None,
|
|
209
217
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
210
|
-
) -> models.
|
|
218
|
+
) -> models.CountedPackInfo:
|
|
211
219
|
r"""List all Packs
|
|
212
220
|
|
|
213
221
|
Get a list of all Packs.
|
|
@@ -252,10 +260,14 @@ class Packs(BaseSDK):
|
|
|
252
260
|
if retries == UNSET:
|
|
253
261
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
254
262
|
retries = self.sdk_configuration.retry_config
|
|
263
|
+
else:
|
|
264
|
+
retries = utils.RetryConfig(
|
|
265
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
266
|
+
)
|
|
255
267
|
|
|
256
268
|
retry_config = None
|
|
257
269
|
if isinstance(retries, utils.RetryConfig):
|
|
258
|
-
retry_config = (retries, ["429"
|
|
270
|
+
retry_config = (retries, ["429"])
|
|
259
271
|
|
|
260
272
|
http_res = self.do_request(
|
|
261
273
|
hook_ctx=HookContext(
|
|
@@ -274,7 +286,7 @@ class Packs(BaseSDK):
|
|
|
274
286
|
|
|
275
287
|
response_data: Any = None
|
|
276
288
|
if utils.match_response(http_res, "200", "application/json"):
|
|
277
|
-
return unmarshal_json_response(models.
|
|
289
|
+
return unmarshal_json_response(models.CountedPackInfo, http_res)
|
|
278
290
|
if utils.match_response(http_res, "500", "application/json"):
|
|
279
291
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
280
292
|
raise errors.Error(response_data, http_res)
|
|
@@ -295,7 +307,7 @@ class Packs(BaseSDK):
|
|
|
295
307
|
server_url: Optional[str] = None,
|
|
296
308
|
timeout_ms: Optional[int] = None,
|
|
297
309
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
298
|
-
) -> models.
|
|
310
|
+
) -> models.CountedPackInfo:
|
|
299
311
|
r"""List all Packs
|
|
300
312
|
|
|
301
313
|
Get a list of all Packs.
|
|
@@ -340,10 +352,14 @@ class Packs(BaseSDK):
|
|
|
340
352
|
if retries == UNSET:
|
|
341
353
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
342
354
|
retries = self.sdk_configuration.retry_config
|
|
355
|
+
else:
|
|
356
|
+
retries = utils.RetryConfig(
|
|
357
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
358
|
+
)
|
|
343
359
|
|
|
344
360
|
retry_config = None
|
|
345
361
|
if isinstance(retries, utils.RetryConfig):
|
|
346
|
-
retry_config = (retries, ["429"
|
|
362
|
+
retry_config = (retries, ["429"])
|
|
347
363
|
|
|
348
364
|
http_res = await self.do_request_async(
|
|
349
365
|
hook_ctx=HookContext(
|
|
@@ -362,7 +378,7 @@ class Packs(BaseSDK):
|
|
|
362
378
|
|
|
363
379
|
response_data: Any = None
|
|
364
380
|
if utils.match_response(http_res, "200", "application/json"):
|
|
365
|
-
return unmarshal_json_response(models.
|
|
381
|
+
return unmarshal_json_response(models.CountedPackInfo, http_res)
|
|
366
382
|
if utils.match_response(http_res, "500", "application/json"):
|
|
367
383
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
368
384
|
raise errors.Error(response_data, http_res)
|
|
@@ -438,10 +454,14 @@ class Packs(BaseSDK):
|
|
|
438
454
|
if retries == UNSET:
|
|
439
455
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
440
456
|
retries = self.sdk_configuration.retry_config
|
|
457
|
+
else:
|
|
458
|
+
retries = utils.RetryConfig(
|
|
459
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
460
|
+
)
|
|
441
461
|
|
|
442
462
|
retry_config = None
|
|
443
463
|
if isinstance(retries, utils.RetryConfig):
|
|
444
|
-
retry_config = (retries, ["429"
|
|
464
|
+
retry_config = (retries, ["429"])
|
|
445
465
|
|
|
446
466
|
http_res = self.do_request(
|
|
447
467
|
hook_ctx=HookContext(
|
|
@@ -536,10 +556,14 @@ class Packs(BaseSDK):
|
|
|
536
556
|
if retries == UNSET:
|
|
537
557
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
538
558
|
retries = self.sdk_configuration.retry_config
|
|
559
|
+
else:
|
|
560
|
+
retries = utils.RetryConfig(
|
|
561
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
562
|
+
)
|
|
539
563
|
|
|
540
564
|
retry_config = None
|
|
541
565
|
if isinstance(retries, utils.RetryConfig):
|
|
542
|
-
retry_config = (retries, ["429"
|
|
566
|
+
retry_config = (retries, ["429"])
|
|
543
567
|
|
|
544
568
|
http_res = await self.do_request_async(
|
|
545
569
|
hook_ctx=HookContext(
|
|
@@ -579,7 +603,7 @@ class Packs(BaseSDK):
|
|
|
579
603
|
server_url: Optional[str] = None,
|
|
580
604
|
timeout_ms: Optional[int] = None,
|
|
581
605
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
582
|
-
) -> models.
|
|
606
|
+
) -> models.CountedPackInstallInfo:
|
|
583
607
|
r"""Uninstall a Pack
|
|
584
608
|
|
|
585
609
|
Uninstall the specified Pack.
|
|
@@ -624,10 +648,14 @@ class Packs(BaseSDK):
|
|
|
624
648
|
if retries == UNSET:
|
|
625
649
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
626
650
|
retries = self.sdk_configuration.retry_config
|
|
651
|
+
else:
|
|
652
|
+
retries = utils.RetryConfig(
|
|
653
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
654
|
+
)
|
|
627
655
|
|
|
628
656
|
retry_config = None
|
|
629
657
|
if isinstance(retries, utils.RetryConfig):
|
|
630
|
-
retry_config = (retries, ["429"
|
|
658
|
+
retry_config = (retries, ["429"])
|
|
631
659
|
|
|
632
660
|
http_res = self.do_request(
|
|
633
661
|
hook_ctx=HookContext(
|
|
@@ -646,7 +674,7 @@ class Packs(BaseSDK):
|
|
|
646
674
|
|
|
647
675
|
response_data: Any = None
|
|
648
676
|
if utils.match_response(http_res, "200", "application/json"):
|
|
649
|
-
return unmarshal_json_response(models.
|
|
677
|
+
return unmarshal_json_response(models.CountedPackInstallInfo, http_res)
|
|
650
678
|
if utils.match_response(http_res, "500", "application/json"):
|
|
651
679
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
652
680
|
raise errors.Error(response_data, http_res)
|
|
@@ -667,7 +695,7 @@ class Packs(BaseSDK):
|
|
|
667
695
|
server_url: Optional[str] = None,
|
|
668
696
|
timeout_ms: Optional[int] = None,
|
|
669
697
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
670
|
-
) -> models.
|
|
698
|
+
) -> models.CountedPackInstallInfo:
|
|
671
699
|
r"""Uninstall a Pack
|
|
672
700
|
|
|
673
701
|
Uninstall the specified Pack.
|
|
@@ -712,10 +740,14 @@ class Packs(BaseSDK):
|
|
|
712
740
|
if retries == UNSET:
|
|
713
741
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
714
742
|
retries = self.sdk_configuration.retry_config
|
|
743
|
+
else:
|
|
744
|
+
retries = utils.RetryConfig(
|
|
745
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
746
|
+
)
|
|
715
747
|
|
|
716
748
|
retry_config = None
|
|
717
749
|
if isinstance(retries, utils.RetryConfig):
|
|
718
|
-
retry_config = (retries, ["429"
|
|
750
|
+
retry_config = (retries, ["429"])
|
|
719
751
|
|
|
720
752
|
http_res = await self.do_request_async(
|
|
721
753
|
hook_ctx=HookContext(
|
|
@@ -734,7 +766,7 @@ class Packs(BaseSDK):
|
|
|
734
766
|
|
|
735
767
|
response_data: Any = None
|
|
736
768
|
if utils.match_response(http_res, "200", "application/json"):
|
|
737
|
-
return unmarshal_json_response(models.
|
|
769
|
+
return unmarshal_json_response(models.CountedPackInstallInfo, http_res)
|
|
738
770
|
if utils.match_response(http_res, "500", "application/json"):
|
|
739
771
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
740
772
|
raise errors.Error(response_data, http_res)
|
|
@@ -755,7 +787,7 @@ class Packs(BaseSDK):
|
|
|
755
787
|
server_url: Optional[str] = None,
|
|
756
788
|
timeout_ms: Optional[int] = None,
|
|
757
789
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
758
|
-
) -> models.
|
|
790
|
+
) -> models.CountedPackInfo:
|
|
759
791
|
r"""Get a Pack
|
|
760
792
|
|
|
761
793
|
Get the specified Pack.
|
|
@@ -800,10 +832,14 @@ class Packs(BaseSDK):
|
|
|
800
832
|
if retries == UNSET:
|
|
801
833
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
802
834
|
retries = self.sdk_configuration.retry_config
|
|
835
|
+
else:
|
|
836
|
+
retries = utils.RetryConfig(
|
|
837
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
838
|
+
)
|
|
803
839
|
|
|
804
840
|
retry_config = None
|
|
805
841
|
if isinstance(retries, utils.RetryConfig):
|
|
806
|
-
retry_config = (retries, ["429"
|
|
842
|
+
retry_config = (retries, ["429"])
|
|
807
843
|
|
|
808
844
|
http_res = self.do_request(
|
|
809
845
|
hook_ctx=HookContext(
|
|
@@ -822,7 +858,7 @@ class Packs(BaseSDK):
|
|
|
822
858
|
|
|
823
859
|
response_data: Any = None
|
|
824
860
|
if utils.match_response(http_res, "200", "application/json"):
|
|
825
|
-
return unmarshal_json_response(models.
|
|
861
|
+
return unmarshal_json_response(models.CountedPackInfo, http_res)
|
|
826
862
|
if utils.match_response(http_res, "500", "application/json"):
|
|
827
863
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
828
864
|
raise errors.Error(response_data, http_res)
|
|
@@ -843,7 +879,7 @@ class Packs(BaseSDK):
|
|
|
843
879
|
server_url: Optional[str] = None,
|
|
844
880
|
timeout_ms: Optional[int] = None,
|
|
845
881
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
846
|
-
) -> models.
|
|
882
|
+
) -> models.CountedPackInfo:
|
|
847
883
|
r"""Get a Pack
|
|
848
884
|
|
|
849
885
|
Get the specified Pack.
|
|
@@ -888,10 +924,14 @@ class Packs(BaseSDK):
|
|
|
888
924
|
if retries == UNSET:
|
|
889
925
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
890
926
|
retries = self.sdk_configuration.retry_config
|
|
927
|
+
else:
|
|
928
|
+
retries = utils.RetryConfig(
|
|
929
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
930
|
+
)
|
|
891
931
|
|
|
892
932
|
retry_config = None
|
|
893
933
|
if isinstance(retries, utils.RetryConfig):
|
|
894
|
-
retry_config = (retries, ["429"
|
|
934
|
+
retry_config = (retries, ["429"])
|
|
895
935
|
|
|
896
936
|
http_res = await self.do_request_async(
|
|
897
937
|
hook_ctx=HookContext(
|
|
@@ -910,7 +950,7 @@ class Packs(BaseSDK):
|
|
|
910
950
|
|
|
911
951
|
response_data: Any = None
|
|
912
952
|
if utils.match_response(http_res, "200", "application/json"):
|
|
913
|
-
return unmarshal_json_response(models.
|
|
953
|
+
return unmarshal_json_response(models.CountedPackInfo, http_res)
|
|
914
954
|
if utils.match_response(http_res, "500", "application/json"):
|
|
915
955
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
916
956
|
raise errors.Error(response_data, http_res)
|
|
@@ -935,7 +975,7 @@ class Packs(BaseSDK):
|
|
|
935
975
|
server_url: Optional[str] = None,
|
|
936
976
|
timeout_ms: Optional[int] = None,
|
|
937
977
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
938
|
-
) -> models.
|
|
978
|
+
) -> models.CountedPackInfo:
|
|
939
979
|
r"""Upgrade a Pack
|
|
940
980
|
|
|
941
981
|
Upgrade the specified Pack.</br></br>If the Pack includes any user–modified versions of default Cribl Knowledge resources such as lookups, copy the modified files locally for safekeeping before upgrading the Pack.Copy the modified files back to the upgraded Pack after you install it with <code>POST /packs</code> to overwrite the default versions in the Pack.</br></br>After you upgrade the Pack, update any Routes, Pipelines, Sources, and Destinations that use the previous Pack version so that they reference the upgraded Pack.
|
|
@@ -997,10 +1037,14 @@ class Packs(BaseSDK):
|
|
|
997
1037
|
if retries == UNSET:
|
|
998
1038
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
999
1039
|
retries = self.sdk_configuration.retry_config
|
|
1040
|
+
else:
|
|
1041
|
+
retries = utils.RetryConfig(
|
|
1042
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
1043
|
+
)
|
|
1000
1044
|
|
|
1001
1045
|
retry_config = None
|
|
1002
1046
|
if isinstance(retries, utils.RetryConfig):
|
|
1003
|
-
retry_config = (retries, ["429"
|
|
1047
|
+
retry_config = (retries, ["429"])
|
|
1004
1048
|
|
|
1005
1049
|
http_res = self.do_request(
|
|
1006
1050
|
hook_ctx=HookContext(
|
|
@@ -1019,7 +1063,7 @@ class Packs(BaseSDK):
|
|
|
1019
1063
|
|
|
1020
1064
|
response_data: Any = None
|
|
1021
1065
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1022
|
-
return unmarshal_json_response(models.
|
|
1066
|
+
return unmarshal_json_response(models.CountedPackInfo, http_res)
|
|
1023
1067
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1024
1068
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1025
1069
|
raise errors.Error(response_data, http_res)
|
|
@@ -1044,7 +1088,7 @@ class Packs(BaseSDK):
|
|
|
1044
1088
|
server_url: Optional[str] = None,
|
|
1045
1089
|
timeout_ms: Optional[int] = None,
|
|
1046
1090
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1047
|
-
) -> models.
|
|
1091
|
+
) -> models.CountedPackInfo:
|
|
1048
1092
|
r"""Upgrade a Pack
|
|
1049
1093
|
|
|
1050
1094
|
Upgrade the specified Pack.</br></br>If the Pack includes any user–modified versions of default Cribl Knowledge resources such as lookups, copy the modified files locally for safekeeping before upgrading the Pack.Copy the modified files back to the upgraded Pack after you install it with <code>POST /packs</code> to overwrite the default versions in the Pack.</br></br>After you upgrade the Pack, update any Routes, Pipelines, Sources, and Destinations that use the previous Pack version so that they reference the upgraded Pack.
|
|
@@ -1106,10 +1150,14 @@ class Packs(BaseSDK):
|
|
|
1106
1150
|
if retries == UNSET:
|
|
1107
1151
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
1108
1152
|
retries = self.sdk_configuration.retry_config
|
|
1153
|
+
else:
|
|
1154
|
+
retries = utils.RetryConfig(
|
|
1155
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
1156
|
+
)
|
|
1109
1157
|
|
|
1110
1158
|
retry_config = None
|
|
1111
1159
|
if isinstance(retries, utils.RetryConfig):
|
|
1112
|
-
retry_config = (retries, ["429"
|
|
1160
|
+
retry_config = (retries, ["429"])
|
|
1113
1161
|
|
|
1114
1162
|
http_res = await self.do_request_async(
|
|
1115
1163
|
hook_ctx=HookContext(
|
|
@@ -1128,7 +1176,7 @@ class Packs(BaseSDK):
|
|
|
1128
1176
|
|
|
1129
1177
|
response_data: Any = None
|
|
1130
1178
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1131
|
-
return unmarshal_json_response(models.
|
|
1179
|
+
return unmarshal_json_response(models.CountedPackInfo, http_res)
|
|
1132
1180
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1133
1181
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1134
1182
|
raise errors.Error(response_data, http_res)
|