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
@@ -36,7 +36,7 @@ class Commits(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.CreateVersionCommitResponse:
39
+ ) -> models.CountedGitCommitSummary:
40
40
  r"""Create a new commit for pending changes to the Cribl configuration
41
41
 
42
42
  Create a new commit for pending changes to the Cribl configuration. Any merge conflicts indicated in the response must be resolved using Git.</br></br>To commit only a subset of configuration changes, specify the files to include in the commit in the <code>files</code> array.
@@ -87,16 +87,21 @@ class Commits(BaseSDK):
87
87
  get_serialized_body=lambda: utils.serialize_request_body(
88
88
  request.git_commit_params, False, False, "json", models.GitCommitParams
89
89
  ),
90
+ allow_empty_value=None,
90
91
  timeout_ms=timeout_ms,
91
92
  )
92
93
 
93
94
  if retries == UNSET:
94
95
  if self.sdk_configuration.retry_config is not UNSET:
95
96
  retries = self.sdk_configuration.retry_config
97
+ else:
98
+ retries = utils.RetryConfig(
99
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
100
+ )
96
101
 
97
102
  retry_config = None
98
103
  if isinstance(retries, utils.RetryConfig):
99
- retry_config = (retries, ["429", "500", "502", "503", "504"])
104
+ retry_config = (retries, ["429"])
100
105
 
101
106
  http_res = self.do_request(
102
107
  hook_ctx=HookContext(
@@ -115,7 +120,7 @@ class Commits(BaseSDK):
115
120
 
116
121
  response_data: Any = None
117
122
  if utils.match_response(http_res, "200", "application/json"):
118
- return unmarshal_json_response(models.CreateVersionCommitResponse, http_res)
123
+ return unmarshal_json_response(models.CountedGitCommitSummary, http_res)
119
124
  if utils.match_response(http_res, "500", "application/json"):
120
125
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
121
126
  raise errors.Error(response_data, http_res)
@@ -140,7 +145,7 @@ class Commits(BaseSDK):
140
145
  server_url: Optional[str] = None,
141
146
  timeout_ms: Optional[int] = None,
142
147
  http_headers: Optional[Mapping[str, str]] = None,
143
- ) -> models.CreateVersionCommitResponse:
148
+ ) -> models.CountedGitCommitSummary:
144
149
  r"""Create a new commit for pending changes to the Cribl configuration
145
150
 
146
151
  Create a new commit for pending changes to the Cribl configuration. Any merge conflicts indicated in the response must be resolved using Git.</br></br>To commit only a subset of configuration changes, specify the files to include in the commit in the <code>files</code> array.
@@ -191,16 +196,21 @@ class Commits(BaseSDK):
191
196
  get_serialized_body=lambda: utils.serialize_request_body(
192
197
  request.git_commit_params, False, False, "json", models.GitCommitParams
193
198
  ),
199
+ allow_empty_value=None,
194
200
  timeout_ms=timeout_ms,
195
201
  )
196
202
 
197
203
  if retries == UNSET:
198
204
  if self.sdk_configuration.retry_config is not UNSET:
199
205
  retries = self.sdk_configuration.retry_config
206
+ else:
207
+ retries = utils.RetryConfig(
208
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
209
+ )
200
210
 
201
211
  retry_config = None
202
212
  if isinstance(retries, utils.RetryConfig):
203
- retry_config = (retries, ["429", "500", "502", "503", "504"])
213
+ retry_config = (retries, ["429"])
204
214
 
