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.

Files changed (137) hide show
  1. cribl_control_plane/_version.py +4 -4
  2. cribl_control_plane/acl.py +14 -6
  3. cribl_control_plane/branches.py +24 -8
  4. cribl_control_plane/commits.py +98 -42
  5. cribl_control_plane/commits_files.py +28 -12
  6. cribl_control_plane/configs_versions.py +14 -10
  7. cribl_control_plane/destinations.py +70 -30
  8. cribl_control_plane/destinations_pq.py +28 -12
  9. cribl_control_plane/groups_sdk.py +84 -60
  10. cribl_control_plane/health.py +10 -2
  11. cribl_control_plane/hectokens.py +28 -32
  12. cribl_control_plane/lakedatasets.py +70 -86
  13. cribl_control_plane/models/__init__.py +266 -438
  14. cribl_control_plane/models/addhectokenrequest.py +1 -7
  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 +2 -79
  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/outputnetflow.py +0 -7
  107. cribl_control_plane/models/outputsplunklb.py +10 -0
  108. cribl_control_plane/models/runnablejobcollection.py +0 -56
  109. cribl_control_plane/models/runnablejobexecutor.py +0 -28
  110. cribl_control_plane/models/runnablejobscheduledsearch.py +0 -28
  111. cribl_control_plane/models/updateconfiggroupbyproductandidop.py +1 -19
  112. cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +1 -20
  113. cribl_control_plane/models/updatecribllakedatasetbylakeidandidop.py +1 -20
  114. cribl_control_plane/models/updatehectokenrequest.py +1 -7
  115. cribl_control_plane/models/updateinputbyidop.py +1 -19
  116. cribl_control_plane/models/updateinputhectokenbyidandtokenop.py +1 -20
  117. cribl_control_plane/models/updateoutputbyidop.py +1 -19
  118. cribl_control_plane/models/updatepacksbyidop.py +1 -20
  119. cribl_control_plane/models/updatepipelinebyidop.py +1 -19
  120. cribl_control_plane/models/updateroutesbyidop.py +1 -19
  121. cribl_control_plane/nodes.py +28 -20
  122. cribl_control_plane/packs.py +80 -32
  123. cribl_control_plane/pipelines.py +70 -30
  124. cribl_control_plane/routes_sdk.py +56 -28
  125. cribl_control_plane/samples.py +28 -16
  126. cribl_control_plane/sources.py +70 -30
  127. cribl_control_plane/statuses.py +14 -6
  128. cribl_control_plane/summaries.py +14 -6
  129. cribl_control_plane/teams.py +14 -6
  130. cribl_control_plane/tokens.py +26 -8
  131. cribl_control_plane/versions_configs.py +14 -6
  132. {cribl_control_plane-0.4.0a12.dist-info → cribl_control_plane-0.4.0b12.dist-info}/METADATA +23 -23
  133. {cribl_control_plane-0.4.0a12.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.0a12.dist-info → cribl_control_plane-0.4.0b12.dist-info}/WHEEL +0 -0
  137. {cribl_control_plane-0.4.0a12.dist-info → cribl_control_plane-0.4.0b12.dist-info}/licenses/LICENSE +0 -0
@@ -19,7 +19,7 @@ class CommitsFiles(BaseSDK):
19
19
  server_url: Optional[str] = None,
20
20
  timeout_ms: Optional[int] = None,
21
21
  http_headers: Optional[Mapping[str, str]] = None,
22
- ) -> models.GetVersionCountResponse:
22
+ ) -> models.CountedGitCountResult:
23
23
  r"""Get a count of files that changed since a commit
24
24
 
25
25
  Get a count of the files that changed since a commit. Default is the latest commit (HEAD).
@@ -66,10 +66,14 @@ class CommitsFiles(BaseSDK):
66
66
  if retries == UNSET:
67
67
  if self.sdk_configuration.retry_config is not UNSET:
68
68
  retries = self.sdk_configuration.retry_config
69
+ else:
70
+ retries = utils.RetryConfig(
71
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
72
+ )
69
73
 
70
74
  retry_config = None
71
75
  if isinstance(retries, utils.RetryConfig):
72
- retry_config = (retries, ["429", "500", "502", "503", "504"])
76
+ retry_config = (retries, ["429"])
73
77
 
74
78
  http_res = self.do_request(
75
79
  hook_ctx=HookContext(
@@ -88,7 +92,7 @@ class CommitsFiles(BaseSDK):
88
92
 
89
93
  response_data: Any = None
90
94
  if utils.match_response(http_res, "200", "application/json"):
91
- return unmarshal_json_response(models.GetVersionCountResponse, http_res)
95
+ return unmarshal_json_response(models.CountedGitCountResult, http_res)
92
96
  if utils.match_response(http_res, "500", "application/json"):
93
97
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
94
98
  raise errors.Error(response_data, http_res)
@@ -110,7 +114,7 @@ class CommitsFiles(BaseSDK):
110
114
  server_url: Optional[str] = None,
111
115
  timeout_ms: Optional[int] = None,
112
116
  http_headers: Optional[Mapping[str, str]] = None,
113
- ) -> models.GetVersionCountResponse:
117
+ ) -> models.CountedGitCountResult:
114
118
  r"""Get a count of files that changed since a commit
