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.

Files changed (137) hide show
  1. cribl_control_plane/_version.py +4 -4
  2. cribl_control_plane/acl.py +16 -6
  3. cribl_control_plane/basesdk.py +6 -0
  4. cribl_control_plane/branches.py +28 -8
  5. cribl_control_plane/commits.py +112 -42
  6. cribl_control_plane/commits_files.py +32 -12
  7. cribl_control_plane/configs_versions.py +16 -10
  8. cribl_control_plane/destinations.py +80 -30
  9. cribl_control_plane/destinations_pq.py +32 -12
  10. cribl_control_plane/groups_sdk.py +96 -60
  11. cribl_control_plane/health.py +12 -2
  12. cribl_control_plane/hectokens.py +32 -20
  13. cribl_control_plane/lakedatasets.py +80 -50
  14. cribl_control_plane/models/__init__.py +266 -438
  15. cribl_control_plane/models/configgroup.py +1 -0
  16. cribl_control_plane/models/{getversionbranchop.py → countedbranchinfo.py} +2 -6
  17. cribl_control_plane/models/countedconfiggroup.py +20 -0
  18. cribl_control_plane/models/countedcribllakedataset.py +20 -0
  19. cribl_control_plane/models/counteddistributedsummary.py +20 -0
  20. cribl_control_plane/models/countedgitcommitsummary.py +20 -0
  21. cribl_control_plane/models/countedgitcountresult.py +20 -0
  22. cribl_control_plane/models/{createinputop.py → countedgitdiffresult.py} +5 -9
  23. cribl_control_plane/models/countedgitfilesresponse.py +20 -0
  24. cribl_control_plane/models/{getversioninfoop.py → countedgitinfo.py} +2 -6
  25. cribl_control_plane/models/countedgitlogresult.py +20 -0
  26. cribl_control_plane/models/countedgitrevertresult.py +20 -0
  27. cribl_control_plane/models/countedgitshowresult.py +20 -0
  28. cribl_control_plane/models/countedgitstatusresult.py +20 -0
  29. cribl_control_plane/models/{listinputop.py → countedinput.py} +2 -6
  30. cribl_control_plane/models/countedinputsplunkhec.py +20 -0
  31. cribl_control_plane/models/countedjobinfo.py +20 -0
  32. cribl_control_plane/models/countedmasterworkerentry.py +20 -0
  33. cribl_control_plane/models/countednumber.py +19 -0
  34. cribl_control_plane/models/countedobject.py +19 -0
  35. cribl_control_plane/models/{listoutputop.py → countedoutput.py} +2 -6
  36. cribl_control_plane/models/{createoutputop.py → countedoutputsamplesresponse.py} +5 -9
  37. cribl_control_plane/models/countedoutputtestresponse.py +20 -0
  38. cribl_control_plane/models/countedpackinfo.py +20 -0
  39. cribl_control_plane/models/{createpacksop.py → countedpackinstallinfo.py} +2 -6
  40. cribl_control_plane/models/{listpipelineop.py → countedpipeline.py} +2 -6
  41. cribl_control_plane/models/{listroutesop.py → countedroutes.py} +2 -6
  42. cribl_control_plane/models/{createversionpushop.py → countedstring.py} +2 -6
  43. cribl_control_plane/models/countedteamaccesscontrollist.py +20 -0
  44. cribl_control_plane/models/counteduseraccesscontrollist.py +20 -0
  45. cribl_control_plane/models/createauthloginop.py +18 -0
  46. cribl_control_plane/models/createconfiggroupbyproductop.py +1 -20
  47. cribl_control_plane/models/createcribllakedatasetbylakeidop.py +1 -19
  48. cribl_control_plane/models/createinputhectokenbyidop.py +1 -20
  49. cribl_control_plane/models/createoutputtestbyidop.py +1 -20
  50. cribl_control_plane/models/createroutesappendbyidop.py +2 -20
  51. cribl_control_plane/models/createversioncommitop.py +1 -19
  52. cribl_control_plane/models/createversionrevertop.py +1 -19
  53. cribl_control_plane/models/createversionundoop.py +1 -18
  54. cribl_control_plane/models/criblevent.py +15 -0
  55. cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +1 -20
  56. cribl_control_plane/models/deletecribllakedatasetbylakeidandidop.py +1 -20
  57. cribl_control_plane/models/deleteinputbyidop.py +1 -20
  58. cribl_control_plane/models/deleteoutputbyidop.py +1 -20
  59. cribl_control_plane/models/deleteoutputpqbyidop.py +1 -19
  60. cribl_control_plane/models/deletepacksbyidop.py +1 -20
  61. cribl_control_plane/models/deletepipelinebyidop.py +1 -20
  62. cribl_control_plane/models/difffiles.py +5 -46
  63. cribl_control_plane/models/diffline.py +26 -0
  64. cribl_control_plane/models/difflinecontext.py +28 -0
  65. cribl_control_plane/models/difflinedelete.py +25 -0
  66. cribl_control_plane/models/difflineinsert.py +25 -0
  67. cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +1 -19
  68. cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +1 -19
  69. cribl_control_plane/models/getconfiggroupbyproductandidop.py +1 -19
  70. cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +1 -19
  71. cribl_control_plane/models/getcribllakedatasetbylakeidandidop.py +1 -20
  72. cribl_control_plane/models/getcribllakedatasetbylakeidop.py +1 -20
  73. cribl_control_plane/models/getinputbyidop.py +1 -20
  74. cribl_control_plane/models/getmasterworkerentryop.py +1 -18
  75. cribl_control_plane/models/getoutputbyidop.py +1 -20
  76. cribl_control_plane/models/getoutputpqbyidop.py +1 -20
  77. cribl_control_plane/models/getoutputsamplesbyidop.py +1 -20
  78. cribl_control_plane/models/getpacksbyidop.py +1 -20
  79. cribl_control_plane/models/getpacksop.py +1 -19
  80. cribl_control_plane/models/getpipelinebyidop.py +1 -20
  81. cribl_control_plane/models/getroutesbyidop.py +1 -20
  82. cribl_control_plane/models/getsummaryop.py +1 -19
  83. cribl_control_plane/models/getversioncountop.py +1 -19
  84. cribl_control_plane/models/getversiondiffop.py +1 -19
  85. cribl_control_plane/models/getversionfilesop.py +1 -19
  86. cribl_control_plane/models/getversionop.py +1 -19
  87. cribl_control_plane/models/getversionshowop.py +1 -19
  88. cribl_control_plane/models/getversionstatusop.py +1 -19
  89. cribl_control_plane/models/groupcreaterequest.py +1 -0
  90. cribl_control_plane/models/hbcriblinfo.py +3 -4
  91. cribl_control_plane/models/heartbeatmetadata.py +3 -11
  92. cribl_control_plane/models/inputcloudflarehec.py +9 -4
  93. cribl_control_plane/models/inputconfluentcloud.py +4 -2
  94. cribl_control_plane/models/inputcribllakehttp.py +15 -0
  95. cribl_control_plane/models/inputkafka.py +4 -2
  96. cribl_control_plane/models/inputmsk.py +4 -2
  97. cribl_control_plane/models/inputsnmp.py +33 -7
  98. cribl_control_plane/models/inputsplunkhec.py +8 -4
  99. cribl_control_plane/models/inputwef.py +23 -0
  100. cribl_control_plane/models/inputwiz.py +95 -0
  101. cribl_control_plane/models/inputzscalerhec.py +8 -4
  102. cribl_control_plane/models/listconfiggroupbyproductop.py +1 -19
  103. cribl_control_plane/models/listmasterworkerentryop.py +1 -19
  104. cribl_control_plane/models/masterworkerentry.py +3 -11
  105. cribl_control_plane/models/nodeprovidedinfo.py +2 -10
  106. cribl_control_plane/models/outputsplunklb.py +10 -0
  107. cribl_control_plane/models/runnablejobcollection.py +0 -56
  108. cribl_control_plane/models/runnablejobexecutor.py +0 -28
  109. cribl_control_plane/models/runnablejobscheduledsearch.py +0 -28
  110. cribl_control_plane/models/updateconfiggroupbyproductandidop.py +1 -19
  111. cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +1 -20
  112. cribl_control_plane/models/updatecribllakedatasetbylakeidandidop.py +1 -20
  113. cribl_control_plane/models/updateinputbyidop.py +1 -19
  114. cribl_control_plane/models/updateinputhectokenbyidandtokenop.py +1 -20
  115. cribl_control_plane/models/updateoutputbyidop.py +1 -19
  116. cribl_control_plane/models/updatepacksbyidop.py +1 -20
  117. cribl_control_plane/models/updatepipelinebyidop.py +1 -19
  118. cribl_control_plane/models/updateroutesbyidop.py +1 -19
  119. cribl_control_plane/nodes.py +32 -20
  120. cribl_control_plane/packs.py +92 -32
  121. cribl_control_plane/pipelines.py +80 -30
  122. cribl_control_plane/routes_sdk.py +64 -28
  123. cribl_control_plane/samples.py +32 -16
  124. cribl_control_plane/sources.py +80 -30
  125. cribl_control_plane/statuses.py +16 -6
  126. cribl_control_plane/summaries.py +16 -6
  127. cribl_control_plane/teams.py +16 -6
  128. cribl_control_plane/tokens.py +28 -8
  129. cribl_control_plane/utils/forms.py +21 -10
  130. cribl_control_plane/utils/queryparams.py +14 -2
  131. cribl_control_plane/versions_configs.py +16 -6
  132. {cribl_control_plane-0.4.0a6.dist-info → cribl_control_plane-0.4.0b12.dist-info}/METADATA +1 -1
  133. {cribl_control_plane-0.4.0a6.dist-info → cribl_control_plane-0.4.0b12.dist-info}/RECORD +135 -113
  134. cribl_control_plane/models/createpipelineop.py +0 -24
  135. cribl_control_plane/models/lookupversions.py +0 -13
  136. {cribl_control_plane-0.4.0a6.dist-info → cribl_control_plane-0.4.0b12.dist-info}/WHEEL +0 -0
  137. {cribl_control_plane-0.4.0a6.dist-info → cribl_control_plane-0.4.0b12.dist-info}/licenses/LICENSE +0 -0