205
215
  http_res = await self.do_request_async(
206
216
  hook_ctx=HookContext(
@@ -219,7 +229,7 @@ class Commits(BaseSDK):
219
229
 
220
230
  response_data: Any = None
221
231
  if utils.match_response(http_res, "200", "application/json"):
222
- return unmarshal_json_response(models.CreateVersionCommitResponse, http_res)
232
+ return unmarshal_json_response(models.CountedGitCommitSummary, http_res)
223
233
  if utils.match_response(http_res, "500", "application/json"):
224
234
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
225
235
  raise errors.Error(response_data, http_res)
@@ -243,7 +253,7 @@ class Commits(BaseSDK):
243
253
  server_url: Optional[str] = None,
244
254
  timeout_ms: Optional[int] = None,
245
255
  http_headers: Optional[Mapping[str, str]] = None,
246
- ) -> models.GetVersionDiffResponse:
256
+ ) -> models.CountedGitDiffResult:
247
257
  r"""Get the diff for a commit
248
258
 
249
259
  Get the diff for a commit. Default is the latest commit (HEAD).
@@ -287,16 +297,21 @@ class Commits(BaseSDK):
287
297
  accept_header_value="application/json",
288
298
  http_headers=http_headers,
289
299
  security=self.sdk_configuration.security,
300
+ allow_empty_value=None,
290
301
  timeout_ms=timeout_ms,
291
302
  )
292
303
 
293
304
  if retries == UNSET:
294
305
  if self.sdk_configuration.retry_config is not UNSET:
295
306
  retries = self.sdk_configuration.retry_config
307
+ else:
308
+ retries = utils.RetryConfig(
309
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
310
+ )
296
311
 
297
312
  retry_config = None
298
313
  if isinstance(retries, utils.RetryConfig):
299
- retry_config = (retries, ["429", "500", "502", "503", "504"])
314
+ retry_config = (retries, ["429"])
300
315
 
301
316
  http_res = self.do_request(
302
317
  hook_ctx=HookContext(
@@ -315,7 +330,7 @@ class Commits(BaseSDK):
315
330
 
316
331
  response_data: Any = None
317
332
  if utils.match_response(http_res, "200", "application/json"):
318
- return unmarshal_json_response(models.GetVersionDiffResponse, http_res)
333
+ return unmarshal_json_response(models.CountedGitDiffResult, http_res)
319
334
  if utils.match_response(http_res, "500", "application/json"):
320
335
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
321
336
  raise errors.Error(response_data, http_res)
@@ -339,7 +354,7 @@ class Commits(BaseSDK):
339
354
  server_url: Optional[str] = None,
340
355
  timeout_ms: Optional[int] = None,
341
356
  http_headers: Optional[Mapping[str, str]] = None,
342
- ) -> models.GetVersionDiffResponse:
357
+ ) -> models.CountedGitDiffResult:
343
358
  r"""Get the diff for a commit
344
359
 
345
360
  Get the diff for a commit. Default is the latest commit (HEAD).
@@ -383,16 +398,21 @@ class Commits(BaseSDK):
383
398
  accept_header_value="application/json",
384
399
  http_headers=http_headers,
385
400
  security=self.sdk_configuration.security,
401
+ allow_empty_value=None,
386
402
  timeout_ms=timeout_ms,
387
403
  )
388
404
 
389
405
  if retries == UNSET:
390
406
  if self.sdk_configuration.retry_config is not UNSET:
391
407
  retries = self.sdk_configuration.retry_config
408
+ else:
409
+ retries = utils.RetryConfig(
410
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
411
+ )
392
412
 
393
413
  retry_config = None
394
414
  if isinstance(retries, utils.RetryConfig):
395
- retry_config = (retries, ["429", "500", "502", "503", "504"])
415
+ retry_config = (retries, ["429"])
396
416
 
