iron_titan 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +20 -20
  3. data/lib/iron_titan/api/groups_api.rb +1 -1
  4. data/lib/iron_titan/api/jobs_api.rb +136 -136
  5. data/lib/iron_titan/api/runner_api.rb +37 -37
  6. data/lib/iron_titan/api_client.rb +1 -1
  7. data/lib/iron_titan/api_error.rb +1 -1
  8. data/lib/iron_titan/models/complete.rb +1 -1
  9. data/lib/iron_titan/models/error.rb +1 -1
  10. data/lib/iron_titan/models/error_body.rb +1 -1
  11. data/lib/iron_titan/models/group.rb +1 -1
  12. data/lib/iron_titan/models/group_wrapper.rb +1 -1
  13. data/lib/iron_titan/models/groups_wrapper.rb +1 -1
  14. data/lib/iron_titan/models/id_status.rb +1 -1
  15. data/lib/iron_titan/models/job.rb +8 -8
  16. data/lib/iron_titan/models/job_wrapper.rb +1 -1
  17. data/lib/iron_titan/models/jobs_wrapper.rb +1 -1
  18. data/lib/iron_titan/models/new_job.rb +1 -1
  19. data/lib/iron_titan/models/new_jobs_wrapper.rb +1 -1
  20. data/lib/iron_titan/models/start.rb +1 -1
  21. data/lib/iron_titan/version.rb +2 -2
  22. data/lib/iron_titan.rb +1 -1
  23. data/spec/api/groups_api_spec.rb +1 -1
  24. data/spec/api/jobs_api_spec.rb +37 -37
  25. data/spec/api/runner_api_spec.rb +10 -10
  26. data/spec/models/complete_spec.rb +1 -1
  27. data/spec/models/error_body_spec.rb +1 -1
  28. data/spec/models/error_spec.rb +1 -1
  29. data/spec/models/group_spec.rb +1 -1
  30. data/spec/models/group_wrapper_spec.rb +1 -1
  31. data/spec/models/groups_wrapper_spec.rb +1 -1
  32. data/spec/models/id_status_spec.rb +1 -1
  33. data/spec/models/job_spec.rb +2 -2
  34. data/spec/models/job_wrapper_spec.rb +1 -1
  35. data/spec/models/jobs_wrapper_spec.rb +1 -1
  36. data/spec/models/new_job_spec.rb +1 -1
  37. data/spec/models/new_jobs_wrapper_spec.rb +1 -1
  38. data/spec/models/start_spec.rb +1 -1
  39. metadata +2 -2
@@ -3,7 +3,7 @@ Titan API
3
3
 
4
4
  The ultimate, language agnostic, container based job processing framework.
5
5
 
6
- OpenAPI spec version: 0.3.7
6
+ OpenAPI spec version: 0.3.8
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -22,33 +22,33 @@ module IronTitan
22
22
 
23
23
  # Get job list by group name.
24
24
  # This will list jobs for a particular group.
25
- # @param group_name Name of group for this set of jobs.
25
+ # @param name Name of group for this set of jobs.
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @option opts [DateTime] :created_after Will return jobs created after this time. In RFC3339 format.
28
28
  # @option opts [Integer] :n Number of jobs to return.
29
29
  # @return [JobsWrapper]
30
- def groups_group_name_jobs_get(group_name, opts = {})
31
- data, status_code, headers = groups_group_name_jobs_get_with_http_info(group_name, opts)
30
+ def groups_name_jobs_get(name, opts = {})
31
+ data, status_code, headers = groups_name_jobs_get_with_http_info(name, opts)
32
32
  return data
33
33
  end
34
34
 
35
35
  # Get job list by group name.
36
36
  # This will list jobs for a particular group.
37
- # @param group_name Name of group for this set of jobs.
37
+ # @param name Name of group for this set of jobs.
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [DateTime] :created_after Will return jobs created after this time. In RFC3339 format.
40
40
  # @option opts [Integer] :n Number of jobs to return.
41
41
  # @return [Array<(JobsWrapper, Fixnum, Hash)>] JobsWrapper data, response status code and response headers
42
- def groups_group_name_jobs_get_with_http_info(group_name, opts = {})
42
+ def groups_name_jobs_get_with_http_info(name, opts = {})
43
43
  if @api_client.config.debugging
44
- @api_client.config.logger.debug "Calling API: JobsApi#groups_group_name_jobs_get ..."
44
+ @api_client.config.logger.debug "Calling API: JobsApi#groups_name_jobs_get ..."
45
45
  end
46
46
 
47
- # verify the required parameter 'group_name' is set
48
- fail "Missing the required parameter 'group_name' when calling groups_group_name_jobs_get" if group_name.nil?
47
+ # verify the required parameter 'name' is set
48
+ fail "Missing the required parameter 'name' when calling groups_name_jobs_get" if name.nil?
49
49
 
50
50
  # resource path
51
- local_var_path = "/groups/{group_name}/jobs".sub('{format}','json').sub('{' + 'group_name' + '}', group_name.to_s)
51
+ local_var_path = "/groups/{name}/jobs".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
52
52
 
53
53
  # query parameters
54
54
  query_params = {}