@@ -5,8 +5,7 @@ from .pipeline import Pipeline, PipelineTypedDict
5
5
  from cribl_control_plane.types import BaseModel
6
6
  from cribl_control_plane.utils import FieldMetadata, PathParamMetadata, RequestMetadata
7
7
  import pydantic
8
- from typing import List, Optional
9
- from typing_extensions import Annotated, NotRequired, TypedDict
8
+ from typing_extensions import Annotated, TypedDict
10
9
 
11
10
 
12
11
  class UpdatePipelineByIDRequestTypedDict(TypedDict):
@@ -28,20 +27,3 @@ class UpdatePipelineByIDRequest(BaseModel):
28
27
  Pipeline, FieldMetadata(request=RequestMetadata(media_type="application/json"))
29
28
  ]
30
29
  r"""Pipeline object"""
31
-
32
-
33
- class UpdatePipelineByIDResponseTypedDict(TypedDict):
34
- r"""a list of Pipeline objects"""
35
-
36
- count: NotRequired[int]
37
- r"""number of items present in the items array"""
38
- items: NotRequired[List[PipelineTypedDict]]
39
-
40
-
41
- class UpdatePipelineByIDResponse(BaseModel):
42
- r"""a list of Pipeline objects"""
43
-
44
- count: Optional[int] = None
45
- r"""number of items present in the items array"""
46
-
47
- items: Optional[List[Pipeline]] = None
@@ -5,8 +5,7 @@ from .routes import Routes, RoutesTypedDict
5
5
  from cribl_control_plane.types import BaseModel