397
417
  http_res = await self.do_request_async(
398
418
  hook_ctx=HookContext(
@@ -411,7 +431,7 @@ class Commits(BaseSDK):
411
431
 
412
432
  response_data: Any = None
413
433
  if utils.match_response(http_res, "200", "application/json"):
414
- return unmarshal_json_response(models.GetVersionDiffResponse, http_res)
434
+ return unmarshal_json_response(models.CountedGitDiffResult, http_res)
415
435
  if utils.match_response(http_res, "500", "application/json"):
416
436
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
417
437
  raise errors.Error(response_data, http_res)
@@ -433,7 +453,7 @@ class Commits(BaseSDK):
433
453
  server_url: Optional[str] = None,
434
454
  timeout_ms: Optional[int] = None,
435
455
  http_headers: Optional[Mapping[str, str]] = None,
436
- ) -> models.GetVersionResponse:
456
+ ) -> models.CountedGitLogResult:
437
457
  r"""List the commit history
438
458
 
439
459
  List the commit history.</br></br>Analogous to <code>git log</code> for the Cribl configuration, allowing you to audit and review changes over time.
@@ -473,16 +493,21 @@ class Commits(BaseSDK):
473
493
  accept_header_value="application/json",
474
494
  http_headers=http_headers,
475
495
  security=self.sdk_configuration.security,
496
+ allow_empty_value=None,
476
497
  timeout_ms=timeout_ms,
477
498
  )
478
499
 
479
500
  if retries == UNSET:
480
501
  if self.sdk_configuration.retry_config is not UNSET:
481
502
  retries = self.sdk_configuration.retry_config
503
+ else:
504
+ retries = utils.RetryConfig(
505
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
506
+ )
482
507
 
483
508
  retry_config = None
484
509
  if isinstance(retries, utils.RetryConfig):
485
- retry_config = (retries, ["429", "500", "502", "503", "504"])
510
+ retry_config = (retries, ["429"])
486
511
 
487
512
  http_res = self.do_request(
488
513
  hook_ctx=HookContext(
@@ -501,7 +526,7 @@ class Commits(BaseSDK):
501
526
 
502
527
  response_data: Any = None
503
528
  if utils.match_response(http_res, "200", "application/json"):
504
- return unmarshal_json_response(models.GetVersionResponse, http_res)
529
+ return unmarshal_json_response(models.CountedGitLogResult, http_res)
505
530
  if utils.match_response(http_res, "500", "application/json"):
506
531
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
507
532
  raise errors.Error(response_data, http_res)
@@ -523,7 +548,7 @@ class Commits(BaseSDK):
523
548
  server_url: Optional[str] = None,
524
549
  timeout_ms: Optional[int] = None,
525
550
  http_headers: Optional[Mapping[str, str]] = None,
526
- ) -> models.GetVersionResponse:
551
+ ) -> models.CountedGitLogResult:
527
552
  r"""List the commit history
528
553
 
529
554
  List the commit history.</br></br>Analogous to <code>git log</code> for the Cribl configuration, allowing you to audit and review changes over time.
@@ -563,16 +588,21 @@ class Commits(BaseSDK):
563
588
  accept_header_value="application/json",
564
589
  http_headers=http_headers,
565
590
  security=self.sdk_configuration.security,
591
+ allow_empty_value=None,
566
592
  timeout_ms=timeout_ms,
567
593
  )
568
594
 
569
595
  if retries == UNSET:
570
596
  if self.sdk_configuration.retry_config is not UNSET:
571
597
  retries = self.sdk_configuration.retry_config
598
+ else:
599
+ retries = utils.RetryConfig(
600
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
601
+ )
572
602
 
573
603
  retry_config = None
574
604
  if isinstance(retries, utils.RetryConfig):
575
- retry_config = (retries, ["429", "500", "502", "503", "504"])
605
+ retry_config = (retries, ["429"])
576
606
 
