smplkit 3.0.133 → 3.0.134

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.
@@ -0,0 +1,274 @@
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 'date'
14
+ require 'time'
15
+
16
+ module SmplkitGeneratedClient::Jobs
17
+ # Run counts by lifecycle state within the requested scope.
18
+ class RunStatTally < ApiModelBase
19
+ # Runs in status `PENDING`.
20
+ attr_accessor :pending
21
+
22
+ # Runs in status `RUNNING`.
23
+ attr_accessor :running
24
+
25
+ # Runs in status `SUCCEEDED`.
26
+ attr_accessor :succeeded
27
+
28
+ # Runs in status `FAILED`.
29
+ attr_accessor :failed
30
+
31
+ # Runs in status `CANCELED`.
32
+ attr_accessor :canceled
33
+
34
+ # Attribute mapping from ruby-style variable name to JSON key.
35
+ def self.attribute_map
36
+ {
37
+ :'pending' => :'pending',
38
+ :'running' => :'running',
39
+ :'succeeded' => :'succeeded',
40
+ :'failed' => :'failed',
41
+ :'canceled' => :'canceled'
42
+ }
43
+ end
44
+
45
+ # Returns attribute mapping this model knows about
46
+ def self.acceptable_attribute_map
47
+ attribute_map
48
+ end
49
+
50
+ # Returns all the JSON keys this model knows about
51
+ def self.acceptable_attributes
52
+ acceptable_attribute_map.values
53
+ end
54
+
55
+ # Attribute type mapping.
56
+ def self.openapi_types
57
+ {
58
+ :'pending' => :'Integer',
59
+ :'running' => :'Integer',
60
+ :'succeeded' => :'Integer',
61
+ :'failed' => :'Integer',
62
+ :'canceled' => :'Integer'
63
+ }
64
+ end
65
+
66
+ # List of attributes with nullable: true
67
+ def self.openapi_nullable
68
+ Set.new([
69
+ ])
70
+ end
71
+
72
+ # Initializes the object
73
+ # @param [Hash] attributes Model attributes in the form of hash
74
+ def initialize(attributes = {})
75
+ if (!attributes.is_a?(Hash))
76
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::Jobs::RunStatTally` initialize method"
77
+ end
78
+
79
+ # check to see if the attribute exists and convert string to symbol for hash key
80
+ acceptable_attribute_map = self.class.acceptable_attribute_map
81
+ attributes = attributes.each_with_object({}) { |(k, v), h|
82
+ if (!acceptable_attribute_map.key?(k.to_sym))
83
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SmplkitGeneratedClient::Jobs::RunStatTally`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
84
+ end
85
+ h[k.to_sym] = v
86
+ }
87
+
88
+ if attributes.key?(:'pending')
89
+ self.pending = attributes[:'pending']
90
+ else
91
+ self.pending = nil
92
+ end
93
+
94
+ if attributes.key?(:'running')
95
+ self.running = attributes[:'running']
96
+ else
97
+ self.running = nil
98
+ end
99
+
100
+ if attributes.key?(:'succeeded')
101
+ self.succeeded = attributes[:'succeeded']
102
+ else
103
+ self.succeeded = nil
104
+ end
105
+
106
+ if attributes.key?(:'failed')
107
+ self.failed = attributes[:'failed']
108
+ else
109
+ self.failed = nil
110
+ end
111
+
112
+ if attributes.key?(:'canceled')
113
+ self.canceled = attributes[:'canceled']
114
+ else
115
+ self.canceled = nil
116
+ end
117
+ end
118
+
119
+ # Show invalid properties with the reasons. Usually used together with valid?
120
+ # @return Array for valid properties with the reasons
121
+ def list_invalid_properties
122
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
123
+ invalid_properties = Array.new
124
+ if @pending.nil?
125
+ invalid_properties.push('invalid value for "pending", pending cannot be nil.')
126
+ end
127
+
128
+ if @running.nil?
129
+ invalid_properties.push('invalid value for "running", running cannot be nil.')
130
+ end
131
+
132
+ if @succeeded.nil?
133
+ invalid_properties.push('invalid value for "succeeded", succeeded cannot be nil.')
134
+ end
135
+
136
+ if @failed.nil?
137
+ invalid_properties.push('invalid value for "failed", failed cannot be nil.')
138
+ end
139
+
140
+ if @canceled.nil?
141
+ invalid_properties.push('invalid value for "canceled", canceled cannot be nil.')
142
+ end
143
+
144
+ invalid_properties
145
+ end
146
+
147
+ # Check to see if the all the properties in the model are valid
148
+ # @return true if the model is valid
149
+ def valid?
150
+ warn '[DEPRECATED] the `valid?` method is obsolete'
151
+ return false if @pending.nil?
152
+ return false if @running.nil?
153
+ return false if @succeeded.nil?
154
+ return false if @failed.nil?
155
+ return false if @canceled.nil?
156
+ true
157
+ end
158
+
159
+ # Custom attribute writer method with validation
160
+ # @param [Object] pending Value to be assigned
161
+ def pending=(pending)
162
+ if pending.nil?
163
+ fail ArgumentError, 'pending cannot be nil'
164
+ end
165
+
166
+ @pending = pending
167
+ end
168
+
169
+ # Custom attribute writer method with validation
170
+ # @param [Object] running Value to be assigned
171
+ def running=(running)
172
+ if running.nil?
173
+ fail ArgumentError, 'running cannot be nil'
174
+ end
175
+
176
+ @running = running
177
+ end
178
+
179
+ # Custom attribute writer method with validation
180
+ # @param [Object] succeeded Value to be assigned
181
+ def succeeded=(succeeded)
182
+ if succeeded.nil?
183
+ fail ArgumentError, 'succeeded cannot be nil'
184
+ end
185
+
186
+ @succeeded = succeeded
187
+ end
188
+
189
+ # Custom attribute writer method with validation
190
+ # @param [Object] failed Value to be assigned
191
+ def failed=(failed)
192
+ if failed.nil?
193
+ fail ArgumentError, 'failed cannot be nil'
194
+ end
195
+
196
+ @failed = failed
197
+ end
198
+
199
+ # Custom attribute writer method with validation
200
+ # @param [Object] canceled Value to be assigned
201
+ def canceled=(canceled)
202
+ if canceled.nil?
203
+ fail ArgumentError, 'canceled cannot be nil'
204
+ end
205
+
206
+ @canceled = canceled
207
+ end
208
+
209
+ # Checks equality by comparing each attribute.
210
+ # @param [Object] Object to be compared
211
+ def ==(o)
212
+ return true if self.equal?(o)
213
+ self.class == o.class &&
214
+ pending == o.pending &&
215
+ running == o.running &&
216
+ succeeded == o.succeeded &&
217
+ failed == o.failed &&
218
+ canceled == o.canceled
219
+ end
220
+
221
+ # @see the `==` method
222
+ # @param [Object] Object to be compared
223
+ def eql?(o)
224
+ self == o
225
+ end
226
+
227
+ # Calculates hash code according to all attributes.
228
+ # @return [Integer] Hash code
229
+ def hash
230
+ [pending, running, succeeded, failed, canceled].hash
231
+ end
232
+
233
+ # Builds the object from hash
234
+ # @param [Hash] attributes Model attributes in the form of hash
235
+ # @return [Object] Returns the model itself
236
+ def self.build_from_hash(attributes)
237
+ return nil unless attributes.is_a?(Hash)
238
+ attributes = attributes.transform_keys(&:to_sym)
239
+ transformed_hash = {}
240
+ openapi_types.each_pair do |key, type|
241
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
242
+ transformed_hash["#{key}"] = nil
243
+ elsif type =~ /\AArray<(.*)>/i
244
+ # check to ensure the input is an array given that the attribute
245
+ # is documented as an array but the input is not
246
+ if attributes[attribute_map[key]].is_a?(Array)
247
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
248
+ end
249
+ elsif !attributes[attribute_map[key]].nil?
250
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
251
+ end
252
+ end
253
+ new(transformed_hash)
254
+ end
255
+
256
+ # Returns the object in the form of hash
257
+ # @return [Hash] Returns the object in the form of hash
258
+ def to_hash
259
+ hash = {}
260
+ self.class.attribute_map.each_pair do |attr, param|
261
+ value = self.send(attr)
262
+ if value.nil?
263
+ is_nullable = self.class.openapi_nullable.include?(attr)
264
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
265
+ end
266
+
267
+ hash[param] = _to_hash(value)
268
+ end
269
+ hash
270
+ end
271
+
272
+ end
273
+
274
+ end
@@ -0,0 +1,165 @@
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 'date'
14
+ require 'time'
15
+
16
+ module SmplkitGeneratedClient::Jobs
17
+ # JSON:API single-resource response for run statistics.
18
+ class RunStatsResponse < ApiModelBase
19
+ attr_accessor :data
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'data' => :'data'
25
+ }
26
+ end
27
+
28
+ # Returns attribute mapping this model knows about
29
+ def self.acceptable_attribute_map
30
+ attribute_map
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ acceptable_attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'data' => :'RunStatResource'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ ])
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::Jobs::RunStatsResponse` initialize method"
56
+ end
57
+
58
+ # check to see if the attribute exists and convert string to symbol for hash key
59
+ acceptable_attribute_map = self.class.acceptable_attribute_map
60
+ attributes = attributes.each_with_object({}) { |(k, v), h|
61
+ if (!acceptable_attribute_map.key?(k.to_sym))
62
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SmplkitGeneratedClient::Jobs::RunStatsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
63
+ end
64
+ h[k.to_sym] = v
65
+ }
66
+
67
+ if attributes.key?(:'data')
68
+ self.data = attributes[:'data']
69
+ else
70
+ self.data = nil
71
+ end
72
+ end
73
+
74
+ # Show invalid properties with the reasons. Usually used together with valid?
75
+ # @return Array for valid properties with the reasons
76
+ def list_invalid_properties
77
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
78
+ invalid_properties = Array.new
79
+ if @data.nil?
80
+ invalid_properties.push('invalid value for "data", data cannot be nil.')
81
+ end
82
+
83
+ invalid_properties
84
+ end
85
+
86
+ # Check to see if the all the properties in the model are valid
87
+ # @return true if the model is valid
88
+ def valid?
89
+ warn '[DEPRECATED] the `valid?` method is obsolete'
90
+ return false if @data.nil?
91
+ true
92
+ end
93
+
94
+ # Custom attribute writer method with validation
95
+ # @param [Object] data Value to be assigned
96
+ def data=(data)
97
+ if data.nil?
98
+ fail ArgumentError, 'data cannot be nil'
99
+ end
100
+
101
+ @data = data
102
+ end
103
+
104
+ # Checks equality by comparing each attribute.
105
+ # @param [Object] Object to be compared
106
+ def ==(o)
107
+ return true if self.equal?(o)
108
+ self.class == o.class &&
109
+ data == o.data
110
+ end
111
+
112
+ # @see the `==` method
113
+ # @param [Object] Object to be compared
114
+ def eql?(o)
115
+ self == o
116
+ end
117
+
118
+ # Calculates hash code according to all attributes.
119
+ # @return [Integer] Hash code
120
+ def hash
121
+ [data].hash
122
+ end
123
+
124
+ # Builds the object from hash
125
+ # @param [Hash] attributes Model attributes in the form of hash
126
+ # @return [Object] Returns the model itself
127
+ def self.build_from_hash(attributes)
128
+ return nil unless attributes.is_a?(Hash)
129
+ attributes = attributes.transform_keys(&:to_sym)
130
+ transformed_hash = {}
131
+ openapi_types.each_pair do |key, type|
132
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
133
+ transformed_hash["#{key}"] = nil
134
+ elsif type =~ /\AArray<(.*)>/i
135
+ # check to ensure the input is an array given that the attribute
136
+ # is documented as an array but the input is not
137
+ if attributes[attribute_map[key]].is_a?(Array)
138
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
139
+ end
140
+ elsif !attributes[attribute_map[key]].nil?
141
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
142
+ end
143
+ end
144
+ new(transformed_hash)
145
+ end
146
+
147
+ # Returns the object in the form of hash
148
+ # @return [Hash] Returns the object in the form of hash
149
+ def to_hash
150
+ hash = {}
151
+ self.class.attribute_map.each_pair do |attr, param|
152
+ value = self.send(attr)
153
+ if value.nil?
154
+ is_nullable = self.class.openapi_nullable.include?(attr)
155
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
156
+ end
157
+
158
+ hash[param] = _to_hash(value)
159
+ end
160
+ hash
161
+ end
162
+
163
+ end
164
+
165
+ end
@@ -45,6 +45,13 @@ require 'smplkit_jobs_client/models/run_now_request'
45
45
  require 'smplkit_jobs_client/models/run_resource'
46
46
  require 'smplkit_jobs_client/models/run_response'
47
47
  require 'smplkit_jobs_client/models/run_retry'
48
+ require 'smplkit_jobs_client/models/run_stat'
49
+ require 'smplkit_jobs_client/models/run_stat_bucket'
50
+ require 'smplkit_jobs_client/models/run_stat_failure'
51
+ require 'smplkit_jobs_client/models/run_stat_next_scheduled'
52
+ require 'smplkit_jobs_client/models/run_stat_resource'
53
+ require 'smplkit_jobs_client/models/run_stat_tally'
54
+ require 'smplkit_jobs_client/models/run_stats_response'
48
55
  require 'smplkit_jobs_client/models/usage'
49
56
  require 'smplkit_jobs_client/models/usage_resource'
50
57
  require 'smplkit_jobs_client/models/usage_response'
@@ -56,6 +56,20 @@ describe 'RunsApi' do
56
56
  end
57
57
  end
58
58
 
59
+ # unit tests for get_run_stats
60
+ # Get Run Stats
61
+ # Report aggregated statistics over this account&#39;s runs. One request answers the common monitoring questions: how many runs matched the filters (&#x60;total&#x60;), how they broke down by lifecycle state (&#x60;tally&#x60;), how they were distributed over time (&#x60;buckets&#x60;, when the &#x60;bucket&#x60; directive is given), which runs failed most recently (&#x60;recent_failures&#x60;, at most 3, newest first), and what fires next (&#x60;next_scheduled&#x60;). Filters compose with AND: - &#x60;filter[created_at]&#x60; — a half-open &#x60;[start,end)&#x60; date range (see the parameter for the interval syntax). - &#x60;filter[environment]&#x60; — one environment key or a comma-separated list (any-of); omitted covers every environment you can access. &#x60;next_scheduled&#x60; honors only the environment filter: it reports the soonest &#x60;PENDING&#x60; run with a fire time at or after the request, no matter when that run was created. The resource id is always &#x60;current&#x60; — statistics are computed at read time, not stored.
62
+ # @param [Hash] opts the optional parameters
63
+ # @option opts [String] :filter_created_at Restrict the statistics 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,*)&#x60; covers everything from June 1 onward. Does not apply to &#x60;next_scheduled&#x60;.
64
+ # @option opts [String] :filter_environment Comma-separated list of environment keys to scope the statistics to (e.g. &#x60;production,staging&#x60;). When omitted, statistics cover every environment you can access.
65
+ # @option opts [String] :bucket Also return run counts over time, grouped into buckets of this size (a directive, not a filter). One of &#x60;1m&#x60;, &#x60;5m&#x60;, &#x60;15m&#x60;, &#x60;1h&#x60;, &#x60;6h&#x60;, or &#x60;1d&#x60;. Omit to skip the time series.
66
+ # @return [RunStatsResponse]
67
+ describe 'get_run_stats test' do
68
+ it 'should work' do
69
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
70
+ end
71
+ end
72
+
59
73
  # unit tests for list_runs
60
74
  # List Runs
61
75
  # 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.
@@ -0,0 +1,42 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for SmplkitGeneratedClient::Jobs::RunStatBucket
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe SmplkitGeneratedClient::Jobs::RunStatBucket do
21
+ #let(:instance) { SmplkitGeneratedClient::Jobs::RunStatBucket.new }
22
+
23
+ describe 'test an instance of RunStatBucket' do
24
+ it 'should create an instance of RunStatBucket' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(SmplkitGeneratedClient::Jobs::RunStatBucket)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "bucket"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "count"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ end
@@ -0,0 +1,58 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for SmplkitGeneratedClient::Jobs::RunStatFailure
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe SmplkitGeneratedClient::Jobs::RunStatFailure do
21
+ #let(:instance) { SmplkitGeneratedClient::Jobs::RunStatFailure.new }
22
+
23
+ describe 'test an instance of RunStatFailure' do
24
+ it 'should create an instance of RunStatFailure' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(SmplkitGeneratedClient::Jobs::RunStatFailure)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "job"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "job_name"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "failure_reason"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["TIMEOUT", "CONNECTION_ERROR", "NON_SUCCESS_STATUS", "SSRF_BLOCKED", "QUOTA_EXCEEDED", "WORKER_LOST"])
46
+ # validator.allowable_values.each do |value|
47
+ # expect { instance.failure_reason = value }.not_to raise_error
48
+ # end
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "created_at"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
55
+ end
56
+ end
57
+
58
+ end
@@ -0,0 +1,54 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for SmplkitGeneratedClient::Jobs::RunStatNextScheduled
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe SmplkitGeneratedClient::Jobs::RunStatNextScheduled do
21
+ #let(:instance) { SmplkitGeneratedClient::Jobs::RunStatNextScheduled.new }
22
+
23
+ describe 'test an instance of RunStatNextScheduled' do
24
+ it 'should create an instance of RunStatNextScheduled' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(SmplkitGeneratedClient::Jobs::RunStatNextScheduled)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "job"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "job_name"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "scheduled_for"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ describe 'test attribute "environment"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
54
+ end
@@ -0,0 +1,48 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for SmplkitGeneratedClient::Jobs::RunStatResource
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe SmplkitGeneratedClient::Jobs::RunStatResource do
21
+ #let(:instance) { SmplkitGeneratedClient::Jobs::RunStatResource.new }
22
+
23
+ describe 'test an instance of RunStatResource' do
24
+ it 'should create an instance of RunStatResource' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(SmplkitGeneratedClient::Jobs::RunStatResource)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "id"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "type"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "attributes"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ end