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
|
@@ -38,7 +38,7 @@ class GroupsSDK(BaseSDK):
|
|
|
38
38
|
server_url: Optional[str] = None,
|
|
39
39
|
timeout_ms: Optional[int] = None,
|
|
40
40
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
41
|
-
) -> models.
|
|
41
|
+
) -> models.CountedConfigGroup:
|
|
42
42
|
r"""List all Worker Groups or Edge Fleets for the specified Cribl product
|
|
43
43
|
|
|
44
44
|
Get a list of all Worker Groups or Edge Fleets for the specified Cribl product.
|
|
@@ -85,10 +85,14 @@ class GroupsSDK(BaseSDK):
|
|
|
85
85
|
if retries == UNSET:
|
|
86
86
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
87
87
|
retries = self.sdk_configuration.retry_config
|
|
88
|
+
else:
|
|
89
|
+
retries = utils.RetryConfig(
|
|
90
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
91
|
+
)
|
|
88
92
|
|
|
89
93
|
retry_config = None
|
|
90
94
|
if isinstance(retries, utils.RetryConfig):
|
|
91
|
-
retry_config = (retries, ["429"
|
|
95
|
+
retry_config = (retries, ["429"])
|
|
92
96
|
|
|
93
97
|
http_res = self.do_request(
|
|
94
98
|
hook_ctx=HookContext(
|
|
@@ -107,9 +111,7 @@ class GroupsSDK(BaseSDK):
|
|
|
107
111
|
|
|
108
112
|
response_data: Any = None
|
|
109
113
|
if utils.match_response(http_res, "200", "application/json"):
|
|
110
|
-
return unmarshal_json_response(
|
|
111
|
-
models.ListConfigGroupByProductResponse, http_res
|
|
112
|
-
)
|
|
114
|
+
return unmarshal_json_response(models.CountedConfigGroup, http_res)
|
|
113
115
|
if utils.match_response(http_res, "500", "application/json"):
|
|
114
116
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
115
117
|
raise errors.Error(response_data, http_res)
|
|
@@ -131,7 +133,7 @@ class GroupsSDK(BaseSDK):
|
|
|
131
133
|
server_url: Optional[str] = None,
|
|
132
134
|
timeout_ms: Optional[int] = None,
|
|
133
135
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
134
|
-
) -> models.
|
|
136
|
+
) -> models.CountedConfigGroup:
|
|
135
137
|
r"""List all Worker Groups or Edge Fleets for the specified Cribl product
|
|
136
138
|
|
|
137
139
|
Get a list of all Worker Groups or Edge Fleets for the specified Cribl product.
|
|
@@ -178,10 +180,14 @@ class GroupsSDK(BaseSDK):
|
|
|
178
180
|
if retries == UNSET:
|
|
179
181
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
180
182
|
retries = self.sdk_configuration.retry_config
|
|
183
|
+
else:
|
|
184
|
+
retries = utils.RetryConfig(
|
|
185
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
186
|
+
)
|
|
181
187
|
|
|
182
188
|
retry_config = None
|
|
183
189
|
if isinstance(retries, utils.RetryConfig):
|
|
184
|
-
retry_config = (retries, ["429"
|
|
190
|
+
retry_config = (retries, ["429"])
|
|
185
191
|
|
|
186
192
|
http_res = await self.do_request_async(
|
|
187
193
|
hook_ctx=HookContext(
|
|
@@ -200,9 +206,7 @@ class GroupsSDK(BaseSDK):
|
|
|
200
206
|
|
|
201
207
|
response_data: Any = None
|
|
202
208
|
if utils.match_response(http_res, "200", "application/json"):
|
|
203
|
-
return unmarshal_json_response(
|
|
204
|
-
models.ListConfigGroupByProductResponse, http_res
|
|
205
|
-
)
|
|
209
|
+
return unmarshal_json_response(models.CountedConfigGroup, http_res)
|
|
206
210
|
if utils.match_response(http_res, "500", "application/json"):
|
|
207
211
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
208
212
|
raise errors.Error(response_data, http_res)
|
|
@@ -256,7 +260,7 @@ class GroupsSDK(BaseSDK):
|
|
|
256
260
|
server_url: Optional[str] = None,
|
|
257
261
|
timeout_ms: Optional[int] = None,
|
|
258
262
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
259
|
-
) -> models.
|
|
263
|
+
) -> models.CountedConfigGroup:
|
|
260
264
|
r"""Create a Worker Group or Edge Fleet for the specified Cribl product
|
|
261
265
|
|
|
262
266
|
Create a new Worker Group or Edge Fleet for the specified Cribl product.
|
|
@@ -360,10 +364,14 @@ class GroupsSDK(BaseSDK):
|
|
|
360
364
|
if retries == UNSET:
|
|
361
365
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
362
366
|
retries = self.sdk_configuration.retry_config
|
|
367
|
+
else:
|
|
368
|
+
retries = utils.RetryConfig(
|
|
369
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
370
|
+
)
|
|
363
371
|
|
|
364
372
|
retry_config = None
|
|
365
373
|
if isinstance(retries, utils.RetryConfig):
|
|
366
|
-
retry_config = (retries, ["429"
|
|
374
|
+
retry_config = (retries, ["429"])
|
|
367
375
|
|
|
368
376
|
http_res = self.do_request(
|
|
369
377
|
hook_ctx=HookContext(
|
|
@@ -382,9 +390,7 @@ class GroupsSDK(BaseSDK):
|
|
|
382
390
|
|
|
383
391
|
response_data: Any = None
|
|
384
392
|
if utils.match_response(http_res, "200", "application/json"):
|
|
385
|
-
return unmarshal_json_response(
|
|
386
|
-
models.CreateConfigGroupByProductResponse, http_res
|
|
387
|
-
)
|
|
393
|
+
return unmarshal_json_response(models.CountedConfigGroup, http_res)
|
|
388
394
|
if utils.match_response(http_res, "500", "application/json"):
|
|
389
395
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
390
396
|
raise errors.Error(response_data, http_res)
|
|
@@ -438,7 +444,7 @@ class GroupsSDK(BaseSDK):
|
|
|
438
444
|
server_url: Optional[str] = None,
|
|
439
445
|
timeout_ms: Optional[int] = None,
|
|
440
446
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
441
|
-
) -> models.
|
|
447
|
+
) -> models.CountedConfigGroup:
|
|
442
448
|
r"""Create a Worker Group or Edge Fleet for the specified Cribl product
|
|
443
449
|
|
|
444
450
|
Create a new Worker Group or Edge Fleet for the specified Cribl product.
|
|
@@ -542,10 +548,14 @@ class GroupsSDK(BaseSDK):
|
|
|
542
548
|
if retries == UNSET:
|
|
543
549
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
544
550
|
retries = self.sdk_configuration.retry_config
|
|
551
|
+
else:
|
|
552
|
+
retries = utils.RetryConfig(
|
|
553
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
554
|
+
)
|
|
545
555
|
|
|
546
556
|
retry_config = None
|
|
547
557
|
if isinstance(retries, utils.RetryConfig):
|
|
548
|
-
retry_config = (retries, ["429"
|
|
558
|
+
retry_config = (retries, ["429"])
|
|
549
559
|
|
|
550
560
|
http_res = await self.do_request_async(
|
|
551
561
|
hook_ctx=HookContext(
|
|
@@ -564,9 +574,7 @@ class GroupsSDK(BaseSDK):
|
|
|
564
574
|
|
|
565
575
|
response_data: Any = None
|
|
566
576
|
if utils.match_response(http_res, "200", "application/json"):
|
|
567
|
-
return unmarshal_json_response(
|
|
568
|
-
models.CreateConfigGroupByProductResponse, http_res
|
|
569
|
-
)
|
|
577
|
+
return unmarshal_json_response(models.CountedConfigGroup, http_res)
|
|
570
578
|
if utils.match_response(http_res, "500", "application/json"):
|
|
571
579
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
572
580
|
raise errors.Error(response_data, http_res)
|
|
@@ -589,7 +597,7 @@ class GroupsSDK(BaseSDK):
|
|
|
589
597
|
server_url: Optional[str] = None,
|
|
590
598
|
timeout_ms: Optional[int] = None,
|
|
591
599
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
592
|
-
) -> models.
|
|
600
|
+
) -> models.CountedConfigGroup:
|
|
593
601
|
r"""Get a Worker Group or Edge Fleet
|
|
594
602
|
|
|
595
603
|
Get the specified Worker Group or Edge Fleet.
|
|
@@ -638,10 +646,14 @@ class GroupsSDK(BaseSDK):
|
|
|
638
646
|
if retries == UNSET:
|
|
639
647
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
640
648
|
retries = self.sdk_configuration.retry_config
|
|
649
|
+
else:
|
|
650
|
+
retries = utils.RetryConfig(
|
|
651
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
652
|
+
)
|
|
641
653
|
|
|
642
654
|
retry_config = None
|
|
643
655
|
if isinstance(retries, utils.RetryConfig):
|
|
644
|
-
retry_config = (retries, ["429"
|
|
656
|
+
retry_config = (retries, ["429"])
|
|
645
657
|
|
|
646
658
|
http_res = self.do_request(
|
|
647
659
|
hook_ctx=HookContext(
|
|
@@ -660,9 +672,7 @@ class GroupsSDK(BaseSDK):
|
|
|
660
672
|
|
|
661
673
|
response_data: Any = None
|
|
662
674
|
if utils.match_response(http_res, "200", "application/json"):
|
|
663
|
-
return unmarshal_json_response(
|
|
664
|
-
models.GetConfigGroupByProductAndIDResponse, http_res
|
|
665
|
-
)
|
|
675
|
+
return unmarshal_json_response(models.CountedConfigGroup, http_res)
|
|
666
676
|
if utils.match_response(http_res, "500", "application/json"):
|
|
667
677
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
668
678
|
raise errors.Error(response_data, http_res)
|
|
@@ -685,7 +695,7 @@ class GroupsSDK(BaseSDK):
|
|
|
685
695
|
server_url: Optional[str] = None,
|
|
686
696
|
timeout_ms: Optional[int] = None,
|
|
687
697
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
688
|
-
) -> models.
|
|
698
|
+
) -> models.CountedConfigGroup:
|
|
689
699
|
r"""Get a Worker Group or Edge Fleet
|
|
690
700
|
|
|
691
701
|
Get the specified Worker Group or Edge Fleet.
|
|
@@ -734,10 +744,14 @@ class GroupsSDK(BaseSDK):
|
|
|
734
744
|
if retries == UNSET:
|
|
735
745
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
736
746
|
retries = self.sdk_configuration.retry_config
|
|
747
|
+
else:
|
|
748
|
+
retries = utils.RetryConfig(
|
|
749
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
750
|
+
)
|
|
737
751
|
|
|
738
752
|
retry_config = None
|
|
739
753
|
if isinstance(retries, utils.RetryConfig):
|
|
740
|
-
retry_config = (retries, ["429"
|
|
754
|
+
retry_config = (retries, ["429"])
|
|
741
755
|
|
|
742
756
|
http_res = await self.do_request_async(
|
|
743
757
|
hook_ctx=HookContext(
|
|
@@ -756,9 +770,7 @@ class GroupsSDK(BaseSDK):
|
|
|
756
770
|
|
|
757
771
|
response_data: Any = None
|
|
758
772
|
if utils.match_response(http_res, "200", "application/json"):
|
|
759
|
-
return unmarshal_json_response(
|
|
760
|
-
models.GetConfigGroupByProductAndIDResponse, http_res
|
|
761
|
-
)
|
|
773
|
+
return unmarshal_json_response(models.CountedConfigGroup, http_res)
|
|
762
774
|
if utils.match_response(http_res, "500", "application/json"):
|
|
763
775
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
764
776
|
raise errors.Error(response_data, http_res)
|
|
@@ -811,7 +823,7 @@ class GroupsSDK(BaseSDK):
|
|
|
811
823
|
server_url: Optional[str] = None,
|
|
812
824
|
timeout_ms: Optional[int] = None,
|
|
813
825
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
814
|
-
) -> models.
|
|
826
|
+
) -> models.CountedConfigGroup:
|
|
815
827
|
r"""Update a Worker Group or Edge Fleet
|
|
816
828
|
|
|
817
829
|
Update the specified Worker Group or Edge Fleet.
|
|
@@ -911,10 +923,14 @@ class GroupsSDK(BaseSDK):
|
|
|
911
923
|
if retries == UNSET:
|
|
912
924
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
913
925
|
retries = self.sdk_configuration.retry_config
|
|
926
|
+
else:
|
|
927
|
+
retries = utils.RetryConfig(
|
|
928
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
929
|
+
)
|
|
914
930
|
|
|
915
931
|
retry_config = None
|
|
916
932
|
if isinstance(retries, utils.RetryConfig):
|
|
917
|
-
retry_config = (retries, ["429"
|
|
933
|
+
retry_config = (retries, ["429"])
|
|
918
934
|
|
|
919
935
|
http_res = self.do_request(
|
|
920
936
|
hook_ctx=HookContext(
|
|
@@ -933,9 +949,7 @@ class GroupsSDK(BaseSDK):
|
|
|
933
949
|
|
|
934
950
|
response_data: Any = None
|
|
935
951
|
if utils.match_response(http_res, "200", "application/json"):
|
|
936
|
-
return unmarshal_json_response(
|
|
937
|
-
models.UpdateConfigGroupByProductAndIDResponse, http_res
|
|
938
|
-
)
|
|
952
|
+
return unmarshal_json_response(models.CountedConfigGroup, http_res)
|
|
939
953
|
if utils.match_response(http_res, "500", "application/json"):
|
|
940
954
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
941
955
|
raise errors.Error(response_data, http_res)
|
|
@@ -988,7 +1002,7 @@ class GroupsSDK(BaseSDK):
|
|
|
988
1002
|
server_url: Optional[str] = None,
|
|
989
1003
|
timeout_ms: Optional[int] = None,
|
|
990
1004
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
991
|
-
) -> models.
|
|
1005
|
+
) -> models.CountedConfigGroup:
|
|
992
1006
|
r"""Update a Worker Group or Edge Fleet
|
|
993
1007
|
|
|
994
1008
|
Update the specified Worker Group or Edge Fleet.
|
|
@@ -1088,10 +1102,14 @@ class GroupsSDK(BaseSDK):
|
|
|
1088
1102
|
if retries == UNSET:
|
|
1089
1103
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
1090
1104
|
retries = self.sdk_configuration.retry_config
|
|
1105
|
+
else:
|
|
1106
|
+
retries = utils.RetryConfig(
|
|
1107
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
1108
|
+
)
|
|
1091
1109
|
|
|
1092
1110
|
retry_config = None
|
|
1093
1111
|
if isinstance(retries, utils.RetryConfig):
|
|
1094
|
-
retry_config = (retries, ["429"
|
|
1112
|
+
retry_config = (retries, ["429"])
|
|
1095
1113
|
|
|
1096
1114
|
http_res = await self.do_request_async(
|
|
1097
1115
|
hook_ctx=HookContext(
|
|
@@ -1110,9 +1128,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1110
1128
|
|
|
1111
1129
|
response_data: Any = None
|
|
1112
1130
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1113
|
-
return unmarshal_json_response(
|
|
1114
|
-
models.UpdateConfigGroupByProductAndIDResponse, http_res
|
|
1115
|
-
)
|
|
1131
|
+
return unmarshal_json_response(models.CountedConfigGroup, http_res)
|
|
1116
1132
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1117
1133
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1118
1134
|
raise errors.Error(response_data, http_res)
|
|
@@ -1134,7 +1150,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1134
1150
|
server_url: Optional[str] = None,
|
|
1135
1151
|
timeout_ms: Optional[int] = None,
|
|
1136
1152
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1137
|
-
) -> models.
|
|
1153
|
+
) -> models.CountedConfigGroup:
|
|
1138
1154
|
r"""Delete a Worker Group or Edge Fleet
|
|
1139
1155
|
|
|
1140
1156
|
Delete the specified Worker Group or Edge Fleet.
|
|
@@ -1181,10 +1197,14 @@ class GroupsSDK(BaseSDK):
|
|
|
1181
1197
|
if retries == UNSET:
|
|
1182
1198
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
1183
1199
|
retries = self.sdk_configuration.retry_config
|
|
1200
|
+
else:
|
|
1201
|
+
retries = utils.RetryConfig(
|
|
1202
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
1203
|
+
)
|
|
1184
1204
|
|
|
1185
1205
|
retry_config = None
|
|
1186
1206
|
if isinstance(retries, utils.RetryConfig):
|
|
1187
|
-
retry_config = (retries, ["429"
|
|
1207
|
+
retry_config = (retries, ["429"])
|
|
1188
1208
|
|
|
1189
1209
|
http_res = self.do_request(
|
|
1190
1210
|
hook_ctx=HookContext(
|
|
@@ -1203,9 +1223,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1203
1223
|
|
|
1204
1224
|
response_data: Any = None
|
|
1205
1225
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1206
|
-
return unmarshal_json_response(
|
|
1207
|
-
models.DeleteConfigGroupByProductAndIDResponse, http_res
|
|
1208
|
-
)
|
|
1226
|
+
return unmarshal_json_response(models.CountedConfigGroup, http_res)
|
|
1209
1227
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1210
1228
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1211
1229
|
raise errors.Error(response_data, http_res)
|
|
@@ -1227,7 +1245,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1227
1245
|
server_url: Optional[str] = None,
|
|
1228
1246
|
timeout_ms: Optional[int] = None,
|
|
1229
1247
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1230
|
-
) -> models.
|
|
1248
|
+
) -> models.CountedConfigGroup:
|
|
1231
1249
|
r"""Delete a Worker Group or Edge Fleet
|
|
1232
1250
|
|
|
1233
1251
|
Delete the specified Worker Group or Edge Fleet.
|
|
@@ -1274,10 +1292,14 @@ class GroupsSDK(BaseSDK):
|
|
|
1274
1292
|
if retries == UNSET:
|
|
1275
1293
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
1276
1294
|
retries = self.sdk_configuration.retry_config
|
|
1295
|
+
else:
|
|
1296
|
+
retries = utils.RetryConfig(
|
|
1297
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
1298
|
+
)
|
|
1277
1299
|
|
|
1278
1300
|
retry_config = None
|
|
1279
1301
|
if isinstance(retries, utils.RetryConfig):
|
|
1280
|
-
retry_config = (retries, ["429"
|
|
1302
|
+
retry_config = (retries, ["429"])
|
|
1281
1303
|
|
|
1282
1304
|
http_res = await self.do_request_async(
|
|
1283
1305
|
hook_ctx=HookContext(
|
|
@@ -1296,9 +1318,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1296
1318
|
|
|
1297
1319
|
response_data: Any = None
|
|
1298
1320
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1299
|
-
return unmarshal_json_response(
|
|
1300
|
-
models.DeleteConfigGroupByProductAndIDResponse, http_res
|
|
1301
|
-
)
|
|
1321
|
+
return unmarshal_json_response(models.CountedConfigGroup, http_res)
|
|
1302
1322
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1303
1323
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1304
1324
|
raise errors.Error(response_data, http_res)
|
|
@@ -1327,7 +1347,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1327
1347
|
server_url: Optional[str] = None,
|
|
1328
1348
|
timeout_ms: Optional[int] = None,
|
|
1329
1349
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1330
|
-
) -> models.
|
|
1350
|
+
) -> models.CountedConfigGroup:
|
|
1331
1351
|
r"""Deploy commits to a Worker Group or Edge Fleet
|
|
1332
1352
|
|
|
1333
1353
|
Deploy commits to the specified Worker Group or Edge Fleet.
|
|
@@ -1385,10 +1405,14 @@ class GroupsSDK(BaseSDK):
|
|
|
1385
1405
|
if retries == UNSET:
|
|
1386
1406
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
1387
1407
|
retries = self.sdk_configuration.retry_config
|
|
1408
|
+
else:
|
|
1409
|
+
retries = utils.RetryConfig(
|
|
1410
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
1411
|
+
)
|
|
1388
1412
|
|
|
1389
1413
|
retry_config = None
|
|
1390
1414
|
if isinstance(retries, utils.RetryConfig):
|
|
1391
|
-
retry_config = (retries, ["429"
|
|
1415
|
+
retry_config = (retries, ["429"])
|
|
1392
1416
|
|
|
1393
1417
|
http_res = self.do_request(
|
|
1394
1418
|
hook_ctx=HookContext(
|
|
@@ -1407,9 +1431,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1407
1431
|
|
|
1408
1432
|
response_data: Any = None
|
|
1409
1433
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1410
|
-
return unmarshal_json_response(
|
|
1411
|
-
models.UpdateConfigGroupDeployByProductAndIDResponse, http_res
|
|
1412
|
-
)
|
|
1434
|
+
return unmarshal_json_response(models.CountedConfigGroup, http_res)
|
|
1413
1435
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1414
1436
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1415
1437
|
raise errors.Error(response_data, http_res)
|
|
@@ -1438,7 +1460,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1438
1460
|
server_url: Optional[str] = None,
|
|
1439
1461
|
timeout_ms: Optional[int] = None,
|
|
1440
1462
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1441
|
-
) -> models.
|
|
1463
|
+
) -> models.CountedConfigGroup:
|
|
1442
1464
|
r"""Deploy commits to a Worker Group or Edge Fleet
|
|
1443
1465
|
|
|
1444
1466
|
Deploy commits to the specified Worker Group or Edge Fleet.
|
|
@@ -1496,10 +1518,14 @@ class GroupsSDK(BaseSDK):
|
|
|
1496
1518
|
if retries == UNSET:
|
|
1497
1519
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
1498
1520
|
retries = self.sdk_configuration.retry_config
|
|
1521
|
+
else:
|
|
1522
|
+
retries = utils.RetryConfig(
|
|
1523
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
1524
|
+
)
|
|
1499
1525
|
|
|
1500
1526
|
retry_config = None
|
|
1501
1527
|
if isinstance(retries, utils.RetryConfig):
|
|
1502
|
-
retry_config = (retries, ["429"
|
|
1528
|
+
retry_config = (retries, ["429"])
|
|
1503
1529
|
|
|
1504
1530
|
http_res = await self.do_request_async(
|
|
1505
1531
|
hook_ctx=HookContext(
|
|
@@ -1518,9 +1544,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1518
1544
|
|
|
1519
1545
|
response_data: Any = None
|
|
1520
1546
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1521
|
-
return unmarshal_json_response(
|
|
1522
|
-
models.UpdateConfigGroupDeployByProductAndIDResponse, http_res
|
|
1523
|
-
)
|
|
1547
|
+
return unmarshal_json_response(models.CountedConfigGroup, http_res)
|
|
1524
1548
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1525
1549
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1526
1550
|
raise errors.Error(response_data, http_res)
|
cribl_control_plane/health.py
CHANGED
|
@@ -56,10 +56,14 @@ class Health(BaseSDK):
|
|
|
56
56
|
if retries == UNSET:
|
|
57
57
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
58
58
|
retries = self.sdk_configuration.retry_config
|
|
59
|
+
else:
|
|
60
|
+
retries = utils.RetryConfig(
|
|
61
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
62
|
+
)
|
|
59
63
|
|
|
60
64
|
retry_config = None
|
|
61
65
|
if isinstance(retries, utils.RetryConfig):
|
|
62
|
-
retry_config = (retries, ["429"
|
|
66
|
+
retry_config = (retries, ["429"])
|
|
63
67
|
|
|
64
68
|
http_res = self.do_request(
|
|
65
69
|
hook_ctx=HookContext(
|
|
@@ -139,10 +143,14 @@ class Health(BaseSDK):
|
|
|
139
143
|
if retries == UNSET:
|
|
140
144
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
141
145
|
retries = self.sdk_configuration.retry_config
|
|
146
|
+
else:
|
|
147
|
+
retries = utils.RetryConfig(
|
|
148
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
149
|
+
)
|
|
142
150
|
|
|
143
151
|
retry_config = None
|
|
144
152
|
if isinstance(retries, utils.RetryConfig):
|
|
145
|
-
retry_config = (retries, ["429"
|
|
153
|
+
retry_config = (retries, ["429"])
|
|
146
154
|
|
|
147
155
|
http_res = await self.do_request_async(
|
|
148
156
|
hook_ctx=HookContext(
|
cribl_control_plane/hectokens.py
CHANGED
|
@@ -15,7 +15,6 @@ class HecTokens(BaseSDK):
|
|
|
15
15
|
*,
|
|
16
16
|
id: str,
|
|
17
17
|
token: str,
|
|
18
|
-
allowed_indexes_at_token: Optional[List[str]] = None,
|
|
19
18
|
description: Optional[str] = None,
|
|
20
19
|
enabled: Optional[bool] = None,
|
|
21
20
|
metadata: Optional[
|
|
@@ -28,14 +27,13 @@ class HecTokens(BaseSDK):
|
|
|
28
27
|
server_url: Optional[str] = None,
|
|
29
28
|
timeout_ms: Optional[int] = None,
|
|
30
29
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
31
|
-
) -> models.
|
|
30
|
+
) -> models.CountedInputSplunkHec:
|
|
32
31
|
r"""Add an HEC token and optional metadata to a Splunk HEC Source
|
|
33
32
|
|
|
34
33
|
Add an HEC token and optional metadata to the specified Splunk HEC Source.
|
|
35
34
|
|
|
36
35
|
:param id: The <code>id</code> of the Splunk HEC Source.
|
|
37
36
|
:param token:
|
|
38
|
-
:param allowed_indexes_at_token:
|
|
39
37
|
:param description:
|
|
40
38
|
:param enabled:
|
|
41
39
|
:param metadata:
|
|
@@ -57,7 +55,6 @@ class HecTokens(BaseSDK):
|
|
|
57
55
|
request = models.CreateInputHecTokenByIDRequest(
|
|
58
56
|
id=id,
|
|
59
57
|
add_hec_token_request=models.AddHecTokenRequest(
|
|
60
|
-
allowed_indexes_at_token=allowed_indexes_at_token,
|
|
61
58
|
description=description,
|
|
62
59
|
enabled=enabled,
|
|
63
60
|
metadata=utils.get_pydantic_model(
|
|
@@ -94,10 +91,14 @@ class HecTokens(BaseSDK):
|
|
|
94
91
|
if retries == UNSET:
|
|
95
92
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
96
93
|
retries = self.sdk_configuration.retry_config
|
|
94
|
+
else:
|
|
95
|
+
retries = utils.RetryConfig(
|
|
96
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
97
|
+
)
|
|
97
98
|
|
|
98
99
|
retry_config = None
|
|
99
100
|
if isinstance(retries, utils.RetryConfig):
|
|
100
|
-
retry_config = (retries, ["429"
|
|
101
|
+
retry_config = (retries, ["429"])
|
|
101
102
|
|
|
102
103
|
http_res = self.do_request(
|
|
103
104
|
hook_ctx=HookContext(
|
|
@@ -116,9 +117,7 @@ class HecTokens(BaseSDK):
|
|
|
116
117
|
|
|
117
118
|
response_data: Any = None
|
|
118
119
|
if utils.match_response(http_res, "200", "application/json"):
|
|
119
|
-
return unmarshal_json_response(
|
|
120
|
-
models.CreateInputHecTokenByIDResponse, http_res
|
|
121
|
-
)
|
|
120
|
+
return unmarshal_json_response(models.CountedInputSplunkHec, http_res)
|
|
122
121
|
if utils.match_response(http_res, "500", "application/json"):
|
|
123
122
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
124
123
|
raise errors.Error(response_data, http_res)
|
|
@@ -136,7 +135,6 @@ class HecTokens(BaseSDK):
|
|
|
136
135
|
*,
|
|
137
136
|
id: str,
|
|
138
137
|
token: str,
|
|
139
|
-
allowed_indexes_at_token: Optional[List[str]] = None,
|
|
140
138
|
description: Optional[str] = None,
|
|
141
139
|
enabled: Optional[bool] = None,
|
|
142
140
|
metadata: Optional[
|
|
@@ -149,14 +147,13 @@ class HecTokens(BaseSDK):
|
|
|
149
147
|
server_url: Optional[str] = None,
|
|
150
148
|
timeout_ms: Optional[int] = None,
|
|
151
149
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
152
|
-
) -> models.
|
|
150
|
+
) -> models.CountedInputSplunkHec:
|
|
153
151
|
r"""Add an HEC token and optional metadata to a Splunk HEC Source
|
|
154
152
|
|
|
155
153
|
Add an HEC token and optional metadata to the specified Splunk HEC Source.
|
|
156
154
|
|
|
157
155
|
:param id: The <code>id</code> of the Splunk HEC Source.
|
|
158
156
|
:param token:
|
|
159
|
-
:param allowed_indexes_at_token:
|
|
160
157
|
:param description:
|
|
161
158
|
:param enabled:
|
|
162
159
|
:param metadata:
|
|
@@ -178,7 +175,6 @@ class HecTokens(BaseSDK):
|
|
|
178
175
|
request = models.CreateInputHecTokenByIDRequest(
|
|
179
176
|
id=id,
|
|
180
177
|
add_hec_token_request=models.AddHecTokenRequest(
|
|
181
|
-
allowed_indexes_at_token=allowed_indexes_at_token,
|
|
182
178
|
description=description,
|
|
183
179
|
enabled=enabled,
|
|
184
180
|
metadata=utils.get_pydantic_model(
|
|
@@ -215,10 +211,14 @@ class HecTokens(BaseSDK):
|
|
|
215
211
|
if retries == UNSET:
|
|
216
212
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
217
213
|
retries = self.sdk_configuration.retry_config
|
|
214
|
+
else:
|
|
215
|
+
retries = utils.RetryConfig(
|
|
216
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
217
|
+
)
|
|
218
218
|
|
|
219
219
|
retry_config = None
|
|
220
220
|
if isinstance(retries, utils.RetryConfig):
|
|
221
|
-
retry_config = (retries, ["429"
|
|
221
|
+
retry_config = (retries, ["429"])
|
|
222
222
|
|
|
223
223
|
http_res = await self.do_request_async(
|
|
224
224
|
hook_ctx=HookContext(
|
|
@@ -237,9 +237,7 @@ class HecTokens(BaseSDK):
|
|
|
237
237
|
|
|
238
238
|
response_data: Any = None
|
|
239
239
|
if utils.match_response(http_res, "200", "application/json"):
|
|
240
|
-
return unmarshal_json_response(
|
|
241
|
-
models.CreateInputHecTokenByIDResponse, http_res
|
|
242
|
-
)
|
|
240
|
+
return unmarshal_json_response(models.CountedInputSplunkHec, http_res)
|
|
243
241
|
if utils.match_response(http_res, "500", "application/json"):
|
|
244
242
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
245
243
|
raise errors.Error(response_data, http_res)
|
|
@@ -257,7 +255,6 @@ class HecTokens(BaseSDK):
|
|
|
257
255
|
*,
|
|
258
256
|
id: str,
|
|
259
257
|
token: str,
|
|
260
|
-
allowed_indexes_at_token: Optional[List[str]] = None,
|
|
261
258
|
description: Optional[str] = None,
|
|
262
259
|
enabled: Optional[bool] = None,
|
|
263
260
|
metadata: Optional[
|
|
@@ -270,14 +267,13 @@ class HecTokens(BaseSDK):
|
|
|
270
267
|
server_url: Optional[str] = None,
|
|
271
268
|
timeout_ms: Optional[int] = None,
|
|
272
269
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
273
|
-
) -> models.
|
|
270
|
+
) -> models.CountedInputSplunkHec:
|
|
274
271
|
r"""Update metadata for an HEC token for a Splunk HEC Source
|
|
275
272
|
|
|
276
273
|
Update the metadata for the specified HEC token for the specified Splunk HEC Source.
|
|
277
274
|
|
|
278
275
|
:param id: The <code>id</code> of the Splunk HEC Source.
|
|
279
276
|
:param token: The <code>id</code> of the HEC token to update.
|
|
280
|
-
:param allowed_indexes_at_token:
|
|
281
277
|
:param description:
|
|
282
278
|
:param enabled:
|
|
283
279
|
:param metadata:
|
|
@@ -300,7 +296,6 @@ class HecTokens(BaseSDK):
|
|
|
300
296
|
id=id,
|
|
301
297
|
token=token,
|
|
302
298
|
update_hec_token_request=models.UpdateHecTokenRequest(
|
|
303
|
-
allowed_indexes_at_token=allowed_indexes_at_token,
|
|
304
299
|
description=description,
|
|
305
300
|
enabled=enabled,
|
|
306
301
|
metadata=utils.get_pydantic_model(
|
|
@@ -336,10 +331,14 @@ class HecTokens(BaseSDK):
|
|
|
336
331
|
if retries == UNSET:
|
|
337
332
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
338
333
|
retries = self.sdk_configuration.retry_config
|
|
334
|
+
else:
|
|
335
|
+
retries = utils.RetryConfig(
|
|
336
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
337
|
+
)
|
|
339
338
|
|
|
340
339
|
retry_config = None
|
|
341
340
|
if isinstance(retries, utils.RetryConfig):
|
|
342
|
-
retry_config = (retries, ["429"
|
|
341
|
+
retry_config = (retries, ["429"])
|
|
343
342
|
|
|
344
343
|
http_res = self.do_request(
|
|
345
344
|
hook_ctx=HookContext(
|
|
@@ -358,9 +357,7 @@ class HecTokens(BaseSDK):
|
|
|
358
357
|
|
|
359
358
|
response_data: Any = None
|
|
360
359
|
if utils.match_response(http_res, "200", "application/json"):
|
|
361
|
-
return unmarshal_json_response(
|
|
362
|
-
models.UpdateInputHecTokenByIDAndTokenResponse, http_res
|
|
363
|
-
)
|
|
360
|
+
return unmarshal_json_response(models.CountedInputSplunkHec, http_res)
|
|
364
361
|
if utils.match_response(http_res, "500", "application/json"):
|
|
365
362
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
366
363
|
raise errors.Error(response_data, http_res)
|
|
@@ -378,7 +375,6 @@ class HecTokens(BaseSDK):
|
|
|
378
375
|
*,
|
|
379
376
|
id: str,
|
|
380
377
|
token: str,
|
|
381
|
-
allowed_indexes_at_token: Optional[List[str]] = None,
|
|
382
378
|
description: Optional[str] = None,
|
|
383
379
|
enabled: Optional[bool] = None,
|
|
384
380
|
metadata: Optional[
|
|
@@ -391,14 +387,13 @@ class HecTokens(BaseSDK):
|
|
|
391
387
|
server_url: Optional[str] = None,
|
|
392
388
|
timeout_ms: Optional[int] = None,
|
|
393
389
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
394
|
-
) -> models.
|
|
390
|
+
) -> models.CountedInputSplunkHec:
|
|
395
391
|
r"""Update metadata for an HEC token for a Splunk HEC Source
|
|
396
392
|
|
|
397
393
|
Update the metadata for the specified HEC token for the specified Splunk HEC Source.
|
|
398
394
|
|
|
399
395
|
:param id: The <code>id</code> of the Splunk HEC Source.
|
|
400
396
|
:param token: The <code>id</code> of the HEC token to update.
|
|
401
|
-
:param allowed_indexes_at_token:
|
|
402
397
|
:param description:
|
|
403
398
|
:param enabled:
|
|
404
399
|
:param metadata:
|
|
@@ -421,7 +416,6 @@ class HecTokens(BaseSDK):
|
|
|
421
416
|
id=id,
|
|
422
417
|
token=token,
|
|
423
418
|
update_hec_token_request=models.UpdateHecTokenRequest(
|
|
424
|
-
allowed_indexes_at_token=allowed_indexes_at_token,
|
|
425
419
|
description=description,
|
|
426
420
|
enabled=enabled,
|
|
427
421
|
metadata=utils.get_pydantic_model(
|
|
@@ -457,10 +451,14 @@ class HecTokens(BaseSDK):
|
|
|
457
451
|
if retries == UNSET:
|
|
458
452
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
459
453
|
retries = self.sdk_configuration.retry_config
|
|
454
|
+
else:
|
|
455
|
+
retries = utils.RetryConfig(
|
|
456
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
457
|
+
)
|
|
460
458
|
|
|
461
459
|
retry_config = None
|
|
462
460
|
if isinstance(retries, utils.RetryConfig):
|
|
463
|
-
retry_config = (retries, ["429"
|
|
461
|
+
retry_config = (retries, ["429"])
|
|
464
462
|
|
|
465
463
|
http_res = await self.do_request_async(
|
|
466
464
|
hook_ctx=HookContext(
|
|
@@ -479,9 +477,7 @@ class HecTokens(BaseSDK):
|
|
|
479
477
|
|
|
480
478
|
response_data: Any = None
|
|
481
479
|
if utils.match_response(http_res, "200", "application/json"):
|
|
482
|
-
return unmarshal_json_response(
|
|
483
|
-
models.UpdateInputHecTokenByIDAndTokenResponse, http_res
|
|
484
|
-
)
|
|
480
|
+
return unmarshal_json_response(models.CountedInputSplunkHec, http_res)
|
|
485
481
|
if utils.match_response(http_res, "500", "application/json"):
|
|
486
482
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
487
483
|
raise errors.Error(response_data, http_res)
|