577
607
  http_res = await self.do_request_async(
578
608
  hook_ctx=HookContext(
@@ -591,7 +621,7 @@ class Commits(BaseSDK):
591
621
 
592
622
  response_data: Any = None
593
623
  if utils.match_response(http_res, "200", "application/json"):
594
- return unmarshal_json_response(models.GetVersionResponse, http_res)
624
+ return unmarshal_json_response(models.CountedGitLogResult, http_res)
595
625
  if utils.match_response(http_res, "500", "application/json"):
596
626
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
597
627
  raise errors.Error(response_data, http_res)
@@ -611,7 +641,7 @@ class Commits(BaseSDK):
611
641
  server_url: Optional[str] = None,
612
642
  timeout_ms: Optional[int] = None,
613
643
  http_headers: Optional[Mapping[str, str]] = None,
614
- ) -> models.CreateVersionPushResponse:
644
+ ) -> models.CountedString:
615
645
  r"""Push local commits to the remote repository
616
646
 
617
647
  Push all local commits from the local repository to the remote repository.
@@ -643,16 +673,21 @@ class Commits(BaseSDK):
643
673
  accept_header_value="application/json",
644
674
  http_headers=http_headers,
645
675
  security=self.sdk_configuration.security,
676
+ allow_empty_value=None,
646
677
  timeout_ms=timeout_ms,
647
678
  )
648
679
 
649
680
  if retries == UNSET:
650
681
  if self.sdk_configuration.retry_config is not UNSET:
651
682
  retries = self.sdk_configuration.retry_config
683
+ else:
684
+ retries = utils.RetryConfig(
685
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
686
+ )
652
687
 
653
688
  retry_config = None
654
689
  if isinstance(retries, utils.RetryConfig):
655
- retry_config = (retries, ["429", "500", "502", "503", "504"])
690
+ retry_config = (retries, ["429"])
656
691
 
657
692
  http_res = self.do_request(
658
693
  hook_ctx=HookContext(
@@ -671,7 +706,7 @@ class Commits(BaseSDK):
671
706
 
672
707
  response_data: Any = None
673
708
  if utils.match_response(http_res, "200", "application/json"):
674
- return unmarshal_json_response(models.CreateVersionPushResponse, http_res)
709
+ return unmarshal_json_response(models.CountedString, http_res)
675
710
  if utils.match_response(http_res, "500", "application/json"):
676
711
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
677
712
  raise errors.Error(response_data, http_res)
@@ -691,7 +726,7 @@ class Commits(BaseSDK):
691
726
  server_url: Optional[str] = None,
692
727
  timeout_ms: Optional[int] = None,
693
728
  http_headers: Optional[Mapping[str, str]] = None,
694
- ) -> models.CreateVersionPushResponse:
729
+ ) -> models.CountedString:
695
730
  r"""Push local commits to the remote repository
696
731
 
697
732
  Push all local commits from the local repository to the remote repository.
@@ -723,16 +758,21 @@ class Commits(BaseSDK):
723
758
  accept_header_value="application/json",
724
759
  http_headers=http_headers,
725
760
  security=self.sdk_configuration.security,
761
+ allow_empty_value=None,
726
762
  timeout_ms=timeout_ms,
727
763
  )
728
764
 
729
765
  if retries == UNSET:
730
766
  if self.sdk_configuration.retry_config is not UNSET:
731
767
  retries = self.sdk_configuration.retry_config
768
+ else:
769
+ retries = utils.RetryConfig(
770
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
771
+ )
732
772
 
733
773
  retry_config = None
734
774
  if isinstance(retries, utils.RetryConfig):
735
- retry_config = (retries, ["429", "500", "502", "503", "504"])
775
+ retry_config = (retries, ["429"])
736
776
 