115
119
 
116
120
  Get a count of the files that changed since a commit. Default is the latest commit (HEAD).
@@ -157,10 +161,14 @@ class CommitsFiles(BaseSDK):
157
161
  if retries == UNSET:
158
162
  if self.sdk_configuration.retry_config is not UNSET:
159
163
  retries = self.sdk_configuration.retry_config
164
+ else:
165
+ retries = utils.RetryConfig(
166
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
167
+ )
160
168
 
161
169
  retry_config = None
162
170
  if isinstance(retries, utils.RetryConfig):
163
- retry_config = (retries, ["429", "500", "502", "503", "504"])
171
+ retry_config = (retries, ["429"])
164
172
 
165
173
  http_res = await self.do_request_async(
166
174
  hook_ctx=HookContext(
@@ -179,7 +187,7 @@ class CommitsFiles(BaseSDK):
179
187
 
180
188
  response_data: Any = None
181
189
  if utils.match_response(http_res, "200", "application/json"):
182
- return unmarshal_json_response(models.GetVersionCountResponse, http_res)
190
+ return unmarshal_json_response(models.CountedGitCountResult, http_res)
183
191
  if utils.match_response(http_res, "500", "application/json"):
184
192
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
185
193
  raise errors.Error(response_data, http_res)
@@ -201,7 +209,7 @@ class CommitsFiles(BaseSDK):
201
209
  server_url: Optional[str] = None,
202
210
  timeout_ms: Optional[int] = None,
203
211
  http_headers: Optional[Mapping[str, str]] = None,
204
- ) -> models.GetVersionFilesResponse:
212
+ ) -> models.CountedGitFilesResponse:
205
213
  r"""Get the names and statuses of files that changed since a commit
206
214
 
207
215
  Get the names and statuses of files that changed since a commit. Default is the latest commit (HEAD).
@@ -248,10 +256,14 @@ class CommitsFiles(BaseSDK):
248
256
  if retries == UNSET:
249
257
  if self.sdk_configuration.retry_config is not UNSET:
250
258
  retries = self.sdk_configuration.retry_config
259
+ else:
260
+ retries = utils.RetryConfig(
261
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
262
+ )
251
263
 
252
264
  retry_config = None
253
265
  if isinstance(retries, utils.RetryConfig):
254
- retry_config = (retries, ["429", "500", "502", "503", "504"])
266
+ retry_config = (retries, ["429"])
255
267
 
256
268
  http_res = self.do_request(
257
269
  hook_ctx=HookContext(
@@ -270,7 +282,7 @@ class CommitsFiles(BaseSDK):
270
282
 
271
283
  response_data: Any = None
272
284
  if utils.match_response(http_res, "200", "application/json"):
273
- return unmarshal_json_response(models.GetVersionFilesResponse, http_res)
285
+ return unmarshal_json_response(models.CountedGitFilesResponse, http_res)
274
286
  if utils.match_response(http_res, "500", "application/json"):
275
287
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
276
288
  raise errors.Error(response_data, http_res)
@@ -292,7 +304,7 @@ class CommitsFiles(BaseSDK):
292
304
  server_url: Optional[str] = None,
293
305
  timeout_ms: Optional[int] = None,
294
306
  http_headers: Optional[Mapping[str, str]] = None,
295
- ) -> models.GetVersionFilesResponse:
307
+ ) -> models.CountedGitFilesResponse:
296
308
  r"""Get the names and statuses of files that changed since a commit
297
309
 
298
310
  Get the names and statuses of files that changed since a commit. Default is the latest commit (HEAD).
@@ -339,10 +351,14 @@ class CommitsFiles(BaseSDK):
339
351
  if retries == UNSET:
340
352
  if self.sdk_configuration.retry_config is not UNSET:
341
353
  retries = self.sdk_configuration.retry_config