6
6
  from cribl_control_plane.utils import FieldMetadata, PathParamMetadata, RequestMetadata
7
7
  import pydantic
8
- from typing import List, Optional
9
- from typing_extensions import Annotated, NotRequired, TypedDict
8
+ from typing_extensions import Annotated, TypedDict
10
9
 
11
10
 
12
11
  class UpdateRoutesByIDRequestTypedDict(TypedDict):
@@ -28,20 +27,3 @@ class UpdateRoutesByIDRequest(BaseModel):
28
27
  Routes, FieldMetadata(request=RequestMetadata(media_type="application/json"))
29
28
  ]
30
29
  r"""Routes object"""
31
-
32
-
33
- class UpdateRoutesByIDResponseTypedDict(TypedDict):
34
- r"""a list of Routes objects"""
35
-
36
- count: NotRequired[int]
37
- r"""number of items present in the items array"""
38
- items: NotRequired[List[RoutesTypedDict]]
39
-
40
-
41
- class UpdateRoutesByIDResponse(BaseModel):
42
- r"""a list of Routes objects"""
43
-
44
- count: Optional[int] = None
45
- r"""number of items present in the items array"""
46
-
47
- items: Optional[List[Routes]] = None
@@ -37,7 +37,7 @@ class Nodes(BaseSDK):
37
37
  server_url: Optional[str] = None,
38
38
  timeout_ms: Optional[int] = None,
39
39
  http_headers: Optional[Mapping[str, str]] = None,
40
- ) -> models.ListMasterWorkerEntryResponse:
40
+ ) -> models.CountedMasterWorkerEntry:
41
41
  r"""Get detailed metadata for Worker and Edge Nodes
42
42
 
43
43
  Get detailed metadata for Worker and Edge Nodes.
@@ -85,16 +85,21 @@ class Nodes(BaseSDK):
85
85
  accept_header_value="application/json",
86
86
  http_headers=http_headers,
87
87
  security=self.sdk_configuration.security,
88
+ allow_empty_value=None,
88
89
  timeout_ms=timeout_ms,
89
90
  )
90
91
 
91
92
  if retries == UNSET:
92
93
  if self.sdk_configuration.retry_config is not UNSET:
93
94
  retries = self.sdk_configuration.retry_config
95
+ else:
96
+ retries = utils.RetryConfig(
97
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
98
+ )
94
99
 
95
100
  retry_config = None
96
101
  if isinstance(retries, utils.RetryConfig):
97
- retry_config = (retries, ["429", "500", "502", "503", "504"])
102
+ retry_config = (retries, ["429"])
98
103
 
99
104
  http_res = self.do_request(
100
105
  hook_ctx=HookContext(
@@ -113,9 +118,7 @@ class Nodes(BaseSDK):
113
118
 
114
119
  response_data: Any = None
115
120
  if utils.match_response(http_res, "200", "application/json"):
116
- return unmarshal_json_response(
117
- models.ListMasterWorkerEntryResponse, http_res
118
- )
121
+ return unmarshal_json_response(models.CountedMasterWorkerEntry, http_res)
119
122
  if utils.match_response(http_res, "500", "application/json"):
120
123
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
121
124
  raise errors.Error(response_data, http_res)
@@ -141,7 +144,7 @@ class Nodes(BaseSDK):
141
144
  server_url: Optional[str] = None,
142
145
  timeout_ms: Optional[int] = None,
143
146
  http_headers: Optional[Mapping[str, str]] = None,
144
- ) -> models.ListMasterWorkerEntryResponse:
147
+ ) -> models.CountedMasterWorkerEntry:
145
148
  r"""Get detailed metadata for Worker and Edge Nodes