737
777
  http_res = await self.do_request_async(
738
778
  hook_ctx=HookContext(
@@ -751,7 +791,7 @@ class Commits(BaseSDK):
751
791
 
752
792
  response_data: Any = None
753
793
  if utils.match_response(http_res, "200", "application/json"):
754
- return unmarshal_json_response(models.CreateVersionPushResponse, http_res)
794
+ return unmarshal_json_response(models.CountedString, http_res)
755
795
  if utils.match_response(http_res, "500", "application/json"):
756
796
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
757
797
  raise errors.Error(response_data, http_res)
@@ -775,7 +815,7 @@ class Commits(BaseSDK):
775
815
  server_url: Optional[str] = None,
776
816
  timeout_ms: Optional[int] = None,
777
817
  http_headers: Optional[Mapping[str, str]] = None,
778
- ) -> models.CreateVersionRevertResponse:
818
+ ) -> models.CountedGitRevertResult:
779
819
  r"""Revert a commit in the local repository
780
820
 
781
821
  Revert a commit in the local repository.
@@ -824,16 +864,21 @@ class Commits(BaseSDK):
824
864
  get_serialized_body=lambda: utils.serialize_request_body(
825
865
  request.git_revert_params, False, False, "json", models.GitRevertParams
826
866
  ),
867
+ allow_empty_value=None,
827
868
  timeout_ms=timeout_ms,
828
869
  )
829
870
 
830
871
  if retries == UNSET:
831
872
  if self.sdk_configuration.retry_config is not UNSET:
832
873
  retries = self.sdk_configuration.retry_config
874
+ else:
875
+ retries = utils.RetryConfig(
876
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
877
+ )
833
878
 
834
879
  retry_config = None
835
880
  if isinstance(retries, utils.RetryConfig):
836
- retry_config = (retries, ["429", "500", "502", "503", "504"])
881
+ retry_config = (retries, ["429"])
837
882
 
838
883
  http_res = self.do_request(
839
884
  hook_ctx=HookContext(
@@ -852,7 +897,7 @@ class Commits(BaseSDK):
852
897
 
853
898
  response_data: Any = None
854
899
  if utils.match_response(http_res, "200", "application/json"):
855
- return unmarshal_json_response(models.CreateVersionRevertResponse, http_res)
900
+ return unmarshal_json_response(models.CountedGitRevertResult, http_res)
856
901
  if utils.match_response(http_res, "500", "application/json"):
857
902
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
858
903
  raise errors.Error(response_data, http_res)
@@ -876,7 +921,7 @@ class Commits(BaseSDK):
876
921
  server_url: Optional[str] = None,
877
922
  timeout_ms: Optional[int] = None,
878
923
  http_headers: Optional[Mapping[str, str]] = None,
879
- ) -> models.CreateVersionRevertResponse:
924
+ ) -> models.CountedGitRevertResult:
880
925
  r"""Revert a commit in the local repository
881
926
 
882
927
  Revert a commit in the local repository.
@@ -925,16 +970,21 @@ class Commits(BaseSDK):
925
970
  get_serialized_body=lambda: utils.serialize_request_body(
926
971
  request.git_revert_params, False, False, "json", models.GitRevertParams
927
972
  ),
973
+ allow_empty_value=None,
928
974
  timeout_ms=timeout_ms,
929
975
  )
930
976
 
931
977
  if retries == UNSET:
932
978
  if self.sdk_configuration.retry_config is not UNSET:
933
979
  retries = self.sdk_configuration.retry_config
980
+ else:
981
+ retries = utils.RetryConfig(
982
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
983
+ )
934
984
 
935
985
  retry_config = None
936
986
  if isinstance(retries, utils.RetryConfig):
937
- retry_config = (retries, ["429", "500", "502", "503", "504"])
987
+ retry_config = (retries, ["429"])
938
988
 