354
+ else:
355
+ retries = utils.RetryConfig(
356
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
357
+ )
342
358
 
343
359
  retry_config = None
344
360
  if isinstance(retries, utils.RetryConfig):
345
- retry_config = (retries, ["429", "500", "502", "503", "504"])
361
+ retry_config = (retries, ["429"])
346
362
 
347
363
  http_res = await self.do_request_async(
348
364
  hook_ctx=HookContext(
@@ -361,7 +377,7 @@ class CommitsFiles(BaseSDK):
361
377
 
362
378
  response_data: Any = None
363
379
  if utils.match_response(http_res, "200", "application/json"):
364
- return unmarshal_json_response(models.GetVersionFilesResponse, http_res)
380
+ return unmarshal_json_response(models.CountedGitFilesResponse, http_res)
365
381
  if utils.match_response(http_res, "500", "application/json"):
366
382
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
367
383
  raise errors.Error(response_data, http_res)
@@ -19,7 +19,7 @@ class ConfigsVersions(BaseSDK):
19
19
  server_url: Optional[str] = None,
20
20
  timeout_ms: Optional[int] = None,
21
21
  http_headers: Optional[Mapping[str, str]] = None,
22
- ) -> models.GetConfigGroupConfigVersionByProductAndIDResponse:
22
+ ) -> models.CountedString:
23
23
  r"""Get the configuration version for a Worker Group or Edge Fleet
24
24
 
25
25
  Get the configuration version for the specified Worker Group or Edge Fleet.
@@ -66,10 +66,14 @@ class ConfigsVersions(BaseSDK):
66
66
  if retries == UNSET:
67
67
  if self.sdk_configuration.retry_config is not UNSET:
68
68
  retries = self.sdk_configuration.retry_config
69
+ else:
70
+ retries = utils.RetryConfig(
71
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
72
+ )
69
73
 
70
74
  retry_config = None
71
75
  if isinstance(retries, utils.RetryConfig):
72
- retry_config = (retries, ["429", "500", "502", "503", "504"])
76
+ retry_config = (retries, ["429"])
73
77
 
74
78
  http_res = self.do_request(
75
79
  hook_ctx=HookContext(
@@ -88,9 +92,7 @@ class ConfigsVersions(BaseSDK):
88
92
 
89
93
  response_data: Any = None
90
94
  if utils.match_response(http_res, "200", "application/json"):
91
- return unmarshal_json_response(
92
- models.GetConfigGroupConfigVersionByProductAndIDResponse, http_res
93
- )
95
+ return unmarshal_json_response(models.CountedString, http_res)
94
96
  if utils.match_response(http_res, "500", "application/json"):
95
97
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
96
98
  raise errors.Error(response_data, http_res)
@@ -112,7 +114,7 @@ class ConfigsVersions(BaseSDK):
112
114
  server_url: Optional[str] = None,
113
115
  timeout_ms: Optional[int] = None,
114
116
  http_headers: Optional[Mapping[str, str]] = None,
115
- ) -> models.GetConfigGroupConfigVersionByProductAndIDResponse:
117
+ ) -> models.CountedString:
116
118
  r"""Get the configuration version for a Worker Group or Edge Fleet
117
119
 
118
120
  Get the configuration version for the specified Worker Group or Edge Fleet.
@@ -159,10 +161,14 @@ class ConfigsVersions(BaseSDK):
159
161
  if retries == UNSET:
160
162
  if self.sdk_configuration.retry_config is not UNSET:
161
163
  retries = self.sdk_configuration.retry_config
164
+ else:
165
+ retries = utils.RetryConfig(
166
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
167
+ )
162
168
 
163
169
  retry_config = None
164
170
  if isinstance(retries, utils.RetryConfig):
165
- retry_config = (retries, ["429", "500", "502", "503", "504"])
171
+ retry_config = (retries, ["429"])
166
172
 
