smplkit 3.0.117 → 3.0.119

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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/api/retry_policies_api.rb +364 -0
  3. data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/api/runs_api.rb +9 -6
  4. data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/error.rb +213 -0
  5. data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/error_response.rb +167 -0
  6. data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/job.rb +12 -1
  7. data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/job_environment.rb +12 -1
  8. data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/retry_on.rb +185 -0
  9. data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/retry_policy.rb +396 -0
  10. data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/retry_policy_create_request.rb +165 -0
  11. data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/retry_policy_create_resource.rb +237 -0
  12. data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/retry_policy_list_response.rb +193 -0
  13. data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/retry_policy_request.rb +165 -0
  14. data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/retry_policy_resource.rb +186 -0
  15. data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/retry_policy_response.rb +165 -0
  16. data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/run.rb +15 -4
  17. data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/run_list_meta.rb +1 -1
  18. data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/run_retry.rb +193 -0
  19. data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client.rb +12 -0
  20. data/lib/smplkit/_generated/jobs/spec/api/retry_policies_api_spec.rb +100 -0
  21. data/lib/smplkit/_generated/jobs/spec/api/runs_api_spec.rb +4 -3
  22. data/lib/smplkit/_generated/jobs/spec/models/error_response_spec.rb +36 -0
  23. data/lib/smplkit/_generated/jobs/spec/models/error_spec.rb +54 -0
  24. data/lib/smplkit/_generated/jobs/spec/models/job_environment_spec.rb +6 -0
  25. data/lib/smplkit/_generated/jobs/spec/models/job_spec.rb +6 -0
  26. data/lib/smplkit/_generated/jobs/spec/models/retry_on_spec.rb +46 -0
  27. data/lib/smplkit/_generated/jobs/spec/models/retry_policy_create_request_spec.rb +36 -0
  28. data/lib/smplkit/_generated/jobs/spec/models/retry_policy_create_resource_spec.rb +52 -0
  29. data/lib/smplkit/_generated/jobs/spec/models/retry_policy_list_response_spec.rb +42 -0
  30. data/lib/smplkit/_generated/jobs/spec/models/retry_policy_request_spec.rb +36 -0
  31. data/lib/smplkit/_generated/jobs/spec/models/retry_policy_resource_spec.rb +48 -0
  32. data/lib/smplkit/_generated/jobs/spec/models/retry_policy_response_spec.rb +36 -0
  33. data/lib/smplkit/_generated/jobs/spec/models/retry_policy_spec.rb +94 -0
  34. data/lib/smplkit/_generated/jobs/spec/models/run_retry_spec.rb +42 -0
  35. data/lib/smplkit/_generated/jobs/spec/models/run_spec.rb +7 -1
  36. metadata +25 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d24fdc29df5e09eeb9aced770603d9166f8afb58e38ab20c3dbe73ff2ce551b
4
- data.tar.gz: 3b517f4874247ea7acdf945fcaa569a9049f8cde042457d270cf4a45a193b9d1
3
+ metadata.gz: 9911186cf0810c9d76cc16feb24f9a155d8c6708fce3edc406b581b5c9376f1c
4
+ data.tar.gz: '009441ca636ade20f9f9a4cbec10d9ea9d2255b81549a2bc7e1274a94091e05d'
5
5
  SHA512:
