iron_titan 0.3.10 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +201 -0
- data/README.md +6 -5
- data/lib/iron_titan/api/groups_api.rb +34 -31
- data/lib/iron_titan/api/jobs_api.rb +140 -182
- data/lib/iron_titan/api/runner_api.rb +43 -47
- data/lib/iron_titan/api_client.rb +48 -8
- data/lib/iron_titan/api_error.rb +12 -1
- data/lib/iron_titan/configuration.rb +23 -0
- data/lib/iron_titan/models/complete.rb +63 -27
- data/lib/iron_titan/models/error.rb +59 -21
- data/lib/iron_titan/models/error_body.rb +61 -24
- data/lib/iron_titan/models/group.rb +112 -28
- data/lib/iron_titan/models/group_wrapper.rb +60 -21
- data/lib/iron_titan/models/groups_wrapper.rb +60 -21
- data/lib/iron_titan/models/id_status.rb +89 -28
- data/lib/iron_titan/models/job.rb +168 -90
- data/lib/iron_titan/models/job_wrapper.rb +60 -21
- data/lib/iron_titan/models/jobs_wrapper.rb +62 -24
- data/lib/iron_titan/models/new_job.rb +91 -42
- data/lib/iron_titan/models/new_jobs_wrapper.rb +60 -21
- data/lib/iron_titan/models/start.rb +59 -21
- data/lib/iron_titan/version.rb +13 -2
- data/lib/iron_titan.rb +12 -1
- data/spec/api/groups_api_spec.rb +16 -17
- data/spec/api/jobs_api_spec.rb +37 -78
- data/spec/api/runner_api_spec.rb +20 -21
- data/spec/api_client_spec.rb +296 -0
- data/spec/configuration_spec.rb +48 -0
- data/spec/models/complete_spec.rb +16 -17
- data/spec/models/error_body_spec.rb +15 -12
- data/spec/models/error_spec.rb +14 -7
- data/spec/models/group_spec.rb +33 -12
- data/spec/models/group_wrapper_spec.rb +14 -7
- data/spec/models/groups_wrapper_spec.rb +14 -7
- data/spec/models/id_status_spec.rb +18 -12
- data/spec/models/job_spec.rb +43 -88
- data/spec/models/job_wrapper_spec.rb +14 -7
- data/spec/models/jobs_wrapper_spec.rb +15 -12
- data/spec/models/new_job_spec.rb +20 -37
- data/spec/models/new_jobs_wrapper_spec.rb +14 -7
- data/spec/models/start_spec.rb +14 -7
- data/spec/spec_helper.rb +122 -0
- metadata +9 -2
@@ -3,10 +3,21 @@ Titan API
|
|
3
3
|
|
4
4
|
The ultimate, language agnostic, container based job processing framework.
|
5
5
|
|
6
|
-
OpenAPI spec version: 0.
|
6
|
+
OpenAPI spec version: 0.4.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
10
21
|
|
11
22
|
=end
|
12
23
|
|
@@ -28,7 +39,7 @@ module IronTitan
|
|
28
39
|
# @option opts [Integer] :n Number of jobs to return.
|
29
40
|
# @return [JobsWrapper]
|
30
41
|
def groups_name_jobs_get(name, opts = {})
|
31
|
-
data,
|
42
|
+
data, _status_code, _headers = groups_name_jobs_get_with_http_info(name, opts)
|
32
43
|
return data
|
33
44
|
end
|
34
45
|
|
@@ -41,12 +52,10 @@ module IronTitan
|
|
41
52
|
# @return [Array<(JobsWrapper, Fixnum, Hash)>] JobsWrapper data, response status code and response headers
|
42
53
|
def groups_name_jobs_get_with_http_info(name, opts = {})
|
43
54
|
if @api_client.config.debugging
|
44
|
-
@api_client.config.logger.debug "Calling API: JobsApi
|
55
|
+
@api_client.config.logger.debug "Calling API: JobsApi.groups_name_jobs_get ..."
|
45
56
|
end
|
46
|
-
|
47
57
|
# verify the required parameter 'name' is set
|
48
|
-
fail "Missing the required parameter 'name' when calling groups_name_jobs_get" if name.nil?
|
49
|
-
|
58
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling JobsApi.groups_name_jobs_get" if name.nil?
|
50
59
|
# resource path
|
51
60
|
local_var_path = "/groups/{name}/jobs".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
52
61
|
|
@@ -59,20 +68,19 @@ module IronTitan
|
|
59
68
|
header_params = {}
|
60
69
|
|
61
70
|
# HTTP header 'Accept' (if needed)
|
62
|
-
|
63
|
-
|
71
|
+
local_header_accept = ['application/json']
|
72
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
64
73
|
|
65
74
|
# HTTP header 'Content-Type'
|
66
|
-
|
67
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(
|
75
|
+
local_header_content_type = ['application/json']
|
76
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
68
77
|
|
69
78
|
# form parameters
|
70
79
|
form_params = {}
|
71
80
|
|
72
81
|
# http body (model)
|
73
82
|
post_body = nil
|
74
|
-
|
75
|
-
auth_names = []
|
83
|
+
auth_names = []
|
76
84
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
77
85
|
:header_params => header_params,
|
78
86
|
:query_params => query_params,
|
@@ -93,27 +101,24 @@ module IronTitan
|
|
93
101
|
# @param [Hash] opts the optional parameters
|
94
102
|
# @return [JobWrapper]
|
95
103
|
def groups_name_jobs_id_cancel_post(name, id, opts = {})
|
96
|
-
data,
|
104
|
+
data, _status_code, _headers = groups_name_jobs_id_cancel_post_with_http_info(name, id, opts)
|
97
105
|
return data
|
98
106
|
end
|
99
107
|
|
100
108
|
# Cancel a job.
|
101
|
-
# Cancels a job in delayed, queued or running status. The worker may continue to run a running job. reason is set to
|
109
|
+
# Cancels a job in delayed, queued or running status. The worker may continue to run a running job. reason is set to `client_request`. The job's completed_at field is set to the current time on the jobserver.
|
102
110
|
# @param name Name of group for this set of jobs.
|
103
111
|
# @param id Job id
|
104
112
|
# @param [Hash] opts the optional parameters
|
105
113
|
# @return [Array<(JobWrapper, Fixnum, Hash)>] JobWrapper data, response status code and response headers
|
106
114
|
def groups_name_jobs_id_cancel_post_with_http_info(name, id, opts = {})
|
107
115
|
if @api_client.config.debugging
|
108
|
-
@api_client.config.logger.debug "Calling API: JobsApi
|
116
|
+
@api_client.config.logger.debug "Calling API: JobsApi.groups_name_jobs_id_cancel_post ..."
|
109
117
|
end
|
110
|
-
|
111
118
|
# verify the required parameter 'name' is set
|
112
|
-
fail "Missing the required parameter 'name' when calling groups_name_jobs_id_cancel_post" if name.nil?
|
113
|
-
|
119
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling JobsApi.groups_name_jobs_id_cancel_post" if name.nil?
|
114
120
|
# verify the required parameter 'id' is set
|
115
|
-
fail "Missing the required parameter 'id' when calling groups_name_jobs_id_cancel_post" if id.nil?
|
116
|
-
|
121
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling JobsApi.groups_name_jobs_id_cancel_post" if id.nil?
|
117
122
|
# resource path
|
118
123
|
local_var_path = "/groups/{name}/jobs/{id}/cancel".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'id' + '}', id.to_s)
|
119
124
|
|
@@ -124,20 +129,19 @@ module IronTitan
|
|
124
129
|
header_params = {}
|
125
130
|
|
126
131
|
# HTTP header 'Accept' (if needed)
|
127
|
-
|
128
|
-
|
132
|
+
local_header_accept = ['application/json']
|
133
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
129
134
|
|
130
135
|
# HTTP header 'Content-Type'
|
131
|
-
|
132
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(
|
136
|
+
local_header_content_type = ['application/json']
|
137
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
133
138
|
|
134
139
|
# form parameters
|
135
140
|
form_params = {}
|
136
141
|
|
137
142
|
# http body (model)
|
138
143
|
post_body = nil
|
139
|
-
|
140
|
-
auth_names = []
|
144
|
+
auth_names = []
|
141
145
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
142
146
|
:header_params => header_params,
|
143
147
|
:query_params => query_params,
|
@@ -152,7 +156,7 @@ module IronTitan
|
|
152
156
|
end
|
153
157
|
|
154
158
|
# Delete the job.
|
155
|
-
# Delete only succeeds if job status is one of `succeeded
|
159
|
+
# Delete only succeeds if job status is one of `succeeded | failed | cancelled`. Cancel a job if it is another state and needs to be deleted. All information about the job, including the log, is irretrievably lost when this is invoked.
|
156
160
|
# @param name Name of group for this set of jobs.
|
157
161
|
# @param id Job id
|
158
162
|
# @param [Hash] opts the optional parameters
|
@@ -163,22 +167,19 @@ module IronTitan
|
|
163
167
|
end
|
164
168
|
|
165
169
|
# Delete the job.
|
166
|
-
# Delete only succeeds if job status is one of
|
170
|
+
# Delete only succeeds if job status is one of `succeeded | failed | cancelled`. Cancel a job if it is another state and needs to be deleted. All information about the job, including the log, is irretrievably lost when this is invoked.
|
167
171
|
# @param name Name of group for this set of jobs.
|
168
172
|
# @param id Job id
|
169
173
|
# @param [Hash] opts the optional parameters
|
170
174
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
171
175
|
def groups_name_jobs_id_delete_with_http_info(name, id, opts = {})
|
172
176
|
if @api_client.config.debugging
|
173
|
-
@api_client.config.logger.debug "Calling API: JobsApi
|
177
|
+
@api_client.config.logger.debug "Calling API: JobsApi.groups_name_jobs_id_delete ..."
|
174
178
|
end
|
175
|
-
|
176
179
|
# verify the required parameter 'name' is set
|
177
|
-
fail "Missing the required parameter 'name' when calling groups_name_jobs_id_delete" if name.nil?
|
178
|
-
|
180
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling JobsApi.groups_name_jobs_id_delete" if name.nil?
|
179
181
|
# verify the required parameter 'id' is set
|
180
|
-
fail "Missing the required parameter 'id' when calling groups_name_jobs_id_delete" if id.nil?
|
181
|
-
|
182
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling JobsApi.groups_name_jobs_id_delete" if id.nil?
|
182
183
|
# resource path
|
183
184
|
local_var_path = "/groups/{name}/jobs/{id}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'id' + '}', id.to_s)
|
184
185
|
|
@@ -189,20 +190,19 @@ module IronTitan
|
|
189
190
|
header_params = {}
|
190
191
|
|
191
192
|
# HTTP header 'Accept' (if needed)
|
192
|
-
|
193
|
-
|
193
|
+
local_header_accept = ['application/json']
|
194
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
194
195
|
|
195
196
|
# HTTP header 'Content-Type'
|
196
|
-
|
197
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(
|
197
|
+
local_header_content_type = ['application/json']
|
198
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
198
199
|
|
199
200
|
# form parameters
|
200
201
|
form_params = {}
|
201
202
|
|
202
203
|
# http body (model)
|
203
204
|
post_body = nil
|
204
|
-
|
205
|
-
auth_names = []
|
205
|
+
auth_names = []
|
206
206
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
207
207
|
:header_params => header_params,
|
208
208
|
:query_params => query_params,
|
@@ -223,12 +223,12 @@ module IronTitan
|
|
223
223
|
# @param [Hash] opts the optional parameters
|
224
224
|
# @return [JobWrapper]
|
225
225
|
def groups_name_jobs_id_error_post(name, id, body, opts = {})
|
226
|
-
data,
|
226
|
+
data, _status_code, _headers = groups_name_jobs_id_error_post_with_http_info(name, id, body, opts)
|
227
227
|
return data
|
228
228
|
end
|
229
229
|
|
230
230
|
# Mark job as failed.
|
231
|
-
# Job is marked as failed if it was in a valid state. Job's
|
231
|
+
# Job is marked as failed if it was in a valid state. Job's `finished_at` time is initialized.
|
232
232
|
# @param name Name of group for this set of jobs.
|
233
233
|
# @param id Job id
|
234
234
|
# @param body
|
@@ -236,18 +236,14 @@ module IronTitan
|
|
236
236
|
# @return [Array<(JobWrapper, Fixnum, Hash)>] JobWrapper data, response status code and response headers
|
237
237
|
def groups_name_jobs_id_error_post_with_http_info(name, id, body, opts = {})
|
238
238
|
if @api_client.config.debugging
|
239
|
-
@api_client.config.logger.debug "Calling API: JobsApi
|
239
|
+
@api_client.config.logger.debug "Calling API: JobsApi.groups_name_jobs_id_error_post ..."
|
240
240
|
end
|
241
|
-
|
242
241
|
# verify the required parameter 'name' is set
|
243
|
-
fail "Missing the required parameter 'name' when calling groups_name_jobs_id_error_post" if name.nil?
|
244
|
-
|
242
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling JobsApi.groups_name_jobs_id_error_post" if name.nil?
|
245
243
|
# verify the required parameter 'id' is set
|
246
|
-
fail "Missing the required parameter 'id' when calling groups_name_jobs_id_error_post" if id.nil?
|
247
|
-
|
244
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling JobsApi.groups_name_jobs_id_error_post" if id.nil?
|
248
245
|
# verify the required parameter 'body' is set
|
249
|
-
fail "Missing the required parameter 'body' when calling groups_name_jobs_id_error_post" if body.nil?
|
250
|
-
|
246
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling JobsApi.groups_name_jobs_id_error_post" if body.nil?
|
251
247
|
# resource path
|
252
248
|
local_var_path = "/groups/{name}/jobs/{id}/error".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'id' + '}', id.to_s)
|
253
249
|
|
@@ -258,19 +254,18 @@ module IronTitan
|
|
258
254
|
header_params = {}
|
259
255
|
|
260
256
|
# HTTP header 'Accept' (if needed)
|
261
|
-
|
262
|
-
|
257
|
+
local_header_accept = ['application/json']
|
258
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
263
259
|
|
264
260
|
# HTTP header 'Content-Type'
|
265
|
-
|
266
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(
|
261
|
+
local_header_content_type = ['application/json']
|
262
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
267
263
|
|
268
264
|
# form parameters
|
269
265
|
form_params = {}
|
270
266
|
|
271
267
|
# http body (model)
|
272
268
|
post_body = @api_client.object_to_http_body(body)
|
273
|
-
|
274
269
|
auth_names = []
|
275
270
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
276
271
|
:header_params => header_params,
|
@@ -292,7 +287,7 @@ module IronTitan
|
|
292
287
|
# @param [Hash] opts the optional parameters
|
293
288
|
# @return [JobWrapper]
|
294
289
|
def groups_name_jobs_id_get(name, id, opts = {})
|
295
|
-
data,
|
290
|
+
data, _status_code, _headers = groups_name_jobs_id_get_with_http_info(name, id, opts)
|
296
291
|
return data
|
297
292
|
end
|
298
293
|
|
@@ -304,15 +299,12 @@ module IronTitan
|
|
304
299
|
# @return [Array<(JobWrapper, Fixnum, Hash)>] JobWrapper data, response status code and response headers
|
305
300
|
def groups_name_jobs_id_get_with_http_info(name, id, opts = {})
|
306
301
|
if @api_client.config.debugging
|
307
|
-
@api_client.config.logger.debug "Calling API: JobsApi
|
302
|
+
@api_client.config.logger.debug "Calling API: JobsApi.groups_name_jobs_id_get ..."
|
308
303
|
end
|
309
|
-
|
310
304
|
# verify the required parameter 'name' is set
|
311
|
-
fail "Missing the required parameter 'name' when calling groups_name_jobs_id_get" if name.nil?
|
312
|
-
|
305
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling JobsApi.groups_name_jobs_id_get" if name.nil?
|
313
306
|
# verify the required parameter 'id' is set
|
314
|
-
fail "Missing the required parameter 'id' when calling groups_name_jobs_id_get" if id.nil?
|
315
|
-
|
307
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling JobsApi.groups_name_jobs_id_get" if id.nil?
|
316
308
|
# resource path
|
317
309
|
local_var_path = "/groups/{name}/jobs/{id}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'id' + '}', id.to_s)
|
318
310
|
|
@@ -323,20 +315,19 @@ module IronTitan
|
|
323
315
|
header_params = {}
|
324
316
|
|
325
317
|
# HTTP header 'Accept' (if needed)
|
326
|
-
|
327
|
-
|
318
|
+
local_header_accept = ['application/json']
|
319
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
328
320
|
|
329
321
|
# HTTP header 'Content-Type'
|
330
|
-
|
331
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(
|
322
|
+
local_header_content_type = ['application/json']
|
323
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
332
324
|
|
333
325
|
# form parameters
|
334
326
|
form_params = {}
|
335
327
|
|
336
328
|
# http body (model)
|
337
329
|
post_body = nil
|
338
|
-
|
339
|
-
auth_names = []
|
330
|
+
auth_names = []
|
340
331
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
341
332
|
:header_params => header_params,
|
342
333
|
:query_params => query_params,
|
@@ -357,7 +348,7 @@ module IronTitan
|
|
357
348
|
# @param [Hash] opts the optional parameters
|
358
349
|
# @return [String]
|
359
350
|
def groups_name_jobs_id_log_get(name, id, opts = {})
|
360
|
-
data,
|
351
|
+
data, _status_code, _headers = groups_name_jobs_id_log_get_with_http_info(name, id, opts)
|
361
352
|
return data
|
362
353
|
end
|
363
354
|
|
@@ -369,15 +360,12 @@ module IronTitan
|
|
369
360
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
370
361
|
def groups_name_jobs_id_log_get_with_http_info(name, id, opts = {})
|
371
362
|
if @api_client.config.debugging
|
372
|
-
@api_client.config.logger.debug "Calling API: JobsApi
|
363
|
+
@api_client.config.logger.debug "Calling API: JobsApi.groups_name_jobs_id_log_get ..."
|
373
364
|
end
|
374
|
-
|
375
365
|
# verify the required parameter 'name' is set
|
376
|
-
fail "Missing the required parameter 'name' when calling groups_name_jobs_id_log_get" if name.nil?
|
377
|
-
|
366
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling JobsApi.groups_name_jobs_id_log_get" if name.nil?
|
378
367
|
# verify the required parameter 'id' is set
|
379
|
-
fail "Missing the required parameter 'id' when calling groups_name_jobs_id_log_get" if id.nil?
|
380
|
-
|
368
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling JobsApi.groups_name_jobs_id_log_get" if id.nil?
|
381
369
|
# resource path
|
382
370
|
local_var_path = "/groups/{name}/jobs/{id}/log".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'id' + '}', id.to_s)
|
383
371
|
|
@@ -388,20 +376,19 @@ module IronTitan
|
|
388
376
|
header_params = {}
|
389
377
|
|
390
378
|
# HTTP header 'Accept' (if needed)
|
391
|
-
|
392
|
-
|
379
|
+
local_header_accept = ['text/plain']
|
380
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
393
381
|
|
394
382
|
# HTTP header 'Content-Type'
|
395
|
-
|
396
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(
|
383
|
+
local_header_content_type = ['application/json']
|
384
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
397
385
|
|
398
386
|
# form parameters
|
399
387
|
form_params = {}
|
400
388
|
|
401
389
|
# http body (model)
|
402
390
|
post_body = nil
|
403
|
-
|
404
|
-
auth_names = []
|
391
|
+
auth_names = []
|
405
392
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
406
393
|
:header_params => header_params,
|
407
394
|
:query_params => query_params,
|
@@ -419,11 +406,11 @@ module IronTitan
|
|
419
406
|
# Logs are sent after a job completes since they may be very large and the runner can process the next job.
|
420
407
|
# @param name Name of group for this set of jobs.
|
421
408
|
# @param id Job id
|
422
|
-
# @param log Output log for the job. Content-Type must be \"text/plain; charset
|
409
|
+
# @param log Output log for the job. Content-Type must be \"text/plain; charset=utf-8\".
|
423
410
|
# @param [Hash] opts the optional parameters
|
424
411
|
# @return [JobWrapper]
|
425
412
|
def groups_name_jobs_id_log_post(name, id, log, opts = {})
|
426
|
-
data,
|
413
|
+
data, _status_code, _headers = groups_name_jobs_id_log_post_with_http_info(name, id, log, opts)
|
427
414
|
return data
|
428
415
|
end
|
429
416
|
|
@@ -431,23 +418,19 @@ module IronTitan
|
|
431
418
|
# Logs are sent after a job completes since they may be very large and the runner can process the next job.
|
432
419
|
# @param name Name of group for this set of jobs.
|
433
420
|
# @param id Job id
|
434
|
-
# @param log Output log for the job. Content-Type must be \"text/plain; charset
|
421
|
+
# @param log Output log for the job. Content-Type must be \"text/plain; charset=utf-8\".
|
435
422
|
# @param [Hash] opts the optional parameters
|
436
423
|
# @return [Array<(JobWrapper, Fixnum, Hash)>] JobWrapper data, response status code and response headers
|
437
424
|
def groups_name_jobs_id_log_post_with_http_info(name, id, log, opts = {})
|
438
425
|
if @api_client.config.debugging
|
439
|
-
@api_client.config.logger.debug "Calling API: JobsApi
|
426
|
+
@api_client.config.logger.debug "Calling API: JobsApi.groups_name_jobs_id_log_post ..."
|
440
427
|
end
|
441
|
-
|
442
428
|
# verify the required parameter 'name' is set
|
443
|
-
fail "Missing the required parameter 'name' when calling groups_name_jobs_id_log_post" if name.nil?
|
444
|
-
|
429
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling JobsApi.groups_name_jobs_id_log_post" if name.nil?
|
445
430
|
# verify the required parameter 'id' is set
|
446
|
-
fail "Missing the required parameter 'id' when calling groups_name_jobs_id_log_post" if id.nil?
|
447
|
-
|
431
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling JobsApi.groups_name_jobs_id_log_post" if id.nil?
|
448
432
|
# verify the required parameter 'log' is set
|
449
|
-
fail "Missing the required parameter 'log' when calling groups_name_jobs_id_log_post" if log.nil?
|
450
|
-
|
433
|
+
fail ArgumentError, "Missing the required parameter 'log' when calling JobsApi.groups_name_jobs_id_log_post" if log.nil?
|
451
434
|
# resource path
|
452
435
|
local_var_path = "/groups/{name}/jobs/{id}/log".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'id' + '}', id.to_s)
|
453
436
|
|
@@ -458,12 +441,12 @@ module IronTitan
|
|
458
441
|
header_params = {}
|
459
442
|
|
460
443
|
# HTTP header 'Accept' (if needed)
|
461
|
-
|
462
|
-
|
444
|
+
local_header_accept = ['application/json']
|
445
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
463
446
|
|
464
447
|
# HTTP header 'Content-Type'
|
465
|
-
|
466
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(
|
448
|
+
local_header_content_type = ['multipart/form-data']
|
449
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
467
450
|
|
468
451
|
# form parameters
|
469
452
|
form_params = {}
|
@@ -471,8 +454,7 @@ module IronTitan
|
|
471
454
|
|
472
455
|
# http body (model)
|
473
456
|
post_body = nil
|
474
|
-
|
475
|
-
auth_names = []
|
457
|
+
auth_names = []
|
476
458
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
477
459
|
:header_params => header_params,
|
478
460
|
:query_params => query_params,
|
@@ -487,33 +469,30 @@ module IronTitan
|
|
487
469
|
end
|
488
470
|
|
489
471
|
# Retry a job.
|
490
|
-
# \"The /retry endpoint can be used to force a retry of jobs
|
472
|
+
# \"The /retry endpoint can be used to force a retry of jobs with status succeeded or cancelled. It can also be used to retry jobs that in the failed state, but whose max_retries field is 0. The retried job will continue to have max_retries = 0.\"
|
491
473
|
# @param name Name of group for this set of jobs.
|
492
474
|
# @param id Job id
|
493
475
|
# @param [Hash] opts the optional parameters
|
494
476
|
# @return [JobWrapper]
|
495
477
|
def groups_name_jobs_id_retry_post(name, id, opts = {})
|
496
|
-
data,
|
478
|
+
data, _status_code, _headers = groups_name_jobs_id_retry_post_with_http_info(name, id, opts)
|
497
479
|
return data
|
498
480
|
end
|
499
481
|
|
500
482
|
# Retry a job.
|
501
|
-
# \"The /retry endpoint can be used to force a retry of jobs
|
483
|
+
# \"The /retry endpoint can be used to force a retry of jobs with status succeeded or cancelled. It can also be used to retry jobs that in the failed state, but whose max_retries field is 0. The retried job will continue to have max_retries = 0.\"
|
502
484
|
# @param name Name of group for this set of jobs.
|
503
485
|
# @param id Job id
|
504
486
|
# @param [Hash] opts the optional parameters
|
505
487
|
# @return [Array<(JobWrapper, Fixnum, Hash)>] JobWrapper data, response status code and response headers
|
506
488
|
def groups_name_jobs_id_retry_post_with_http_info(name, id, opts = {})
|
507
489
|
if @api_client.config.debugging
|
508
|
-
@api_client.config.logger.debug "Calling API: JobsApi
|
490
|
+
@api_client.config.logger.debug "Calling API: JobsApi.groups_name_jobs_id_retry_post ..."
|
509
491
|
end
|
510
|
-
|
511
492
|
# verify the required parameter 'name' is set
|
512
|
-
fail "Missing the required parameter 'name' when calling groups_name_jobs_id_retry_post" if name.nil?
|
513
|
-
|
493
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling JobsApi.groups_name_jobs_id_retry_post" if name.nil?
|
514
494
|
# verify the required parameter 'id' is set
|
515
|
-
fail "Missing the required parameter 'id' when calling groups_name_jobs_id_retry_post" if id.nil?
|
516
|
-
|
495
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling JobsApi.groups_name_jobs_id_retry_post" if id.nil?
|
517
496
|
# resource path
|
518
497
|
local_var_path = "/groups/{name}/jobs/{id}/retry".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'id' + '}', id.to_s)
|
519
498
|
|
@@ -524,20 +503,19 @@ module IronTitan
|
|
524
503
|
header_params = {}
|
525
504
|
|
526
505
|
# HTTP header 'Accept' (if needed)
|
527
|
-
|
528
|
-
|
506
|
+
local_header_accept = ['application/json']
|
507
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
529
508
|
|
530
509
|
# HTTP header 'Content-Type'
|
531
|
-
|
532
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(
|
510
|
+
local_header_content_type = ['application/json']
|
511
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
533
512
|
|
534
513
|
# form parameters
|
535
514
|
form_params = {}
|
536
515
|
|
537
516
|
# http body (model)
|
538
517
|
post_body = nil
|
539
|
-
|
540
|
-
auth_names = []
|
518
|
+
auth_names = []
|
541
519
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
542
520
|
:header_params => header_params,
|
543
521
|
:query_params => query_params,
|
@@ -559,12 +537,12 @@ module IronTitan
|
|
559
537
|
# @param [Hash] opts the optional parameters
|
560
538
|
# @return [JobWrapper]
|
561
539
|
def groups_name_jobs_id_start_post(name, id, body, opts = {})
|
562
|
-
data,
|
540
|
+
data, _status_code, _headers = groups_name_jobs_id_start_post_with_http_info(name, id, body, opts)
|
563
541
|
return data
|
564
542
|
end
|
565
543
|
|
566
|
-
# Mark job as started, ie: status
|
567
|
-
# Job status is changed to 'running' if it was in a valid state before. Job's
|
544
|
+
# Mark job as started, ie: status = 'running'
|
545
|
+
# Job status is changed to 'running' if it was in a valid state before. Job's `started_at` time is initialized.
|
568
546
|
# @param name Name of group for this set of jobs.
|
569
547
|
# @param id Job id
|
570
548
|
# @param body
|
@@ -572,18 +550,14 @@ module IronTitan
|
|
572
550
|
# @return [Array<(JobWrapper, Fixnum, Hash)>] JobWrapper data, response status code and response headers
|
573
551
|
def groups_name_jobs_id_start_post_with_http_info(name, id, body, opts = {})
|
574
552
|
if @api_client.config.debugging
|
575
|
-
@api_client.config.logger.debug "Calling API: JobsApi
|
553
|
+
@api_client.config.logger.debug "Calling API: JobsApi.groups_name_jobs_id_start_post ..."
|
576
554
|
end
|
577
|
-
|
578
555
|
# verify the required parameter 'name' is set
|
579
|
-
fail "Missing the required parameter 'name' when calling groups_name_jobs_id_start_post" if name.nil?
|
580
|
-
|
556
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling JobsApi.groups_name_jobs_id_start_post" if name.nil?
|
581
557
|
# verify the required parameter 'id' is set
|
582
|
-
fail "Missing the required parameter 'id' when calling groups_name_jobs_id_start_post" if id.nil?
|
583
|
-
|
558
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling JobsApi.groups_name_jobs_id_start_post" if id.nil?
|
584
559
|
# verify the required parameter 'body' is set
|
585
|
-
fail "Missing the required parameter 'body' when calling groups_name_jobs_id_start_post" if body.nil?
|
586
|
-
|
560
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling JobsApi.groups_name_jobs_id_start_post" if body.nil?
|
587
561
|
# resource path
|
588
562
|
local_var_path = "/groups/{name}/jobs/{id}/start".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'id' + '}', id.to_s)
|
589
563
|
|
@@ -594,19 +568,18 @@ module IronTitan
|
|
594
568
|
header_params = {}
|
595
569
|
|
596
570
|
# HTTP header 'Accept' (if needed)
|
597
|
-
|
598
|
-
|
571
|
+
local_header_accept = ['application/json']
|
572
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
599
573
|
|
600
574
|
# HTTP header 'Content-Type'
|
601
|
-
|
602
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(
|
575
|
+
local_header_content_type = ['application/json']
|
576
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
603
577
|
|
604
578
|
# form parameters
|
605
579
|
form_params = {}
|
606
580
|
|
607
581
|
# http body (model)
|
608
582
|
post_body = @api_client.object_to_http_body(body)
|
609
|
-
|
610
583
|
auth_names = []
|
611
584
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
612
585
|
:header_params => header_params,
|
@@ -629,12 +602,12 @@ module IronTitan
|
|
629
602
|
# @param [Hash] opts the optional parameters
|
630
603
|
# @return [JobWrapper]
|
631
604
|
def groups_name_jobs_id_success_post(name, id, body, opts = {})
|
632
|
-
data,
|
605
|
+
data, _status_code, _headers = groups_name_jobs_id_success_post_with_http_info(name, id, body, opts)
|
633
606
|
return data
|
634
607
|
end
|
635
608
|
|
636
609
|
# Mark job as succeeded.
|
637
|
-
# Job status is changed to succeeded if it was in a valid state before. Job's
|
610
|
+
# Job status is changed to succeeded if it was in a valid state before. Job's `completed_at` time is initialized.
|
638
611
|
# @param name Name of group for this set of jobs.
|
639
612
|
# @param id Job id
|
640
613
|
# @param body
|
@@ -642,18 +615,14 @@ module IronTitan
|
|
642
615
|
# @return [Array<(JobWrapper, Fixnum, Hash)>] JobWrapper data, response status code and response headers
|
643
616
|
def groups_name_jobs_id_success_post_with_http_info(name, id, body, opts = {})
|
644
617
|
if @api_client.config.debugging
|
645
|
-
@api_client.config.logger.debug "Calling API: JobsApi
|
618
|
+
@api_client.config.logger.debug "Calling API: JobsApi.groups_name_jobs_id_success_post ..."
|
646
619
|
end
|
647
|
-
|
648
620
|
# verify the required parameter 'name' is set
|
649
|
-
fail "Missing the required parameter 'name' when calling groups_name_jobs_id_success_post" if name.nil?
|
650
|
-
|
621
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling JobsApi.groups_name_jobs_id_success_post" if name.nil?
|
651
622
|
# verify the required parameter 'id' is set
|
652
|
-
fail "Missing the required parameter 'id' when calling groups_name_jobs_id_success_post" if id.nil?
|
653
|
-
|
623
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling JobsApi.groups_name_jobs_id_success_post" if id.nil?
|
654
624
|
# verify the required parameter 'body' is set
|
655
|
-
fail "Missing the required parameter 'body' when calling groups_name_jobs_id_success_post" if body.nil?
|
656
|
-
|
625
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling JobsApi.groups_name_jobs_id_success_post" if body.nil?
|
657
626
|
# resource path
|
658
627
|
local_var_path = "/groups/{name}/jobs/{id}/success".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'id' + '}', id.to_s)
|
659
628
|
|
@@ -664,19 +633,18 @@ module IronTitan
|
|
664
633
|
header_params = {}
|
665
634
|
|
666
635
|
# HTTP header 'Accept' (if needed)
|
667
|
-
|
668
|
-
|
636
|
+
local_header_accept = ['application/json']
|
637
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
669
638
|
|
670
639
|
# HTTP header 'Content-Type'
|
671
|
-
|
672
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(
|
640
|
+
local_header_content_type = ['application/json']
|
641
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
673
642
|
|
674
643
|
# form parameters
|
675
644
|
form_params = {}
|
676
645
|
|
677
646
|
# http body (model)
|
678
647
|
post_body = @api_client.object_to_http_body(body)
|
679
|
-
|
680
648
|
auth_names = []
|
681
649
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
682
650
|
:header_params => header_params,
|
@@ -692,7 +660,7 @@ module IronTitan
|
|
692
660
|
end
|
693
661
|
|
694
662
|
# Extend job timeout.
|
695
|
-
# Consumers can sometimes take a while to run the task after accepting it. An example is when the runner does not have the docker image locally, it can spend a significant time downloading the image
|
663
|
+
# Consumers can sometimes take a while to run the task after accepting it. An example is when the runner does not have the docker image locally, it can spend a significant time downloading the image. If the timeout is small, the job may never get to run, or run but not be accepted by Titan. Consumers can touch the job before it times out. Titan will reset the timeout, giving the consumer another timeout seconds to run the job. Touch is only valid while the job is in a running state. If touch fails, the runner may stop running the job.
|
696
664
|
# @param name Name of group for this set of jobs.
|
697
665
|
# @param id Job id
|
698
666
|
# @param [Hash] opts the optional parameters
|
@@ -703,22 +671,19 @@ module IronTitan
|
|
703
671
|
end
|
704
672
|
|
705
673
|
# Extend job timeout.
|
706
|
-
# Consumers can sometimes take a while to run the task after accepting it. An example is when the runner does not have the docker image locally, it can spend a significant time downloading the image
|
674
|
+
# Consumers can sometimes take a while to run the task after accepting it. An example is when the runner does not have the docker image locally, it can spend a significant time downloading the image. If the timeout is small, the job may never get to run, or run but not be accepted by Titan. Consumers can touch the job before it times out. Titan will reset the timeout, giving the consumer another timeout seconds to run the job. Touch is only valid while the job is in a running state. If touch fails, the runner may stop running the job.
|
707
675
|
# @param name Name of group for this set of jobs.
|
708
676
|
# @param id Job id
|
709
677
|
# @param [Hash] opts the optional parameters
|
710
678
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
711
679
|
def groups_name_jobs_id_touch_post_with_http_info(name, id, opts = {})
|
712
680
|
if @api_client.config.debugging
|
713
|
-
@api_client.config.logger.debug "Calling API: JobsApi
|
681
|
+
@api_client.config.logger.debug "Calling API: JobsApi.groups_name_jobs_id_touch_post ..."
|
714
682
|
end
|
715
|
-
|
716
683
|
# verify the required parameter 'name' is set
|
717
|
-
fail "Missing the required parameter 'name' when calling groups_name_jobs_id_touch_post" if name.nil?
|
718
|
-
|
684
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling JobsApi.groups_name_jobs_id_touch_post" if name.nil?
|
719
685
|
# verify the required parameter 'id' is set
|
720
|
-
fail "Missing the required parameter 'id' when calling groups_name_jobs_id_touch_post" if id.nil?
|
721
|
-
|
686
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling JobsApi.groups_name_jobs_id_touch_post" if id.nil?
|
722
687
|
# resource path
|
723
688
|
local_var_path = "/groups/{name}/jobs/{id}/touch".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'id' + '}', id.to_s)
|
724
689
|
|
@@ -729,20 +694,19 @@ module IronTitan
|
|
729
694
|
header_params = {}
|
730
695
|
|
731
696
|
# HTTP header 'Accept' (if needed)
|
732
|
-
|
733
|
-
|
697
|
+
local_header_accept = ['application/json']
|
698
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
734
699
|
|
735
700
|
# HTTP header 'Content-Type'
|
736
|
-
|
737
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(
|
701
|
+
local_header_content_type = ['application/json']
|
702
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
738
703
|
|
739
704
|
# form parameters
|
740
705
|
form_params = {}
|
741
706
|
|
742
707
|
# http body (model)
|
743
708
|
post_body = nil
|
744
|
-
|
745
|
-
auth_names = []
|
709
|
+
auth_names = []
|
746
710
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
747
711
|
:header_params => header_params,
|
748
712
|
:query_params => query_params,
|
@@ -756,33 +720,30 @@ module IronTitan
|
|
756
720
|
end
|
757
721
|
|
758
722
|
# Enqueue Job
|
759
|
-
# Enqueues job(s). If any of the jobs is invalid, none of the jobs are enqueued
|
723
|
+
# Enqueues job(s). If any of the jobs is invalid, none of the jobs are enqueued.
|
760
724
|
# @param name name of the group.
|
761
725
|
# @param body Array of jobs to post.
|
762
726
|
# @param [Hash] opts the optional parameters
|
763
727
|
# @return [JobsWrapper]
|
764
728
|
def groups_name_jobs_post(name, body, opts = {})
|
765
|
-
data,
|
729
|
+
data, _status_code, _headers = groups_name_jobs_post_with_http_info(name, body, opts)
|
766
730
|
return data
|
767
731
|
end
|
768
732
|
|
769
733
|
# Enqueue Job
|
770
|
-
# Enqueues job(s). If any of the jobs is invalid, none of the jobs are enqueued
|
734
|
+
# Enqueues job(s). If any of the jobs is invalid, none of the jobs are enqueued.
|
771
735
|
# @param name name of the group.
|
772
736
|
# @param body Array of jobs to post.
|
773
737
|
# @param [Hash] opts the optional parameters
|
774
738
|
# @return [Array<(JobsWrapper, Fixnum, Hash)>] JobsWrapper data, response status code and response headers
|
775
739
|
def groups_name_jobs_post_with_http_info(name, body, opts = {})
|
776
740
|
if @api_client.config.debugging
|
777
|
-
@api_client.config.logger.debug "Calling API: JobsApi
|
741
|
+
@api_client.config.logger.debug "Calling API: JobsApi.groups_name_jobs_post ..."
|
778
742
|
end
|
779
|
-
|
780
743
|
# verify the required parameter 'name' is set
|
781
|
-
fail "Missing the required parameter 'name' when calling groups_name_jobs_post" if name.nil?
|
782
|
-
|
744
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling JobsApi.groups_name_jobs_post" if name.nil?
|
783
745
|
# verify the required parameter 'body' is set
|
784
|
-
fail "Missing the required parameter 'body' when calling groups_name_jobs_post" if body.nil?
|
785
|
-
|
746
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling JobsApi.groups_name_jobs_post" if body.nil?
|
786
747
|
# resource path
|
787
748
|
local_var_path = "/groups/{name}/jobs".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
788
749
|
|
@@ -793,19 +754,18 @@ module IronTitan
|
|
793
754
|
header_params = {}
|
794
755
|
|
795
756
|
# HTTP header 'Accept' (if needed)
|
796
|
-
|
797
|
-
|
757
|
+
local_header_accept = ['application/json']
|
758
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
798
759
|
|
799
760
|
# HTTP header 'Content-Type'
|
800
|
-
|
801
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(
|
761
|
+
local_header_content_type = ['application/json']
|
762
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
802
763
|
|
803
764
|
# form parameters
|
804
765
|
form_params = {}
|
805
766
|
|
806
767
|
# http body (model)
|
807
768
|
post_body = @api_client.object_to_http_body(body)
|
808
|
-
|
809
769
|
auth_names = []
|
810
770
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
811
771
|
:header_params => header_params,
|
@@ -826,20 +786,19 @@ module IronTitan
|
|
826
786
|
# @option opts [Integer] :n Number of jobs to return. (default to 1)
|
827
787
|
# @return [JobsWrapper]
|
828
788
|
def jobs_get(opts = {})
|
829
|
-
data,
|
789
|
+
data, _status_code, _headers = jobs_get_with_http_info(opts)
|
830
790
|
return data
|
831
791
|
end
|
832
792
|
|
833
793
|
# Get next job.
|
834
|
-
# Gets the next job in the queue, ready for processing. Titan may return <
|
794
|
+
# Gets the next job in the queue, ready for processing. Titan may return <=n jobs. Consumers should start processing jobs in order. Each returned job is set to `status` \"running\" and `started_at` is set to the current time. No other consumer can retrieve this job.
|
835
795
|
# @param [Hash] opts the optional parameters
|
836
796
|
# @option opts [Integer] :n Number of jobs to return.
|
837
797
|
# @return [Array<(JobsWrapper, Fixnum, Hash)>] JobsWrapper data, response status code and response headers
|
838
798
|
def jobs_get_with_http_info(opts = {})
|
839
799
|
if @api_client.config.debugging
|
840
|
-
@api_client.config.logger.debug "Calling API: JobsApi
|
800
|
+
@api_client.config.logger.debug "Calling API: JobsApi.jobs_get ..."
|
841
801
|
end
|
842
|
-
|
843
802
|
# resource path
|
844
803
|
local_var_path = "/jobs".sub('{format}','json')
|
845
804
|
|
@@ -851,20 +810,19 @@ module IronTitan
|
|
851
810
|
header_params = {}
|
852
811
|
|
853
812
|
# HTTP header 'Accept' (if needed)
|
854
|
-
|
855
|
-
|
813
|
+
local_header_accept = ['application/json']
|
814
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
856
815
|
|
857
816
|
# HTTP header 'Content-Type'
|
858
|
-
|
859
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(
|
817
|
+
local_header_content_type = ['application/json']
|
818
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
860
819
|
|
861
820
|
# form parameters
|
862
821
|
form_params = {}
|
863
822
|
|
864
823
|
# http body (model)
|
865
824
|
post_body = nil
|
866
|
-
|
867
|
-
auth_names = []
|
825
|
+
auth_names = []
|
868
826
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
869
827
|
:header_params => header_params,
|
870
828
|
:query_params => query_params,
|