146
149
 
147
150
  Get detailed metadata for Worker and Edge Nodes.
@@ -189,16 +192,21 @@ class Nodes(BaseSDK):
189
192
  accept_header_value="application/json",
190
193
  http_headers=http_headers,
191
194
  security=self.sdk_configuration.security,
195
+ allow_empty_value=None,
192
196
  timeout_ms=timeout_ms,
193
197
  )
194
198
 
195
199
  if retries == UNSET:
196
200
  if self.sdk_configuration.retry_config is not UNSET:
197
201
  retries = self.sdk_configuration.retry_config
202
+ else:
203
+ retries = utils.RetryConfig(
204
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
205
+ )
198
206
 
199
207
  retry_config = None
200
208
  if isinstance(retries, utils.RetryConfig):
201
- retry_config = (retries, ["429", "500", "502", "503", "504"])
209
+ retry_config = (retries, ["429"])
202
210
 
203
211
  http_res = await self.do_request_async(
204
212
  hook_ctx=HookContext(
@@ -217,9 +225,7 @@ class Nodes(BaseSDK):
217
225
 
218
226
  response_data: Any = None
219
227
  if utils.match_response(http_res, "200", "application/json"):
220
- return unmarshal_json_response(
221
- models.ListMasterWorkerEntryResponse, http_res
222
- )
228
+ return unmarshal_json_response(models.CountedMasterWorkerEntry, http_res)
223
229
  if utils.match_response(http_res, "500", "application/json"):
224
230
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
225
231
  raise errors.Error(response_data, http_res)
@@ -240,7 +246,7 @@ class Nodes(BaseSDK):
240
246
  server_url: Optional[str] = None,
241
247
  timeout_ms: Optional[int] = None,
242
248
  http_headers: Optional[Mapping[str, str]] = None,
243
- ) -> models.GetMasterWorkerEntryResponse:
249
+ ) -> models.CountedNumber:
244
250
  r"""Get a count of Worker and Edge Nodes
245
251
 
246
252
  Get a count of all Worker and Edge Nodes.
@@ -278,16 +284,21 @@ class Nodes(BaseSDK):
278
284
  accept_header_value="application/json",
279
285
  http_headers=http_headers,
280
286
  security=self.sdk_configuration.security,
287
+ allow_empty_value=None,
281
288
  timeout_ms=timeout_ms,
282
289
  )
283
290
 
284
291
  if retries == UNSET:
285
292
  if self.sdk_configuration.retry_config is not UNSET:
286
293
  retries = self.sdk_configuration.retry_config
294
+ else:
295
+ retries = utils.RetryConfig(
296
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
297
+ )
287
298
 
288
299
  retry_config = None
289
300
  if isinstance(retries, utils.RetryConfig):
290
- retry_config = (retries, ["429", "500", "502", "503", "504"])
301
+ retry_config = (retries, ["429"])
291
302
 
292
303
  http_res = self.do_request(
293
304
  hook_ctx=HookContext(
@@ -306,9 +317,7 @@ class Nodes(BaseSDK):
306
317
 
307
318
  response_data: Any = None
308
319
  if utils.match_response(http_res, "200", "application/json"):
309
- return unmarshal_json_response(
310
- models.GetMasterWorkerEntryResponse, http_res
311
- )
320
+ return unmarshal_json_response(models.CountedNumber, http_res)
312
321
  if utils.match_response(http_res, "500", "application/json"):
313
322
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
314
323
  raise errors.Error(response_data, http_res)
@@ -329,7 +338,7 @@ class Nodes(BaseSDK):
329
338
  server_url: Optional[str] = None,
330
339
  timeout_ms: Optional[int] = None,
331
340
  http_headers: Optional[Mapping[str, str]] = None,
332
- ) -> models.GetMasterWorkerEntryResponse:
341
+ ) -> models.CountedNumber:
333
342
  r"""Get a count of Worker and Edge Nodes
334
343
 
335
344
  Get a count of all Worker and Edge Nodes.
@@ -367,16 +376,21 @@ class Nodes(BaseSDK):
367
376
  accept_header_value="application/json",
368
377
  http_headers=http_headers,
369
378
  security=self.sdk_configuration.security,
379
+ allow_empty_value=None,
370
380
  timeout_ms=timeout_ms,
371
381
  )
372
382
 
373
383
  if retries == UNSET:
374
384
  if self.sdk_configuration.retry_config is not UNSET:
375
385
  retries = self.sdk_configuration.retry_config
386
+ else:
387
+ retries = utils.RetryConfig(
388
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
389
+ )
376
390
 
377
391
  retry_config = None
378
392
  if isinstance(retries, utils.RetryConfig):
379
- retry_config = (retries, ["429", "500", "502", "503", "504"])
393
+ retry_config = (retries, ["429"])
380
394
 