167
173
  http_res = await self.do_request_async(
168
174
  hook_ctx=HookContext(
@@ -181,9 +187,7 @@ class ConfigsVersions(BaseSDK):
181
187
 
182
188
  response_data: Any = None
183
189
  if utils.match_response(http_res, "200", "application/json"):
184
- return unmarshal_json_response(
185
- models.GetConfigGroupConfigVersionByProductAndIDResponse, http_res
186
- )
190
+ return unmarshal_json_response(models.CountedString, http_res)
187
191
  if utils.match_response(http_res, "500", "application/json"):
188
192
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
189
193
  raise errors.Error(response_data, http_res)
@@ -36,7 +36,7 @@ class Destinations(BaseSDK):
36
36
  server_url: Optional[str] = None,
37
37
  timeout_ms: Optional[int] = None,
38
38
  http_headers: Optional[Mapping[str, str]] = None,
39
- ) -> models.ListOutputResponse:
39
+ ) -> models.CountedOutput:
40
40
  r"""List all Destinations
41
41
 
42
42
  Get a list of all Destinations.
@@ -75,10 +75,14 @@ class Destinations(BaseSDK):
75
75
  if retries == UNSET:
76
76
  if self.sdk_configuration.retry_config is not UNSET:
77
77
  retries = self.sdk_configuration.retry_config
78
+ else:
79
+ retries = utils.RetryConfig(
80
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
81
+ )
78
82
 
79
83
  retry_config = None
80
84
  if isinstance(retries, utils.RetryConfig):
81
- retry_config = (retries, ["429", "500", "502", "503", "504"])
85
+ retry_config = (retries, ["429"])
82
86
 
83
87
  http_res = self.do_request(
84
88
  hook_ctx=HookContext(
@@ -97,7 +101,7 @@ class Destinations(BaseSDK):
97
101
 
98
102
  response_data: Any = None
99
103
  if utils.match_response(http_res, "200", "application/json"):
100
- return unmarshal_json_response(models.ListOutputResponse, http_res)
104
+ return unmarshal_json_response(models.CountedOutput, http_res)
101
105
  if utils.match_response(http_res, "500", "application/json"):
102
106
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
103
107
  raise errors.Error(response_data, http_res)
@@ -117,7 +121,7 @@ class Destinations(BaseSDK):
117
121
  server_url: Optional[str] = None,
118
122
  timeout_ms: Optional[int] = None,
119
123
  http_headers: Optional[Mapping[str, str]] = None,
120
- ) -> models.ListOutputResponse:
124
+ ) -> models.CountedOutput:
121
125
  r"""List all Destinations
122
126
 
123
127
  Get a list of all Destinations.
@@ -156,10 +160,14 @@ class Destinations(BaseSDK):
156
160
  if retries == UNSET:
157
161
  if self.sdk_configuration.retry_config is not UNSET:
158
162
  retries = self.sdk_configuration.retry_config
163
+ else:
164
+ retries = utils.RetryConfig(
165
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
166
+ )
159
167
 
160
168
  retry_config = None
161
169
  if isinstance(retries, utils.RetryConfig):
162
- retry_config = (retries, ["429", "500", "502", "503", "504"])
170
+ retry_config = (retries, ["429"])
163
171
 
164
172
  http_res = await self.do_request_async(
165
173
  hook_ctx=HookContext(
@@ -178,7 +186,7 @@ class Destinations(BaseSDK):
178
186
 
179
187
  response_data: Any = None
180
188
  if utils.match_response(http_res, "200", "application/json"):
181
- return unmarshal_json_response(models.ListOutputResponse, http_res)
189
+ return unmarshal_json_response(models.CountedOutput, http_res)
182
190
  if utils.match_response(http_res, "500", "application/json"):
183
191
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
184
192
  raise errors.Error(response_data, http_res)
@@ -199,7 +207,7 @@ class Destinations(BaseSDK):
199
207
  server_url: Optional[str] = None,
200
208
  timeout_ms: Optional[int] = None,
201
209
  http_headers: Optional[Mapping[str, str]] = None,
202
- ) -> models.CreateOutputResponse:
210
+ ) -> models.CountedOutput:
203
211
  r"""Create a Destination
204
212
 
205
213
  Create a new Destination.
@@ -247,10 +255,14 @@ class Destinations(BaseSDK):
247
255
  if retries == UNSET:
248
256
  if self.sdk_configuration.retry_config is not UNSET:
249
257
  retries = self.sdk_configuration.retry_config
258
+ else:
259
+ retries = utils.RetryConfig(
260
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
261
+ )
250
262
 
251
263
  retry_config = None
252
264
  if isinstance(retries, utils.RetryConfig):
253
- retry_config = (retries, ["429", "500", "502", "503", "504"])
265
+ retry_config = (retries, ["429"])
254
266
 
255
267
  http_res = self.do_request(
256
268
  hook_ctx=HookContext(
@@ -269,7 +281,7 @@ class Destinations(BaseSDK):
269
281
 
270
282
  response_data: Any = None
271
283
  if utils.match_response(http_res, "200", "application/json"):
272
- return unmarshal_json_response(models.CreateOutputResponse, http_res)
284
+ return unmarshal_json_response(models.CountedOutput, http_res)
273
285
  if utils.match_response(http_res, "500", "application/json"):
274
286
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
275
287
  raise errors.Error(response_data, http_res)
@@ -290,7 +302,7 @@ class Destinations(BaseSDK):
290
302
  server_url: Optional[str] = None,
291
303
  timeout_ms: Optional[int] = None,
292
304
  http_headers: Optional[Mapping[str, str]] = None,
293
- ) -> models.CreateOutputResponse:
305
+ ) -> models.CountedOutput:
294
306
  r"""Create a Destination