@@ -81,41 +81,41 @@ module IronTitan
81
81
  :auth_names => auth_names,
82
82
  :return_type => 'JobsWrapper')
83
83
  if @api_client.config.debugging
84
- @api_client.config.logger.debug "API called: JobsApi#groups_group_name_jobs_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
84
+ @api_client.config.logger.debug "API called: JobsApi#groups_name_jobs_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
85
85
  end
86
86
  return data, status_code, headers
87
87
  end
88
88
 
89
89
  # Cancel a job.
90
90
  # 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.
91
- # @param group_name Name of group for this set of jobs.
91
+ # @param name Name of group for this set of jobs.
92
92
  # @param id Job id
93
93
  # @param [Hash] opts the optional parameters
94
94
  # @return [JobWrapper]
95
- def groups_group_name_jobs_id_cancel_post(group_name, id, opts = {})
96
- data, status_code, headers = groups_group_name_jobs_id_cancel_post_with_http_info(group_name, id, opts)
95
+ def groups_name_jobs_id_cancel_post(name, id, opts = {})
96
+ data, status_code, headers = groups_name_jobs_id_cancel_post_with_http_info(name, id, opts)
97
97
  return data
98
98
  end
99
99
 
100
100
  # Cancel a job.
101
101
  # 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&#39;s completed_at field is set to the current time on the jobserver.
102
- # @param group_name Name of group for this set of jobs.
102
+ # @param name Name of group for this set of jobs.
103
103
  # @param id Job id
104
104
  # @param [Hash] opts the optional parameters
105
105
  # @return [Array<(JobWrapper, Fixnum, Hash)>] JobWrapper data, response status code and response headers
106
- def groups_group_name_jobs_id_cancel_post_with_http_info(group_name, id, opts = {})
106
+ def groups_name_jobs_id_cancel_post_with_http_info(name, id, opts = {})
107
107
  if @api_client.config.debugging
108
- @api_client.config.logger.debug "Calling API: JobsApi#groups_group_name_jobs_id_cancel_post ..."
108
+ @api_client.config.logger.debug "Calling API: JobsApi#groups_name_jobs_id_cancel_post ..."
109
109
  end
110
110
 
111
- # verify the required parameter 'group_name' is set
112
- fail "Missing the required parameter 'group_name' when calling groups_group_name_jobs_id_cancel_post" if group_name.nil?
111
+ # 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
113
 
114
114
  # verify the required parameter 'id' is set
115
- fail "Missing the required parameter 'id' when calling groups_group_name_jobs_id_cancel_post" if id.nil?
115
+ fail "Missing the required parameter 'id' when calling groups_name_jobs_id_cancel_post" if id.nil?
116
116
 
117
117
  # resource path
118
- local_var_path = "/groups/{group_name}/jobs/{id}/cancel".sub('{format}','json').sub('{' + 'group_name' + '}', group_name.to_s).sub('{' + 'id' + '}', id.to_s)
118
+ local_var_path = "/groups/{name}/jobs/{id}/cancel".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'id' + '}', id.to_s)
119
119
 
120
120
  # query parameters
121
121
  query_params = {}
@@ -146,41 +146,41 @@ module IronTitan
146
146
  :auth_names => auth_names,
147
147
  :return_type => 'JobWrapper')
148
148
  if @api_client.config.debugging
149
- @api_client.config.logger.debug "API called: JobsApi#groups_group_name_jobs_id_cancel_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
149
+ @api_client.config.logger.debug "API called: JobsApi#groups_name_jobs_id_cancel_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
150
150
  end
151
151
  return data, status_code, headers
152
152
  end
153
153
 
154
154
  # Delete the job.
155
155
  # Delete only succeeds if job status is one of `succeeded\n| failed | cancelled`. Cancel a job if it is another state and needs to\nbe deleted. All information about the job, including the log, is\nirretrievably lost when this is invoked.\n
156
- # @param group_name Name of group for this set of jobs.
156
+ # @param name Name of group for this set of jobs.
157
157
  # @param id Job id
158
158
  # @param [Hash] opts the optional parameters
159
159
  # @return [nil]
160
- def groups_group_name_jobs_id_delete(group_name, id, opts = {})
161
- groups_group_name_jobs_id_delete_with_http_info(group_name, id, opts)
160
+ def groups_name_jobs_id_delete(name, id, opts = {})
161
+ groups_name_jobs_id_delete_with_http_info(name, id, opts)
162
162
  return nil
163
163
  end
164
164
 
165
165
  # Delete the job.
166
166
  # Delete only succeeds if job status is one of `succeeded\n| failed | cancelled`. Cancel a job if it is another state and needs to\nbe deleted. All information about the job, including the log, is\nirretrievably lost when this is invoked.\n
167
- # @param group_name Name of group for this set of jobs.
167
+ # @param name Name of group for this set of jobs.
168
168
  # @param id Job id
169
169
  # @param [Hash] opts the optional parameters
170
170
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
171
- def groups_group_name_jobs_id_delete_with_http_info(group_name, id, opts = {})
171
+ def groups_name_jobs_id_delete_with_http_info(name, id, opts = {})
172
172
  if @api_client.config.debugging
