smplkit 3.0.118 → 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.
- checksums.yaml +4 -4
- data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/api/runs_api.rb +4 -4
- data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/error.rb +213 -0
- data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/error_response.rb +167 -0
- data/lib/smplkit/_generated/jobs/lib/smplkit_jobs_client.rb +2 -0
- data/lib/smplkit/_generated/jobs/spec/api/runs_api_spec.rb +2 -2
- data/lib/smplkit/_generated/jobs/spec/models/error_response_spec.rb +36 -0
- data/lib/smplkit/_generated/jobs/spec/models/error_spec.rb +54 -0
- metadata +5 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9911186cf0810c9d76cc16feb24f9a155d8c6708fce3edc406b581b5c9376f1c
|
|
4
|
+
data.tar.gz: '009441ca636ade20f9f9a4cbec10d9ea9d2255b81549a2bc7e1274a94091e05d'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5558c39aa882f3bc403613ac51bf20b8f8dddbd4eb663126847a6b5f3a0c5fd961ec13f939c274e3c39c46f3cc2af8d2e44540b999c1e6e4b2239e1a1886e4ec
|
|
7
|
+
data.tar.gz: e944872fdef51e90924897ee1173e0dcad70f36255e95a1372f99690f238478852890e54ba1c1a62bbebab2fd7b73f81cecbb4a27591cb79382a348edb46657c
|
|
@@ -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 `
|
|
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 `
|
|
33
|
+
# 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.
|
|
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
|
|
@@ -247,7 +247,7 @@ module SmplkitGeneratedClient::Jobs
|
|
|
247
247
|
end
|
|
248
248
|
|
|
249
249
|
# Rerun Run
|
|
250
|
-
# 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.
|
|
251
251
|
# @param run_id [String]
|
|
252
252
|
# @param [Hash] opts the optional parameters
|
|
253
253
|
# @return [RunResponse]
|
|
@@ -257,7 +257,7 @@ module SmplkitGeneratedClient::Jobs
|
|
|
257
257
|
end
|
|
258
258
|
|
|
259
259
|
# Rerun Run
|
|
260
|
-
# 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.
|
|
260
|
+
# 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.
|
|
261
261
|
# @param run_id [String]
|
|
262
262
|
# @param [Hash] opts the optional parameters
|
|
263
263
|
# @return [Array<(RunResponse, Integer, Hash)>] RunResponse data, response status code and response headers
|
|
@@ -0,0 +1,213 @@
|
|
|
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
|
+
# Single JSON:API error object.
|
|
18
|
+
class Error < ApiModelBase
|
|
19
|
+
attr_accessor :status
|
|
20
|
+
|
|
21
|
+
attr_accessor :title
|
|
22
|
+
|
|
23
|
+
attr_accessor :detail
|
|
24
|
+
|
|
25
|
+
attr_accessor :source
|
|
26
|
+
|
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
|
+
def self.attribute_map
|
|
29
|
+
{
|
|
30
|
+
:'status' => :'status',
|
|
31
|
+
:'title' => :'title',
|
|
32
|
+
:'detail' => :'detail',
|
|
33
|
+
:'source' => :'source'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Returns attribute mapping this model knows about
|
|
38
|
+
def self.acceptable_attribute_map
|
|
39
|
+
attribute_map
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Returns all the JSON keys this model knows about
|
|
43
|
+
def self.acceptable_attributes
|
|
44
|
+
acceptable_attribute_map.values
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Attribute type mapping.
|
|
48
|
+
def self.openapi_types
|
|
49
|
+
{
|
|
50
|
+
:'status' => :'String',
|
|
51
|
+
:'title' => :'String',
|
|
52
|
+
:'detail' => :'String',
|
|
53
|
+
:'source' => :'Hash<String, Object>'
|
|
54
|
+
}
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# List of attributes with nullable: true
|
|
58
|
+
def self.openapi_nullable
|
|
59
|
+
Set.new([
|
|
60
|
+
:'detail',
|
|
61
|
+
:'source'
|
|
62
|
+
])
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Initializes the object
|
|
66
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
67
|
+
def initialize(attributes = {})
|
|
68
|
+
if (!attributes.is_a?(Hash))
|
|
69
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::Jobs::Error` initialize method"
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
73
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
74
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
75
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
76
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SmplkitGeneratedClient::Jobs::Error`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
77
|
+
end
|
|
78
|
+
h[k.to_sym] = v
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'status')
|
|
82
|
+
self.status = attributes[:'status']
|
|
83
|
+
else
|
|
84
|
+
self.status = nil
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
if attributes.key?(:'title')
|
|
88
|
+
self.title = attributes[:'title']
|
|
89
|
+
else
|
|
90
|
+
self.title = nil
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
if attributes.key?(:'detail')
|
|
94
|
+
self.detail = attributes[:'detail']
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
if attributes.key?(:'source')
|
|
98
|
+
if (value = attributes[:'source']).is_a?(Hash)
|
|
99
|
+
self.source = value
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
105
|
+
# @return Array for valid properties with the reasons
|
|
106
|
+
def list_invalid_properties
|
|
107
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
108
|
+
invalid_properties = Array.new
|
|
109
|
+
if @status.nil?
|
|
110
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
if @title.nil?
|
|
114
|
+
invalid_properties.push('invalid value for "title", title cannot be nil.')
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
invalid_properties
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Check to see if the all the properties in the model are valid
|
|
121
|
+
# @return true if the model is valid
|
|
122
|
+
def valid?
|
|
123
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
124
|
+
return false if @status.nil?
|
|
125
|
+
return false if @title.nil?
|
|
126
|
+
true
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Custom attribute writer method with validation
|
|
130
|
+
# @param [Object] status Value to be assigned
|
|
131
|
+
def status=(status)
|
|
132
|
+
if status.nil?
|
|
133
|
+
fail ArgumentError, 'status cannot be nil'
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
@status = status
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Custom attribute writer method with validation
|
|
140
|
+
# @param [Object] title Value to be assigned
|
|
141
|
+
def title=(title)
|
|
142
|
+
if title.nil?
|
|
143
|
+
fail ArgumentError, 'title cannot be nil'
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
@title = title
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Checks equality by comparing each attribute.
|
|
150
|
+
# @param [Object] Object to be compared
|
|
151
|
+
def ==(o)
|
|
152
|
+
return true if self.equal?(o)
|
|
153
|
+
self.class == o.class &&
|
|
154
|
+
status == o.status &&
|
|
155
|
+
title == o.title &&
|
|
156
|
+
detail == o.detail &&
|
|
157
|
+
source == o.source
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# @see the `==` method
|
|
161
|
+
# @param [Object] Object to be compared
|
|
162
|
+
def eql?(o)
|
|
163
|
+
self == o
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Calculates hash code according to all attributes.
|
|
167
|
+
# @return [Integer] Hash code
|
|
168
|
+
def hash
|
|
169
|
+
[status, title, detail, source].hash
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Builds the object from hash
|
|
173
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
174
|
+
# @return [Object] Returns the model itself
|
|
175
|
+
def self.build_from_hash(attributes)
|
|
176
|
+
return nil unless attributes.is_a?(Hash)
|
|
177
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
178
|
+
transformed_hash = {}
|
|
179
|
+
openapi_types.each_pair do |key, type|
|
|
180
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
181
|
+
transformed_hash["#{key}"] = nil
|
|
182
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
183
|
+
# check to ensure the input is an array given that the attribute
|
|
184
|
+
# is documented as an array but the input is not
|
|
185
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
186
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
187
|
+
end
|
|
188
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
189
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
new(transformed_hash)
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
# Returns the object in the form of hash
|
|
196
|
+
# @return [Hash] Returns the object in the form of hash
|
|
197
|
+
def to_hash
|
|
198
|
+
hash = {}
|
|
199
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
200
|
+
value = self.send(attr)
|
|
201
|
+
if value.nil?
|
|
202
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
203
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
hash[param] = _to_hash(value)
|
|
207
|
+
end
|
|
208
|
+
hash
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
end
|
|
@@ -0,0 +1,167 @@
|
|
|
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 error response envelope.
|
|
18
|
+
class ErrorResponse < ApiModelBase
|
|
19
|
+
attr_accessor :errors
|
|
20
|
+
|
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
|
+
def self.attribute_map
|
|
23
|
+
{
|
|
24
|
+
:'errors' => :'errors'
|
|
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
|
+
:'errors' => :'Array<Error>'
|
|
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::ErrorResponse` 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::ErrorResponse`. 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?(:'errors')
|
|
68
|
+
if (value = attributes[:'errors']).is_a?(Array)
|
|
69
|
+
self.errors = value
|
|
70
|
+
end
|
|
71
|
+
else
|
|
72
|
+
self.errors = nil
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
77
|
+
# @return Array for valid properties with the reasons
|
|
78
|
+
def list_invalid_properties
|
|
79
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
80
|
+
invalid_properties = Array.new
|
|
81
|
+
if @errors.nil?
|
|
82
|
+
invalid_properties.push('invalid value for "errors", errors cannot be nil.')
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
invalid_properties
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Check to see if the all the properties in the model are valid
|
|
89
|
+
# @return true if the model is valid
|
|
90
|
+
def valid?
|
|
91
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
92
|
+
return false if @errors.nil?
|
|
93
|
+
true
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Custom attribute writer method with validation
|
|
97
|
+
# @param [Object] errors Value to be assigned
|
|
98
|
+
def errors=(errors)
|
|
99
|
+
if errors.nil?
|
|
100
|
+
fail ArgumentError, 'errors cannot be nil'
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
@errors = errors
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Checks equality by comparing each attribute.
|
|
107
|
+
# @param [Object] Object to be compared
|
|
108
|
+
def ==(o)
|
|
109
|
+
return true if self.equal?(o)
|
|
110
|
+
self.class == o.class &&
|
|
111
|
+
errors == o.errors
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# @see the `==` method
|
|
115
|
+
# @param [Object] Object to be compared
|
|
116
|
+
def eql?(o)
|
|
117
|
+
self == o
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Calculates hash code according to all attributes.
|
|
121
|
+
# @return [Integer] Hash code
|
|
122
|
+
def hash
|
|
123
|
+
[errors].hash
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Builds the object from hash
|
|
127
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
128
|
+
# @return [Object] Returns the model itself
|
|
129
|
+
def self.build_from_hash(attributes)
|
|
130
|
+
return nil unless attributes.is_a?(Hash)
|
|
131
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
132
|
+
transformed_hash = {}
|
|
133
|
+
openapi_types.each_pair do |key, type|
|
|
134
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
135
|
+
transformed_hash["#{key}"] = nil
|
|
136
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
137
|
+
# check to ensure the input is an array given that the attribute
|
|
138
|
+
# is documented as an array but the input is not
|
|
139
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
140
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
141
|
+
end
|
|
142
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
143
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
new(transformed_hash)
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Returns the object in the form of hash
|
|
150
|
+
# @return [Hash] Returns the object in the form of hash
|
|
151
|
+
def to_hash
|
|
152
|
+
hash = {}
|
|
153
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
154
|
+
value = self.send(attr)
|
|
155
|
+
if value.nil?
|
|
156
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
157
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
hash[param] = _to_hash(value)
|
|
161
|
+
end
|
|
162
|
+
hash
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
end
|
|
@@ -18,6 +18,8 @@ require 'smplkit_jobs_client/version'
|
|
|
18
18
|
require 'smplkit_jobs_client/configuration'
|
|
19
19
|
|
|
20
20
|
# Models
|
|
21
|
+
require 'smplkit_jobs_client/models/error'
|
|
22
|
+
require 'smplkit_jobs_client/models/error_response'
|
|
21
23
|
require 'smplkit_jobs_client/models/http_header'
|
|
22
24
|
require 'smplkit_jobs_client/models/job'
|
|
23
25
|
require 'smplkit_jobs_client/models/job_create_request'
|
|
@@ -34,7 +34,7 @@ describe 'RunsApi' do
|
|
|
34
34
|
|
|
35
35
|
# unit tests for cancel_run
|
|
36
36
|
# Cancel Run
|
|
37
|
-
# Cancel a pending or running run. Returns `
|
|
37
|
+
# 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.
|
|
38
38
|
# @param run_id
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
40
40
|
# @return [RunResponse]
|
|
@@ -81,7 +81,7 @@ describe 'RunsApi' do
|
|
|
81
81
|
|
|
82
82
|
# unit tests for rerun_run
|
|
83
83
|
# Rerun Run
|
|
84
|
-
# 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.
|
|
84
|
+
# 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.
|
|
85
85
|
# @param run_id
|
|
86
86
|
# @param [Hash] opts the optional parameters
|
|
87
87
|
# @return [RunResponse]
|
|
@@ -0,0 +1,36 @@
|
|
|
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::ErrorResponse
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe SmplkitGeneratedClient::Jobs::ErrorResponse do
|
|
21
|
+
#let(:instance) { SmplkitGeneratedClient::Jobs::ErrorResponse.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ErrorResponse' do
|
|
24
|
+
it 'should create an instance of ErrorResponse' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(SmplkitGeneratedClient::Jobs::ErrorResponse)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "errors"' 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
|
+
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::Error
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe SmplkitGeneratedClient::Jobs::Error do
|
|
21
|
+
#let(:instance) { SmplkitGeneratedClient::Jobs::Error.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of Error' do
|
|
24
|
+
it 'should create an instance of Error' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(SmplkitGeneratedClient::Jobs::Error)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "status"' 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 "title"' 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 "detail"' 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 "source"' 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
|
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.
|
|
4
|
+
version: 3.0.119
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Smpl Solutions LLC
|
|
@@ -764,6 +764,8 @@ files:
|
|
|
764
764
|
- lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/api_error.rb
|
|
765
765
|
- lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/api_model_base.rb
|
|
766
766
|
- lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/configuration.rb
|
|
767
|
+
- lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/error.rb
|
|
768
|
+
- lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/error_response.rb
|
|
767
769
|
- lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/http_header.rb
|
|
768
770
|
- lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/job.rb
|
|
769
771
|
- lib/smplkit/_generated/jobs/lib/smplkit_jobs_client/models/job_create_request.rb
|
|
@@ -799,6 +801,8 @@ files:
|
|
|
799
801
|
- lib/smplkit/_generated/jobs/spec/api/retry_policies_api_spec.rb
|
|
800
802
|
- lib/smplkit/_generated/jobs/spec/api/runs_api_spec.rb
|
|
801
803
|
- lib/smplkit/_generated/jobs/spec/api/usage_api_spec.rb
|
|
804
|
+
- lib/smplkit/_generated/jobs/spec/models/error_response_spec.rb
|
|
805
|
+
- lib/smplkit/_generated/jobs/spec/models/error_spec.rb
|
|
802
806
|
- lib/smplkit/_generated/jobs/spec/models/http_header_spec.rb
|
|
803
807
|
- lib/smplkit/_generated/jobs/spec/models/job_create_request_spec.rb
|
|
804
808
|
- lib/smplkit/_generated/jobs/spec/models/job_create_resource_spec.rb
|