6
- metadata.gz: 1c18a392a7507b18fed79333f2c951507af3e8243d6eff12de84cd78ebfcd49d455ae45377ace9c125a8083571ac66524bc4599b1cd0f1b3674f7b59d1b6a405
7
- data.tar.gz: ae50568454496b81f22fc3a28545bd0aa531b854443b33e865bebe5e2ede08bded4405b450412a5bfcdbbc365c687967bb2e10427701aeeaea0931d5ec1fbe90
6
+ metadata.gz: 5558c39aa882f3bc403613ac51bf20b8f8dddbd4eb663126847a6b5f3a0c5fd961ec13f939c274e3c39c46f3cc2af8d2e44540b999c1e6e4b2239e1a1886e4ec
7
+ data.tar.gz: e944872fdef51e90924897ee1173e0dcad70f36255e95a1372f99690f238478852890e54ba1c1a62bbebab2fd7b73f81cecbb4a27591cb79382a348edb46657c
@@ -0,0 +1,364 @@
1
+ =begin
2
+ #smplkit Jobs API
3
+
4
+ #Scheduled HTTP job execution API for smplkit.
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module SmplkitGeneratedClient::Jobs
16
+ class RetryPoliciesApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create Retry Policy
23
+ # Create a retry policy for this account. The caller supplies the policy's id as `data.id`. Ids are unique within an account and immutable. `Default` is reserved for the built-in policy and cannot be created.
24
+ # @param retry_policy_create_request [RetryPolicyCreateRequest]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [RetryPolicyResponse]
27
+ def create_retry_policy(retry_policy_create_request, opts = {})
28
+ data, _status_code, _headers = create_retry_policy_with_http_info(retry_policy_create_request, opts)
29
+ data
30
+ end
31
+
32
+ # Create Retry Policy
33
+ # Create a retry policy for this account. The caller supplies the policy's id as `data.id`. Ids are unique within an account and immutable. `Default` is reserved for the built-in policy and cannot be created.
34
+ # @param retry_policy_create_request [RetryPolicyCreateRequest]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(RetryPolicyResponse, Integer, Hash)>] RetryPolicyResponse data, response status code and response headers
37
+ def create_retry_policy_with_http_info(retry_policy_create_request, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: RetryPoliciesApi.create_retry_policy ...'
40
+ end
41
+ # verify the required parameter 'retry_policy_create_request' is set
42
+ if @api_client.config.client_side_validation && retry_policy_create_request.nil?
43
+ fail ArgumentError, "Missing the required parameter 'retry_policy_create_request' when calling RetryPoliciesApi.create_retry_policy"
44
+ end
45
+ # resource path
46
+ local_var_path = '/api/v1/retry-policies'
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json']) unless header_params['Accept']
55
+ # HTTP header 'Content-Type'
56
+ content_type = @api_client.select_header_content_type(['application/vnd.api+json'])
57
+ if !content_type.nil?
58
+ header_params['Content-Type'] = content_type
59
+ end
60
+
61
+ # form parameters
62
+ form_params = opts[:form_params] || {}
63
+
64
+ # http body (model)
65
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(retry_policy_create_request)
66
+
67
+ # return_type
68
+ return_type = opts[:debug_return_type] || 'RetryPolicyResponse'
69
+
70
+ # auth_names
71
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
72
+
73
+ new_options = opts.merge(
74
+ :operation => :"RetryPoliciesApi.create_retry_policy",
75
+ :header_params => header_params,
76
+ :query_params => query_params,
77
+ :form_params => form_params,
78
+ :body => post_body,
79
+ :auth_names => auth_names,
80
+ :return_type => return_type
81
+ )
82
+
83
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
84
+ if @api_client.config.debugging
85
+ @api_client.config.logger.debug "API called: RetryPoliciesApi#create_retry_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
+ end
87
+ return data, status_code, headers
88
+ end
89
+
90
+ # Delete Retry Policy
91
+ # Delete a retry policy. The built-in `Default` policy cannot be deleted (`403`). A policy still referenced by any job — at the base level or in a per-environment override — cannot be deleted (`409`); the error lists the referencing job ids under `meta.referencing_jobs` so they can be reassigned to `Default` first.
92
+ # @param policy_id [String]
93
+ # @param [Hash] opts the optional parameters
94
+ # @return [nil]
95
+ def delete_retry_policy(policy_id, opts = {})
96
+ delete_retry_policy_with_http_info(policy_id, opts)
97
+ nil
98
+ end
99
+
100
+ # Delete Retry Policy
101
+ # Delete a retry policy. The built-in &#x60;Default&#x60; policy cannot be deleted (&#x60;403&#x60;). A policy still referenced by any job — at the base level or in a per-environment override — cannot be deleted (&#x60;409&#x60;); the error lists the referencing job ids under &#x60;meta.referencing_jobs&#x60; so they can be reassigned to &#x60;Default&#x60; first.
102
+ # @param policy_id [String]
103
+ # @param [Hash] opts the optional parameters
104
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
105
+ def delete_retry_policy_with_http_info(policy_id, opts = {})
106
+ if @api_client.config.debugging
107
+ @api_client.config.logger.debug 'Calling API: RetryPoliciesApi.delete_retry_policy ...'
108
+ end
109
+ # verify the required parameter 'policy_id' is set
110
+ if @api_client.config.client_side_validation && policy_id.nil?
111
+ fail ArgumentError, "Missing the required parameter 'policy_id' when calling RetryPoliciesApi.delete_retry_policy"
112
+ end
113
+ # resource path
114
+ local_var_path = '/api/v1/retry-policies/{policy_id}'.sub('{policy_id}', CGI.escape(policy_id.to_s))
115
+
116
+ # query parameters
117
+ query_params = opts[:query_params] || {}
118
+
119
+ # header parameters
120
+ header_params = opts[:header_params] || {}
121
+
122
+ # form parameters
123
+ form_params = opts[:form_params] || {}
124
+
125
+ # http body (model)
126
+ post_body = opts[:debug_body]
127
+
128
+ # return_type
129
+ return_type = opts[:debug_return_type]
130
+
131
+ # auth_names
132
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
133
+
134
+ new_options = opts.merge(
135
+ :operation => :"RetryPoliciesApi.delete_retry_policy",
136
+ :header_params => header_params,
137
+ :query_params => query_params,
138
+ :form_params => form_params,
139
+ :body => post_body,
140
+ :auth_names => auth_names,
141
+ :return_type => return_type
142
+ )
143
+
144
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
145
+ if @api_client.config.debugging
146
+ @api_client.config.logger.debug "API called: RetryPoliciesApi#delete_retry_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
147
+ end
148
+ return data, status_code, headers
149
+ end
150
+
151
+ # Get Retry Policy
152
+ # Retrieve a single retry policy by its id. `Default` returns the built-in do-not-retry policy.
153
+ # @param policy_id [String]
154
+ # @param [Hash] opts the optional parameters
155
+ # @return [RetryPolicyResponse]
156
+ def get_retry_policy(policy_id, opts = {})
157
+ data, _status_code, _headers = get_retry_policy_with_http_info(policy_id, opts)
158
+ data
159
+ end
160
+
161
+ # Get Retry Policy
162
+ # Retrieve a single retry policy by its id. &#x60;Default&#x60; returns the built-in do-not-retry policy.
163
+ # @param policy_id [String]
164
+ # @param [Hash] opts the optional parameters
165
+ # @return [Array<(RetryPolicyResponse, Integer, Hash)>] RetryPolicyResponse data, response status code and response headers
166
+ def get_retry_policy_with_http_info(policy_id, opts = {})
167
+ if @api_client.config.debugging
168
+ @api_client.config.logger.debug 'Calling API: RetryPoliciesApi.get_retry_policy ...'
169
+ end
170
+ # verify the required parameter 'policy_id' is set
171
+ if @api_client.config.client_side_validation && policy_id.nil?
172
+ fail ArgumentError, "Missing the required parameter 'policy_id' when calling RetryPoliciesApi.get_retry_policy"
173
+ end
174
+ # resource path
175
+ local_var_path = '/api/v1/retry-policies/{policy_id}'.sub('{policy_id}', CGI.escape(policy_id.to_s))
176
+
177
+ # query parameters
178
+ query_params = opts[:query_params] || {}
179
+
180
+ # header parameters
181
+ header_params = opts[:header_params] || {}
182
+ # HTTP header 'Accept' (if needed)
183
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json']) unless header_params['Accept']
184
+
185
+ # form parameters
186
+ form_params = opts[:form_params] || {}
187
+
188
+ # http body (model)
189
+ post_body = opts[:debug_body]
190
+
191
+ # return_type
192
+ return_type = opts[:debug_return_type] || 'RetryPolicyResponse'
193
+
194
+ # auth_names
195
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
196
+
197
+ new_options = opts.merge(
198
+ :operation => :"RetryPoliciesApi.get_retry_policy",
199
+ :header_params => header_params,
200
+ :query_params => query_params,
201
+ :form_params => form_params,
202
+ :body => post_body,
203
+ :auth_names => auth_names,
204
+ :return_type => return_type
205
+ )
206
+
207
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
208
+ if @api_client.config.debugging
209
+ @api_client.config.logger.debug "API called: RetryPoliciesApi#get_retry_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
210
+ end
211
+ return data, status_code, headers
212
+ end
213
+
214
+ # List Retry Policies
215
+ # List this account's retry policies. Default sort is `name` ascending. Sort by `name`, `created_at`, or `updated_at` (prefix `-` for descending). The built-in `Default` policy is not included here — it always exists and is retrievable at `/retry-policies/Default`.
216
+ # @param [Hash] opts the optional parameters
217
+ # @option opts [String] :filter_name Case-insensitive substring match on the policy &#x60;name&#x60; (matches when the name contains the given text).
218
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;name&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;name&#x60;, &#x60;-name&#x60;, &#x60;updated_at&#x60;, &#x60;-updated_at&#x60;. (default to 'name')
219
+ # @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to &#x60;1&#x60; when omitted. Must be &#x60;&gt;&#x3D; 1&#x60; — requests with a smaller value are rejected with a 400 error. (default to 1)
220
+ # @option opts [Integer] :page_size Number of items per page. Optional; defaults to &#x60;1000&#x60; when omitted. Must be between &#x60;1&#x60; and &#x60;1000&#x60; inclusive — requests outside that range are rejected with a 400 error. (default to 1000)
221
+ # @option opts [Boolean] :meta_total When &#x60;true&#x60;, the response&#39;s &#x60;meta.pagination&#x60; block includes &#x60;total&#x60; (the total number of matching items across all pages) and &#x60;total_pages&#x60;. Computing these requires an extra &#x60;COUNT&#x60; query, so omit (or pass &#x60;false&#x60;) when the totals are not needed. Defaults to &#x60;false&#x60;. (default to false)
222
+ # @return [RetryPolicyListResponse]
223
+ def list_retry_policies(opts = {})
224
+ data, _status_code, _headers = list_retry_policies_with_http_info(opts)
225
+ data
226
+ end
227
+
228
+ # List Retry Policies
229
+ # List this account&#39;s retry policies. Default sort is &#x60;name&#x60; ascending. Sort by &#x60;name&#x60;, &#x60;created_at&#x60;, or &#x60;updated_at&#x60; (prefix &#x60;-&#x60; for descending). The built-in &#x60;Default&#x60; policy is not included here — it always exists and is retrievable at &#x60;/retry-policies/Default&#x60;.
230
+ # @param [Hash] opts the optional parameters
231
+ # @option opts [String] :filter_name Case-insensitive substring match on the policy &#x60;name&#x60; (matches when the name contains the given text).
232
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;name&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;name&#x60;, &#x60;-name&#x60;, &#x60;updated_at&#x60;, &#x60;-updated_at&#x60;. (default to 'name')
233
+ # @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to &#x60;1&#x60; when omitted. Must be &#x60;&gt;&#x3D; 1&#x60; — requests with a smaller value are rejected with a 400 error. (default to 1)
234
+ # @option opts [Integer] :page_size Number of items per page. Optional; defaults to &#x60;1000&#x60; when omitted. Must be between &#x60;1&#x60; and &#x60;1000&#x60; inclusive — requests outside that range are rejected with a 400 error. (default to 1000)
235
+ # @option opts [Boolean] :meta_total When &#x60;true&#x60;, the response&#39;s &#x60;meta.pagination&#x60; block includes &#x60;total&#x60; (the total number of matching items across all pages) and &#x60;total_pages&#x60;. Computing these requires an extra &#x60;COUNT&#x60; query, so omit (or pass &#x60;false&#x60;) when the totals are not needed. Defaults to &#x60;false&#x60;. (default to false)
236
+ # @return [Array<(RetryPolicyListResponse, Integer, Hash)>] RetryPolicyListResponse data, response status code and response headers
237
+ def list_retry_policies_with_http_info(opts = {})
238
+ if @api_client.config.debugging
239
+ @api_client.config.logger.debug 'Calling API: RetryPoliciesApi.list_retry_policies ...'
240
+ end
241
+ allowable_values = ["created_at", "-created_at", "name", "-name", "updated_at", "-updated_at"]
242
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
243
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
244
+ end
245
+ # resource path
246
+ local_var_path = '/api/v1/retry-policies'
247
+
248
+ # query parameters
249
+ query_params = opts[:query_params] || {}
250
+ query_params[:'filter[name]'] = opts[:'filter_name'] if !opts[:'filter_name'].nil?
251
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
252
+ query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
253
+ query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
254
+ query_params[:'meta[total]'] = opts[:'meta_total'] if !opts[:'meta_total'].nil?
255
+
256
+ # header parameters
257
+ header_params = opts[:header_params] || {}
258
+ # HTTP header 'Accept' (if needed)
259
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json']) unless header_params['Accept']
260
+
261
+ # form parameters
262
+ form_params = opts[:form_params] || {}
263
+
264
+ # http body (model)
265
+ post_body = opts[:debug_body]
266
+
267
+ # return_type
268
+ return_type = opts[:debug_return_type] || 'RetryPolicyListResponse'
269
+
270
+ # auth_names
271
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
272
+
273
+ new_options = opts.merge(
274
+ :operation => :"RetryPoliciesApi.list_retry_policies",
275
+ :header_params => header_params,
276
+ :query_params => query_params,
277
+ :form_params => form_params,
278
+ :body => post_body,
279
+ :auth_names => auth_names,
280
+ :return_type => return_type
281
+ )
282
+
283
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
284
+ if @api_client.config.debugging
285
+ @api_client.config.logger.debug "API called: RetryPoliciesApi#list_retry_policies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
286
+ end
287
+ return data, status_code, headers
288
+ end
289
+
290
+ # Update Retry Policy
291
+ # Replace an existing retry policy. Every writable field is overwritten. The built-in `Default` policy cannot be modified.
292
+ # @param policy_id [String]
293
+ # @param retry_policy_request [RetryPolicyRequest]
294
+ # @param [Hash] opts the optional parameters
295
+ # @return [RetryPolicyResponse]
296
+ def update_retry_policy(policy_id, retry_policy_request, opts = {})
297
+ data, _status_code, _headers = update_retry_policy_with_http_info(policy_id, retry_policy_request, opts)
298
+ data
299
+ end
300
+
301
+ # Update Retry Policy
302
+ # Replace an existing retry policy. Every writable field is overwritten. The built-in &#x60;Default&#x60; policy cannot be modified.
303
+ # @param policy_id [String]
304
+ # @param retry_policy_request [RetryPolicyRequest]
305
+ # @param [Hash] opts the optional parameters
306
+ # @return [Array<(RetryPolicyResponse, Integer, Hash)>] RetryPolicyResponse data, response status code and response headers
307
+ def update_retry_policy_with_http_info(policy_id, retry_policy_request, opts = {})
308
+ if @api_client.config.debugging
309
+ @api_client.config.logger.debug 'Calling API: RetryPoliciesApi.update_retry_policy ...'
310
+ end
311
+ # verify the required parameter 'policy_id' is set
312
+ if @api_client.config.client_side_validation && policy_id.nil?
313
+ fail ArgumentError, "Missing the required parameter 'policy_id' when calling RetryPoliciesApi.update_retry_policy"
314
+ end
315
+ # verify the required parameter 'retry_policy_request' is set
316
+ if @api_client.config.client_side_validation && retry_policy_request.nil?
317
+ fail ArgumentError, "Missing the required parameter 'retry_policy_request' when calling RetryPoliciesApi.update_retry_policy"
318
+ end
319
+ # resource path
320
+ local_var_path = '/api/v1/retry-policies/{policy_id}'.sub('{policy_id}', CGI.escape(policy_id.to_s))
321
+
322
+ # query parameters
323
+ query_params = opts[:query_params] || {}
324
+
325
+ # header parameters
326
+ header_params = opts[:header_params] || {}
327
+ # HTTP header 'Accept' (if needed)
328
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json']) unless header_params['Accept']
329
+ # HTTP header 'Content-Type'
330
+ content_type = @api_client.select_header_content_type(['application/vnd.api+json'])
331
+ if !content_type.nil?
332
+ header_params['Content-Type'] = content_type
333
+ end
334
+
335
+ # form parameters
336
+ form_params = opts[:form_params] || {}
337
+
338
+ # http body (model)
339
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(retry_policy_request)
340
+
341
+ # return_type
342
+ return_type = opts[:debug_return_type] || 'RetryPolicyResponse'
343
+
344
+ # auth_names
345
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
346
+
347
+ new_options = opts.merge(
348
+ :operation => :"RetryPoliciesApi.update_retry_policy",
349
+ :header_params => header_params,
350
+ :query_params => query_params,
351
+ :form_params => form_params,
352
+ :body => post_body,
353
+ :auth_names => auth_names,
354
+ :return_type => return_type
355
+ )
356
+
357
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
358
+ if @api_client.config.debugging
359
+ @api_client.config.logger.debug "API called: RetryPoliciesApi#update_retry_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
360
+ end
361
+ return data, status_code, headers
362
+ end
363
+ end
364
+ end
@@ -20,7 +20,7 @@ module SmplkitGeneratedClient::Jobs
20
20
  @api_client = api_client
21
21
  end
22
22
  # Cancel Run
23
- # Cancel a pending or running run. Returns `409` if the run is already in a terminal state. Canceling a running run stops us tracking it, but the HTTP request may already be in flight — cancel means \"stop tracking,\" not \"guaranteed it didn't happen.\"
23
+ # Cancel a pending or running run. Returns `404` if the run does not exist and `409` if it is already in a terminal state. Canceling a running run stops us tracking it, but the HTTP request may already be in flight — cancel means \"stop tracking,\" not \"guaranteed it didn't happen.\" A run that has already started running still counts toward your monthly run allowance even if you cancel it; a run canceled while it is still pending does not count.
24
24
  # @param run_id [String]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [RunResponse]
@@ -30,7 +30,7 @@ module SmplkitGeneratedClient::Jobs
30
30
  end
31
31
 
32
32
  # Cancel Run
33
- # Cancel a pending or running run. Returns &#x60;409&#x60; if the run is already in a terminal state. Canceling a running run stops us tracking it, but the HTTP request may already be in flight — cancel means \&quot;stop tracking,\&quot; not \&quot;guaranteed it didn&#39;t happen.\&quot;
33
+ # Cancel a pending or running run. Returns &#x60;404&#x60; if the run does not exist and &#x60;409&#x60; if it is already in a terminal state. Canceling a running run stops us tracking it, but the HTTP request may already be in flight — cancel means \&quot;stop tracking,\&quot; not \&quot;guaranteed it didn&#39;t happen.\&quot; A run that has already started running still counts toward your monthly run allowance even if you cancel it; a run canceled while it is still pending does not count.
34
34
  # @param run_id [String]
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @return [Array<(RunResponse, Integer, Hash)>] RunResponse data, response status code and response headers
@@ -146,11 +146,12 @@ module SmplkitGeneratedClient::Jobs
146
146
  end
147
147
 
148
148
  # List Runs
149
- # List runs for this account (cursor paginated). Default sort is `-created_at` (newest first). Sort by `created_at`, `started_at`, `finished_at`, `scheduled_for`, `status`, `job`, or `total_duration_ms`, ascending or descending (prefix `-` for descending). Keep the same `sort` value across paginated requests so the cursor stays consistent. Runs that have not reached the relevant lifecycle point (`started_at`, `finished_at`, `scheduled_for`, `total_duration_ms` unset) sort to the end regardless of direction. Filters compose with AND: - `filter[job]={id}` — a single job's run history. - `filter[status]` — one state or a comma-separated list (any-of). - `filter[environment]` — one environment key or a comma-separated list (any-of); omitted covers every environment you can access. - `filter[created_at]` / `filter[started_at]` / `filter[finished_at]` / `filter[scheduled_for]` — half-open `[start,end)` date ranges (see each parameter for the interval syntax). Set `last_run_only=true` to collapse the result to the last completed run for each job-and-environment combination. \"Completed\" means a terminal state — succeeded, failed, or canceled; in-flight runs (pending or running) are not included, so a job that is mid-run still surfaces its previous completed result and a combination with no completed run yet returns nothing. The filters above still apply, evaluated before the collapse, so each row is the most recent completed run in its group that also satisfies them.
149
+ # List runs for this account (cursor paginated). Default sort is `-created_at` (newest first). Sort by `created_at`, `started_at`, `finished_at`, `scheduled_for`, `status`, `job`, or `total_duration_ms`, ascending or descending (prefix `-` for descending). Keep the same `sort` value across paginated requests so the cursor stays consistent. Runs that have not reached the relevant lifecycle point (`started_at`, `finished_at`, `scheduled_for`, `total_duration_ms` unset) sort to the end regardless of direction. Filters compose with AND: - `filter[job]={id}` — a single job's run history. - `filter[status]` — one state or a comma-separated list (any-of). - `filter[trigger]` — one trigger (`SCHEDULE`, `MANUAL`, `RERUN`, `RETRY`) or a comma-separated list of them (any-of). - `filter[environment]` — one environment key or a comma-separated list (any-of); omitted covers every environment you can access. - `filter[created_at]` / `filter[started_at]` / `filter[finished_at]` / `filter[scheduled_for]` — half-open `[start,end)` date ranges (see each parameter for the interval syntax). Set `last_run_only=true` to collapse the result to the last completed run for each job-and-environment combination. \"Completed\" means a terminal state — succeeded, failed, or canceled; in-flight runs (pending or running) are not included, so a job that is mid-run still surfaces its previous completed result and a combination with no completed run yet returns nothing. The filters above still apply, evaluated before the collapse, so each row is the most recent completed run in its group that also satisfies them.
150
150
  # @param [Hash] opts the optional parameters
151
151
  # @option opts [String] :filter_job
152
152
  # @option opts [String] :filter_status Restrict to runs in the given lifecycle state. One of &#x60;PENDING&#x60;, &#x60;RUNNING&#x60;, &#x60;SUCCEEDED&#x60;, &#x60;FAILED&#x60;, &#x60;CANCELED&#x60;, or a comma-separated list of them to match any (e.g. &#x60;SUCCEEDED,FAILED&#x60;).
153
153
  # @option opts [String] :filter_environment Comma-separated list of environment keys to scope results to (e.g. &#x60;production,staging&#x60;). When omitted, results cover every environment you can access.
154
+ # @option opts [String] :filter_trigger Restrict to runs with the given trigger. One of &#x60;SCHEDULE&#x60;, &#x60;MANUAL&#x60;, &#x60;RERUN&#x60;, &#x60;RETRY&#x60;, or a comma-separated list of them to match any (e.g. &#x60;SCHEDULE,RETRY&#x60; to see a job&#39;s automatic runs).
154
155
  # @option opts [String] :filter_created_at Restrict to runs whose &#x60;created_at&#x60; falls in a half-open &#x60;[start,end)&#x60; interval. Bounds are ISO-8601 timestamps; &#x60;*&#x60; leaves a bound open. The leading bracket is &#x60;[&#x60; (inclusive) or &#x60;(&#x60; (exclusive) and the trailing bracket is &#x60;]&#x60; (inclusive) or &#x60;)&#x60; (exclusive). Example: &#x60;[2026-06-01T00:00:00Z,2026-06-08T00:00:00Z)&#x60; selects the first week of June; &#x60;[2026-06-01T00:00:00Z,*)&#x60; is everything from then onward.
155
156
  # @option opts [String] :filter_started_at Restrict to runs whose &#x60;started_at&#x60; falls in a half-open &#x60;[start,end)&#x60; interval. Bounds are ISO-8601 timestamps; &#x60;*&#x60; leaves a bound open. The leading bracket is &#x60;[&#x60; (inclusive) or &#x60;(&#x60; (exclusive) and the trailing bracket is &#x60;]&#x60; (inclusive) or &#x60;)&#x60; (exclusive). Example: &#x60;[2026-06-01T00:00:00Z,2026-06-08T00:00:00Z)&#x60; selects the first week of June; &#x60;[2026-06-01T00:00:00Z,*)&#x60; is everything from then onward.
156
157
  # @option opts [String] :filter_finished_at Restrict to runs whose &#x60;finished_at&#x60; falls in a half-open &#x60;[start,end)&#x60; interval. Bounds are ISO-8601 timestamps; &#x60;*&#x60; leaves a bound open. The leading bracket is &#x60;[&#x60; (inclusive) or &#x60;(&#x60; (exclusive) and the trailing bracket is &#x60;]&#x60; (inclusive) or &#x60;)&#x60; (exclusive). Example: &#x60;[2026-06-01T00:00:00Z,2026-06-08T00:00:00Z)&#x60; selects the first week of June; &#x60;[2026-06-01T00:00:00Z,*)&#x60; is everything from then onward.
@@ -166,11 +167,12 @@ module SmplkitGeneratedClient::Jobs
166
167
  end
167
168
 
168
169
  # List Runs
169
- # List runs for this account (cursor paginated). Default sort is &#x60;-created_at&#x60; (newest first). Sort by &#x60;created_at&#x60;, &#x60;started_at&#x60;, &#x60;finished_at&#x60;, &#x60;scheduled_for&#x60;, &#x60;status&#x60;, &#x60;job&#x60;, or &#x60;total_duration_ms&#x60;, ascending or descending (prefix &#x60;-&#x60; for descending). Keep the same &#x60;sort&#x60; value across paginated requests so the cursor stays consistent. Runs that have not reached the relevant lifecycle point (&#x60;started_at&#x60;, &#x60;finished_at&#x60;, &#x60;scheduled_for&#x60;, &#x60;total_duration_ms&#x60; unset) sort to the end regardless of direction. Filters compose with AND: - &#x60;filter[job]&#x3D;{id}&#x60; — a single job&#39;s run history. - &#x60;filter[status]&#x60; — one state or a comma-separated list (any-of). - &#x60;filter[environment]&#x60; — one environment key or a comma-separated list (any-of); omitted covers every environment you can access. - &#x60;filter[created_at]&#x60; / &#x60;filter[started_at]&#x60; / &#x60;filter[finished_at]&#x60; / &#x60;filter[scheduled_for]&#x60; — half-open &#x60;[start,end)&#x60; date ranges (see each parameter for the interval syntax). Set &#x60;last_run_only&#x3D;true&#x60; to collapse the result to the last completed run for each job-and-environment combination. \&quot;Completed\&quot; means a terminal state — succeeded, failed, or canceled; in-flight runs (pending or running) are not included, so a job that is mid-run still surfaces its previous completed result and a combination with no completed run yet returns nothing. The filters above still apply, evaluated before the collapse, so each row is the most recent completed run in its group that also satisfies them.
170
+ # List runs for this account (cursor paginated). Default sort is &#x60;-created_at&#x60; (newest first). Sort by &#x60;created_at&#x60;, &#x60;started_at&#x60;, &#x60;finished_at&#x60;, &#x60;scheduled_for&#x60;, &#x60;status&#x60;, &#x60;job&#x60;, or &#x60;total_duration_ms&#x60;, ascending or descending (prefix &#x60;-&#x60; for descending). Keep the same &#x60;sort&#x60; value across paginated requests so the cursor stays consistent. Runs that have not reached the relevant lifecycle point (&#x60;started_at&#x60;, &#x60;finished_at&#x60;, &#x60;scheduled_for&#x60;, &#x60;total_duration_ms&#x60; unset) sort to the end regardless of direction. Filters compose with AND: - &#x60;filter[job]&#x3D;{id}&#x60; — a single job&#39;s run history. - &#x60;filter[status]&#x60; — one state or a comma-separated list (any-of). - &#x60;filter[trigger]&#x60; — one trigger (&#x60;SCHEDULE&#x60;, &#x60;MANUAL&#x60;, &#x60;RERUN&#x60;, &#x60;RETRY&#x60;) or a comma-separated list of them (any-of). - &#x60;filter[environment]&#x60; — one environment key or a comma-separated list (any-of); omitted covers every environment you can access. - &#x60;filter[created_at]&#x60; / &#x60;filter[started_at]&#x60; / &#x60;filter[finished_at]&#x60; / &#x60;filter[scheduled_for]&#x60; — half-open &#x60;[start,end)&#x60; date ranges (see each parameter for the interval syntax). Set &#x60;last_run_only&#x3D;true&#x60; to collapse the result to the last completed run for each job-and-environment combination. \&quot;Completed\&quot; means a terminal state — succeeded, failed, or canceled; in-flight runs (pending or running) are not included, so a job that is mid-run still surfaces its previous completed result and a combination with no completed run yet returns nothing. The filters above still apply, evaluated before the collapse, so each row is the most recent completed run in its group that also satisfies them.
170
171
  # @param [Hash] opts the optional parameters
171
172
  # @option opts [String] :filter_job
172
173
  # @option opts [String] :filter_status Restrict to runs in the given lifecycle state. One of &#x60;PENDING&#x60;, &#x60;RUNNING&#x60;, &#x60;SUCCEEDED&#x60;, &#x60;FAILED&#x60;, &#x60;CANCELED&#x60;, or a comma-separated list of them to match any (e.g. &#x60;SUCCEEDED,FAILED&#x60;).
173
174
  # @option opts [String] :filter_environment Comma-separated list of environment keys to scope results to (e.g. &#x60;production,staging&#x60;). When omitted, results cover every environment you can access.
175
+ # @option opts [String] :filter_trigger Restrict to runs with the given trigger. One of &#x60;SCHEDULE&#x60;, &#x60;MANUAL&#x60;, &#x60;RERUN&#x60;, &#x60;RETRY&#x60;, or a comma-separated list of them to match any (e.g. &#x60;SCHEDULE,RETRY&#x60; to see a job&#39;s automatic runs).
174
176
  # @option opts [String] :filter_created_at Restrict to runs whose &#x60;created_at&#x60; falls in a half-open &#x60;[start,end)&#x60; interval. Bounds are ISO-8601 timestamps; &#x60;*&#x60; leaves a bound open. The leading bracket is &#x60;[&#x60; (inclusive) or &#x60;(&#x60; (exclusive) and the trailing bracket is &#x60;]&#x60; (inclusive) or &#x60;)&#x60; (exclusive). Example: &#x60;[2026-06-01T00:00:00Z,2026-06-08T00:00:00Z)&#x60; selects the first week of June; &#x60;[2026-06-01T00:00:00Z,*)&#x60; is everything from then onward.
175
177
  # @option opts [String] :filter_started_at Restrict to runs whose &#x60;started_at&#x60; falls in a half-open &#x60;[start,end)&#x60; interval. Bounds are ISO-8601 timestamps; &#x60;*&#x60; leaves a bound open. The leading bracket is &#x60;[&#x60; (inclusive) or &#x60;(&#x60; (exclusive) and the trailing bracket is &#x60;]&#x60; (inclusive) or &#x60;)&#x60; (exclusive). Example: &#x60;[2026-06-01T00:00:00Z,2026-06-08T00:00:00Z)&#x60; selects the first week of June; &#x60;[2026-06-01T00:00:00Z,*)&#x60; is everything from then onward.
176
178
  # @option opts [String] :filter_finished_at Restrict to runs whose &#x60;finished_at&#x60; falls in a half-open &#x60;[start,end)&#x60; interval. Bounds are ISO-8601 timestamps; &#x60;*&#x60; leaves a bound open. The leading bracket is &#x60;[&#x60; (inclusive) or &#x60;(&#x60; (exclusive) and the trailing bracket is &#x60;]&#x60; (inclusive) or &#x60;)&#x60; (exclusive). Example: &#x60;[2026-06-01T00:00:00Z,2026-06-08T00:00:00Z)&#x60; selects the first week of June; &#x60;[2026-06-01T00:00:00Z,*)&#x60; is everything from then onward.
@@ -200,6 +202,7 @@ module SmplkitGeneratedClient::Jobs
200
202
  query_params[:'filter[job]'] = opts[:'filter_job'] if !opts[:'filter_job'].nil?
201
203
  query_params[:'filter[status]'] = opts[:'filter_status'] if !opts[:'filter_status'].nil?
202
204
  query_params[:'filter[environment]'] = opts[:'filter_environment'] if !opts[:'filter_environment'].nil?
205
+ query_params[:'filter[trigger]'] = opts[:'filter_trigger'] if !opts[:'filter_trigger'].nil?
203
206
  query_params[:'filter[created_at]'] = opts[:'filter_created_at'] if !opts[:'filter_created_at'].nil?
204
207
  query_params[:'filter[started_at]'] = opts[:'filter_started_at'] if !opts[:'filter_started_at'].nil?
205
208
  query_params[:'filter[finished_at]'] = opts[:'filter_finished_at'] if !opts[:'filter_finished_at'].nil?
@@ -244,7 +247,7 @@ module SmplkitGeneratedClient::Jobs
244
247
  end
245
248
 
246
249
  # Rerun Run
247
- # Spawn a new run from a prior run, using the job's current configuration. Returns `409` if the run's parent job has been deleted.
250
+ # Spawn a new run from a prior run, using the job's current configuration. Returns `404` if the run does not exist and `409` if the run's parent job has been deleted.
248
251
  # @param run_id [String]
249
252
  # @param [Hash] opts the optional parameters
250
253
  # @return [RunResponse]
@@ -254,7 +257,7 @@ module SmplkitGeneratedClient::Jobs
254
257
  end
255
258
 
256
259
  # Rerun Run
257
- # Spawn a new run from a prior run, using the job&#39;s current configuration. Returns &#x60;409&#x60; if the run&#39;s parent job has been deleted.
260
+ # Spawn a new run from a prior run, using the job&#39;s current configuration. Returns &#x60;404&#x60; if the run does not exist and &#x60;409&#x60; if the run&#39;s parent job has been deleted.
258
261
  # @param run_id [String]
259
262
  # @param [Hash] opts the optional parameters
260
263
  # @return [Array<(RunResponse, Integer, Hash)>] RunResponse data, response status code and response headers