173
- @api_client.config.logger.debug "Calling API: JobsApi#groups_group_name_jobs_id_delete ..."
173
+ @api_client.config.logger.debug "Calling API: JobsApi#groups_name_jobs_id_delete ..."
174
174
  end
175
175
 
176
- # verify the required parameter 'group_name' is set
177
- fail "Missing the required parameter 'group_name' when calling groups_group_name_jobs_id_delete" if group_name.nil?
176
+ # 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
178
 
179
179
  # verify the required parameter 'id' is set
180
- fail "Missing the required parameter 'id' when calling groups_group_name_jobs_id_delete" if id.nil?
180
+ fail "Missing the required parameter 'id' when calling groups_name_jobs_id_delete" if id.nil?
181
181
 
182
182
  # resource path
183
- local_var_path = "/groups/{group_name}/jobs/{id}".sub('{format}','json').sub('{' + 'group_name' + '}', group_name.to_s).sub('{' + 'id' + '}', id.to_s)
183
+ local_var_path = "/groups/{name}/jobs/{id}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'id' + '}', id.to_s)
184
184
 
185
185
  # query parameters
186
186
  query_params = {}
@@ -210,46 +210,46 @@ module IronTitan
210
210
  :body => post_body,
211
211
  :auth_names => auth_names)
212
212
  if @api_client.config.debugging
213
- @api_client.config.logger.debug "API called: JobsApi#groups_group_name_jobs_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
213
+ @api_client.config.logger.debug "API called: JobsApi#groups_name_jobs_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
214
214
  end
215
215
  return data, status_code, headers
216
216
  end
217
217
 
218
218
  # Mark job as failed.
219
219
  # Job is marked as failed if it was in a valid state. Job's `finished_at` time is initialized.
220
- # @param group_name Name of group for this set of jobs.
220
+ # @param name Name of group for this set of jobs.
221
221
  # @param id Job id
222
222
  # @param body
223
223
  # @param [Hash] opts the optional parameters
224
224
  # @return [JobWrapper]
225
- def groups_group_name_jobs_id_error_post(group_name, id, body, opts = {})
226
- data, status_code, headers = groups_group_name_jobs_id_error_post_with_http_info(group_name, id, body, opts)
225
+ def groups_name_jobs_id_error_post(name, id, body, opts = {})
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
231
  # Job is marked as failed if it was in a valid state. Job&#39;s `finished_at` time is initialized.
232
- # @param group_name Name of group for this set of jobs.
232
+ # @param name Name of group for this set of jobs.
233
233
  # @param id Job id
234
234
  # @param body
235
235
  # @param [Hash] opts the optional parameters
236
236
  # @return [Array<(JobWrapper, Fixnum, Hash)>] JobWrapper data, response status code and response headers
237
- def groups_group_name_jobs_id_error_post_with_http_info(group_name, id, body, opts = {})
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#groups_group_name_jobs_id_error_post ..."
239
+ @api_client.config.logger.debug "Calling API: JobsApi#groups_name_jobs_id_error_post ..."
240
240
  end
241
241
 
242
- # verify the required parameter 'group_name' is set
243
- fail "Missing the required parameter 'group_name' when calling groups_group_name_jobs_id_error_post" if group_name.nil?
242
+ # 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
244
 
245
245
  # verify the required parameter 'id' is set
246
- fail "Missing the required parameter 'id' when calling groups_group_name_jobs_id_error_post" if id.nil?
246
+ fail "Missing the required parameter 'id' when calling groups_name_jobs_id_error_post" if id.nil?
247
247
 
248
248
  # verify the required parameter 'body' is set
249
- fail "Missing the required parameter 'body' when calling groups_group_name_jobs_id_error_post" if body.nil?
249
+ fail "Missing the required parameter 'body' when calling groups_name_jobs_id_error_post" if body.nil?
250
250
 
251
251
  # resource path
252
- local_var_path = "/groups/{group_name}/jobs/{id}/error".sub('{format}','json').sub('{' + 'group_name' + '}', group_name.to_s).sub('{' + 'id' + '}', id.to_s)
252
+ local_var_path = "/groups/{name}/jobs/{id}/error".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'id' + '}', id.to_s)
253
253
 
254
254
  # query parameters
255
255
  query_params = {}
@@ -280,41 +280,41 @@ module IronTitan
280
280
  :auth_names => auth_names,
281
281
  :return_type => 'JobWrapper')
282
282
  if @api_client.config.debugging
283
- @api_client.config.logger.debug "API called: JobsApi#groups_group_name_jobs_id_error_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
283
+ @api_client.config.logger.debug "API called: JobsApi#groups_name_jobs_id_error_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
284
284
  end
285
285
  return data, status_code, headers
286
286
  end
287
287
 
288
288
  # Gets job by id
289
289
  # Gets a job by id.
290
- # @param group_name Name of group for this set of jobs.
290
+ # @param name Name of group for this set of jobs.
291
291
  # @param id Job id
292
292
  # @param [Hash] opts the optional parameters
293
293
  # @return [JobWrapper]