939
989
  http_res = await self.do_request_async(
940
990
  hook_ctx=HookContext(
@@ -953,7 +1003,7 @@ class Commits(BaseSDK):
953
1003
 
954
1004
  response_data: Any = None
955
1005
  if utils.match_response(http_res, "200", "application/json"):
956
- return unmarshal_json_response(models.CreateVersionRevertResponse, http_res)
1006
+ return unmarshal_json_response(models.CountedGitRevertResult, http_res)
957
1007
  if utils.match_response(http_res, "500", "application/json"):
958
1008
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
959
1009
  raise errors.Error(response_data, http_res)
@@ -977,7 +1027,7 @@ class Commits(BaseSDK):
977
1027
  server_url: Optional[str] = None,
978
1028
  timeout_ms: Optional[int] = None,
979
1029
  http_headers: Optional[Mapping[str, str]] = None,
980
- ) -> models.GetVersionShowResponse:
1030
+ ) -> models.CountedGitShowResult:
981
1031
  r"""Get the diff and log message for a commit
982
1032
 
983
1033
  Get the diff and log message for a commit. Default is the latest commit (HEAD).
@@ -1021,16 +1071,21 @@ class Commits(BaseSDK):
1021
1071
  accept_header_value="application/json",
1022
1072
  http_headers=http_headers,
1023
1073
  security=self.sdk_configuration.security,
1074
+ allow_empty_value=None,
1024
1075
  timeout_ms=timeout_ms,
1025
1076
  )
1026
1077
 
1027
1078
  if retries == UNSET:
1028
1079
  if self.sdk_configuration.retry_config is not UNSET:
1029
1080
  retries = self.sdk_configuration.retry_config
1081
+ else:
1082
+ retries = utils.RetryConfig(
1083
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
1084
+ )
1030
1085
 
1031
1086
  retry_config = None
1032
1087
  if isinstance(retries, utils.RetryConfig):
1033
- retry_config = (retries, ["429", "500", "502", "503", "504"])
1088
+ retry_config = (retries, ["429"])
1034
1089
 
1035
1090
  http_res = self.do_request(
1036
1091
  hook_ctx=HookContext(
@@ -1049,7 +1104,7 @@ class Commits(BaseSDK):
1049
1104
 
1050
1105
  response_data: Any = None
1051
1106
  if utils.match_response(http_res, "200", "application/json"):
1052
- return unmarshal_json_response(models.GetVersionShowResponse, http_res)
1107
+ return unmarshal_json_response(models.CountedGitShowResult, http_res)
1053
1108
  if utils.match_response(http_res, "500", "application/json"):
1054
1109
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
1055
1110
  raise errors.Error(response_data, http_res)
@@ -1073,7 +1128,7 @@ class Commits(BaseSDK):
1073
1128
  server_url: Optional[str] = None,
1074
1129
  timeout_ms: Optional[int] = None,
1075
1130
  http_headers: Optional[Mapping[str, str]] = None,
1076
- ) -> models.GetVersionShowResponse:
1131
+ ) -> models.CountedGitShowResult:
1077
1132
  r"""Get the diff and log message for a commit
1078
1133
 
1079
1134
  Get the diff and log message for a commit. Default is the latest commit (HEAD).
@@ -1117,16 +1172,21 @@ class Commits(BaseSDK):
1117
1172
  accept_header_value="application/json",
1118
1173
  http_headers=http_headers,
1119
1174
  security=self.sdk_configuration.security,
1175
+ allow_empty_value=None,
1120
1176
  timeout_ms=timeout_ms,
1121
1177
  )
1122
1178
 
1123
1179
  if retries == UNSET:
1124
1180
  if self.sdk_configuration.retry_config is not UNSET:
1125
1181
  retries = self.sdk_configuration.retry_config
1182
+ else:
1183
+ retries = utils.RetryConfig(
1184
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
1185
+ )
1126
1186
 
1127
1187
  retry_config = None
1128
1188
  if isinstance(retries, utils.RetryConfig):
1129
- retry_config = (retries, ["429", "500", "502", "503", "504"])
1189
+ retry_config = (retries, ["429"])
1130
1190
 