381
395
  http_res = await self.do_request_async(
382
396
  hook_ctx=HookContext(
@@ -395,9 +409,7 @@ class Nodes(BaseSDK):
395
409
 
396
410
  response_data: Any = None
397
411
  if utils.match_response(http_res, "200", "application/json"):
398
- return unmarshal_json_response(
399
- models.GetMasterWorkerEntryResponse, http_res
400
- )
412
+ return unmarshal_json_response(models.CountedNumber, http_res)
401
413
  if utils.match_response(http_res, "500", "application/json"):
402
414
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
403
415
  raise errors.Error(response_data, http_res)
@@ -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.CreatePacksResponse:
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.
@@ -64,16 +64,21 @@ class Packs(BaseSDK):
64
64
  get_serialized_body=lambda: utils.serialize_request_body(
65
65
  request, False, False, "json", models.PackRequestBodyUnion
66
66
  ),
67
+ allow_empty_value=None,
67
68
  timeout_ms=timeout_ms,
68
69
  )
69
70
 
70
71
  if retries == UNSET:
71
72
  if self.sdk_configuration.retry_config is not UNSET:
72
73
  retries = self.sdk_configuration.retry_config
74
+ else:
75
+ retries = utils.RetryConfig(
76
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
77
+ )
73
78
 
74
79
  retry_config = None
75
80
  if isinstance(retries, utils.RetryConfig):
76
- retry_config = (retries, ["429", "500", "502", "503", "504"])
81
+ retry_config = (retries, ["429"])
77
82
 
78
83
  http_res = self.do_request(
79
84
  hook_ctx=HookContext(
@@ -92,7 +97,7 @@ class Packs(BaseSDK):
92
97
 
93
98
  response_data: Any = None
94
99
  if utils.match_response(http_res, "200", "application/json"):
95
- return unmarshal_json_response(models.CreatePacksResponse, http_res)
100
+ return unmarshal_json_response(models.CountedPackInstallInfo, http_res)
96
101
  if utils.match_response(http_res, "500", "application/json"):
97
102
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
98
103
  raise errors.Error(response_data, http_res)
@@ -115,7 +120,7 @@ class Packs(BaseSDK):
115
120
  server_url: Optional[str] = None,
116
121
  timeout_ms: Optional[int] = None,
117
122
  http_headers: Optional[Mapping[str, str]] = None,
118
- ) -> models.CreatePacksResponse:
123
+ ) -> models.CountedPackInstallInfo:
119
124
  r"""Install a Pack
120
125
 
121
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.
@@ -156,16 +161,21 @@ class Packs(BaseSDK):
156
161
  get_serialized_body=lambda: utils.serialize_request_body(
157
162
  request, False, False, "json", models.PackRequestBodyUnion
158
163
  ),
164
+ allow_empty_value=None,
159
165
  timeout_ms=timeout_ms,
160
166
  )
161
167
 
162
168
  if retries == UNSET:
163
169
  if self.sdk_configuration.retry_config is not UNSET:
164
170
  retries = self.sdk_configuration.retry_config
171
+ else:
172
+ retries = utils.RetryConfig(
173
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
174
+ )
165
175
 
166
176
  retry_config = None
167
177
  if isinstance(retries, utils.RetryConfig):
168
- retry_config = (retries, ["429", "500", "502", "503", "504"])
178
+ retry_config = (retries, ["429"])
169
179
 
170
180
  http_res = await self.do_request_async(
171
181
  hook_ctx=HookContext(
@@ -184,7 +194,7 @@ class Packs(BaseSDK):
184
194
 
185
195
  response_data: Any = None
186
196
  if utils.match_response(http_res, "200", "application/json"):
187
- return unmarshal_json_response(models.CreatePacksResponse, http_res)
197
+ return unmarshal_json_response(models.CountedPackInstallInfo, http_res)
188
198
  if utils.match_response(http_res, "500", "application/json"):
189
199
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
190
200
  raise errors.Error(response_data, http_res)
@@ -205,7 +215,7 @@ class Packs(BaseSDK):
205
215
  server_url: Optional[str] = None,
206
216
  timeout_ms: Optional[int] = None,
207
217
  http_headers: Optional[Mapping[str, str]] = None,
208
- ) -> models.GetPacksResponse:
218
+ ) -> models.CountedPackInfo:
209
219
  r"""List all Packs
210
220
 
211
221
  Get a list of all Packs.
@@ -243,16 +253,21 @@ class Packs(BaseSDK):
243
253
  accept_header_value="application/json",
244
254
  http_headers=http_headers,
245
255
  security=self.sdk_configuration.security,
256
+ allow_empty_value=None,
246
257
  timeout_ms=timeout_ms,
247
258
  )
248
259
 
249
260
  if retries == UNSET:
250
261
  if self.sdk_configuration.retry_config is not UNSET:
251
262
  retries = self.sdk_configuration.retry_config
263
+ else:
264
+ retries = utils.RetryConfig(
265
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
266
+ )
252
267
 
253
268
  retry_config = None
254
269
  if isinstance(retries, utils.RetryConfig):
255
- retry_config = (retries, ["429", "500", "502", "503", "504"])
270
+ retry_config = (retries, ["429"])
256
271
 