295
307
 
296
308
  Create a new Destination.
@@ -338,10 +350,14 @@ class Destinations(BaseSDK):
338
350
  if retries == UNSET:
339
351
  if self.sdk_configuration.retry_config is not UNSET:
340
352
  retries = self.sdk_configuration.retry_config
353
+ else:
354
+ retries = utils.RetryConfig(
355
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
356
+ )
341
357
 
342
358
  retry_config = None
343
359
  if isinstance(retries, utils.RetryConfig):
344
- retry_config = (retries, ["429", "500", "502", "503", "504"])
360
+ retry_config = (retries, ["429"])
345
361
 
346
362
  http_res = await self.do_request_async(
347
363
  hook_ctx=HookContext(
@@ -360,7 +376,7 @@ class Destinations(BaseSDK):
360
376
 
361
377
  response_data: Any = None
362
378
  if utils.match_response(http_res, "200", "application/json"):
363
- return unmarshal_json_response(models.CreateOutputResponse, http_res)
379
+ return unmarshal_json_response(models.CountedOutput, http_res)
364
380
  if utils.match_response(http_res, "500", "application/json"):
365
381
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
366
382
  raise errors.Error(response_data, http_res)
@@ -381,7 +397,7 @@ class Destinations(BaseSDK):
381
397
  server_url: Optional[str] = None,
382
398
  timeout_ms: Optional[int] = None,
383
399
  http_headers: Optional[Mapping[str, str]] = None,
384
- ) -> models.GetOutputByIDResponse:
400
+ ) -> models.CountedOutput:
385
401
  r"""Get a Destination
386
402
 
387
403
  Get the specified Destination.
@@ -426,10 +442,14 @@ class Destinations(BaseSDK):
426
442
  if retries == UNSET:
427
443
  if self.sdk_configuration.retry_config is not UNSET:
428
444
  retries = self.sdk_configuration.retry_config
445
+ else:
446
+ retries = utils.RetryConfig(
447
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
448
+ )
429
449
 
430
450
  retry_config = None
431
451
  if isinstance(retries, utils.RetryConfig):
432
- retry_config = (retries, ["429", "500", "502", "503", "504"])
452
+ retry_config = (retries, ["429"])
433
453
 
434
454
  http_res = self.do_request(
435
455
  hook_ctx=HookContext(
@@ -448,7 +468,7 @@ class Destinations(BaseSDK):
448
468
 
449
469
  response_data: Any = None
450
470
  if utils.match_response(http_res, "200", "application/json"):
451
- return unmarshal_json_response(models.GetOutputByIDResponse, http_res)
471
+ return unmarshal_json_response(models.CountedOutput, http_res)
452
472
  if utils.match_response(http_res, "500", "application/json"):
453
473
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
454
474
  raise errors.Error(response_data, http_res)
@@ -469,7 +489,7 @@ class Destinations(BaseSDK):
469
489
  server_url: Optional[str] = None,
470
490
  timeout_ms: Optional[int] = None,
471
491
  http_headers: Optional[Mapping[str, str]] = None,
472
- ) -> models.GetOutputByIDResponse:
492
+ ) -> models.CountedOutput:
473
493
  r"""Get a Destination
474
494
 
475
495
  Get the specified Destination.
@@ -514,10 +534,14 @@ class Destinations(BaseSDK):
514
534
  if retries == UNSET:
515
535
  if self.sdk_configuration.retry_config is not UNSET:
516
536
  retries = self.sdk_configuration.retry_config
537
+ else:
538
+ retries = utils.RetryConfig(
539
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
540
+ )
517
541
 
518
542
  retry_config = None
519
543
  if isinstance(retries, utils.RetryConfig):
520
- retry_config = (retries, ["429", "500", "502", "503", "504"])
544
+ retry_config = (retries, ["429"])
521
545
 