1131
1191
  http_res = await self.do_request_async(
1132
1192
  hook_ctx=HookContext(
@@ -1145,7 +1205,7 @@ class Commits(BaseSDK):
1145
1205
 
1146
1206
  response_data: Any = None
1147
1207
  if utils.match_response(http_res, "200", "application/json"):
1148
- return unmarshal_json_response(models.GetVersionShowResponse, http_res)
1208
+ return unmarshal_json_response(models.CountedGitShowResult, http_res)
1149
1209
  if utils.match_response(http_res, "500", "application/json"):
1150
1210
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
1151
1211
  raise errors.Error(response_data, http_res)
@@ -1166,7 +1226,7 @@ class Commits(BaseSDK):
1166
1226
  server_url: Optional[str] = None,
1167
1227
  timeout_ms: Optional[int] = None,
1168
1228
  http_headers: Optional[Mapping[str, str]] = None,
1169
- ) -> models.CreateVersionUndoResponse:
1229
+ ) -> models.CountedObject:
1170
1230
  r"""Discard uncommitted (staged) changes
1171
1231
 
1172
1232
  Discard all uncommitted (staged) configuration changes, resetting the working directory to the last committed state. Use only if you are certain that you do not need to preserve your local changes.
@@ -1204,16 +1264,21 @@ class Commits(BaseSDK):
1204
1264
  accept_header_value="application/json",
1205
1265
  http_headers=http_headers,
1206
1266
  security=self.sdk_configuration.security,
1267
+ allow_empty_value=None,
1207
1268
  timeout_ms=timeout_ms,
1208
1269
  )
1209
1270
 
1210
1271
  if retries == UNSET:
1211
1272
  if self.sdk_configuration.retry_config is not UNSET:
1212
1273
  retries = self.sdk_configuration.retry_config
1274
+ else:
1275
+ retries = utils.RetryConfig(
1276
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
1277
+ )
1213
1278
 
1214
1279
  retry_config = None
1215
1280
  if isinstance(retries, utils.RetryConfig):
1216
- retry_config = (retries, ["429", "500", "502", "503", "504"])
1281
+ retry_config = (retries, ["429"])
1217
1282
 
1218
1283
  http_res = self.do_request(
1219
1284
  hook_ctx=HookContext(
@@ -1232,7 +1297,7 @@ class Commits(BaseSDK):
1232
1297
 
1233
1298
  response_data: Any = None
1234
1299
  if utils.match_response(http_res, "200", "application/json"):
1235
- return unmarshal_json_response(models.CreateVersionUndoResponse, http_res)
1300
+ return unmarshal_json_response(models.CountedObject, http_res)
1236
1301
  if utils.match_response(http_res, "500", "application/json"):
1237
1302
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
1238
1303
  raise errors.Error(response_data, http_res)
@@ -1253,7 +1318,7 @@ class Commits(BaseSDK):
1253
1318
  server_url: Optional[str] = None,
1254
1319
  timeout_ms: Optional[int] = None,
1255
1320
  http_headers: Optional[Mapping[str, str]] = None,
1256
- ) -> models.CreateVersionUndoResponse:
1321
+ ) -> models.CountedObject:
1257
1322
  r"""Discard uncommitted (staged) changes
1258
1323
 
1259
1324
  Discard all uncommitted (staged) configuration changes, resetting the working directory to the last committed state. Use only if you are certain that you do not need to preserve your local changes.
@@ -1291,16 +1356,21 @@ class Commits(BaseSDK):
1291
1356
  accept_header_value="application/json",
1292
1357
  http_headers=http_headers,
1293
1358
  security=self.sdk_configuration.security,
1359
+ allow_empty_value=None,
1294
1360
  timeout_ms=timeout_ms,
1295
1361
  )
1296
1362
 
1297
1363
  if retries == UNSET:
1298
1364
  if self.sdk_configuration.retry_config is not UNSET:
1299
1365
  retries = self.sdk_configuration.retry_config
1366
+ else:
1367
+ retries = utils.RetryConfig(
1368
+ "backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
1369
+ )
1300
1370
 
1301
1371
  retry_config = None
1302
1372
  if isinstance(retries, utils.RetryConfig):
1303
- retry_config = (retries, ["429", "500", "502", "503", "504"])
1373
+ retry_config = (retries, ["429"])
1304
1374
 
1305
1375
  http_res = await self.do_request_async(
1306
1376
  hook_ctx=HookContext(
@@ -1319,7 +1389,7 @@ class Commits(BaseSDK):
1319
1389
 
1320
1390
  response_data: Any = None
1321
1391
  if utils.match_response(http_res, "200", "application/json"):
1322
- return unmarshal_json_response(models.CreateVersionUndoResponse, http_res)
1392
+ return unmarshal_json_response(models.CountedObject, http_res)
1323
1393
  if utils.match_response(http_res, "500", "application/json"):
1324
1394
  response_data = unmarshal_json_response(errors.ErrorData, http_res)
1325
1395
  raise errors.Error(response_data, http_res)