257
272
  http_res = self.do_request(
258
273
  hook_ctx=HookContext(
@@ -271,7 +286,7 @@ class Packs(BaseSDK):
271
286
 
272
287
  response_data: Any = None
273
288
  if utils.match_response(http_res, "200", "application/json"):
274
- return unmarshal_json_response(models.GetPacksResponse, http_res)
289
+ return unmarshal_json_response(models.CountedPackInfo, http_res)
275
290
  if utils.match_response(http_res, "500", "application/json"):
276
291
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
277
292
  raise errors.Error(response_data, http_res)
@@ -292,7 +307,7 @@ class Packs(BaseSDK):
292
307
  server_url: Optional[str] = None,
293
308
  timeout_ms: Optional[int] = None,
294
309
  http_headers: Optional[Mapping[str, str]] = None,
295
- ) -> models.GetPacksResponse:
310
+ ) -> models.CountedPackInfo:
296
311
  r"""List all Packs
297
312
 
298
313
  Get a list of all Packs.
@@ -330,16 +345,21 @@ class Packs(BaseSDK):
330
345
  accept_header_value="application/json",
331
346
  http_headers=http_headers,
332
347
  security=self.sdk_configuration.security,
348
+ allow_empty_value=None,
333
349
  timeout_ms=timeout_ms,
334
350
  )
335
351
 
336
352
  if retries == UNSET:
337
353
  if self.sdk_configuration.retry_config is not UNSET:
338
354
  retries = self.sdk_configuration.retry_config
355
+ else:
356
+ retries = utils.RetryConfig(
357
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
358
+ )
339
359
 
340
360
  retry_config = None
341
361
  if isinstance(retries, utils.RetryConfig):
342
- retry_config = (retries, ["429", "500", "502", "503", "504"])
362
+ retry_config = (retries, ["429"])
343
363
 
344
364
  http_res = await self.do_request_async(
345
365
  hook_ctx=HookContext(
@@ -358,7 +378,7 @@ class Packs(BaseSDK):
358
378
 
359
379
  response_data: Any = None
360
380
  if utils.match_response(http_res, "200", "application/json"):
361
- return unmarshal_json_response(models.GetPacksResponse, http_res)
381
+ return unmarshal_json_response(models.CountedPackInfo, http_res)
362
382
  if utils.match_response(http_res, "500", "application/json"):
363
383
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
364
384
  raise errors.Error(response_data, http_res)
@@ -427,16 +447,21 @@ class Packs(BaseSDK):
427
447
  "raw",
428
448
  Union[bytes, IO[bytes], io.BufferedReader],
429
449
  ),
450
+ allow_empty_value=None,
430
451
  timeout_ms=timeout_ms,
431
452
  )
432
453
 
433
454
  if retries == UNSET:
434
455
  if self.sdk_configuration.retry_config is not UNSET:
435
456
  retries = self.sdk_configuration.retry_config
457
+ else:
458
+ retries = utils.RetryConfig(
459
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
460
+ )
436
461
 
437
462
  retry_config = None
438
463
  if isinstance(retries, utils.RetryConfig):
439
- retry_config = (retries, ["429", "500", "502", "503", "504"])
464
+ retry_config = (retries, ["429"])
440
465
 
441
466
  http_res = self.do_request(
442
467
  hook_ctx=HookContext(
@@ -524,16 +549,21 @@ class Packs(BaseSDK):
524
549
  "raw",
525
550
  Union[bytes, IO[bytes], io.BufferedReader],
526
551
  ),
552
+ allow_empty_value=None,
527
553
  timeout_ms=timeout_ms,
528
554
  )
529
555
 
530
556
  if retries == UNSET:
531
557
  if self.sdk_configuration.retry_config is not UNSET:
532
558
  retries = self.sdk_configuration.retry_config
559
+ else:
560
+ retries = utils.RetryConfig(
561
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
562
+ )
533
563
 
534
564
  retry_config = None
535
565
  if isinstance(retries, utils.RetryConfig):
536
- retry_config = (retries, ["429", "500", "502", "503", "504"])
566
+ retry_config = (retries, ["429"])
537
567
 
538
568
  http_res = await self.do_request_async(
539
569
  hook_ctx=HookContext(
@@ -573,7 +603,7 @@ class Packs(BaseSDK):
573
603
  server_url: Optional[str] = None,
574
604
  timeout_ms: Optional[int] = None,
575
605
  http_headers: Optional[Mapping[str, str]] = None,
576
- ) -> models.DeletePacksByIDResponse:
606
+ ) -> models.CountedPackInstallInfo:
577
607
  r"""Uninstall a Pack
578
608
 
579
609
  Uninstall the specified Pack.
@@ -611,16 +641,21 @@ class Packs(BaseSDK):
611
641
  accept_header_value="application/json",
612
642
  http_headers=http_headers,
613
643
  security=self.sdk_configuration.security,
644
+ allow_empty_value=None,
614
645
  timeout_ms=timeout_ms,
615
646
  )
616
647
 
617
648
  if retries == UNSET:
618
649
  if self.sdk_configuration.retry_config is not UNSET:
619
650
  retries = self.sdk_configuration.retry_config
651
+ else:
652
+ retries = utils.RetryConfig(
653
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
654
+ )
620
655
 