522
546
  http_res = await self.do_request_async(
523
547
  hook_ctx=HookContext(
@@ -536,7 +560,7 @@ class Destinations(BaseSDK):
536
560
 
537
561
  response_data: Any = None
538
562
  if utils.match_response(http_res, "200", "application/json"):
539
- return unmarshal_json_response(models.GetOutputByIDResponse, http_res)
563
+ return unmarshal_json_response(models.CountedOutput, http_res)
540
564
  if utils.match_response(http_res, "500", "application/json"):
541
565
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
542
566
  raise errors.Error(response_data, http_res)
@@ -558,7 +582,7 @@ class Destinations(BaseSDK):
558
582
  server_url: Optional[str] = None,
559
583
  timeout_ms: Optional[int] = None,
560
584
  http_headers: Optional[Mapping[str, str]] = None,
561
- ) -> models.UpdateOutputByIDResponse:
585
+ ) -> models.CountedOutput:
562
586
  r"""Update a Destination
563
587
 
564
588
  Update the specified Destination.</br></br>Provide a complete representation of the Destination that you want to update in the request body. This endpoint does not support partial updates. Cribl removes any omitted fields when updating the Destination.</br></br>Confirm that the configuration in your request body is correct before sending the request. If the configuration is incorrect, the updated Destination might not function as expected.
@@ -608,10 +632,14 @@ class Destinations(BaseSDK):
608
632
  if retries == UNSET:
609
633
  if self.sdk_configuration.retry_config is not UNSET:
610
634
  retries = self.sdk_configuration.retry_config
635
+ else:
636
+ retries = utils.RetryConfig(
637
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
638
+ )
611
639
 
612
640
  retry_config = None
613
641
  if isinstance(retries, utils.RetryConfig):
614
- retry_config = (retries, ["429", "500", "502", "503", "504"])
642
+ retry_config = (retries, ["429"])
615
643
 
616
644
  http_res = self.do_request(
617
645
  hook_ctx=HookContext(
@@ -630,7 +658,7 @@ class Destinations(BaseSDK):
630
658
 
631
659
  response_data: Any = None
632
660
  if utils.match_response(http_res, "200", "application/json"):
633
- return unmarshal_json_response(models.UpdateOutputByIDResponse, http_res)
661
+ return unmarshal_json_response(models.CountedOutput, http_res)
634
662
  if utils.match_response(http_res, "500", "application/json"):
635
663
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
636
664
  raise errors.Error(response_data, http_res)
@@ -652,7 +680,7 @@ class Destinations(BaseSDK):
652
680
  server_url: Optional[str] = None,
653
681
  timeout_ms: Optional[int] = None,
654
682
  http_headers: Optional[Mapping[str, str]] = None,
655
- ) -> models.UpdateOutputByIDResponse:
683
+ ) -> models.CountedOutput:
656
684
  r"""Update a Destination
657
685
 
658
686
  Update the specified Destination.</br></br>Provide a complete representation of the Destination that you want to update in the request body. This endpoint does not support partial updates. Cribl removes any omitted fields when updating the Destination.</br></br>Confirm that the configuration in your request body is correct before sending the request. If the configuration is incorrect, the updated Destination might not function as expected.
@@ -702,10 +730,14 @@ class Destinations(BaseSDK):
702
730
  if retries == UNSET:
703
731
  if self.sdk_configuration.retry_config is not UNSET:
704
732
  retries = self.sdk_configuration.retry_config
733
+ else:
734
+ retries = utils.RetryConfig(
735
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
736
+ )
705
737
 
706
738
  retry_config = None
707
739
  if isinstance(retries, utils.RetryConfig):
708
- retry_config = (retries, ["429", "500", "502", "503", "504"])
740
+ retry_config = (retries, ["429"])
709
741
 