294
- def groups_group_name_jobs_id_get(group_name, id, opts = {})
295
- data, status_code, headers = groups_group_name_jobs_id_get_with_http_info(group_name, id, opts)
294
+ def groups_name_jobs_id_get(name, id, opts = {})
295
+ data, status_code, headers = groups_name_jobs_id_get_with_http_info(name, id, opts)
296
296
  return data
297
297
  end
298
298
 
299
299
  # Gets job by id
300
300
  # Gets a job by id.
301
- # @param group_name Name of group for this set of jobs.
301
+ # @param name Name of group for this set of jobs.
302
302
  # @param id Job id
303
303
  # @param [Hash] opts the optional parameters
304
304
  # @return [Array<(JobWrapper, Fixnum, Hash)>] JobWrapper data, response status code and response headers
305
- def groups_group_name_jobs_id_get_with_http_info(group_name, id, opts = {})
305
+ def groups_name_jobs_id_get_with_http_info(name, id, opts = {})
306
306
  if @api_client.config.debugging
307
- @api_client.config.logger.debug "Calling API: JobsApi#groups_group_name_jobs_id_get ..."
307
+ @api_client.config.logger.debug "Calling API: JobsApi#groups_name_jobs_id_get ..."
308
308
  end
309
309
 
310
- # verify the required parameter 'group_name' is set
311
- fail "Missing the required parameter 'group_name' when calling groups_group_name_jobs_id_get" if group_name.nil?
310
+ # 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
312
 
313
313
  # verify the required parameter 'id' is set
314
- fail "Missing the required parameter 'id' when calling groups_group_name_jobs_id_get" if id.nil?
314
+ fail "Missing the required parameter 'id' when calling groups_name_jobs_id_get" if id.nil?
315
315
 
316
316
  # resource path
317
- local_var_path = "/groups/{group_name}/jobs/{id}".sub('{format}','json').sub('{' + 'group_name' + '}', group_name.to_s).sub('{' + 'id' + '}', id.to_s)
317
+ local_var_path = "/groups/{name}/jobs/{id}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'id' + '}', id.to_s)
318
318
 
319
319
  # query parameters
320
320
  query_params = {}
@@ -345,41 +345,41 @@ module IronTitan
345
345
  :auth_names => auth_names,
346
346
  :return_type => 'JobWrapper')
347
347
  if @api_client.config.debugging
348
- @api_client.config.logger.debug "API called: JobsApi#groups_group_name_jobs_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
348
+ @api_client.config.logger.debug "API called: JobsApi#groups_name_jobs_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
349
349
  end
350
350
  return data, status_code, headers
351
351
  end
352
352
 
353
353
  # Get the log of a completed job.
354
354
  # Retrieves the log from log storage.
355
- # @param group_name Name of group for this set of jobs.
355
+ # @param name Name of group for this set of jobs.
356
356
  # @param id Job id
357
357
  # @param [Hash] opts the optional parameters
358
358
  # @return [String]
359
- def groups_group_name_jobs_id_log_get(group_name, id, opts = {})
360
- data, status_code, headers = groups_group_name_jobs_id_log_get_with_http_info(group_name, id, opts)
359
+ def groups_name_jobs_id_log_get(name, id, opts = {})
360
+ data, status_code, headers = groups_name_jobs_id_log_get_with_http_info(name, id, opts)
361
361
  return data
362
362
  end
363
363
 
364
364
  # Get the log of a completed job.
365
365
  # Retrieves the log from log storage.
366
- # @param group_name Name of group for this set of jobs.
366
+ # @param name Name of group for this set of jobs.
367
367
  # @param id Job id
368
368
  # @param [Hash] opts the optional parameters
369
369
  # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
370
- def groups_group_name_jobs_id_log_get_with_http_info(group_name, id, opts = {})
370
+ def groups_name_jobs_id_log_get_with_http_info(name, id, opts = {})
371
371
  if @api_client.config.debugging
372
- @api_client.config.logger.debug "Calling API: JobsApi#groups_group_name_jobs_id_log_get ..."
372
+ @api_client.config.logger.debug "Calling API: JobsApi#groups_name_jobs_id_log_get ..."
373
373
  end
374
374
 
375
- # verify the required parameter 'group_name' is set
376
- fail "Missing the required parameter 'group_name' when calling groups_group_name_jobs_id_log_get" if group_name.nil?
375
+ # 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
377
 
378
378
  # verify the required parameter 'id' is set
379
- fail "Missing the required parameter 'id' when calling groups_group_name_jobs_id_log_get" if id.nil?
379
+ fail "Missing the required parameter 'id' when calling groups_name_jobs_id_log_get" if id.nil?
380
380
 
381
381
  # resource path
382
- local_var_path = "/groups/{group_name}/jobs/{id}/log".sub('{format}','json').sub('{' + 'group_name' + '}', group_name.to_s).sub('{' + 'id' + '}', id.to_s)
382
+ local_var_path = "/groups/{name}/jobs/{id}/log".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'id' + '}', id.to_s)
383
383
 
384
384
  # query parameters
385
385
  query_params = {}
@@ -410,46 +410,46 @@ module IronTitan
410
410
  :auth_names => auth_names,
411
411
  :return_type => 'String')
412
412
  if @api_client.config.debugging
413
- @api_client.config.logger.debug "API called: JobsApi#groups_group_name_jobs_id_log_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
413
+ @api_client.config.logger.debug "API called: JobsApi#groups_name_jobs_id_log_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
414
414
  end
415
415
  return data, status_code, headers
416
416
  end
417
417
 
418
418
  # Send in a log for storage.
419
419
  # Logs are sent after a job completes since they may be very large and the runner can process the next job.
420
- # @param group_name Name of group for this set of jobs.
420
+ # @param name Name of group for this set of jobs.
421
421
  # @param id Job id
422
422
  # @param log Output log for the job. Content-Type must be \&quot;text/plain; charset=utf-8\&quot;.
423
423
  # @param [Hash] opts the optional parameters
424
424
  # @return [JobWrapper]
425
- def groups_group_name_jobs_id_log_post(group_name, id, log, opts = {})
426
- data, status_code, headers = groups_group_name_jobs_id_log_post_with_http_info(group_name, id, log, opts)
425
+ def groups_name_jobs_id_log_post(name, id, log, opts = {})
426
+ data, status_code, headers = groups_name_jobs_id_log_post_with_http_info(name, id, log, opts)
427
427
  return data
428
428
  end
429
429
 
430
430
  # Send in a log for storage.
431
431
  # Logs are sent after a job completes since they may be very large and the runner can process the next job.
432
- # @param group_name Name of group for this set of jobs.
432
+ # @param name Name of group for this set of jobs.
433
433
  # @param id Job id
434
434
  # @param log Output log for the job. Content-Type must be \&quot;text/plain; charset=utf-8\&quot;.
435
435
  # @param [Hash] opts the optional parameters
436
436
  # @return [Array<(JobWrapper, Fixnum, Hash)>] JobWrapper data, response status code and response headers
437
- def groups_group_name_jobs_id_log_post_with_http_info(group_name, id, log, opts = {})
437
+ def groups_name_jobs_id_log_post_with_http_info(name, id, log, opts = {})
438
438
  if @api_client.config.debugging
439
- @api_client.config.logger.debug "Calling API: JobsApi#groups_group_name_jobs_id_log_post ..."
439
+ @api_client.config.logger.debug "Calling API: JobsApi#groups_name_jobs_id_log_post ..."
440
440
  end
441
441
 
442
- # verify the required parameter 'group_name' is set
443
- fail "Missing the required parameter 'group_name' when calling groups_group_name_jobs_id_log_post" if group_name.nil?
442
+ # 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
444
 
445
445
  # verify the required parameter 'id' is set
446
- fail "Missing the required parameter 'id' when calling groups_group_name_jobs_id_log_post" if id.nil?
446
+ fail "Missing the required parameter 'id' when calling groups_name_jobs_id_log_post" if id.nil?
447
447
 
448
448
  # verify the required parameter 'log' is set
449
- fail "Missing the required parameter 'log' when calling groups_group_name_jobs_id_log_post" if log.nil?
449
+ fail "Missing the required parameter 'log' when calling groups_name_jobs_id_log_post" if log.nil?
450
450
 
451
451
  # resource path
452
- local_var_path = "/groups/{group_name}/jobs/{id}/log".sub('{format}','json').sub('{' + 'group_name' + '}', group_name.to_s).sub('{' + 'id' + '}', id.to_s)
452
+ local_var_path = "/groups/{name}/jobs/{id}/log".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'id' + '}', id.to_s)
453
453
 
454
454
  # query parameters
455
455
  query_params = {}
@@ -481,41 +481,41 @@ module IronTitan
481
481
  :auth_names => auth_names,
482
482
  :return_type => 'JobWrapper')
483
483
  if @api_client.config.debugging
484
- @api_client.config.logger.debug "API called: JobsApi#groups_group_name_jobs_id_log_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
484
+ @api_client.config.logger.debug "API called: JobsApi#groups_name_jobs_id_log_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
485
485
  end
486
486
  return data, status_code, headers
487
487
  end
488
488
 
489
489
  # Retry a job.
490
490
  # \"The /retry endpoint can be used to force a retry of jobs\nwith status succeeded or cancelled. It can also be used to retry jobs\nthat in the failed state, but whose max_retries field is 0. The retried\njob will continue to have max_retries = 0.\"\n
491
- # @param group_name Name of group for this set of jobs.
491
+ # @param name Name of group for this set of jobs.
492
492
  # @param id Job id
493
493
  # @param [Hash] opts the optional parameters
494
494
  # @return [JobWrapper]
495
- def groups_group_name_jobs_id_retry_post(group_name, id, opts = {})
496
- data, status_code, headers = groups_group_name_jobs_id_retry_post_with_http_info(group_name, id, opts)
495
+ def groups_name_jobs_id_retry_post(name, id, opts = {})
496
+ data, status_code, headers = groups_name_jobs_id_retry_post_with_http_info(name, id, opts)
497
497
  return data
498
498
  end
499
499
 
500
500
  # Retry a job.
501
501
  # \&quot;The /retry endpoint can be used to force a retry of jobs\nwith status succeeded or cancelled. It can also be used to retry jobs\nthat in the failed state, but whose max_retries field is 0. The retried\njob will continue to have max_retries = 0.\&quot;\n
