iron_titan 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 293e2f4cecfec2abfd89b3acac590a78a32fdef1
4
+ data.tar.gz: 14eddedb4fb6944428a49a0a9b3f1398dd0d8adf
5
+ SHA512:
6
+ metadata.gz: 4d93a4c6951a7ac4c01b4b3ba1b2ecdfb6bd021bebe222052a99d87e533a37010a7c2f2fb4f71607494f8778ba0b1416c72acf8cfe9e08560d55dec84c1c932c
7
+ data.tar.gz: 5a63022d60582a3b69f7b9f71c8f1ca737fa7b37d23e1b6870a2066d7a2b78cdef74ad9689f69e60f25cd4a1ca25484a7dc3b5d4a08afe43c645440ce2705a1f
data/README.md ADDED
@@ -0,0 +1,10 @@
1
+
2
+
3
+
4
+
5
+ ## Building/testing this Gem
6
+
7
+ ```
8
+ gem build swagger_client.gemspec
9
+ gem install iron-titan-X.Y.Z.gem
10
+ ```
@@ -0,0 +1,263 @@
1
+ =begin
2
+ Titan API
3
+
4
+ The ultimate, language agnostic, container based job processing framework.
5
+
6
+ OpenAPI spec version: 0.0.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+
11
+ =end
12
+
13
+ require "uri"
14
+
15
+ module IronTitan
16
+ class CoreApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # Gets job by id
24
+ # Gets a job by id.
25
+ # @param id Job id
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [JobWrapper]
28
+ def job_id_get(id, opts = {})
29
+ data, status_code, headers = job_id_get_with_http_info(id, opts)
30
+ return data
31
+ end
32
+
33
+ # Gets job by id
34
+ # Gets a job by id.
35
+ # @param id Job id
36
+ # @param [Hash] opts the optional parameters
37
+ # @return [Array<(JobWrapper, Fixnum, Hash)>] JobWrapper data, response status code and response headers
38
+ def job_id_get_with_http_info(id, opts = {})
39
+ if @api_client.config.debugging
40
+ @api_client.config.logger.debug "Calling API: CoreApi#job_id_get ..."
41
+ end
42
+
43
+ # verify the required parameter 'id' is set
44
+ fail "Missing the required parameter 'id' when calling job_id_get" if id.nil?
45
+
46
+ # resource path
47
+ path = "/job/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
48
+
49
+ # query parameters
50
+ query_params = {}
51
+
52
+ # header parameters
53
+ header_params = {}
54
+
55
+ # HTTP header 'Accept' (if needed)
56
+ _header_accept = ['application/json']
57
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
58
+
59
+ # HTTP header 'Content-Type'
60
+ _header_content_type = ['application/json']
61
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
62
+
63
+ # form parameters
64
+ form_params = {}
65
+
66
+ # http body (model)
67
+ post_body = nil
68
+
69
+ auth_names = []
70
+ data, status_code, headers = @api_client.call_api(:GET, path,
71
+ :header_params => header_params,
72
+ :query_params => query_params,
73
+ :form_params => form_params,
74
+ :body => post_body,
75
+ :auth_names => auth_names,
76
+ :return_type => 'JobWrapper')
77
+ if @api_client.config.debugging
78
+ @api_client.config.logger.debug "API called: CoreApi#job_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
79
+ end
80
+ return data, status_code, headers
81
+ end
82
+
83
+ # Update a job
84
+ # Typically used to update status on error/completion. TODO: only allow &#39;status&#39; field.
85
+ # @param id Job id
86
+ # @param body Job data to post
87
+ # @param [Hash] opts the optional parameters
88
+ # @return [JobWrapper]
89
+ def job_id_patch(id, body, opts = {})
90
+ data, status_code, headers = job_id_patch_with_http_info(id, body, opts)
91
+ return data
92
+ end
93
+
94
+ # Update a job
95
+ # Typically used to update status on error/completion. TODO: only allow &#39;status&#39; field.
96
+ # @param id Job id
97
+ # @param body Job data to post
98
+ # @param [Hash] opts the optional parameters
99
+ # @return [Array<(JobWrapper, Fixnum, Hash)>] JobWrapper data, response status code and response headers
100
+ def job_id_patch_with_http_info(id, body, opts = {})
101
+ if @api_client.config.debugging
102
+ @api_client.config.logger.debug "Calling API: CoreApi#job_id_patch ..."
103
+ end
104
+
105
+ # verify the required parameter 'id' is set
106
+ fail "Missing the required parameter 'id' when calling job_id_patch" if id.nil?
107
+
108
+ # verify the required parameter 'body' is set
109
+ fail "Missing the required parameter 'body' when calling job_id_patch" if body.nil?
110
+
111
+ # resource path
112
+ path = "/job/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
113
+
114
+ # query parameters
115
+ query_params = {}
116
+
117
+ # header parameters
118
+ header_params = {}
119
+
120
+ # HTTP header 'Accept' (if needed)
121
+ _header_accept = ['application/json']
122
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
123
+
124
+ # HTTP header 'Content-Type'
125
+ _header_content_type = ['application/json']
126
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
127
+
128
+ # form parameters
129
+ form_params = {}
130
+
131
+ # http body (model)
132
+ post_body = @api_client.object_to_http_body(body)
133
+
134
+ auth_names = []
135
+ data, status_code, headers = @api_client.call_api(:PATCH, path,
136
+ :header_params => header_params,
137
+ :query_params => query_params,
138
+ :form_params => form_params,
139
+ :body => post_body,
140
+ :auth_names => auth_names,
141
+ :return_type => 'JobWrapper')
142
+ if @api_client.config.debugging
143
+ @api_client.config.logger.debug "API called: CoreApi#job_id_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
144
+ end
145
+ return data, status_code, headers
146
+ end
147
+
148
+ # Get next job.
149
+ # Gets the next job in the queue, ready for processing.
150
+ # @param [Hash] opts the optional parameters
151
+ # @return [Array<JobArray>]
152
+ def jobs_get(opts = {})
153
+ data, status_code, headers = jobs_get_with_http_info(opts)
154
+ return data
155
+ end
156
+
157
+ # Get next job.
158
+ # Gets the next job in the queue, ready for processing.
159
+ # @param [Hash] opts the optional parameters
160
+ # @return [Array<(Array<JobArray>, Fixnum, Hash)>] Array<JobArray> data, response status code and response headers
161
+ def jobs_get_with_http_info(opts = {})
162
+ if @api_client.config.debugging
163
+ @api_client.config.logger.debug "Calling API: CoreApi#jobs_get ..."
164
+ end
165
+
166
+ # resource path
167
+ path = "/jobs".sub('{format}','json')
168
+
169
+ # query parameters
170
+ query_params = {}
171
+
172
+ # header parameters
173
+ header_params = {}
174
+
175
+ # HTTP header 'Accept' (if needed)
176
+ _header_accept = ['application/json']
177
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
178
+
179
+ # HTTP header 'Content-Type'
180
+ _header_content_type = ['application/json']
181
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
182
+
183
+ # form parameters
184
+ form_params = {}
185
+
186
+ # http body (model)
187
+ post_body = nil
188
+
189
+ auth_names = []
190
+ data, status_code, headers = @api_client.call_api(:GET, path,
191
+ :header_params => header_params,
192
+ :query_params => query_params,
193
+ :form_params => form_params,
194
+ :body => post_body,
195
+ :auth_names => auth_names,
196
+ :return_type => 'Array<JobArray>')
197
+ if @api_client.config.debugging
198
+ @api_client.config.logger.debug "API called: CoreApi#jobs_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
199
+ end
200
+ return data, status_code, headers
201
+ end
202
+
203
+ # Enqueue Job
204
+ # Enqueues a job.
205
+ # @param body Array of jobs to post.
206
+ # @param [Hash] opts the optional parameters
207
+ # @return [JobArray]
208
+ def jobs_post(body, opts = {})
209
+ data, status_code, headers = jobs_post_with_http_info(body, opts)
210
+ return data
211
+ end
212
+
213
+ # Enqueue Job
214
+ # Enqueues a job.
215
+ # @param body Array of jobs to post.
216
+ # @param [Hash] opts the optional parameters
217
+ # @return [Array<(JobArray, Fixnum, Hash)>] JobArray data, response status code and response headers
218
+ def jobs_post_with_http_info(body, opts = {})
219
+ if @api_client.config.debugging
220
+ @api_client.config.logger.debug "Calling API: CoreApi#jobs_post ..."
221
+ end
222
+
223
+ # verify the required parameter 'body' is set
224
+ fail "Missing the required parameter 'body' when calling jobs_post" if body.nil?
225
+
226
+ # resource path
227
+ path = "/jobs".sub('{format}','json')
228
+
229
+ # query parameters
230
+ query_params = {}
231
+
232
+ # header parameters
233
+ header_params = {}
234
+
235
+ # HTTP header 'Accept' (if needed)
236
+ _header_accept = ['application/json']
237
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
238
+
239
+ # HTTP header 'Content-Type'
240
+ _header_content_type = ['application/json']
241
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
242
+
243
+ # form parameters
244
+ form_params = {}
245
+
246
+ # http body (model)
247
+ post_body = @api_client.object_to_http_body(body)
248
+
249
+ auth_names = []
250
+ data, status_code, headers = @api_client.call_api(:POST, path,
251
+ :header_params => header_params,
252
+ :query_params => query_params,
253
+ :form_params => form_params,
254
+ :body => post_body,
255
+ :auth_names => auth_names,
256
+ :return_type => 'JobArray')
257
+ if @api_client.config.debugging
258
+ @api_client.config.logger.debug "API called: CoreApi#jobs_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
259
+ end
260
+ return data, status_code, headers
261
+ end
262
+ end
263
+ end
@@ -0,0 +1,383 @@
1
+ =begin
2
+ Titan API
3
+
4
+ The ultimate, language agnostic, container based job processing framework.
5
+
6
+ OpenAPI spec version: 0.0.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+
11
+ =end
12
+
13
+ require "uri"
14
+
15
+ module IronTitan
16
+ class JobsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # Gets job by id
24
+ # Gets a job by id.
25
+ # @param id Job id
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [JobWrapper]
28
+ def job_id_get(id, opts = {})
29
+ data, status_code, headers = job_id_get_with_http_info(id, opts)
30
+ return data
31
+ end
32
+
33
+ # Gets job by id
34
+ # Gets a job by id.
35
+ # @param id Job id
36
+ # @param [Hash] opts the optional parameters
37
+ # @return [Array<(JobWrapper, Fixnum, Hash)>] JobWrapper data, response status code and response headers
38
+ def job_id_get_with_http_info(id, opts = {})
39
+ if @api_client.config.debugging
40
+ @api_client.config.logger.debug "Calling API: JobsApi#job_id_get ..."
41
+ end
42
+
43
+ # verify the required parameter 'id' is set
44
+ fail "Missing the required parameter 'id' when calling job_id_get" if id.nil?
45
+
46
+ # resource path
47
+ path = "/job/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
48
+
49
+ # query parameters
50
+ query_params = {}
51
+
52
+ # header parameters
53
+ header_params = {}
54
+
55
+ # HTTP header 'Accept' (if needed)
56
+ _header_accept = ['application/json']
57
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
58
+
59
+ # HTTP header 'Content-Type'
60
+ _header_content_type = ['application/json']
61
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
62
+
63
+ # form parameters
64
+ form_params = {}
65
+
66
+ # http body (model)
67
+ post_body = nil
68
+
69
+ auth_names = []
70
+ data, status_code, headers = @api_client.call_api(:GET, path,
71
+ :header_params => header_params,
72
+ :query_params => query_params,
73
+ :form_params => form_params,
74
+ :body => post_body,
75
+ :auth_names => auth_names,
76
+ :return_type => 'JobWrapper')
77
+ if @api_client.config.debugging
78
+ @api_client.config.logger.debug "API called: JobsApi#job_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
79
+ end
80
+ return data, status_code, headers
81
+ end
82
+
83
+ # Update a job
84
+ # Typically used to update status on error/completion. TODO: only allow &#39;status&#39; field.
85
+ # @param id Job id
86
+ # @param body Job data to post
87
+ # @param [Hash] opts the optional parameters
88
+ # @return [JobWrapper]
89
+ def job_id_patch(id, body, opts = {})
90
+ data, status_code, headers = job_id_patch_with_http_info(id, body, opts)
91
+ return data
92
+ end
93
+
94
+ # Update a job
95
+ # Typically used to update status on error/completion. TODO: only allow &#39;status&#39; field.
96
+ # @param id Job id
97
+ # @param body Job data to post
98
+ # @param [Hash] opts the optional parameters
99
+ # @return [Array<(JobWrapper, Fixnum, Hash)>] JobWrapper data, response status code and response headers
100
+ def job_id_patch_with_http_info(id, body, opts = {})
101
+ if @api_client.config.debugging
102
+ @api_client.config.logger.debug "Calling API: JobsApi#job_id_patch ..."
103
+ end
104
+
105
+ # verify the required parameter 'id' is set
106
+ fail "Missing the required parameter 'id' when calling job_id_patch" if id.nil?
107
+
108
+ # verify the required parameter 'body' is set
109
+ fail "Missing the required parameter 'body' when calling job_id_patch" if body.nil?
110
+
111
+ # resource path
112
+ path = "/job/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
113
+
114
+ # query parameters
115
+ query_params = {}
116
+
117
+ # header parameters
118
+ header_params = {}
119
+
120
+ # HTTP header 'Accept' (if needed)
121
+ _header_accept = ['application/json']
122
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
123
+
124
+ # HTTP header 'Content-Type'
125
+ _header_content_type = ['application/json']
126
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
127
+
128
+ # form parameters
129
+ form_params = {}
130
+
131
+ # http body (model)
132
+ post_body = @api_client.object_to_http_body(body)
133
+
134
+ auth_names = []
135
+ data, status_code, headers = @api_client.call_api(:PATCH, path,
136
+ :header_params => header_params,
137
+ :query_params => query_params,
138
+ :form_params => form_params,
139
+ :body => post_body,
140
+ :auth_names => auth_names,
141
+ :return_type => 'JobWrapper')
142
+ if @api_client.config.debugging
143
+ @api_client.config.logger.debug "API called: JobsApi#job_id_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
144
+ end
145
+ return data, status_code, headers
146
+ end
147
+
148
+ # Cancel a job.
149
+ # This will prevent a job from running. TODO: should we attempt to kill a running job?
150
+ # @param id Job id
151
+ # @param [Hash] opts the optional parameters
152
+ # @return [JobWrapper]
153
+ def job_id_cancel_post(id, opts = {})
154
+ data, status_code, headers = job_id_cancel_post_with_http_info(id, opts)
155
+ return data
156
+ end
157
+
158
+ # Cancel a job.
159
+ # This will prevent a job from running. TODO: should we attempt to kill a running job?
160
+ # @param id Job id
161
+ # @param [Hash] opts the optional parameters
162
+ # @return [Array<(JobWrapper, Fixnum, Hash)>] JobWrapper data, response status code and response headers
163
+ def job_id_cancel_post_with_http_info(id, opts = {})
164
+ if @api_client.config.debugging
165
+ @api_client.config.logger.debug "Calling API: JobsApi#job_id_cancel_post ..."
166
+ end
167
+
168
+ # verify the required parameter 'id' is set
169
+ fail "Missing the required parameter 'id' when calling job_id_cancel_post" if id.nil?
170
+
171
+ # resource path
172
+ path = "/job/{id}/cancel".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
173
+
174
+ # query parameters
175
+ query_params = {}
176
+
177
+ # header parameters
178
+ header_params = {}
179
+
180
+ # HTTP header 'Accept' (if needed)
181
+ _header_accept = ['application/json']
182
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
183
+
184
+ # HTTP header 'Content-Type'
185
+ _header_content_type = ['application/json']
186
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
187
+
188
+ # form parameters
189
+ form_params = {}
190
+
191
+ # http body (model)
192
+ post_body = nil
193
+
194
+ auth_names = []
195
+ data, status_code, headers = @api_client.call_api(:POST, path,
196
+ :header_params => header_params,
197
+ :query_params => query_params,
198
+ :form_params => form_params,
199
+ :body => post_body,
200
+ :auth_names => auth_names,
201
+ :return_type => 'JobWrapper')
202
+ if @api_client.config.debugging
203
+ @api_client.config.logger.debug "API called: JobsApi#job_id_cancel_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
204
+ end
205
+ return data, status_code, headers
206
+ end
207
+
208
+ # Retry a job.
209
+ # If a job fails, you can retry the job with the original payload.
210
+ # @param id Job id
211
+ # @param [Hash] opts the optional parameters
212
+ # @return [JobWrapper]
213
+ def job_id_retry_post(id, opts = {})
214
+ data, status_code, headers = job_id_retry_post_with_http_info(id, opts)
215
+ return data
216
+ end
217
+
218
+ # Retry a job.
219
+ # If a job fails, you can retry the job with the original payload.
220
+ # @param id Job id
221
+ # @param [Hash] opts the optional parameters
222
+ # @return [Array<(JobWrapper, Fixnum, Hash)>] JobWrapper data, response status code and response headers
223
+ def job_id_retry_post_with_http_info(id, opts = {})
224
+ if @api_client.config.debugging
225
+ @api_client.config.logger.debug "Calling API: JobsApi#job_id_retry_post ..."
226
+ end
227
+
228
+ # verify the required parameter 'id' is set
229
+ fail "Missing the required parameter 'id' when calling job_id_retry_post" if id.nil?
230
+
231
+ # resource path
232
+ path = "/job/{id}/retry".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
233
+
234
+ # query parameters
235
+ query_params = {}
236
+
237
+ # header parameters
238
+ header_params = {}
239
+
240
+ # HTTP header 'Accept' (if needed)
241
+ _header_accept = ['application/json']
242
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
243
+
244
+ # HTTP header 'Content-Type'
245
+ _header_content_type = ['application/json']
246
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
247
+
248
+ # form parameters
249
+ form_params = {}
250
+
251
+ # http body (model)
252
+ post_body = nil
253
+
254
+ auth_names = []
255
+ data, status_code, headers = @api_client.call_api(:POST, path,
256
+ :header_params => header_params,
257
+ :query_params => query_params,
258
+ :form_params => form_params,
259
+ :body => post_body,
260
+ :auth_names => auth_names,
261
+ :return_type => 'JobWrapper')
262
+ if @api_client.config.debugging
263
+ @api_client.config.logger.debug "API called: JobsApi#job_id_retry_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
264
+ end
265
+ return data, status_code, headers
266
+ end
267
+
268
+ # Get next job.
269
+ # Gets the next job in the queue, ready for processing.
270
+ # @param [Hash] opts the optional parameters
271
+ # @return [Array<JobArray>]
272
+ def jobs_get(opts = {})
273
+ data, status_code, headers = jobs_get_with_http_info(opts)
274
+ return data
275
+ end
276
+
277
+ # Get next job.
278
+ # Gets the next job in the queue, ready for processing.
279
+ # @param [Hash] opts the optional parameters
280
+ # @return [Array<(Array<JobArray>, Fixnum, Hash)>] Array<JobArray> data, response status code and response headers
281
+ def jobs_get_with_http_info(opts = {})
282
+ if @api_client.config.debugging
283
+ @api_client.config.logger.debug "Calling API: JobsApi#jobs_get ..."
284
+ end
285
+
286
+ # resource path
287
+ path = "/jobs".sub('{format}','json')
288
+
289
+ # query parameters
290
+ query_params = {}
291
+
292
+ # header parameters
293
+ header_params = {}
294
+
295
+ # HTTP header 'Accept' (if needed)
296
+ _header_accept = ['application/json']
297
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
298
+
299
+ # HTTP header 'Content-Type'
300
+ _header_content_type = ['application/json']
301
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
302
+
303
+ # form parameters
304
+ form_params = {}
305
+
306
+ # http body (model)
307
+ post_body = nil
308
+
309
+ auth_names = []
310
+ data, status_code, headers = @api_client.call_api(:GET, path,
311
+ :header_params => header_params,
312
+ :query_params => query_params,
313
+ :form_params => form_params,
314
+ :body => post_body,
315
+ :auth_names => auth_names,
316
+ :return_type => 'Array<JobArray>')
317
+ if @api_client.config.debugging
318
+ @api_client.config.logger.debug "API called: JobsApi#jobs_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
319
+ end
320
+ return data, status_code, headers
321
+ end
322
+
323
+ # Enqueue Job
324
+ # Enqueues a job.
325
+ # @param body Array of jobs to post.
326
+ # @param [Hash] opts the optional parameters
327
+ # @return [JobArray]
328
+ def jobs_post(body, opts = {})
329
+ data, status_code, headers = jobs_post_with_http_info(body, opts)
330
+ return data
331
+ end
332
+
333
+ # Enqueue Job
334
+ # Enqueues a job.
335
+ # @param body Array of jobs to post.
336
+ # @param [Hash] opts the optional parameters
337
+ # @return [Array<(JobArray, Fixnum, Hash)>] JobArray data, response status code and response headers
338
+ def jobs_post_with_http_info(body, opts = {})
339
+ if @api_client.config.debugging
340
+ @api_client.config.logger.debug "Calling API: JobsApi#jobs_post ..."
341
+ end
342
+
343
+ # verify the required parameter 'body' is set
344
+ fail "Missing the required parameter 'body' when calling jobs_post" if body.nil?
345
+
346
+ # resource path
347
+ path = "/jobs".sub('{format}','json')
348
+
349
+ # query parameters
350
+ query_params = {}
351
+
352
+ # header parameters
353
+ header_params = {}
354
+
355
+ # HTTP header 'Accept' (if needed)
356
+ _header_accept = ['application/json']
357
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
358
+
359
+ # HTTP header 'Content-Type'
360
+ _header_content_type = ['application/json']
361
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
362
+
363
+ # form parameters
364
+ form_params = {}
365
+
366
+ # http body (model)
367
+ post_body = @api_client.object_to_http_body(body)
368
+
369
+ auth_names = []
370
+ data, status_code, headers = @api_client.call_api(:POST, path,
371
+ :header_params => header_params,
372
+ :query_params => query_params,
373
+ :form_params => form_params,
374
+ :body => post_body,
375
+ :auth_names => auth_names,
376
+ :return_type => 'JobArray')
377
+ if @api_client.config.debugging
378
+ @api_client.config.logger.debug "API called: JobsApi#jobs_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
379
+ end
380
+ return data, status_code, headers
381
+ end
382
+ end
383
+ end