710
742
  http_res = await self.do_request_async(
711
743
  hook_ctx=HookContext(
@@ -724,7 +756,7 @@ class Destinations(BaseSDK):
724
756
 
725
757
  response_data: Any = None
726
758
  if utils.match_response(http_res, "200", "application/json"):
727
- return unmarshal_json_response(models.UpdateOutputByIDResponse, http_res)
759
+ return unmarshal_json_response(models.CountedOutput, http_res)
728
760
  if utils.match_response(http_res, "500", "application/json"):
729
761
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
730
762
  raise errors.Error(response_data, http_res)
@@ -745,7 +777,7 @@ class Destinations(BaseSDK):
745
777
  server_url: Optional[str] = None,
746
778
  timeout_ms: Optional[int] = None,
747
779
  http_headers: Optional[Mapping[str, str]] = None,
748
- ) -> models.DeleteOutputByIDResponse:
780
+ ) -> models.CountedOutput:
749
781
  r"""Delete a Destination
750
782
 
751
783
  Delete the specified Destination.
@@ -790,10 +822,14 @@ class Destinations(BaseSDK):
790
822
  if retries == UNSET:
791
823
  if self.sdk_configuration.retry_config is not UNSET:
792
824
  retries = self.sdk_configuration.retry_config
825
+ else:
826
+ retries = utils.RetryConfig(
827
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
828
+ )
793
829
 
794
830
  retry_config = None
795
831
  if isinstance(retries, utils.RetryConfig):
796
- retry_config = (retries, ["429", "500", "502", "503", "504"])
832
+ retry_config = (retries, ["429"])
797
833
 
798
834
  http_res = self.do_request(
799
835
  hook_ctx=HookContext(
@@ -812,7 +848,7 @@ class Destinations(BaseSDK):
812
848
 
813
849
  response_data: Any = None
814
850
  if utils.match_response(http_res, "200", "application/json"):
815
- return unmarshal_json_response(models.DeleteOutputByIDResponse, http_res)
851
+ return unmarshal_json_response(models.CountedOutput, http_res)
816
852
  if utils.match_response(http_res, "500", "application/json"):
817
853
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
818
854
  raise errors.Error(response_data, http_res)
@@ -833,7 +869,7 @@ class Destinations(BaseSDK):
833
869
  server_url: Optional[str] = None,
834
870
  timeout_ms: Optional[int] = None,
835
871
  http_headers: Optional[Mapping[str, str]] = None,
836
- ) -> models.DeleteOutputByIDResponse:
872
+ ) -> models.CountedOutput:
837
873
  r"""Delete a Destination
838
874
 
839
875
  Delete the specified Destination.
@@ -878,10 +914,14 @@ class Destinations(BaseSDK):
878
914
  if retries == UNSET:
879
915
  if self.sdk_configuration.retry_config is not UNSET:
880
916
  retries = self.sdk_configuration.retry_config
917
+ else:
918
+ retries = utils.RetryConfig(
919
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
920
+ )
881
921
 
882
922
  retry_config = None
883
923
  if isinstance(retries, utils.RetryConfig):
884
- retry_config = (retries, ["429", "500", "502", "503", "504"])
924
+ retry_config = (retries, ["429"])
885
925
 