502
- # @param group_name Name of group for this set of jobs.
502
+ # @param name Name of group for this set of jobs.
503
503
  # @param id Job id
504
504
  # @param [Hash] opts the optional parameters
505
505
  # @return [Array<(JobWrapper, Fixnum, Hash)>] JobWrapper data, response status code and response headers
506
- def groups_group_name_jobs_id_retry_post_with_http_info(group_name, id, opts = {})
506
+ def groups_name_jobs_id_retry_post_with_http_info(name, id, opts = {})
507
507
  if @api_client.config.debugging
508
- @api_client.config.logger.debug "Calling API: JobsApi#groups_group_name_jobs_id_retry_post ..."
508
+ @api_client.config.logger.debug "Calling API: JobsApi#groups_name_jobs_id_retry_post ..."
509
509
  end
510
510
 
511
- # verify the required parameter 'group_name' is set
512
- fail "Missing the required parameter 'group_name' when calling groups_group_name_jobs_id_retry_post" if group_name.nil?
511
+ # 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
513
 
514
514
  # verify the required parameter 'id' is set
515
- fail "Missing the required parameter 'id' when calling groups_group_name_jobs_id_retry_post" if id.nil?
515
+ fail "Missing the required parameter 'id' when calling groups_name_jobs_id_retry_post" if id.nil?
516
516
 
517
517
  # resource path
518
- local_var_path = "/groups/{group_name}/jobs/{id}/retry".sub('{format}','json').sub('{' + 'group_name' + '}', group_name.to_s).sub('{' + 'id' + '}', id.to_s)
518
+ local_var_path = "/groups/{name}/jobs/{id}/retry".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'id' + '}', id.to_s)
519
519
 
520
520
  # query parameters
521
521
  query_params = {}
@@ -546,46 +546,46 @@ module IronTitan
546
546
  :auth_names => auth_names,
547
547
  :return_type => 'JobWrapper')
548
548
  if @api_client.config.debugging
549
- @api_client.config.logger.debug "API called: JobsApi#groups_group_name_jobs_id_retry_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
549
+ @api_client.config.logger.debug "API called: JobsApi#groups_name_jobs_id_retry_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
550
550
  end
551
551
  return data, status_code, headers
552
552
  end
553
553
 
554
554
  # Mark job as started, ie: status = 'running'
555
555
  # Job status is changed to 'running' if it was in a valid state before. Job's `started_at` time is initialized.
556
- # @param group_name Name of group for this set of jobs.
556
+ # @param name Name of group for this set of jobs.
557
557
  # @param id Job id
558
558
  # @param body
559
559
  # @param [Hash] opts the optional parameters
560
560
  # @return [JobWrapper]
561
- def groups_group_name_jobs_id_start_post(group_name, id, body, opts = {})
562
- data, status_code, headers = groups_group_name_jobs_id_start_post_with_http_info(group_name, id, body, opts)
561
+ def groups_name_jobs_id_start_post(name, id, body, opts = {})
562
+ data, status_code, headers = groups_name_jobs_id_start_post_with_http_info(name, id, body, opts)
563
563
  return data
564
564
  end
565
565
 
566
566
  # Mark job as started, ie: status = &#39;running&#39;
567
567
  # Job status is changed to &#39;running&#39; if it was in a valid state before. Job&#39;s `started_at` time is initialized.
568
- # @param group_name Name of group for this set of jobs.
568
+ # @param name Name of group for this set of jobs.
569
569
  # @param id Job id
570
570
  # @param body
571
571
  # @param [Hash] opts the optional parameters
572
572
  # @return [Array<(JobWrapper, Fixnum, Hash)>] JobWrapper data, response status code and response headers
573
- def groups_group_name_jobs_id_start_post_with_http_info(group_name, id, body, opts = {})
573
+ def groups_name_jobs_id_start_post_with_http_info(name, id, body, opts = {})
574
574
  if @api_client.config.debugging
575
- @api_client.config.logger.debug "Calling API: JobsApi#groups_group_name_jobs_id_start_post ..."
575
+ @api_client.config.logger.debug "Calling API: JobsApi#groups_name_jobs_id_start_post ..."
576
576
  end
577
577
 
578
- # verify the required parameter 'group_name' is set
579
- fail "Missing the required parameter 'group_name' when calling groups_group_name_jobs_id_start_post" if group_name.nil?
578
+ # 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
580
 
581
581
  # verify the required parameter 'id' is set
582
- fail "Missing the required parameter 'id' when calling groups_group_name_jobs_id_start_post" if id.nil?
582
+ fail "Missing the required parameter 'id' when calling groups_name_jobs_id_start_post" if id.nil?
583
583
 
584
584
  # verify the required parameter 'body' is set
585
- fail "Missing the required parameter 'body' when calling groups_group_name_jobs_id_start_post" if body.nil?
585
+ fail "Missing the required parameter 'body' when calling groups_name_jobs_id_start_post" if body.nil?
586
586
 
587
587
  # resource path
588
- local_var_path = "/groups/{group_name}/jobs/{id}/start".sub('{format}','json').sub('{' + 'group_name' + '}', group_name.to_s).sub('{' + 'id' + '}', id.to_s)
588
+ local_var_path = "/groups/{name}/jobs/{id}/start".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'id' + '}', id.to_s)
589
589
 
