cribl-control-plane 0.4.0a12__py3-none-any.whl → 0.4.0b12__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of cribl-control-plane might be problematic. Click here for more details.
- cribl_control_plane/_version.py +4 -4
- cribl_control_plane/acl.py +14 -6
- cribl_control_plane/branches.py +24 -8
- cribl_control_plane/commits.py +98 -42
- cribl_control_plane/commits_files.py +28 -12
- cribl_control_plane/configs_versions.py +14 -10
- cribl_control_plane/destinations.py +70 -30
- cribl_control_plane/destinations_pq.py +28 -12
- cribl_control_plane/groups_sdk.py +84 -60
- cribl_control_plane/health.py +10 -2
- cribl_control_plane/hectokens.py +28 -32
- cribl_control_plane/lakedatasets.py +70 -86
- cribl_control_plane/models/__init__.py +266 -438
- cribl_control_plane/models/addhectokenrequest.py +1 -7
- cribl_control_plane/models/configgroup.py +1 -0
- cribl_control_plane/models/{getversionbranchop.py → countedbranchinfo.py} +2 -6
- cribl_control_plane/models/countedconfiggroup.py +20 -0
- cribl_control_plane/models/countedcribllakedataset.py +20 -0
- cribl_control_plane/models/counteddistributedsummary.py +20 -0
- cribl_control_plane/models/countedgitcommitsummary.py +20 -0
- cribl_control_plane/models/countedgitcountresult.py +20 -0
- cribl_control_plane/models/{createinputop.py → countedgitdiffresult.py} +5 -9
- cribl_control_plane/models/countedgitfilesresponse.py +20 -0
- cribl_control_plane/models/{getversioninfoop.py → countedgitinfo.py} +2 -6
- cribl_control_plane/models/countedgitlogresult.py +20 -0
- cribl_control_plane/models/countedgitrevertresult.py +20 -0
- cribl_control_plane/models/countedgitshowresult.py +20 -0
- cribl_control_plane/models/countedgitstatusresult.py +20 -0
- cribl_control_plane/models/{listinputop.py → countedinput.py} +2 -6
- cribl_control_plane/models/countedinputsplunkhec.py +20 -0
- cribl_control_plane/models/countedjobinfo.py +20 -0
- cribl_control_plane/models/countedmasterworkerentry.py +20 -0
- cribl_control_plane/models/countednumber.py +19 -0
- cribl_control_plane/models/countedobject.py +19 -0
- cribl_control_plane/models/{listoutputop.py → countedoutput.py} +2 -6
- cribl_control_plane/models/{createoutputop.py → countedoutputsamplesresponse.py} +5 -9
- cribl_control_plane/models/countedoutputtestresponse.py +20 -0
- cribl_control_plane/models/countedpackinfo.py +20 -0
- cribl_control_plane/models/{createpacksop.py → countedpackinstallinfo.py} +2 -6
- cribl_control_plane/models/{listpipelineop.py → countedpipeline.py} +2 -6
- cribl_control_plane/models/{listroutesop.py → countedroutes.py} +2 -6
- cribl_control_plane/models/{createversionpushop.py → countedstring.py} +2 -6
- cribl_control_plane/models/countedteamaccesscontrollist.py +20 -0
- cribl_control_plane/models/counteduseraccesscontrollist.py +20 -0
- cribl_control_plane/models/createauthloginop.py +18 -0
- cribl_control_plane/models/createconfiggroupbyproductop.py +1 -20
- cribl_control_plane/models/createcribllakedatasetbylakeidop.py +1 -19
- cribl_control_plane/models/createinputhectokenbyidop.py +1 -20
- cribl_control_plane/models/createoutputtestbyidop.py +1 -20
- cribl_control_plane/models/createroutesappendbyidop.py +2 -20
- cribl_control_plane/models/createversioncommitop.py +1 -19
- cribl_control_plane/models/createversionrevertop.py +1 -19
- cribl_control_plane/models/createversionundoop.py +1 -18
- cribl_control_plane/models/criblevent.py +15 -0
- cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +1 -20
- cribl_control_plane/models/deletecribllakedatasetbylakeidandidop.py +1 -20
- cribl_control_plane/models/deleteinputbyidop.py +1 -20
- cribl_control_plane/models/deleteoutputbyidop.py +1 -20
- cribl_control_plane/models/deleteoutputpqbyidop.py +1 -19
- cribl_control_plane/models/deletepacksbyidop.py +1 -20
- cribl_control_plane/models/deletepipelinebyidop.py +1 -20
- cribl_control_plane/models/difffiles.py +5 -46
- cribl_control_plane/models/diffline.py +26 -0
- cribl_control_plane/models/difflinecontext.py +28 -0
- cribl_control_plane/models/difflinedelete.py +25 -0
- cribl_control_plane/models/difflineinsert.py +25 -0
- cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +1 -19
- cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +1 -19
- cribl_control_plane/models/getconfiggroupbyproductandidop.py +1 -19
- cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +1 -19
- cribl_control_plane/models/getcribllakedatasetbylakeidandidop.py +1 -20
- cribl_control_plane/models/getcribllakedatasetbylakeidop.py +2 -79
- cribl_control_plane/models/getinputbyidop.py +1 -20
- cribl_control_plane/models/getmasterworkerentryop.py +1 -18
- cribl_control_plane/models/getoutputbyidop.py +1 -20
- cribl_control_plane/models/getoutputpqbyidop.py +1 -20
- cribl_control_plane/models/getoutputsamplesbyidop.py +1 -20
- cribl_control_plane/models/getpacksbyidop.py +1 -20
- cribl_control_plane/models/getpacksop.py +1 -19
- cribl_control_plane/models/getpipelinebyidop.py +1 -20
- cribl_control_plane/models/getroutesbyidop.py +1 -20
- cribl_control_plane/models/getsummaryop.py +1 -19
- cribl_control_plane/models/getversioncountop.py +1 -19
- cribl_control_plane/models/getversiondiffop.py +1 -19
- cribl_control_plane/models/getversionfilesop.py +1 -19
- cribl_control_plane/models/getversionop.py +1 -19
- cribl_control_plane/models/getversionshowop.py +1 -19
- cribl_control_plane/models/getversionstatusop.py +1 -19
- cribl_control_plane/models/groupcreaterequest.py +1 -0
- cribl_control_plane/models/hbcriblinfo.py +3 -4
- cribl_control_plane/models/heartbeatmetadata.py +3 -11
- cribl_control_plane/models/inputcloudflarehec.py +9 -4
- cribl_control_plane/models/inputconfluentcloud.py +4 -2
- cribl_control_plane/models/inputcribllakehttp.py +15 -0
- cribl_control_plane/models/inputkafka.py +4 -2
- cribl_control_plane/models/inputmsk.py +4 -2
- cribl_control_plane/models/inputsnmp.py +33 -7
- cribl_control_plane/models/inputsplunkhec.py +8 -4
- cribl_control_plane/models/inputwef.py +23 -0
- cribl_control_plane/models/inputwiz.py +95 -0
- cribl_control_plane/models/inputzscalerhec.py +8 -4
- cribl_control_plane/models/listconfiggroupbyproductop.py +1 -19
- cribl_control_plane/models/listmasterworkerentryop.py +1 -19
- cribl_control_plane/models/masterworkerentry.py +3 -11
- cribl_control_plane/models/nodeprovidedinfo.py +2 -10
- cribl_control_plane/models/outputnetflow.py +0 -7
- cribl_control_plane/models/outputsplunklb.py +10 -0
- cribl_control_plane/models/runnablejobcollection.py +0 -56
- cribl_control_plane/models/runnablejobexecutor.py +0 -28
- cribl_control_plane/models/runnablejobscheduledsearch.py +0 -28
- cribl_control_plane/models/updateconfiggroupbyproductandidop.py +1 -19
- cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +1 -20
- cribl_control_plane/models/updatecribllakedatasetbylakeidandidop.py +1 -20
- cribl_control_plane/models/updatehectokenrequest.py +1 -7
- cribl_control_plane/models/updateinputbyidop.py +1 -19
- cribl_control_plane/models/updateinputhectokenbyidandtokenop.py +1 -20
- cribl_control_plane/models/updateoutputbyidop.py +1 -19
- cribl_control_plane/models/updatepacksbyidop.py +1 -20
- cribl_control_plane/models/updatepipelinebyidop.py +1 -19
- cribl_control_plane/models/updateroutesbyidop.py +1 -19
- cribl_control_plane/nodes.py +28 -20
- cribl_control_plane/packs.py +80 -32
- cribl_control_plane/pipelines.py +70 -30
- cribl_control_plane/routes_sdk.py +56 -28
- cribl_control_plane/samples.py +28 -16
- cribl_control_plane/sources.py +70 -30
- cribl_control_plane/statuses.py +14 -6
- cribl_control_plane/summaries.py +14 -6
- cribl_control_plane/teams.py +14 -6
- cribl_control_plane/tokens.py +26 -8
- cribl_control_plane/versions_configs.py +14 -6
- {cribl_control_plane-0.4.0a12.dist-info → cribl_control_plane-0.4.0b12.dist-info}/METADATA +23 -23
- {cribl_control_plane-0.4.0a12.dist-info → cribl_control_plane-0.4.0b12.dist-info}/RECORD +135 -113
- cribl_control_plane/models/createpipelineop.py +0 -24
- cribl_control_plane/models/lookupversions.py +0 -13
- {cribl_control_plane-0.4.0a12.dist-info → cribl_control_plane-0.4.0b12.dist-info}/WHEEL +0 -0
- {cribl_control_plane-0.4.0a12.dist-info → cribl_control_plane-0.4.0b12.dist-info}/licenses/LICENSE +0 -0
cribl_control_plane/_version.py
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "cribl-control-plane"
|
|
6
|
-
__version__: str = "0.4.
|
|
7
|
-
__openapi_doc_version__: str = "4.
|
|
8
|
-
__gen_version__: str = "2.
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.4.
|
|
6
|
+
__version__: str = "0.4.0b12"
|
|
7
|
+
__openapi_doc_version__: str = "4.16.0-alpha.1764266617076-fbe7ba42"
|
|
8
|
+
__gen_version__: str = "2.767.2"
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.4.0b12 2.767.2 4.16.0-alpha.1764266617076-fbe7ba42 cribl-control-plane"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
cribl_control_plane/acl.py
CHANGED
|
@@ -34,7 +34,7 @@ class ACL(BaseSDK):
|
|
|
34
34
|
server_url: Optional[str] = None,
|
|
35
35
|
timeout_ms: Optional[int] = None,
|
|
36
36
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
37
|
-
) -> models.
|
|
37
|
+
) -> models.CountedUserAccessControlList:
|
|
38
38
|
r"""Get the Access Control List for a Worker Group or Edge Fleet
|
|
39
39
|
|
|
40
40
|
Get the Access Control List (ACL) for the specified Worker Group or Edge Fleet.
|
|
@@ -83,10 +83,14 @@ class ACL(BaseSDK):
|
|
|
83
83
|
if retries == UNSET:
|
|
84
84
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
85
85
|
retries = self.sdk_configuration.retry_config
|
|
86
|
+
else:
|
|
87
|
+
retries = utils.RetryConfig(
|
|
88
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
89
|
+
)
|
|
86
90
|
|
|
87
91
|
retry_config = None
|
|
88
92
|
if isinstance(retries, utils.RetryConfig):
|
|
89
|
-
retry_config = (retries, ["429"
|
|
93
|
+
retry_config = (retries, ["429"])
|
|
90
94
|
|
|
91
95
|
http_res = self.do_request(
|
|
92
96
|
hook_ctx=HookContext(
|
|
@@ -106,7 +110,7 @@ class ACL(BaseSDK):
|
|
|
106
110
|
response_data: Any = None
|
|
107
111
|
if utils.match_response(http_res, "200", "application/json"):
|
|
108
112
|
return unmarshal_json_response(
|
|
109
|
-
models.
|
|
113
|
+
models.CountedUserAccessControlList, http_res
|
|
110
114
|
)
|
|
111
115
|
if utils.match_response(http_res, "500", "application/json"):
|
|
112
116
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
@@ -130,7 +134,7 @@ class ACL(BaseSDK):
|
|
|
130
134
|
server_url: Optional[str] = None,
|
|
131
135
|
timeout_ms: Optional[int] = None,
|
|
132
136
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
133
|
-
) -> models.
|
|
137
|
+
) -> models.CountedUserAccessControlList:
|
|
134
138
|
r"""Get the Access Control List for a Worker Group or Edge Fleet
|
|
135
139
|
|
|
136
140
|
Get the Access Control List (ACL) for the specified Worker Group or Edge Fleet.
|
|
@@ -179,10 +183,14 @@ class ACL(BaseSDK):
|
|
|
179
183
|
if retries == UNSET:
|
|
180
184
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
181
185
|
retries = self.sdk_configuration.retry_config
|
|
186
|
+
else:
|
|
187
|
+
retries = utils.RetryConfig(
|
|
188
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
189
|
+
)
|
|
182
190
|
|
|
183
191
|
retry_config = None
|
|
184
192
|
if isinstance(retries, utils.RetryConfig):
|
|
185
|
-
retry_config = (retries, ["429"
|
|
193
|
+
retry_config = (retries, ["429"])
|
|
186
194
|
|
|
187
195
|
http_res = await self.do_request_async(
|
|
188
196
|
hook_ctx=HookContext(
|
|
@@ -202,7 +210,7 @@ class ACL(BaseSDK):
|
|
|
202
210
|
response_data: Any = None
|
|
203
211
|
if utils.match_response(http_res, "200", "application/json"):
|
|
204
212
|
return unmarshal_json_response(
|
|
205
|
-
models.
|
|
213
|
+
models.CountedUserAccessControlList, http_res
|
|
206
214
|
)
|
|
207
215
|
if utils.match_response(http_res, "500", "application/json"):
|
|
208
216
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
cribl_control_plane/branches.py
CHANGED
|
@@ -17,7 +17,7 @@ class Branches(BaseSDK):
|
|
|
17
17
|
server_url: Optional[str] = None,
|
|
18
18
|
timeout_ms: Optional[int] = None,
|
|
19
19
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
20
|
-
) -> models.
|
|
20
|
+
) -> models.CountedBranchInfo:
|
|
21
21
|
r"""List all branches in the Git repository used for Cribl configuration
|
|
22
22
|
|
|
23
23
|
Get a list of all branches in the Git repository used for Cribl configuration.
|
|
@@ -56,10 +56,14 @@ class Branches(BaseSDK):
|
|
|
56
56
|
if retries == UNSET:
|
|
57
57
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
58
58
|
retries = self.sdk_configuration.retry_config
|
|
59
|
+
else:
|
|
60
|
+
retries = utils.RetryConfig(
|
|
61
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
62
|
+
)
|
|
59
63
|
|
|
60
64
|
retry_config = None
|
|
61
65
|
if isinstance(retries, utils.RetryConfig):
|
|
62
|
-
retry_config = (retries, ["429"
|
|
66
|
+
retry_config = (retries, ["429"])
|
|
63
67
|
|
|
64
68
|
http_res = self.do_request(
|
|
65
69
|
hook_ctx=HookContext(
|
|
@@ -78,7 +82,7 @@ class Branches(BaseSDK):
|
|
|
78
82
|
|
|
79
83
|
response_data: Any = None
|
|
80
84
|
if utils.match_response(http_res, "200", "application/json"):
|
|
81
|
-
return unmarshal_json_response(models.
|
|
85
|
+
return unmarshal_json_response(models.CountedBranchInfo, http_res)
|
|
82
86
|
if utils.match_response(http_res, "500", "application/json"):
|
|
83
87
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
84
88
|
raise errors.Error(response_data, http_res)
|
|
@@ -98,7 +102,7 @@ class Branches(BaseSDK):
|
|
|
98
102
|
server_url: Optional[str] = None,
|
|
99
103
|
timeout_ms: Optional[int] = None,
|
|
100
104
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
101
|
-
) -> models.
|
|
105
|
+
) -> models.CountedBranchInfo:
|
|
102
106
|
r"""List all branches in the Git repository used for Cribl configuration
|
|
103
107
|
|
|
104
108
|
Get a list of all branches in the Git repository used for Cribl configuration.
|
|
@@ -137,10 +141,14 @@ class Branches(BaseSDK):
|
|
|
137
141
|
if retries == UNSET:
|
|
138
142
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
139
143
|
retries = self.sdk_configuration.retry_config
|
|
144
|
+
else:
|
|
145
|
+
retries = utils.RetryConfig(
|
|
146
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
147
|
+
)
|
|
140
148
|
|
|
141
149
|
retry_config = None
|
|
142
150
|
if isinstance(retries, utils.RetryConfig):
|
|
143
|
-
retry_config = (retries, ["429"
|
|
151
|
+
retry_config = (retries, ["429"])
|
|
144
152
|
|
|
145
153
|
http_res = await self.do_request_async(
|
|
146
154
|
hook_ctx=HookContext(
|
|
@@ -159,7 +167,7 @@ class Branches(BaseSDK):
|
|
|
159
167
|
|
|
160
168
|
response_data: Any = None
|
|
161
169
|
if utils.match_response(http_res, "200", "application/json"):
|
|
162
|
-
return unmarshal_json_response(models.
|
|
170
|
+
return unmarshal_json_response(models.CountedBranchInfo, http_res)
|
|
163
171
|
if utils.match_response(http_res, "500", "application/json"):
|
|
164
172
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
165
173
|
raise errors.Error(response_data, http_res)
|
|
@@ -218,10 +226,14 @@ class Branches(BaseSDK):
|
|
|
218
226
|
if retries == UNSET:
|
|
219
227
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
220
228
|
retries = self.sdk_configuration.retry_config
|
|
229
|
+
else:
|
|
230
|
+
retries = utils.RetryConfig(
|
|
231
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
232
|
+
)
|
|
221
233
|
|
|
222
234
|
retry_config = None
|
|
223
235
|
if isinstance(retries, utils.RetryConfig):
|
|
224
|
-
retry_config = (retries, ["429"
|
|
236
|
+
retry_config = (retries, ["429"])
|
|
225
237
|
|
|
226
238
|
http_res = self.do_request(
|
|
227
239
|
hook_ctx=HookContext(
|
|
@@ -299,10 +311,14 @@ class Branches(BaseSDK):
|
|
|
299
311
|
if retries == UNSET:
|
|
300
312
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
301
313
|
retries = self.sdk_configuration.retry_config
|
|
314
|
+
else:
|
|
315
|
+
retries = utils.RetryConfig(
|
|
316
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
317
|
+
)
|
|
302
318
|
|
|
303
319
|
retry_config = None
|
|
304
320
|
if isinstance(retries, utils.RetryConfig):
|
|
305
|
-
retry_config = (retries, ["429"
|
|
321
|
+
retry_config = (retries, ["429"])
|
|
306
322
|
|
|
307
323
|
http_res = await self.do_request_async(
|
|
308
324
|
hook_ctx=HookContext(
|
cribl_control_plane/commits.py
CHANGED
|
@@ -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.
|
|
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.
|
|
@@ -94,10 +94,14 @@ class Commits(BaseSDK):
|
|
|
94
94
|
if retries == UNSET:
|
|
95
95
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
96
96
|
retries = self.sdk_configuration.retry_config
|
|
97
|
+
else:
|
|
98
|
+
retries = utils.RetryConfig(
|
|
99
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
100
|
+
)
|
|
97
101
|
|
|
98
102
|
retry_config = None
|
|
99
103
|
if isinstance(retries, utils.RetryConfig):
|
|
100
|
-
retry_config = (retries, ["429"
|
|
104
|
+
retry_config = (retries, ["429"])
|
|
101
105
|
|
|
102
106
|
http_res = self.do_request(
|
|
103
107
|
hook_ctx=HookContext(
|
|
@@ -116,7 +120,7 @@ class Commits(BaseSDK):
|
|
|
116
120
|
|
|
117
121
|
response_data: Any = None
|
|
118
122
|
if utils.match_response(http_res, "200", "application/json"):
|
|
119
|
-
return unmarshal_json_response(models.
|
|
123
|
+
return unmarshal_json_response(models.CountedGitCommitSummary, http_res)
|
|
120
124
|
if utils.match_response(http_res, "500", "application/json"):
|
|
121
125
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
122
126
|
raise errors.Error(response_data, http_res)
|
|
@@ -141,7 +145,7 @@ class Commits(BaseSDK):
|
|
|
141
145
|
server_url: Optional[str] = None,
|
|
142
146
|
timeout_ms: Optional[int] = None,
|
|
143
147
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
144
|
-
) -> models.
|
|
148
|
+
) -> models.CountedGitCommitSummary:
|
|
145
149
|
r"""Create a new commit for pending changes to the Cribl configuration
|
|
146
150
|
|
|
147
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.
|
|
@@ -199,10 +203,14 @@ class Commits(BaseSDK):
|
|
|
199
203
|
if retries == UNSET:
|
|
200
204
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
201
205
|
retries = self.sdk_configuration.retry_config
|
|
206
|
+
else:
|
|
207
|
+
retries = utils.RetryConfig(
|
|
208
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
209
|
+
)
|
|
202
210
|
|
|
203
211
|
retry_config = None
|
|
204
212
|
if isinstance(retries, utils.RetryConfig):
|
|
205
|
-
retry_config = (retries, ["429"
|
|
213
|
+
retry_config = (retries, ["429"])
|
|
206
214
|
|
|
207
215
|
http_res = await self.do_request_async(
|
|
208
216
|
hook_ctx=HookContext(
|
|
@@ -221,7 +229,7 @@ class Commits(BaseSDK):
|
|
|
221
229
|
|
|
222
230
|
response_data: Any = None
|
|
223
231
|
if utils.match_response(http_res, "200", "application/json"):
|
|
224
|
-
return unmarshal_json_response(models.
|
|
232
|
+
return unmarshal_json_response(models.CountedGitCommitSummary, http_res)
|
|
225
233
|
if utils.match_response(http_res, "500", "application/json"):
|
|
226
234
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
227
235
|
raise errors.Error(response_data, http_res)
|
|
@@ -245,7 +253,7 @@ class Commits(BaseSDK):
|
|
|
245
253
|
server_url: Optional[str] = None,
|
|
246
254
|
timeout_ms: Optional[int] = None,
|
|
247
255
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
248
|
-
) -> models.
|
|
256
|
+
) -> models.CountedGitDiffResult:
|
|
249
257
|
r"""Get the diff for a commit
|
|
250
258
|
|
|
251
259
|
Get the diff for a commit. Default is the latest commit (HEAD).
|
|
@@ -296,10 +304,14 @@ class Commits(BaseSDK):
|
|
|
296
304
|
if retries == UNSET:
|
|
297
305
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
298
306
|
retries = self.sdk_configuration.retry_config
|
|
307
|
+
else:
|
|
308
|
+
retries = utils.RetryConfig(
|
|
309
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
310
|
+
)
|
|
299
311
|
|
|
300
312
|
retry_config = None
|
|
301
313
|
if isinstance(retries, utils.RetryConfig):
|
|
302
|
-
retry_config = (retries, ["429"
|
|
314
|
+
retry_config = (retries, ["429"])
|
|
303
315
|
|
|
304
316
|
http_res = self.do_request(
|
|
305
317
|
hook_ctx=HookContext(
|
|
@@ -318,7 +330,7 @@ class Commits(BaseSDK):
|
|
|
318
330
|
|
|
319
331
|
response_data: Any = None
|
|
320
332
|
if utils.match_response(http_res, "200", "application/json"):
|
|
321
|
-
return unmarshal_json_response(models.
|
|
333
|
+
return unmarshal_json_response(models.CountedGitDiffResult, http_res)
|
|
322
334
|
if utils.match_response(http_res, "500", "application/json"):
|
|
323
335
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
324
336
|
raise errors.Error(response_data, http_res)
|
|
@@ -342,7 +354,7 @@ class Commits(BaseSDK):
|
|
|
342
354
|
server_url: Optional[str] = None,
|
|
343
355
|
timeout_ms: Optional[int] = None,
|
|
344
356
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
345
|
-
) -> models.
|
|
357
|
+
) -> models.CountedGitDiffResult:
|
|
346
358
|
r"""Get the diff for a commit
|
|
347
359
|
|
|
348
360
|
Get the diff for a commit. Default is the latest commit (HEAD).
|
|
@@ -393,10 +405,14 @@ class Commits(BaseSDK):
|
|
|
393
405
|
if retries == UNSET:
|
|
394
406
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
395
407
|
retries = self.sdk_configuration.retry_config
|
|
408
|
+
else:
|
|
409
|
+
retries = utils.RetryConfig(
|
|
410
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
411
|
+
)
|
|
396
412
|
|
|
397
413
|
retry_config = None
|
|
398
414
|
if isinstance(retries, utils.RetryConfig):
|
|
399
|
-
retry_config = (retries, ["429"
|
|
415
|
+
retry_config = (retries, ["429"])
|
|
400
416
|
|
|
401
417
|
http_res = await self.do_request_async(
|
|
402
418
|
hook_ctx=HookContext(
|
|
@@ -415,7 +431,7 @@ class Commits(BaseSDK):
|
|
|
415
431
|
|
|
416
432
|
response_data: Any = None
|
|
417
433
|
if utils.match_response(http_res, "200", "application/json"):
|
|
418
|
-
return unmarshal_json_response(models.
|
|
434
|
+
return unmarshal_json_response(models.CountedGitDiffResult, http_res)
|
|
419
435
|
if utils.match_response(http_res, "500", "application/json"):
|
|
420
436
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
421
437
|
raise errors.Error(response_data, http_res)
|
|
@@ -437,7 +453,7 @@ class Commits(BaseSDK):
|
|
|
437
453
|
server_url: Optional[str] = None,
|
|
438
454
|
timeout_ms: Optional[int] = None,
|
|
439
455
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
440
|
-
) -> models.
|
|
456
|
+
) -> models.CountedGitLogResult:
|
|
441
457
|
r"""List the commit history
|
|
442
458
|
|
|
443
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.
|
|
@@ -484,10 +500,14 @@ class Commits(BaseSDK):
|
|
|
484
500
|
if retries == UNSET:
|
|
485
501
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
486
502
|
retries = self.sdk_configuration.retry_config
|
|
503
|
+
else:
|
|
504
|
+
retries = utils.RetryConfig(
|
|
505
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
506
|
+
)
|
|
487
507
|
|
|
488
508
|
retry_config = None
|
|
489
509
|
if isinstance(retries, utils.RetryConfig):
|
|
490
|
-
retry_config = (retries, ["429"
|
|
510
|
+
retry_config = (retries, ["429"])
|
|
491
511
|
|
|
492
512
|
http_res = self.do_request(
|
|
493
513
|
hook_ctx=HookContext(
|
|
@@ -506,7 +526,7 @@ class Commits(BaseSDK):
|
|
|
506
526
|
|
|
507
527
|
response_data: Any = None
|
|
508
528
|
if utils.match_response(http_res, "200", "application/json"):
|
|
509
|
-
return unmarshal_json_response(models.
|
|
529
|
+
return unmarshal_json_response(models.CountedGitLogResult, http_res)
|
|
510
530
|
if utils.match_response(http_res, "500", "application/json"):
|
|
511
531
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
512
532
|
raise errors.Error(response_data, http_res)
|
|
@@ -528,7 +548,7 @@ class Commits(BaseSDK):
|
|
|
528
548
|
server_url: Optional[str] = None,
|
|
529
549
|
timeout_ms: Optional[int] = None,
|
|
530
550
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
531
|
-
) -> models.
|
|
551
|
+
) -> models.CountedGitLogResult:
|
|
532
552
|
r"""List the commit history
|
|
533
553
|
|
|
534
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.
|
|
@@ -575,10 +595,14 @@ class Commits(BaseSDK):
|
|
|
575
595
|
if retries == UNSET:
|
|
576
596
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
577
597
|
retries = self.sdk_configuration.retry_config
|
|
598
|
+
else:
|
|
599
|
+
retries = utils.RetryConfig(
|
|
600
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
601
|
+
)
|
|
578
602
|
|
|
579
603
|
retry_config = None
|
|
580
604
|
if isinstance(retries, utils.RetryConfig):
|
|
581
|
-
retry_config = (retries, ["429"
|
|
605
|
+
retry_config = (retries, ["429"])
|
|
582
606
|
|
|
583
607
|
http_res = await self.do_request_async(
|
|
584
608
|
hook_ctx=HookContext(
|
|
@@ -597,7 +621,7 @@ class Commits(BaseSDK):
|
|
|
597
621
|
|
|
598
622
|
response_data: Any = None
|
|
599
623
|
if utils.match_response(http_res, "200", "application/json"):
|
|
600
|
-
return unmarshal_json_response(models.
|
|
624
|
+
return unmarshal_json_response(models.CountedGitLogResult, http_res)
|
|
601
625
|
if utils.match_response(http_res, "500", "application/json"):
|
|
602
626
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
603
627
|
raise errors.Error(response_data, http_res)
|
|
@@ -617,7 +641,7 @@ class Commits(BaseSDK):
|
|
|
617
641
|
server_url: Optional[str] = None,
|
|
618
642
|
timeout_ms: Optional[int] = None,
|
|
619
643
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
620
|
-
) -> models.
|
|
644
|
+
) -> models.CountedString:
|
|
621
645
|
r"""Push local commits to the remote repository
|
|
622
646
|
|
|
623
647
|
Push all local commits from the local repository to the remote repository.
|
|
@@ -656,10 +680,14 @@ class Commits(BaseSDK):
|
|
|
656
680
|
if retries == UNSET:
|
|
657
681
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
658
682
|
retries = self.sdk_configuration.retry_config
|
|
683
|
+
else:
|
|
684
|
+
retries = utils.RetryConfig(
|
|
685
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
686
|
+
)
|
|
659
687
|
|
|
660
688
|
retry_config = None
|
|
661
689
|
if isinstance(retries, utils.RetryConfig):
|
|
662
|
-
retry_config = (retries, ["429"
|
|
690
|
+
retry_config = (retries, ["429"])
|
|
663
691
|
|
|
664
692
|
http_res = self.do_request(
|
|
665
693
|
hook_ctx=HookContext(
|
|
@@ -678,7 +706,7 @@ class Commits(BaseSDK):
|
|
|
678
706
|
|
|
679
707
|
response_data: Any = None
|
|
680
708
|
if utils.match_response(http_res, "200", "application/json"):
|
|
681
|
-
return unmarshal_json_response(models.
|
|
709
|
+
return unmarshal_json_response(models.CountedString, http_res)
|
|
682
710
|
if utils.match_response(http_res, "500", "application/json"):
|
|
683
711
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
684
712
|
raise errors.Error(response_data, http_res)
|
|
@@ -698,7 +726,7 @@ class Commits(BaseSDK):
|
|
|
698
726
|
server_url: Optional[str] = None,
|
|
699
727
|
timeout_ms: Optional[int] = None,
|
|
700
728
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
701
|
-
) -> models.
|
|
729
|
+
) -> models.CountedString:
|
|
702
730
|
r"""Push local commits to the remote repository
|
|
703
731
|
|
|
704
732
|
Push all local commits from the local repository to the remote repository.
|
|
@@ -737,10 +765,14 @@ class Commits(BaseSDK):
|
|
|
737
765
|
if retries == UNSET:
|
|
738
766
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
739
767
|
retries = self.sdk_configuration.retry_config
|
|
768
|
+
else:
|
|
769
|
+
retries = utils.RetryConfig(
|
|
770
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
771
|
+
)
|
|
740
772
|
|
|
741
773
|
retry_config = None
|
|
742
774
|
if isinstance(retries, utils.RetryConfig):
|
|
743
|
-
retry_config = (retries, ["429"
|
|
775
|
+
retry_config = (retries, ["429"])
|
|
744
776
|
|
|
745
777
|
http_res = await self.do_request_async(
|
|
746
778
|
hook_ctx=HookContext(
|
|
@@ -759,7 +791,7 @@ class Commits(BaseSDK):
|
|
|
759
791
|
|
|
760
792
|
response_data: Any = None
|
|
761
793
|
if utils.match_response(http_res, "200", "application/json"):
|
|
762
|
-
return unmarshal_json_response(models.
|
|
794
|
+
return unmarshal_json_response(models.CountedString, http_res)
|
|
763
795
|
if utils.match_response(http_res, "500", "application/json"):
|
|
764
796
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
765
797
|
raise errors.Error(response_data, http_res)
|
|
@@ -783,7 +815,7 @@ class Commits(BaseSDK):
|
|
|
783
815
|
server_url: Optional[str] = None,
|
|
784
816
|
timeout_ms: Optional[int] = None,
|
|
785
817
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
786
|
-
) -> models.
|
|
818
|
+
) -> models.CountedGitRevertResult:
|
|
787
819
|
r"""Revert a commit in the local repository
|
|
788
820
|
|
|
789
821
|
Revert a commit in the local repository.
|
|
@@ -839,10 +871,14 @@ class Commits(BaseSDK):
|
|
|
839
871
|
if retries == UNSET:
|
|
840
872
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
841
873
|
retries = self.sdk_configuration.retry_config
|
|
874
|
+
else:
|
|
875
|
+
retries = utils.RetryConfig(
|
|
876
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
877
|
+
)
|
|
842
878
|
|
|
843
879
|
retry_config = None
|
|
844
880
|
if isinstance(retries, utils.RetryConfig):
|
|
845
|
-
retry_config = (retries, ["429"
|
|
881
|
+
retry_config = (retries, ["429"])
|
|
846
882
|
|
|
847
883
|
http_res = self.do_request(
|
|
848
884
|
hook_ctx=HookContext(
|
|
@@ -861,7 +897,7 @@ class Commits(BaseSDK):
|
|
|
861
897
|
|
|
862
898
|
response_data: Any = None
|
|
863
899
|
if utils.match_response(http_res, "200", "application/json"):
|
|
864
|
-
return unmarshal_json_response(models.
|
|
900
|
+
return unmarshal_json_response(models.CountedGitRevertResult, http_res)
|
|
865
901
|
if utils.match_response(http_res, "500", "application/json"):
|
|
866
902
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
867
903
|
raise errors.Error(response_data, http_res)
|
|
@@ -885,7 +921,7 @@ class Commits(BaseSDK):
|
|
|
885
921
|
server_url: Optional[str] = None,
|
|
886
922
|
timeout_ms: Optional[int] = None,
|
|
887
923
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
888
|
-
) -> models.
|
|
924
|
+
) -> models.CountedGitRevertResult:
|
|
889
925
|
r"""Revert a commit in the local repository
|
|
890
926
|
|
|
891
927
|
Revert a commit in the local repository.
|
|
@@ -941,10 +977,14 @@ class Commits(BaseSDK):
|
|
|
941
977
|
if retries == UNSET:
|
|
942
978
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
943
979
|
retries = self.sdk_configuration.retry_config
|
|
980
|
+
else:
|
|
981
|
+
retries = utils.RetryConfig(
|
|
982
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
983
|
+
)
|
|
944
984
|
|
|
945
985
|
retry_config = None
|
|
946
986
|
if isinstance(retries, utils.RetryConfig):
|
|
947
|
-
retry_config = (retries, ["429"
|
|
987
|
+
retry_config = (retries, ["429"])
|
|
948
988
|
|
|
949
989
|
http_res = await self.do_request_async(
|
|
950
990
|
hook_ctx=HookContext(
|
|
@@ -963,7 +1003,7 @@ class Commits(BaseSDK):
|
|
|
963
1003
|
|
|
964
1004
|
response_data: Any = None
|
|
965
1005
|
if utils.match_response(http_res, "200", "application/json"):
|
|
966
|
-
return unmarshal_json_response(models.
|
|
1006
|
+
return unmarshal_json_response(models.CountedGitRevertResult, http_res)
|
|
967
1007
|
if utils.match_response(http_res, "500", "application/json"):
|
|
968
1008
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
969
1009
|
raise errors.Error(response_data, http_res)
|
|
@@ -987,7 +1027,7 @@ class Commits(BaseSDK):
|
|
|
987
1027
|
server_url: Optional[str] = None,
|
|
988
1028
|
timeout_ms: Optional[int] = None,
|
|
989
1029
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
990
|
-
) -> models.
|
|
1030
|
+
) -> models.CountedGitShowResult:
|
|
991
1031
|
r"""Get the diff and log message for a commit
|
|
992
1032
|
|
|
993
1033
|
Get the diff and log message for a commit. Default is the latest commit (HEAD).
|
|
@@ -1038,10 +1078,14 @@ class Commits(BaseSDK):
|
|
|
1038
1078
|
if retries == UNSET:
|
|
1039
1079
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
1040
1080
|
retries = self.sdk_configuration.retry_config
|
|
1081
|
+
else:
|
|
1082
|
+
retries = utils.RetryConfig(
|
|
1083
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
1084
|
+
)
|
|
1041
1085
|
|
|
1042
1086
|
retry_config = None
|
|
1043
1087
|
if isinstance(retries, utils.RetryConfig):
|
|
1044
|
-
retry_config = (retries, ["429"
|
|
1088
|
+
retry_config = (retries, ["429"])
|
|
1045
1089
|
|
|
1046
1090
|
http_res = self.do_request(
|
|
1047
1091
|
hook_ctx=HookContext(
|
|
@@ -1060,7 +1104,7 @@ class Commits(BaseSDK):
|
|
|
1060
1104
|
|
|
1061
1105
|
response_data: Any = None
|
|
1062
1106
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1063
|
-
return unmarshal_json_response(models.
|
|
1107
|
+
return unmarshal_json_response(models.CountedGitShowResult, http_res)
|
|
1064
1108
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1065
1109
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1066
1110
|
raise errors.Error(response_data, http_res)
|
|
@@ -1084,7 +1128,7 @@ class Commits(BaseSDK):
|
|
|
1084
1128
|
server_url: Optional[str] = None,
|
|
1085
1129
|
timeout_ms: Optional[int] = None,
|
|
1086
1130
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1087
|
-
) -> models.
|
|
1131
|
+
) -> models.CountedGitShowResult:
|
|
1088
1132
|
r"""Get the diff and log message for a commit
|
|
1089
1133
|
|
|
1090
1134
|
Get the diff and log message for a commit. Default is the latest commit (HEAD).
|
|
@@ -1135,10 +1179,14 @@ class Commits(BaseSDK):
|
|
|
1135
1179
|
if retries == UNSET:
|
|
1136
1180
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
1137
1181
|
retries = self.sdk_configuration.retry_config
|
|
1182
|
+
else:
|
|
1183
|
+
retries = utils.RetryConfig(
|
|
1184
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
1185
|
+
)
|
|
1138
1186
|
|
|
1139
1187
|
retry_config = None
|
|
1140
1188
|
if isinstance(retries, utils.RetryConfig):
|
|
1141
|
-
retry_config = (retries, ["429"
|
|
1189
|
+
retry_config = (retries, ["429"])
|
|
1142
1190
|
|
|
1143
1191
|
http_res = await self.do_request_async(
|
|
1144
1192
|
hook_ctx=HookContext(
|
|
@@ -1157,7 +1205,7 @@ class Commits(BaseSDK):
|
|
|
1157
1205
|
|
|
1158
1206
|
response_data: Any = None
|
|
1159
1207
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1160
|
-
return unmarshal_json_response(models.
|
|
1208
|
+
return unmarshal_json_response(models.CountedGitShowResult, http_res)
|
|
1161
1209
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1162
1210
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1163
1211
|
raise errors.Error(response_data, http_res)
|
|
@@ -1178,7 +1226,7 @@ class Commits(BaseSDK):
|
|
|
1178
1226
|
server_url: Optional[str] = None,
|
|
1179
1227
|
timeout_ms: Optional[int] = None,
|
|
1180
1228
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1181
|
-
) -> models.
|
|
1229
|
+
) -> models.CountedObject:
|
|
1182
1230
|
r"""Discard uncommitted (staged) changes
|
|
1183
1231
|
|
|
1184
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.
|
|
@@ -1223,10 +1271,14 @@ class Commits(BaseSDK):
|
|
|
1223
1271
|
if retries == UNSET:
|
|
1224
1272
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
1225
1273
|
retries = self.sdk_configuration.retry_config
|
|
1274
|
+
else:
|
|
1275
|
+
retries = utils.RetryConfig(
|
|
1276
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
1277
|
+
)
|
|
1226
1278
|
|
|
1227
1279
|
retry_config = None
|
|
1228
1280
|
if isinstance(retries, utils.RetryConfig):
|
|
1229
|
-
retry_config = (retries, ["429"
|
|
1281
|
+
retry_config = (retries, ["429"])
|
|
1230
1282
|
|
|
1231
1283
|
http_res = self.do_request(
|
|
1232
1284
|
hook_ctx=HookContext(
|
|
@@ -1245,7 +1297,7 @@ class Commits(BaseSDK):
|
|
|
1245
1297
|
|
|
1246
1298
|
response_data: Any = None
|
|
1247
1299
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1248
|
-
return unmarshal_json_response(models.
|
|
1300
|
+
return unmarshal_json_response(models.CountedObject, http_res)
|
|
1249
1301
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1250
1302
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1251
1303
|
raise errors.Error(response_data, http_res)
|
|
@@ -1266,7 +1318,7 @@ class Commits(BaseSDK):
|
|
|
1266
1318
|
server_url: Optional[str] = None,
|
|
1267
1319
|
timeout_ms: Optional[int] = None,
|
|
1268
1320
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
1269
|
-
) -> models.
|
|
1321
|
+
) -> models.CountedObject:
|
|
1270
1322
|
r"""Discard uncommitted (staged) changes
|
|
1271
1323
|
|
|
1272
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.
|
|
@@ -1311,10 +1363,14 @@ class Commits(BaseSDK):
|
|
|
1311
1363
|
if retries == UNSET:
|
|
1312
1364
|
if self.sdk_configuration.retry_config is not UNSET:
|
|
1313
1365
|
retries = self.sdk_configuration.retry_config
|
|
1366
|
+
else:
|
|
1367
|
+
retries = utils.RetryConfig(
|
|
1368
|
+
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
|
|
1369
|
+
)
|
|
1314
1370
|
|
|
1315
1371
|
retry_config = None
|
|
1316
1372
|
if isinstance(retries, utils.RetryConfig):
|
|
1317
|
-
retry_config = (retries, ["429"
|
|
1373
|
+
retry_config = (retries, ["429"])
|
|
1318
1374
|
|
|
1319
1375
|
http_res = await self.do_request_async(
|
|
1320
1376
|
hook_ctx=HookContext(
|
|
@@ -1333,7 +1389,7 @@ class Commits(BaseSDK):
|
|
|
1333
1389
|
|
|
1334
1390
|
response_data: Any = None
|
|
1335
1391
|
if utils.match_response(http_res, "200", "application/json"):
|
|
1336
|
-
return unmarshal_json_response(models.
|
|
1392
|
+
return unmarshal_json_response(models.CountedObject, http_res)
|
|
1337
1393
|
if utils.match_response(http_res, "500", "application/json"):
|
|
1338
1394
|
response_data = unmarshal_json_response(errors.ErrorData, http_res)
|
|
1339
1395
|
raise errors.Error(response_data, http_res)
|