smplkit 3.0.106 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b3b8dc995421893ac031513a7fbb1f0005a5180314216cf5b8159e60d76d3424
4
- data.tar.gz: 1cce423bb15b75b9e94157d7669a3675489a0c6bf7ab996011648d56a076d88d
3
+ metadata.gz: c495da7f13aa6201aa496a8c4c1814516c3098c9edb1278e2035013918e75846
4
+ data.tar.gz: 254cf7a5c1ac4bfab649b86a3bebf6d56bc2ddd6355cfb85b3b5ebbbf869279b
5
5
  SHA512:
6
- metadata.gz: 6d7fcf01e05a2440c1f6bba6c0916ba4bdbaf2af78308289a54ee99aea27f8bc6055ae3c561f3930536bb983cb372b9a80751c62288114b4afa6e4951598afe6
7
- data.tar.gz: 0b1e714e296bf9e01915185f0b1a2a79108c20503590862e2215647bfd4a782bb254d6278f8bfa233651716d1e1f66bf855498fa02ad60ab9bde1efbed4e0bbd
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?
@@ -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`.
@@ -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/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smplkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.106
4
+ version: 3.0.107
5
5
  platform: ruby
6
6
  authors:
7
7
  - Smpl Solutions LLC