590
590
  # query parameters
591
591
  query_params = {}
@@ -616,46 +616,46 @@ module IronTitan
616
616
  :auth_names => auth_names,
617
617
  :return_type => 'JobWrapper')
618
618
  if @api_client.config.debugging
619
- @api_client.config.logger.debug "API called: JobsApi#groups_group_name_jobs_id_start_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
619
+ @api_client.config.logger.debug "API called: JobsApi#groups_name_jobs_id_start_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
620
620
  end
621
621
  return data, status_code, headers
622
622
  end
623
623
 
624
624
  # Mark job as succeeded.
625
625
  # Job status is changed to succeeded if it was in a valid state before. Job's `completed_at` time is initialized.
626
- # @param group_name Name of group for this set of jobs.
626
+ # @param name Name of group for this set of jobs.
627
627
  # @param id Job id
628
628
  # @param body
629
629
  # @param [Hash] opts the optional parameters
630
630
  # @return [JobWrapper]
631
- def groups_group_name_jobs_id_success_post(group_name, id, body, opts = {})
632
- data, status_code, headers = groups_group_name_jobs_id_success_post_with_http_info(group_name, id, body, opts)
631
+ def groups_name_jobs_id_success_post(name, id, body, opts = {})
632
+ data, status_code, headers = groups_name_jobs_id_success_post_with_http_info(name, id, body, opts)
633
633
  return data
634
634
  end
635
635
 
636
636
  # Mark job as succeeded.
637
637
  # Job status is changed to succeeded if it was in a valid state before. Job&#39;s `completed_at` time is initialized.
638
- # @param group_name Name of group for this set of jobs.
638
+ # @param name Name of group for this set of jobs.
639
639
  # @param id Job id
640
640
  # @param body
641
641
  # @param [Hash] opts the optional parameters
642
642
  # @return [Array<(JobWrapper, Fixnum, Hash)>] JobWrapper data, response status code and response headers
643
- def groups_group_name_jobs_id_success_post_with_http_info(group_name, id, body, opts = {})
643
+ def groups_name_jobs_id_success_post_with_http_info(name, id, body, opts = {})
644
644
  if @api_client.config.debugging
645
- @api_client.config.logger.debug "Calling API: JobsApi#groups_group_name_jobs_id_success_post ..."
645
+ @api_client.config.logger.debug "Calling API: JobsApi#groups_name_jobs_id_success_post ..."
646
646
  end
647
647
 
648
- # verify the required parameter 'group_name' is set
649
- fail "Missing the required parameter 'group_name' when calling groups_group_name_jobs_id_success_post" if group_name.nil?
648
+ # 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
650
 
651
651
  # verify the required parameter 'id' is set
652
- fail "Missing the required parameter 'id' when calling groups_group_name_jobs_id_success_post" if id.nil?
652
+ fail "Missing the required parameter 'id' when calling groups_name_jobs_id_success_post" if id.nil?
653
653
 
654
654
  # verify the required parameter 'body' is set
655
- fail "Missing the required parameter 'body' when calling groups_group_name_jobs_id_success_post" if body.nil?
655
+ fail "Missing the required parameter 'body' when calling groups_name_jobs_id_success_post" if body.nil?
656
656
 
657
657
  # resource path
658
- local_var_path = "/groups/{group_name}/jobs/{id}/success".sub('{format}','json').sub('{' + 'group_name' + '}', group_name.to_s).sub('{' + 'id' + '}', id.to_s)
658
+ local_var_path = "/groups/{name}/jobs/{id}/success".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'id' + '}', id.to_s)
659
659
 
660
660
  # query parameters
661
661
  query_params = {}
@@ -686,41 +686,41 @@ module IronTitan
686
686
  :auth_names => auth_names,
687
687
  :return_type => 'JobWrapper')
688
688
  if @api_client.config.debugging
689
- @api_client.config.logger.debug "API called: JobsApi#groups_group_name_jobs_id_success_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
689
+ @api_client.config.logger.debug "API called: JobsApi#groups_name_jobs_id_success_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
690
690
  end
691
691
  return data, status_code, headers
692
692
  end
693
693
 
694
694
  # Extend job timeout.
695
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.\nIf 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.\nTouch is only valid while the job is in a running state. If touch fails, the runner may stop running the job.\n
696
- # @param group_name Name of group for this set of jobs.
696
+ # @param name Name of group for this set of jobs.
697
697
  # @param id Job id
698
698
  # @param [Hash] opts the optional parameters
699
699
  # @return [nil]
700
- def groups_group_name_jobs_id_touch_post(group_name, id, opts = {})
701
- groups_group_name_jobs_id_touch_post_with_http_info(group_name, id, opts)
700
+ def groups_name_jobs_id_touch_post(name, id, opts = {})
701
+ groups_name_jobs_id_touch_post_with_http_info(name, id, opts)
702
702
  return nil
703
703
  end
704
704
 
705
705
  # Extend job timeout.
