smplkit 3.0.105 → 3.0.107
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.
- checksums.yaml +4 -4
- data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/api/jobs_api.rb +3 -0
- data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/api/runs_api.rb +2 -2
- data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/job.rb +13 -1
- data/lib/smplkit/_generated/jobs/spec/api/jobs_api_spec.rb +1 -0
- data/lib/smplkit/_generated/jobs/spec/api/runs_api_spec.rb +1 -1
- data/lib/smplkit/_generated/jobs/spec/models/job_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c495da7f13aa6201aa496a8c4c1814516c3098c9edb1278e2035013918e75846
|
|
4
|
+
data.tar.gz: 254cf7a5c1ac4bfab649b86a3bebf6d56bc2ddd6355cfb85b3b5ebbbf869279b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4a467f53d40d8c3a777ba67161d1a84c958a5c5e8c6bd528a185cdb205e7ffddec9cdb01ce8699671ad1dabc074f3ecf7311100d46a14ecc7d178cdca9a1f28e
|
|
7
|
+
data.tar.gz: 454bd3b020b2c0ce19d6b37c7db9e9398d61d25cf604029a5a0d64141ccbb32873b2fec7206f4ffadb1d1ac20f1d5e4608a34a9becec246081da34906693162e
|
|
@@ -215,6 +215,7 @@ module SmplkitGeneratedClient::Jobs
|
|
|
215
215
|
# List this account's jobs, newest first.
|
|
216
216
|
# @param [Hash] opts the optional parameters
|
|
217
217
|
# @option opts [Boolean] :filter_enabled
|
|
218
|
+
# @option opts [Boolean] :filter_recurring
|
|
218
219
|
# @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error. (default to 1)
|
|
219
220
|
# @option opts [Integer] :page_size Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error. (default to 1000)
|
|
220
221
|
# @option opts [Boolean] :meta_total When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`. (default to false)
|
|
@@ -228,6 +229,7 @@ module SmplkitGeneratedClient::Jobs
|
|
|
228
229
|
# List this account's jobs, newest first.
|
|
229
230
|
# @param [Hash] opts the optional parameters
|
|
230
231
|
# @option opts [Boolean] :filter_enabled
|
|
232
|
+
# @option opts [Boolean] :filter_recurring
|
|
231
233
|
# @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error. (default to 1)
|
|
232
234
|
# @option opts [Integer] :page_size Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error. (default to 1000)
|
|
233
235
|
# @option opts [Boolean] :meta_total When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`. (default to false)
|
|
@@ -242,6 +244,7 @@ module SmplkitGeneratedClient::Jobs
|
|
|
242
244
|
# query parameters
|
|
243
245
|
query_params = opts[:query_params] || {}
|
|
244
246
|
query_params[:'filter[enabled]'] = opts[:'filter_enabled'] if !opts[:'filter_enabled'].nil?
|
|
247
|
+
query_params[:'filter[recurring]'] = opts[:'filter_recurring'] if !opts[:'filter_recurring'].nil?
|
|
245
248
|
query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
|
246
249
|
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
247
250
|
query_params[:'meta[total]'] = opts[:'meta_total'] if !opts[:'meta_total'].nil?
|
|
@@ -149,7 +149,7 @@ module SmplkitGeneratedClient::Jobs
|
|
|
149
149
|
# List runs for this account, newest first (cursor paginated). Use `filter[job]={id}` for a single job's run history.
|
|
150
150
|
# @param [Hash] opts the optional parameters
|
|
151
151
|
# @option opts [String] :filter_job
|
|
152
|
-
# @option opts [Integer] :page_size
|
|
152
|
+
# @option opts [Integer] :page_size Number of runs per page. Optional; defaults to `50` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
|
|
153
153
|
# @option opts [String] :page_after
|
|
154
154
|
# @return [RunListResponse]
|
|
155
155
|
def list_runs(opts = {})
|
|
@@ -161,7 +161,7 @@ module SmplkitGeneratedClient::Jobs
|
|
|
161
161
|
# List runs for this account, newest first (cursor paginated). Use `filter[job]={id}` for a single job's run history.
|
|
162
162
|
# @param [Hash] opts the optional parameters
|
|
163
163
|
# @option opts [String] :filter_job
|
|
164
|
-
# @option opts [Integer] :page_size
|
|
164
|
+
# @option opts [Integer] :page_size Number of runs per page. Optional; defaults to `50` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
|
|
165
165
|
# @option opts [String] :page_after
|
|
166
166
|
# @return [Array<(RunListResponse, Integer, Hash)>] RunListResponse data, response status code and response headers
|
|
167
167
|
def list_runs_with_http_info(opts = {})
|
|
@@ -40,6 +40,9 @@ module SmplkitGeneratedClient::Jobs
|
|
|
40
40
|
# The next scheduled fire time. `null` once a one-off job has fired.
|
|
41
41
|
attr_accessor :next_run_at
|
|
42
42
|
|
|
43
|
+
# Whether the job runs on a repeating schedule. `true` for a cron schedule; `false` for a one-off datetime or `now` schedule, which runs a single time. Derived from `schedule`.
|
|
44
|
+
attr_accessor :recurring
|
|
45
|
+
|
|
43
46
|
# When the job was created.
|
|
44
47
|
attr_accessor :created_at
|
|
45
48
|
|
|
@@ -85,6 +88,7 @@ module SmplkitGeneratedClient::Jobs
|
|
|
85
88
|
:'configuration' => :'configuration',
|
|
86
89
|
:'concurrency_policy' => :'concurrency_policy',
|
|
87
90
|
:'next_run_at' => :'next_run_at',
|
|
91
|
+
:'recurring' => :'recurring',
|
|
88
92
|
:'created_at' => :'created_at',
|
|
89
93
|
:'updated_at' => :'updated_at',
|
|
90
94
|
:'deleted_at' => :'deleted_at',
|
|
@@ -113,6 +117,7 @@ module SmplkitGeneratedClient::Jobs
|
|
|
113
117
|
:'configuration' => :'JobHttpConfiguration',
|
|
114
118
|
:'concurrency_policy' => :'String',
|
|
115
119
|
:'next_run_at' => :'Time',
|
|
120
|
+
:'recurring' => :'Boolean',
|
|
116
121
|
:'created_at' => :'Time',
|
|
117
122
|
:'updated_at' => :'Time',
|
|
118
123
|
:'deleted_at' => :'Time',
|
|
@@ -192,6 +197,12 @@ module SmplkitGeneratedClient::Jobs
|
|
|
192
197
|
self.next_run_at = attributes[:'next_run_at']
|
|
193
198
|
end
|
|
194
199
|
|
|
200
|
+
if attributes.key?(:'recurring')
|
|
201
|
+
self.recurring = attributes[:'recurring']
|
|
202
|
+
else
|
|
203
|
+
self.recurring = false
|
|
204
|
+
end
|
|
205
|
+
|
|
195
206
|
if attributes.key?(:'created_at')
|
|
196
207
|
self.created_at = attributes[:'created_at']
|
|
197
208
|
end
|
|
@@ -339,6 +350,7 @@ module SmplkitGeneratedClient::Jobs
|
|
|
339
350
|
configuration == o.configuration &&
|
|
340
351
|
concurrency_policy == o.concurrency_policy &&
|
|
341
352
|
next_run_at == o.next_run_at &&
|
|
353
|
+
recurring == o.recurring &&
|
|
342
354
|
created_at == o.created_at &&
|
|
343
355
|
updated_at == o.updated_at &&
|
|
344
356
|
deleted_at == o.deleted_at &&
|
|
@@ -354,7 +366,7 @@ module SmplkitGeneratedClient::Jobs
|
|
|
354
366
|
# Calculates hash code according to all attributes.
|
|
355
367
|
# @return [Integer] Hash code
|
|
356
368
|
def hash
|
|
357
|
-
[name, description, enabled, type, schedule, configuration, concurrency_policy, next_run_at, created_at, updated_at, deleted_at, version].hash
|
|
369
|
+
[name, description, enabled, type, schedule, configuration, concurrency_policy, next_run_at, recurring, created_at, updated_at, deleted_at, version].hash
|
|
358
370
|
end
|
|
359
371
|
|
|
360
372
|
# Builds the object from hash
|
|
@@ -73,6 +73,7 @@ describe 'JobsApi' do
|
|
|
73
73
|
# List this account's jobs, newest first.
|
|
74
74
|
# @param [Hash] opts the optional parameters
|
|
75
75
|
# @option opts [Boolean] :filter_enabled
|
|
76
|
+
# @option opts [Boolean] :filter_recurring
|
|
76
77
|
# @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
|
|
77
78
|
# @option opts [Integer] :page_size Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
|
|
78
79
|
# @option opts [Boolean] :meta_total When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
|
|
@@ -61,7 +61,7 @@ describe 'RunsApi' do
|
|
|
61
61
|
# List runs for this account, newest first (cursor paginated). Use `filter[job]={id}` for a single job's run history.
|
|
62
62
|
# @param [Hash] opts the optional parameters
|
|
63
63
|
# @option opts [String] :filter_job
|
|
64
|
-
# @option opts [Integer] :page_size
|
|
64
|
+
# @option opts [Integer] :page_size Number of runs per page. Optional; defaults to `50` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
|
|
65
65
|
# @option opts [String] :page_after
|
|
66
66
|
# @return [RunListResponse]
|
|
67
67
|
describe 'list_runs test' do
|
|
@@ -83,6 +83,12 @@ describe SmplkitGeneratedClient::Jobs::Job do
|
|
|
83
83
|
end
|
|
84
84
|
end
|
|
85
85
|
|
|
86
|
+
describe 'test attribute "recurring"' do
|
|
87
|
+
it 'should work' do
|
|
88
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
86
92
|
describe 'test attribute "created_at"' do
|
|
87
93
|
it 'should work' do
|
|
88
94
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|