621
656
  retry_config = None
622
657
  if isinstance(retries, utils.RetryConfig):
623
- retry_config = (retries, ["429", "500", "502", "503", "504"])
658
+ retry_config = (retries, ["429"])
624
659
 
625
660
  http_res = self.do_request(
626
661
  hook_ctx=HookContext(
@@ -639,7 +674,7 @@ class Packs(BaseSDK):
639
674
 
640
675
  response_data: Any = None
641
676
  if utils.match_response(http_res, "200", "application/json"):
642
- return unmarshal_json_response(models.DeletePacksByIDResponse, http_res)
677
+ return unmarshal_json_response(models.CountedPackInstallInfo, http_res)
643
678
  if utils.match_response(http_res, "500", "application/json"):
644
679
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
645
680
  raise errors.Error(response_data, http_res)
@@ -660,7 +695,7 @@ class Packs(BaseSDK):
660
695
  server_url: Optional[str] = None,
661
696
  timeout_ms: Optional[int] = None,
662
697
  http_headers: Optional[Mapping[str, str]] = None,
663
- ) -> models.DeletePacksByIDResponse:
698
+ ) -> models.CountedPackInstallInfo:
664
699
  r"""Uninstall a Pack
665
700
 
666
701
  Uninstall the specified Pack.
@@ -698,16 +733,21 @@ class Packs(BaseSDK):
698
733
  accept_header_value="application/json",
699
734
  http_headers=http_headers,
700
735
  security=self.sdk_configuration.security,
736
+ allow_empty_value=None,
701
737
  timeout_ms=timeout_ms,
702
738
  )
703
739
 
704
740
  if retries == UNSET:
705
741
  if self.sdk_configuration.retry_config is not UNSET:
706
742
  retries = self.sdk_configuration.retry_config
743
+ else:
744
+ retries = utils.RetryConfig(
745
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
746
+ )
707
747
 
708
748
  retry_config = None
709
749
  if isinstance(retries, utils.RetryConfig):
710
- retry_config = (retries, ["429", "500", "502", "503", "504"])
750
+ retry_config = (retries, ["429"])
711
751
 
712
752
  http_res = await self.do_request_async(
713
753
  hook_ctx=HookContext(
@@ -726,7 +766,7 @@ class Packs(BaseSDK):
726
766
 
727
767
  response_data: Any = None
728
768
  if utils.match_response(http_res, "200", "application/json"):
729
- return unmarshal_json_response(models.DeletePacksByIDResponse, http_res)
769
+ return unmarshal_json_response(models.CountedPackInstallInfo, http_res)
730
770
  if utils.match_response(http_res, "500", "application/json"):
731
771
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
732
772
  raise errors.Error(response_data, http_res)
@@ -747,7 +787,7 @@ class Packs(BaseSDK):
747
787
  server_url: Optional[str] = None,
748
788
  timeout_ms: Optional[int] = None,
749
789
  http_headers: Optional[Mapping[str, str]] = None,
750
- ) -> models.GetPacksByIDResponse:
790
+ ) -> models.CountedPackInfo:
751
791
  r"""Get a Pack
752
792
 
753
793
  Get the specified Pack.
@@ -785,16 +825,21 @@ class Packs(BaseSDK):
785
825
  accept_header_value="application/json",
786
826
  http_headers=http_headers,
787
827
  security=self.sdk_configuration.security,
828
+ allow_empty_value=None,
788
829
  timeout_ms=timeout_ms,
789
830
  )
790
831
 
791
832
  if retries == UNSET:
792
833
  if self.sdk_configuration.retry_config is not UNSET:
793
834
  retries = self.sdk_configuration.retry_config
835
+ else:
836
+ retries = utils.RetryConfig(
837
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
838
+ )
794
839
 
795
840
  retry_config = None
796
841
  if isinstance(retries, utils.RetryConfig):
797
- retry_config = (retries, ["429", "500", "502", "503", "504"])
842
+ retry_config = (retries, ["429"])
798
843
 