706
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.\nIf 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.\nTouch is only valid while the job is in a running state. If touch fails, the runner may stop running the job.\n
707
- # @param group_name Name of group for this set of jobs.
707
+ # @param name Name of group for this set of jobs.
708
708
  # @param id Job id
709
709
  # @param [Hash] opts the optional parameters
710
710
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
711
- def groups_group_name_jobs_id_touch_post_with_http_info(group_name, id, opts = {})
711
+ def groups_name_jobs_id_touch_post_with_http_info(name, id, opts = {})
712
712
  if @api_client.config.debugging
713
- @api_client.config.logger.debug "Calling API: JobsApi#groups_group_name_jobs_id_touch_post ..."
713
+ @api_client.config.logger.debug "Calling API: JobsApi#groups_name_jobs_id_touch_post ..."
714
714
  end
715
715
 
716
- # verify the required parameter 'group_name' is set
717
- fail "Missing the required parameter 'group_name' when calling groups_group_name_jobs_id_touch_post" if group_name.nil?
716
+ # 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
718
 
719
719
  # verify the required parameter 'id' is set
720
- fail "Missing the required parameter 'id' when calling groups_group_name_jobs_id_touch_post" if id.nil?
720
+ fail "Missing the required parameter 'id' when calling groups_name_jobs_id_touch_post" if id.nil?
721
721
 
722
722
  # resource path
723
- local_var_path = "/groups/{group_name}/jobs/{id}/touch".sub('{format}','json').sub('{' + 'group_name' + '}', group_name.to_s).sub('{' + 'id' + '}', id.to_s)
723
+ local_var_path = "/groups/{name}/jobs/{id}/touch".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'id' + '}', id.to_s)
724
724
 
725
725
  # query parameters
726
726
  query_params = {}
@@ -750,41 +750,41 @@ module IronTitan
750
750
  :body => post_body,
751
751
  :auth_names => auth_names)
752
752
  if @api_client.config.debugging
753
- @api_client.config.logger.debug "API called: JobsApi#groups_group_name_jobs_id_touch_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
753
+ @api_client.config.logger.debug "API called: JobsApi#groups_name_jobs_id_touch_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
754
754
  end
755
755
  return data, status_code, headers
756
756
  end
757
757
 
758
758
  # Enqueue Job
759
759
  # Enqueues job(s). If any of the jobs is invalid, none of the jobs are enqueued.\n
760
- # @param group_name name of the group.
760
+ # @param name name of the group.
761
761
  # @param body Array of jobs to post.
762
762
  # @param [Hash] opts the optional parameters
763
763
  # @return [JobsWrapper]
764
- def groups_group_name_jobs_post(group_name, body, opts = {})
765
- data, status_code, headers = groups_group_name_jobs_post_with_http_info(group_name, body, opts)
764
+ def groups_name_jobs_post(name, body, opts = {})
765
+ data, status_code, headers = groups_name_jobs_post_with_http_info(name, body, opts)
766
766
  return data
767
767
  end
768
768
 
769
769
  # Enqueue Job
770
770
  # Enqueues job(s). If any of the jobs is invalid, none of the jobs are enqueued.\n
771
- # @param group_name name of the group.
771
+ # @param name name of the group.
772
772
  # @param body Array of jobs to post.
773
773
  # @param [Hash] opts the optional parameters
774
774
  # @return [Array<(JobsWrapper, Fixnum, Hash)>] JobsWrapper data, response status code and response headers
775
- def groups_group_name_jobs_post_with_http_info(group_name, body, opts = {})
775
+ def groups_name_jobs_post_with_http_info(name, body, opts = {})
776
776
  if @api_client.config.debugging
777
- @api_client.config.logger.debug "Calling API: JobsApi#groups_group_name_jobs_post ..."
777
+ @api_client.config.logger.debug "Calling API: JobsApi#groups_name_jobs_post ..."
778
778
  end
779
779
 
780
- # verify the required parameter 'group_name' is set
781
- fail "Missing the required parameter 'group_name' when calling groups_group_name_jobs_post" if group_name.nil?
780
+ # verify the required parameter 'name' is set
781
+ fail "Missing the required parameter 'name' when calling groups_name_jobs_post" if name.nil?
782
782
 
783
783
  # verify the required parameter 'body' is set
784
- fail "Missing the required parameter 'body' when calling groups_group_name_jobs_post" if body.nil?
784
+ fail "Missing the required parameter 'body' when calling groups_name_jobs_post" if body.nil?
785
785
 
786
786
  # resource path
787
- local_var_path = "/groups/{group_name}/jobs".sub('{format}','json').sub('{' + 'group_name' + '}', group_name.to_s)
787
+ local_var_path = "/groups/{name}/jobs".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
788
788
 
789
789
  # query parameters
790
790
  query_params = {}
@@ -815,7 +815,7 @@ module IronTitan
815
815
  :auth_names => auth_names,
816
816
  :return_type => 'JobsWrapper')
817
817
  if @api_client.config.debugging
818
- @api_client.config.logger.debug "API called: JobsApi#groups_group_name_jobs_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
818
+ @api_client.config.logger.debug "API called: JobsApi#groups_name_jobs_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
819
819
  end
820
820
  return data, status_code, headers
821
821
  end