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
|
@@ -18,7 +18,7 @@ class DestinationsPq(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.CountedString:
|
|
22
22
|
r"""Clear the persistent queue for a Destination
|
|
23
23
|
|
|
24
24
|
Clear the persistent queue (PQ) for the specified Destination.
|
|
@@ -56,16 +56,21 @@ class DestinationsPq(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 DestinationsPq(BaseSDK):
|
|
|
84
89
|
|
|
85
90
|
response_data: Any = None
|
|
86
91
|
if utils.match_response(http_res, "201", "application/json"):
|
|
87
|
-
return unmarshal_json_response(models.
|
|
92
|
+
return unmarshal_json_response(models.CountedString, 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 DestinationsPq(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.CountedString:
|
|
109
114
|
r"""Clear the persistent queue for a Destination
|
|
110
115
|
|
|
111
116
|
Clear the persistent queue (PQ) for the specified Destination.
|
|
@@ -143,16 +148,21 @@ class DestinationsPq(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 DestinationsPq(BaseSDK):
|
|
|
171
181
|
|
|
172
182
|
response_data: Any = None
|
|
173
183
|
if utils.match_response(http_res, "201", "application/json"):
|
|
174
|
-
return unmarshal_json_response(models.
|
|
184
|
+
return unmarshal_json_response(models.CountedString, 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)
|
|
@@ -192,7 +202,7 @@ class DestinationsPq(BaseSDK):
|
|
|
192
202
|
server_url: Optional[str] = None,
|
|
193
203
|
timeout_ms: Optional[int] = None,
|
|
194
204
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
195
|
-
) -> models.
|
|
205
|
+
) -> models.CountedJobInfo:
|
|
196
206
|
r"""Get information about the latest job to clear the persistent queue for a Destination
|
|
197
207
|
|
|
198
208
|
Get information about the latest job to clear the persistent queue (PQ) for the specified Destination.
|
|
@@ -230,16 +240,21 @@ class DestinationsPq(BaseSDK):
|
|
|
230
240
|
accept_header_value="application/json",
|
|
231
241
|
http_headers=http_headers,
|
|
232
242
|
security=self.sdk_configuration.security,
|
|
243
|
+
allow_empty_value=None,
|
|
233
244
|
timeout_ms=timeout_ms,
|
|
234
245
|
)
|
|
235
246
|
|
|
236
247
|
if retries == UNSET:
|
|
237
248
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
238
249
|
retries = self.sdk_configuration.retry_config
|
|
250
|
+
else:
|
|
251
|
+
retries = utils.RetryConfig(
|
|
252
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
253
|
+
)
|
|
239
254
|
|
|
240
255
|
retry_config = None
|
|
241
256
|
if isinstance(retries, utils.RetryConfig):
|
|
242
|
-
retry_config = (retries, ["429"
|
|
257
|
+
retry_config = (retries, ["429"])
|
|
243
258
|
|
|
244
259
|
http_res = self.do_request(
|
|
245
260
|
hook_ctx=HookContext(
|
|
@@ -258,7 +273,7 @@ class DestinationsPq(BaseSDK):
|
|
|
258
273
|
|
|
259
274
|
response_data: Any = None
|
|
260
275
|
if utils.match_response(http_res, "200", "application/json"):
|
|
261
|
-
return unmarshal_json_response(models.
|
|
276
|
+
return unmarshal_json_response(models.CountedJobInfo, http_res)
|
|
262
277
|
if utils.match_response(http_res, "500", "application/json"):
|
|
263
278
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
264
279
|
raise errors.Error(response_data, http_res)
|
|
@@ -279,7 +294,7 @@ class DestinationsPq(BaseSDK):
|
|
|
279
294
|
server_url: Optional[str] = None,
|
|
280
295
|
timeout_ms: Optional[int] = None,
|
|
281
296
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
282
|
-
) -> models.
|
|
297
|
+
) -> models.CountedJobInfo:
|
|
283
298
|
r"""Get information about the latest job to clear the persistent queue for a Destination
|
|
284
299
|
|
|
285
300
|
Get information about the latest job to clear the persistent queue (PQ) for the specified Destination.
|
|
@@ -317,16 +332,21 @@ class DestinationsPq(BaseSDK):
|
|
|
317
332
|
accept_header_value="application/json",
|
|
318
333
|
http_headers=http_headers,
|
|
319
334
|
security=self.sdk_configuration.security,
|
|
335
|
+
allow_empty_value=None,
|
|
320
336
|
timeout_ms=timeout_ms,
|
|
321
337
|
)
|
|
322
338
|
|
|
323
339
|
if retries == UNSET:
|
|
324
340
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
325
341
|
retries = self.sdk_configuration.retry_config
|
|
342
|
+
else:
|
|
343
|
+
retries = utils.RetryConfig(
|
|
344
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
345
|
+
)
|
|
326
346
|
|
|
327
347
|
retry_config = None
|
|
328
348
|
if isinstance(retries, utils.RetryConfig):
|
|
329
|
-
retry_config = (retries, ["429"
|
|
349
|
+
retry_config = (retries, ["429"])
|
|
330
350
|
|
|
331
351
|
http_res = await self.do_request_async(
|
|
332
352
|
hook_ctx=HookContext(
|
|
@@ -345,7 +365,7 @@ class DestinationsPq(BaseSDK):
|
|
|
345
365
|
|
|
346
366
|
response_data: Any = None
|
|
347
367
|
if utils.match_response(http_res, "200", "application/json"):
|
|
348
|
-
return unmarshal_json_response(models.
|
|
368
|
+
return unmarshal_json_response(models.CountedJobInfo, http_res)
|
|
349
369
|
if utils.match_response(http_res, "500", "application/json"):
|
|
350
370
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
351
371
|
raise errors.Error(response_data, http_res)
|
|
@@ -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.
|
|
@@ -78,16 +78,21 @@ class GroupsSDK(BaseSDK):
|
|
|
78
78
|
accept_header_value="application/json",
|
|
79
79
|
http_headers=http_headers,
|
|
80
80
|
security=self.sdk_configuration.security,
|
|
81
|
+
allow_empty_value=None,
|
|
81
82
|
timeout_ms=timeout_ms,
|
|
82
83
|
)
|
|
83
84
|
|
|
84
85
|
if retries == UNSET:
|
|
85
86
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
86
87
|
retries = self.sdk_configuration.retry_config
|
|
88
|
+
else:
|
|
89
|
+
retries = utils.RetryConfig(
|
|
90
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
91
|
+
)
|
|
87
92
|
|
|
88
93
|
retry_config = None
|
|
89
94
|
if isinstance(retries, utils.RetryConfig):
|
|
90
|
-
retry_config = (retries, ["429"
|
|
95
|
+
retry_config = (retries, ["429"])
|
|
91
96
|
|
|
92
97
|
http_res = self.do_request(
|
|
93
98
|
hook_ctx=HookContext(
|
|
@@ -106,9 +111,7 @@ class GroupsSDK(BaseSDK):
|
|
|
106
111
|
|
|
107
112
|
response_data: Any = None
|
|
108
113
|
if utils.match_response(http_res, "200", "application/json"):
|
|
109
|
-
return unmarshal_json_response(
|
|
110
|
-
models.ListConfigGroupByProductResponse, http_res
|
|
111
|
-
)
|
|
114
|
+
return unmarshal_json_response(models.CountedConfigGroup, http_res)
|
|
112
115
|
if utils.match_response(http_res, "500", "application/json"):
|
|
113
116
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
114
117
|
raise errors.Error(response_data, http_res)
|
|
@@ -130,7 +133,7 @@ class GroupsSDK(BaseSDK):
|
|
|
130
133
|
server_url: Optional[str] = None,
|
|
131
134
|
timeout_ms: Optional[int] = None,
|
|
132
135
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
133
|
-
) -> models.
|
|
136
|
+
) -> models.CountedConfigGroup:
|
|
134
137
|
r"""List all Worker Groups or Edge Fleets for the specified Cribl product
|
|
135
138
|
|
|
136
139
|
Get a list of all Worker Groups or Edge Fleets for the specified Cribl product.
|
|
@@ -170,16 +173,21 @@ class GroupsSDK(BaseSDK):
|
|
|
170
173
|
accept_header_value="application/json",
|
|
171
174
|
http_headers=http_headers,
|
|
172
175
|
security=self.sdk_configuration.security,
|
|
176
|
+
allow_empty_value=None,
|
|
173
177
|
timeout_ms=timeout_ms,
|
|
174
178
|
)
|
|
175
179
|
|
|
176
180
|
if retries == UNSET:
|
|
177
181
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
178
182
|
retries = self.sdk_configuration.retry_config
|
|
183
|
+
else:
|
|
184
|
+
retries = utils.RetryConfig(
|
|
185
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
186
|
+
)
|
|
179
187
|
|
|
180
188
|
retry_config = None
|
|
181
189
|
if isinstance(retries, utils.RetryConfig):
|
|
182
|
-
retry_config = (retries, ["429"
|
|
190
|
+
retry_config = (retries, ["429"])
|
|
183
191
|
|
|
184
192
|
http_res = await self.do_request_async(
|
|
185
193
|
hook_ctx=HookContext(
|
|
@@ -198,9 +206,7 @@ class GroupsSDK(BaseSDK):
|
|
|
198
206
|
|
|
199
207
|
response_data: Any = None
|
|
200
208
|
if utils.match_response(http_res, "200", "application/json"):
|
|
201
|
-
return unmarshal_json_response(
|
|
202
|
-
models.ListConfigGroupByProductResponse, http_res
|
|
203
|
-
)
|
|
209
|
+
return unmarshal_json_response(models.CountedConfigGroup, http_res)
|
|
204
210
|
if utils.match_response(http_res, "500", "application/json"):
|
|
205
211
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
206
212
|
raise errors.Error(response_data, http_res)
|
|
@@ -254,7 +260,7 @@ class GroupsSDK(BaseSDK):
|
|
|
254
260
|
server_url: Optional[str] = None,
|
|
255
261
|
timeout_ms: Optional[int] = None,
|
|
256
262
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
257
|
-
) -> models.
|
|
263
|
+
) -> models.CountedConfigGroup:
|
|
258
264
|
r"""Create a Worker Group or Edge Fleet for the specified Cribl product
|
|
259
265
|
|
|
260
266
|
Create a new Worker Group or Edge Fleet for the specified Cribl product.
|
|
@@ -351,16 +357,21 @@ class GroupsSDK(BaseSDK):
|
|
|
351
357
|
"json",
|
|
352
358
|
models.GroupCreateRequest,
|
|
353
359
|
),
|
|
360
|
+
allow_empty_value=None,
|
|
354
361
|
timeout_ms=timeout_ms,
|
|
355
362
|
)
|
|
356
363
|
|
|
357
364
|
if retries == UNSET:
|
|
358
365
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
359
366
|
retries = self.sdk_configuration.retry_config
|
|
367
|
+
else:
|
|
368
|
+
retries = utils.RetryConfig(
|
|
369
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
370
|
+
)
|
|
360
371
|
|
|
361
372
|
retry_config = None
|
|
362
373
|
if isinstance(retries, utils.RetryConfig):
|
|
363
|
-
retry_config = (retries, ["429"
|
|
374
|
+
retry_config = (retries, ["429"])
|
|
364
375
|
|
|
365
376
|
http_res = self.do_request(
|
|
366
377
|
hook_ctx=HookContext(
|
|
@@ -379,9 +390,7 @@ class GroupsSDK(BaseSDK):
|
|
|
379
390
|
|
|
380
391
|
response_data: Any = None
|
|
381
392
|
if utils.match_response(http_res, "200", "application/json"):
|
|
382
|
-
return unmarshal_json_response(
|
|
383
|
-
models.CreateConfigGroupByProductResponse, http_res
|
|
384
|
-
)
|
|
393
|
+
return unmarshal_json_response(models.CountedConfigGroup, http_res)
|
|
385
394
|
if utils.match_response(http_res, "500", "application/json"):
|
|
386
395
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
387
396
|
raise errors.Error(response_data, http_res)
|
|
@@ -435,7 +444,7 @@ class GroupsSDK(BaseSDK):
|
|
|
435
444
|
server_url: Optional[str] = None,
|
|
436
445
|
timeout_ms: Optional[int] = None,
|
|
437
446
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
438
|
-
) -> models.
|
|
447
|
+
) -> models.CountedConfigGroup:
|
|
439
448
|
r"""Create a Worker Group or Edge Fleet for the specified Cribl product
|
|
440
449
|
|
|
441
450
|
Create a new Worker Group or Edge Fleet for the specified Cribl product.
|
|
@@ -532,16 +541,21 @@ class GroupsSDK(BaseSDK):
|
|
|
532
541
|
"json",
|
|
533
542
|
models.GroupCreateRequest,
|
|
534
543
|
),
|
|
544
|
+
allow_empty_value=None,
|
|
535
545
|
timeout_ms=timeout_ms,
|
|
536
546
|
)
|
|
537
547
|
|
|
538
548
|
if retries == UNSET:
|
|
539
549
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
540
550
|
retries = self.sdk_configuration.retry_config
|
|
551
|
+
else:
|
|
552
|
+
retries = utils.RetryConfig(
|
|
553
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
554
|
+
)
|
|
541
555
|
|
|
542
556
|
retry_config = None
|
|
543
557
|
if isinstance(retries, utils.RetryConfig):
|
|
544
|
-
retry_config = (retries, ["429"
|
|
558
|
+
retry_config = (retries, ["429"])
|
|
545
559
|
|
|
546
560
|
http_res = await self.do_request_async(
|
|
547
561
|
hook_ctx=HookContext(
|
|
@@ -560,9 +574,7 @@ class GroupsSDK(BaseSDK):
|
|
|
560
574
|
|
|
561
575
|
response_data: Any = None
|
|
562
576
|
if utils.match_response(http_res, "200", "application/json"):
|
|
563
|
-
return unmarshal_json_response(
|
|
564
|
-
models.CreateConfigGroupByProductResponse, http_res
|
|
565
|
-
)
|
|
577
|
+
return unmarshal_json_response(models.CountedConfigGroup, http_res)
|
|
566
578
|
if utils.match_response(http_res, "500", "application/json"):
|
|
567
579
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
568
580
|
raise errors.Error(response_data, http_res)
|
|
@@ -585,7 +597,7 @@ class GroupsSDK(BaseSDK):
|
|
|
585
597
|
server_url: Optional[str] = None,
|
|
586
598
|
timeout_ms: Optional[int] = None,
|
|
587
599
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
588
|
-
) -> models.
|
|
600
|
+
) -> models.CountedConfigGroup:
|
|
589
601
|
r"""Get a Worker Group or Edge Fleet
|
|
590
602
|
|
|
591
603
|
Get the specified Worker Group or Edge Fleet.
|
|
@@ -627,16 +639,21 @@ class GroupsSDK(BaseSDK):
|
|
|
627
639
|
accept_header_value="application/json",
|
|
628
640
|
http_headers=http_headers,
|
|
629
641
|
security=self.sdk_configuration.security,
|
|
642
|
+
allow_empty_value=None,
|
|
630
643
|
timeout_ms=timeout_ms,
|
|
631
644
|
)
|
|
632
645
|
|
|
633
646
|
if retries == UNSET:
|
|
634
647
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
635
648
|
retries = self.sdk_configuration.retry_config
|
|
649
|
+
else:
|
|
650
|
+
retries = utils.RetryConfig(
|
|
651
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
652
|
+
)
|
|
636
653
|
|
|
637
654
|
retry_config = None
|
|
638
655
|
if isinstance(retries, utils.RetryConfig):
|
|
639
|
-
retry_config = (retries, ["429"
|
|
656
|
+
retry_config = (retries, ["429"])
|
|
640
657
|
|
|
641
658
|
http_res = self.do_request(
|
|
642
659
|
hook_ctx=HookContext(
|
|
@@ -655,9 +672,7 @@ class GroupsSDK(BaseSDK):
|
|
|
655
672
|
|
|
656
673
|
response_data: Any = None
|
|
657
674
|
if utils.match_response(http_res, "200", "application/json"):
|
|
658
|
-
return unmarshal_json_response(
|
|
659
|
-
models.GetConfigGroupByProductAndIDResponse, http_res
|
|
660
|
-
)
|
|
675
|
+
return unmarshal_json_response(models.CountedConfigGroup, http_res)
|
|
661
676
|
if utils.match_response(http_res, "500", "application/json"):
|
|
662
677
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
663
678
|
raise errors.Error(response_data, http_res)
|
|
@@ -680,7 +695,7 @@ class GroupsSDK(BaseSDK):
|
|
|
680
695
|
server_url: Optional[str] = None,
|
|
681
696
|
timeout_ms: Optional[int] = None,
|
|
682
697
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
683
|
-
) -> models.
|
|
698
|
+
) -> models.CountedConfigGroup:
|
|
684
699
|
r"""Get a Worker Group or Edge Fleet
|
|
685
700
|
|
|
686
701
|
Get the specified Worker Group or Edge Fleet.
|
|
@@ -722,16 +737,21 @@ class GroupsSDK(BaseSDK):
|
|
|
722
737
|
accept_header_value="application/json",
|
|
723
738
|
http_headers=http_headers,
|
|
724
739
|
security=self.sdk_configuration.security,
|
|
740
|
+
allow_empty_value=None,
|
|
725
741
|
timeout_ms=timeout_ms,
|
|
726
742
|
)
|
|
727
743
|
|
|
728
744
|
if retries == UNSET:
|
|
729
745
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
730
746
|
retries = self.sdk_configuration.retry_config
|
|
747
|
+
else:
|
|
748
|
+
retries = utils.RetryConfig(
|
|
749
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
750
|
+
)
|
|
731
751
|
|
|
732
752
|
retry_config = None
|
|
733
753
|
if isinstance(retries, utils.RetryConfig):
|
|
734
|
-
retry_config = (retries, ["429"
|
|
754
|
+
retry_config = (retries, ["429"])
|
|
735
755
|
|
|
736
756
|
http_res = await self.do_request_async(
|
|
737
757
|
hook_ctx=HookContext(
|
|
@@ -750,9 +770,7 @@ class GroupsSDK(BaseSDK):
|
|
|
750
770
|
|
|
751
771
|
response_data: Any = None
|
|
752
772
|
if utils.match_response(http_res, "200", "application/json"):
|
|
753
|
-
return unmarshal_json_response(
|
|
754
|
-
models.GetConfigGroupByProductAndIDResponse, http_res
|
|
755
|
-
)
|
|
773
|
+
return unmarshal_json_response(models.CountedConfigGroup, http_res)
|
|
756
774
|
if utils.match_response(http_res, "500", "application/json"):
|
|
757
775
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
758
776
|
raise errors.Error(response_data, http_res)
|
|
@@ -805,7 +823,7 @@ class GroupsSDK(BaseSDK):
|
|
|
805
823
|
server_url: Optional[str] = None,
|
|
806
824
|
timeout_ms: Optional[int] = None,
|
|
807
825
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
808
|
-
) -> models.
|
|
826
|
+
) -> models.CountedConfigGroup:
|
|
809
827
|
r"""Update a Worker Group or Edge Fleet
|
|
810
828
|
|
|
811
829
|
Update the specified Worker Group or Edge Fleet.
|
|
@@ -898,16 +916,21 @@ class GroupsSDK(BaseSDK):
|
|
|
898
916
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
899
917
|
request.config_group, False, False, "json", models.ConfigGroup
|
|
900
918
|
),
|
|
919
|
+
allow_empty_value=None,
|
|
901
920
|
timeout_ms=timeout_ms,
|
|
902
921
|
)
|
|
903
922
|
|
|
904
923
|
if retries == UNSET:
|
|
905
924
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
906
925
|
retries = self.sdk_configuration.retry_config
|
|
926
|
+
else:
|
|
927
|
+
retries = utils.RetryConfig(
|
|
928
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
929
|
+
)
|
|
907
930
|
|
|
908
931
|
retry_config = None
|
|
909
932
|
if isinstance(retries, utils.RetryConfig):
|
|
910
|
-
retry_config = (retries, ["429"
|
|
933
|
+
retry_config = (retries, ["429"])
|
|
911
934
|
|
|
912
935
|
http_res = self.do_request(
|
|
913
936
|
hook_ctx=HookContext(
|
|
@@ -926,9 +949,7 @@ class GroupsSDK(BaseSDK):
|
|
|
926
949
|
|
|
927
950
|
response_data: Any = None
|
|
928
951
|
if utils.match_response(http_res, "200", "application/json"):
|
|
929
|
-
return unmarshal_json_response(
|
|
930
|
-
models.UpdateConfigGroupByProductAndIDResponse, http_res
|
|
931
|
-
)
|
|
952
|
+
return unmarshal_json_response(models.CountedConfigGroup, http_res)
|
|
932
953
|
if utils.match_response(http_res, "500", "application/json"):
|
|
933
954
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
934
955
|
raise errors.Error(response_data, http_res)
|
|
@@ -981,7 +1002,7 @@ class GroupsSDK(BaseSDK):
|
|
|
981
1002
|
server_url: Optional[str] = None,
|
|
982
1003
|
timeout_ms: Optional[int] = None,
|
|
983
1004
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
984
|
-
) -> models.
|
|
1005
|
+
) -> models.CountedConfigGroup:
|
|
985
1006
|
r"""Update a Worker Group or Edge Fleet
|
|
986
1007
|
|
|
987
1008
|
Update the specified Worker Group or Edge Fleet.
|
|
@@ -1074,16 +1095,21 @@ class GroupsSDK(BaseSDK):
|
|
|
1074
1095
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
1075
1096
|
request.config_group, False, False, "json", models.ConfigGroup
|
|
1076
1097
|
),
|
|
1098
|
+
allow_empty_value=None,
|
|
1077
1099
|
timeout_ms=timeout_ms,
|
|
1078
1100
|
)
|
|
1079
1101
|
|
|
1080
1102
|
if retries == UNSET:
|
|
1081
1103
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
1082
1104
|
retries = self.sdk_configuration.retry_config
|
|
1105
|
+
else:
|
|
1106
|
+
retries = utils.RetryConfig(
|
|
1107
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
1108
|
+
)
|
|
1083
1109
|
|
|
1084
1110
|
retry_config = None
|
|
1085
1111
|
if isinstance(retries, utils.RetryConfig):
|
|
1086
|
-
retry_config = (retries, ["429"
|
|
1112
|
+
retry_config = (retries, ["429"])
|
|
1087
1113
|
|
|
1088
1114
|
http_res = await self.do_request_async(
|
|
1089
1115
|
hook_ctx=HookContext(
|
|
@@ -1102,9 +1128,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1102
1128
|
|
|
1103
1129
|
response_data: Any = None
|
|
1104
1130
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1105
|
-
return unmarshal_json_response(
|
|
1106
|
-
models.UpdateConfigGroupByProductAndIDResponse, http_res
|
|
1107
|
-
)
|
|
1131
|
+
return unmarshal_json_response(models.CountedConfigGroup, http_res)
|
|
1108
1132
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1109
1133
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1110
1134
|
raise errors.Error(response_data, http_res)
|
|
@@ -1126,7 +1150,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1126
1150
|
server_url: Optional[str] = None,
|
|
1127
1151
|
timeout_ms: Optional[int] = None,
|
|
1128
1152
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1129
|
-
) -> models.
|
|
1153
|
+
) -> models.CountedConfigGroup:
|
|
1130
1154
|
r"""Delete a Worker Group or Edge Fleet
|
|
1131
1155
|
|
|
1132
1156
|
Delete the specified Worker Group or Edge Fleet.
|
|
@@ -1166,16 +1190,21 @@ class GroupsSDK(BaseSDK):
|
|
|
1166
1190
|
accept_header_value="application/json",
|
|
1167
1191
|
http_headers=http_headers,
|
|
1168
1192
|
security=self.sdk_configuration.security,
|
|
1193
|
+
allow_empty_value=None,
|
|
1169
1194
|
timeout_ms=timeout_ms,
|
|
1170
1195
|
)
|
|
1171
1196
|
|
|
1172
1197
|
if retries == UNSET:
|
|
1173
1198
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
1174
1199
|
retries = self.sdk_configuration.retry_config
|
|
1200
|
+
else:
|
|
1201
|
+
retries = utils.RetryConfig(
|
|
1202
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
1203
|
+
)
|
|
1175
1204
|
|
|
1176
1205
|
retry_config = None
|
|
1177
1206
|
if isinstance(retries, utils.RetryConfig):
|
|
1178
|
-
retry_config = (retries, ["429"
|
|
1207
|
+
retry_config = (retries, ["429"])
|
|
1179
1208
|
|
|
1180
1209
|
http_res = self.do_request(
|
|
1181
1210
|
hook_ctx=HookContext(
|
|
@@ -1194,9 +1223,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1194
1223
|
|
|
1195
1224
|
response_data: Any = None
|
|
1196
1225
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1197
|
-
return unmarshal_json_response(
|
|
1198
|
-
models.DeleteConfigGroupByProductAndIDResponse, http_res
|
|
1199
|
-
)
|
|
1226
|
+
return unmarshal_json_response(models.CountedConfigGroup, http_res)
|
|
1200
1227
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1201
1228
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1202
1229
|
raise errors.Error(response_data, http_res)
|
|
@@ -1218,7 +1245,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1218
1245
|
server_url: Optional[str] = None,
|
|
1219
1246
|
timeout_ms: Optional[int] = None,
|
|
1220
1247
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1221
|
-
) -> models.
|
|
1248
|
+
) -> models.CountedConfigGroup:
|
|
1222
1249
|
r"""Delete a Worker Group or Edge Fleet
|
|
1223
1250
|
|
|
1224
1251
|
Delete the specified Worker Group or Edge Fleet.
|
|
@@ -1258,16 +1285,21 @@ class GroupsSDK(BaseSDK):
|
|
|
1258
1285
|
accept_header_value="application/json",
|
|
1259
1286
|
http_headers=http_headers,
|
|
1260
1287
|
security=self.sdk_configuration.security,
|
|
1288
|
+
allow_empty_value=None,
|
|
1261
1289
|
timeout_ms=timeout_ms,
|
|
1262
1290
|
)
|
|
1263
1291
|
|
|
1264
1292
|
if retries == UNSET:
|
|
1265
1293
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
1266
1294
|
retries = self.sdk_configuration.retry_config
|
|
1295
|
+
else:
|
|
1296
|
+
retries = utils.RetryConfig(
|
|
1297
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
1298
|
+
)
|
|
1267
1299
|
|
|
1268
1300
|
retry_config = None
|
|
1269
1301
|
if isinstance(retries, utils.RetryConfig):
|
|
1270
|
-
retry_config = (retries, ["429"
|
|
1302
|
+
retry_config = (retries, ["429"])
|
|
1271
1303
|
|
|
1272
1304
|
http_res = await self.do_request_async(
|
|
1273
1305
|
hook_ctx=HookContext(
|
|
@@ -1286,9 +1318,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1286
1318
|
|
|
1287
1319
|
response_data: Any = None
|
|
1288
1320
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1289
|
-
return unmarshal_json_response(
|
|
1290
|
-
models.DeleteConfigGroupByProductAndIDResponse, http_res
|
|
1291
|
-
)
|
|
1321
|
+
return unmarshal_json_response(models.CountedConfigGroup, http_res)
|
|
1292
1322
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1293
1323
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1294
1324
|
raise errors.Error(response_data, http_res)
|
|
@@ -1317,7 +1347,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1317
1347
|
server_url: Optional[str] = None,
|
|
1318
1348
|
timeout_ms: Optional[int] = None,
|
|
1319
1349
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1320
|
-
) -> models.
|
|
1350
|
+
) -> models.CountedConfigGroup:
|
|
1321
1351
|
r"""Deploy commits to a Worker Group or Edge Fleet
|
|
1322
1352
|
|
|
1323
1353
|
Deploy commits to the specified Worker Group or Edge Fleet.
|
|
@@ -1368,16 +1398,21 @@ class GroupsSDK(BaseSDK):
|
|
|
1368
1398
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
1369
1399
|
request.deploy_request, False, False, "json", models.DeployRequest
|
|
1370
1400
|
),
|
|
1401
|
+
allow_empty_value=None,
|
|
1371
1402
|
timeout_ms=timeout_ms,
|
|
1372
1403
|
)
|
|
1373
1404
|
|
|
1374
1405
|
if retries == UNSET:
|
|
1375
1406
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
1376
1407
|
retries = self.sdk_configuration.retry_config
|
|
1408
|
+
else:
|
|
1409
|
+
retries = utils.RetryConfig(
|
|
1410
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
1411
|
+
)
|
|
1377
1412
|
|
|
1378
1413
|
retry_config = None
|
|
1379
1414
|
if isinstance(retries, utils.RetryConfig):
|
|
1380
|
-
retry_config = (retries, ["429"
|
|
1415
|
+
retry_config = (retries, ["429"])
|
|
1381
1416
|
|
|
1382
1417
|
http_res = self.do_request(
|
|
1383
1418
|
hook_ctx=HookContext(
|
|
@@ -1396,9 +1431,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1396
1431
|
|
|
1397
1432
|
response_data: Any = None
|
|
1398
1433
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1399
|
-
return unmarshal_json_response(
|
|
1400
|
-
models.UpdateConfigGroupDeployByProductAndIDResponse, http_res
|
|
1401
|
-
)
|
|
1434
|
+
return unmarshal_json_response(models.CountedConfigGroup, http_res)
|
|
1402
1435
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1403
1436
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1404
1437
|
raise errors.Error(response_data, http_res)
|
|
@@ -1427,7 +1460,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1427
1460
|
server_url: Optional[str] = None,
|
|
1428
1461
|
timeout_ms: Optional[int] = None,
|
|
1429
1462
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1430
|
-
) -> models.
|
|
1463
|
+
) -> models.CountedConfigGroup:
|
|
1431
1464
|
r"""Deploy commits to a Worker Group or Edge Fleet
|
|
1432
1465
|
|
|
1433
1466
|
Deploy commits to the specified Worker Group or Edge Fleet.
|
|
@@ -1478,16 +1511,21 @@ class GroupsSDK(BaseSDK):
|
|
|
1478
1511
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
1479
1512
|
request.deploy_request, False, False, "json", models.DeployRequest
|
|
1480
1513
|
),
|
|
1514
|
+
allow_empty_value=None,
|
|
1481
1515
|
timeout_ms=timeout_ms,
|
|
1482
1516
|
)
|
|
1483
1517
|
|
|
1484
1518
|
if retries == UNSET:
|
|
1485
1519
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
1486
1520
|
retries = self.sdk_configuration.retry_config
|
|
1521
|
+
else:
|
|
1522
|
+
retries = utils.RetryConfig(
|
|
1523
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
1524
|
+
)
|
|
1487
1525
|
|
|
1488
1526
|
retry_config = None
|
|
1489
1527
|
if isinstance(retries, utils.RetryConfig):
|
|
1490
|
-
retry_config = (retries, ["429"
|
|
1528
|
+
retry_config = (retries, ["429"])
|
|
1491
1529
|
|
|
1492
1530
|
http_res = await self.do_request_async(
|
|
1493
1531
|
hook_ctx=HookContext(
|
|
@@ -1506,9 +1544,7 @@ class GroupsSDK(BaseSDK):
|
|
|
1506
1544
|
|
|
1507
1545
|
response_data: Any = None
|
|
1508
1546
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1509
|
-
return unmarshal_json_response(
|
|
1510
|
-
models.UpdateConfigGroupDeployByProductAndIDResponse, http_res
|
|
1511
|
-
)
|
|
1547
|
+
return unmarshal_json_response(models.CountedConfigGroup, http_res)
|
|
1512
1548
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1513
1549
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1514
1550
|
raise errors.Error(response_data, http_res)
|