886
926
  http_res = await self.do_request_async(
887
927
  hook_ctx=HookContext(
@@ -900,7 +940,7 @@ class Destinations(BaseSDK):
900
940
 
901
941
  response_data: Any = None
902
942
  if utils.match_response(http_res, "200", "application/json"):
903
- return unmarshal_json_response(models.DeleteOutputByIDResponse, http_res)
943
+ return unmarshal_json_response(models.CountedOutput, http_res)
904
944
  if utils.match_response(http_res, "500", "application/json"):
905
945
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
906
946
  raise errors.Error(response_data, http_res)
@@ -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.DeleteOutputPqByIDResponse:
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.
@@ -63,10 +63,14 @@ class DestinationsPq(BaseSDK):
63
63
  if retries == UNSET:
64
64
  if self.sdk_configuration.retry_config is not UNSET:
65
65
  retries = self.sdk_configuration.retry_config
66
+ else:
67
+ retries = utils.RetryConfig(
68
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
69
+ )
66
70
 
67
71
  retry_config = None
68
72
  if isinstance(retries, utils.RetryConfig):
69
- retry_config = (retries, ["429", "500", "502", "503", "504"])
73
+ retry_config = (retries, ["429"])
70
74
 
71
75
  http_res = self.do_request(
72
76
  hook_ctx=HookContext(
@@ -85,7 +89,7 @@ class DestinationsPq(BaseSDK):
85
89
 
86
90
  response_data: Any = None
87
91
  if utils.match_response(http_res, "201", "application/json"):
88
- return unmarshal_json_response(models.DeleteOutputPqByIDResponse, http_res)
92
+ return unmarshal_json_response(models.CountedString, http_res)
89
93
  if utils.match_response(http_res, "500", "application/json"):
90
94
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
91
95
  raise errors.Error(response_data, http_res)
@@ -106,7 +110,7 @@ class DestinationsPq(BaseSDK):
106
110
  server_url: Optional[str] = None,
107
111
  timeout_ms: Optional[int] = None,
108
112
  http_headers: Optional[Mapping[str, str]] = None,
109
- ) -> models.DeleteOutputPqByIDResponse:
113
+ ) -> models.CountedString:
110
114
  r"""Clear the persistent queue for a Destination
111
115
 
112
116
  Clear the persistent queue (PQ) for the specified Destination.
@@ -151,10 +155,14 @@ class DestinationsPq(BaseSDK):
151
155
  if retries == UNSET:
152
156
  if self.sdk_configuration.retry_config is not UNSET:
153
157
  retries = self.sdk_configuration.retry_config
158
+ else:
159
+ retries = utils.RetryConfig(
160
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
161
+ )
154
162
 
155
163
  retry_config = None
156
164
  if isinstance(retries, utils.RetryConfig):
157
- retry_config = (retries, ["429", "500", "502", "503", "504"])
165
+ retry_config = (retries, ["429"])
158
166
 
159
167
  http_res = await self.do_request_async(
160
168
  hook_ctx=HookContext(
@@ -173,7 +181,7 @@ class DestinationsPq(BaseSDK):
173
181
 
174
182
  response_data: Any = None
175
183
  if utils.match_response(http_res, "201", "application/json"):
176
- return unmarshal_json_response(models.DeleteOutputPqByIDResponse, http_res)
184
+ return unmarshal_json_response(models.CountedString, http_res)
177
185
  if utils.match_response(http_res, "500", "application/json"):
178
186
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
179
187
  raise errors.Error(response_data, http_res)
@@ -194,7 +202,7 @@ class DestinationsPq(BaseSDK):
194
202
  server_url: Optional[str] = None,
195
203
  timeout_ms: Optional[int] = None,
196
204
  http_headers: Optional[Mapping[str, str]] = None,
197
- ) -> models.GetOutputPqByIDResponse:
205
+ ) -> models.CountedJobInfo:
198
206
  r"""Get information about the latest job to clear the persistent queue for a Destination
199
207
 
200
208
  Get information about the latest job to clear the persistent queue (PQ) for the specified Destination.
@@ -239,10 +247,14 @@ class DestinationsPq(BaseSDK):
239
247
  if retries == UNSET:
240
248
  if self.sdk_configuration.retry_config is not UNSET:
241
249
  retries = self.sdk_configuration.retry_config
250
+ else:
251
+ retries = utils.RetryConfig(
252
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
253
+ )
242
254
 
243
255
  retry_config = None
244
256
  if isinstance(retries, utils.RetryConfig):
245
- retry_config = (retries, ["429", "500", "502", "503", "504"])
257
+ retry_config = (retries, ["429"])
246
258
 
247
259
  http_res = self.do_request(
248
260
  hook_ctx=HookContext(
@@ -261,7 +273,7 @@ class DestinationsPq(BaseSDK):
261
273
 
262
274
  response_data: Any = None
263
275
  if utils.match_response(http_res, "200", "application/json"):
264
- return unmarshal_json_response(models.GetOutputPqByIDResponse, http_res)
276
+ return unmarshal_json_response(models.CountedJobInfo, http_res)
265
277
  if utils.match_response(http_res, "500", "application/json"):
266
278
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
267
279
  raise errors.Error(response_data, http_res)
@@ -282,7 +294,7 @@ class DestinationsPq(BaseSDK):
282
294
  server_url: Optional[str] = None,
283
295
  timeout_ms: Optional[int] = None,
284
296
  http_headers: Optional[Mapping[str, str]] = None,
285
- ) -> models.GetOutputPqByIDResponse:
297
+ ) -> models.CountedJobInfo:
286
298
  r"""Get information about the latest job to clear the persistent queue for a Destination
287
299
 
288
300
  Get information about the latest job to clear the persistent queue (PQ) for the specified Destination.
@@ -327,10 +339,14 @@ class DestinationsPq(BaseSDK):
327
339
  if retries == UNSET:
328
340
  if self.sdk_configuration.retry_config is not UNSET:
329
341
  retries = self.sdk_configuration.retry_config
342
+ else:
343
+ retries = utils.RetryConfig(
344
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
345
+ )
330
346
 
331
347
  retry_config = None
332
348
  if isinstance(retries, utils.RetryConfig):
333
- retry_config = (retries, ["429", "500", "502", "503", "504"])
349
+ retry_config = (retries, ["429"])
334
350
 
335
351
  http_res = await self.do_request_async(
336
352
  hook_ctx=HookContext(
@@ -349,7 +365,7 @@ class DestinationsPq(BaseSDK):
349
365
 
350
366
  response_data: Any = None
351
367
  if utils.match_response(http_res, "200", "application/json"):
352
- return unmarshal_json_response(models.GetOutputPqByIDResponse, http_res)
368
+ return unmarshal_json_response(models.CountedJobInfo, http_res)
353
369
  if utils.match_response(http_res, "500", "application/json"):
354
370
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
355
371
  raise errors.Error(response_data, http_res)