799
844
  http_res = self.do_request(
800
845
  hook_ctx=HookContext(
@@ -813,7 +858,7 @@ class Packs(BaseSDK):
813
858
 
814
859
  response_data: Any = None
815
860
  if utils.match_response(http_res, "200", "application/json"):
816
- return unmarshal_json_response(models.GetPacksByIDResponse, http_res)
861
+ return unmarshal_json_response(models.CountedPackInfo, http_res)
817
862
  if utils.match_response(http_res, "500", "application/json"):
818
863
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
819
864
  raise errors.Error(response_data, http_res)
@@ -834,7 +879,7 @@ class Packs(BaseSDK):
834
879
  server_url: Optional[str] = None,
835
880
  timeout_ms: Optional[int] = None,
836
881
  http_headers: Optional[Mapping[str, str]] = None,
837
- ) -> models.GetPacksByIDResponse:
882
+ ) -> models.CountedPackInfo:
838
883
  r"""Get a Pack
839
884
 
840
885
  Get the specified Pack.
@@ -872,16 +917,21 @@ class Packs(BaseSDK):
872
917
  accept_header_value="application/json",
873
918
  http_headers=http_headers,
874
919
  security=self.sdk_configuration.security,
920
+ allow_empty_value=None,
875
921
  timeout_ms=timeout_ms,
876
922
  )
877
923
 
878
924
  if retries == UNSET:
879
925
  if self.sdk_configuration.retry_config is not UNSET:
880
926
  retries = self.sdk_configuration.retry_config
927
+ else:
928
+ retries = utils.RetryConfig(
929
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
930
+ )
881
931
 
882
932
  retry_config = None
883
933
  if isinstance(retries, utils.RetryConfig):
884
- retry_config = (retries, ["429", "500", "502", "503", "504"])
934
+ retry_config = (retries, ["429"])
885
935
 
886
936
  http_res = await self.do_request_async(
887
937
  hook_ctx=HookContext(
@@ -900,7 +950,7 @@ class Packs(BaseSDK):
900
950
 
901
951
  response_data: Any = None
902
952
  if utils.match_response(http_res, "200", "application/json"):
903
- return unmarshal_json_response(models.GetPacksByIDResponse, http_res)
953
+ return unmarshal_json_response(models.CountedPackInfo, http_res)
904
954
  if utils.match_response(http_res, "500", "application/json"):
905
955
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
906
956
  raise errors.Error(response_data, http_res)
@@ -925,7 +975,7 @@ class Packs(BaseSDK):
925
975
  server_url: Optional[str] = None,
926
976
  timeout_ms: Optional[int] = None,
927
977
  http_headers: Optional[Mapping[str, str]] = None,
928
- ) -> models.UpdatePacksByIDResponse:
978
+ ) -> models.CountedPackInfo:
929
979
  r"""Upgrade a Pack
930
980
 
931
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.
@@ -980,16 +1030,21 @@ class Packs(BaseSDK):
980
1030
  "json",
981
1031
  models.PackUpgradeRequest,
982
1032
  ),
1033
+ allow_empty_value=None,
983
1034
  timeout_ms=timeout_ms,
984
1035
  )
985
1036
 
986
1037
  if retries == UNSET:
987
1038
  if self.sdk_configuration.retry_config is not UNSET:
988
1039
  retries = self.sdk_configuration.retry_config
1040
+ else:
1041
+ retries = utils.RetryConfig(
1042
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
1043
+ )
989
1044
 
990
1045
  retry_config = None
991
1046
  if isinstance(retries, utils.RetryConfig):
992
- retry_config = (retries, ["429", "500", "502", "503", "504"])
1047
+ retry_config = (retries, ["429"])
993
1048
 
994
1049
  http_res = self.do_request(
995
1050
  hook_ctx=HookContext(
@@ -1008,7 +1063,7 @@ class Packs(BaseSDK):
1008
1063
 
1009
1064
  response_data: Any = None
1010
1065
  if utils.match_response(http_res, "200", "application/json"):
1011
- return unmarshal_json_response(models.UpdatePacksByIDResponse, http_res)
1066
+ return unmarshal_json_response(models.CountedPackInfo, http_res)
1012
1067
  if utils.match_response(http_res, "500", "application/json"):
1013
1068
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
1014
1069
  raise errors.Error(response_data, http_res)
@@ -1033,7 +1088,7 @@ class Packs(BaseSDK):
1033
1088
  server_url: Optional[str] = None,
1034
1089
  timeout_ms: Optional[int] = None,
1035
1090
  http_headers: Optional[Mapping[str, str]] = None,
1036
- ) -> models.UpdatePacksByIDResponse:
1091
+ ) -> models.CountedPackInfo:
1037
1092
  r"""Upgrade a Pack
1038
1093
 
1039
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.
@@ -1088,16 +1143,21 @@ class Packs(BaseSDK):
1088
1143
  "json",
1089
1144
  models.PackUpgradeRequest,
1090
1145
  ),
1146
+ allow_empty_value=None,
1091
1147
  timeout_ms=timeout_ms,
1092
1148
  )
1093
1149
 
1094
1150
  if retries == UNSET:
1095
1151
  if self.sdk_configuration.retry_config is not UNSET:
1096
1152
  retries = self.sdk_configuration.retry_config
1153
+ else:
1154
+ retries = utils.RetryConfig(
1155
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
1156
+ )
1097
1157
 
1098
1158
  retry_config = None
1099
1159
  if isinstance(retries, utils.RetryConfig):
1100
- retry_config = (retries, ["429", "500", "502", "503", "504"])
1160
+ retry_config = (retries, ["429"])
1101
1161
 
1102
1162
  http_res = await self.do_request_async(
1103
1163
  hook_ctx=HookContext(
@@ -1116,7 +1176,7 @@ class Packs(BaseSDK):
1116
1176
 
1117
1177
  response_data: Any = None
1118
1178
  if utils.match_response(http_res, "200", "application/json"):
1119
- return unmarshal_json_response(models.UpdatePacksByIDResponse, http_res)
1179
+ return unmarshal_json_response(models.CountedPackInfo, http_res)
1120
1180
  if utils.match_response(http_res, "500", "application/json"):
1121
1181
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
1122
1182
  raise errors.Error(response_data, http_res)