iron_titan 0.2.15 → 0.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -5
- data/lib/iron_titan/api/core_api.rb +1 -1
- data/lib/iron_titan/api/images_api.rb +1 -1
- data/lib/iron_titan/api/jobs_api.rb +66 -1
- data/lib/iron_titan/api_client.rb +1 -1
- data/lib/iron_titan/api_error.rb +1 -1
- data/lib/iron_titan/models/error.rb +1 -1
- data/lib/iron_titan/models/error_body.rb +1 -1
- data/lib/iron_titan/models/id_status.rb +1 -1
- data/lib/iron_titan/models/image.rb +1 -1
- data/lib/iron_titan/models/image_wrapper.rb +1 -1
- data/lib/iron_titan/models/images_wrapper.rb +1 -1
- data/lib/iron_titan/models/job.rb +1 -1
- data/lib/iron_titan/models/job_wrapper.rb +1 -1
- data/lib/iron_titan/models/jobs_wrapper.rb +1 -1
- data/lib/iron_titan/models/new_job.rb +1 -1
- data/lib/iron_titan/models/new_jobs_wrapper.rb +1 -1
- data/lib/iron_titan/models/reason.rb +1 -1
- data/lib/iron_titan/version.rb +2 -2
- data/lib/iron_titan.rb +1 -1
- data/spec/api/core_api_spec.rb +1 -1
- data/spec/api/images_api_spec.rb +1 -1
- data/spec/api/jobs_api_spec.rb +18 -1
- data/spec/models/Error_spec.rb +1 -1
- data/spec/models/Job_spec.rb +1 -1
- data/spec/models/error_body_spec.rb +1 -1
- data/spec/models/id_status_spec.rb +1 -1
- data/spec/models/image_spec.rb +1 -1
- data/spec/models/image_wrapper_spec.rb +1 -1
- data/spec/models/images_wrapper_spec.rb +1 -1
- data/spec/models/job_wrapper_spec.rb +1 -1
- data/spec/models/jobs_wrapper_spec.rb +1 -1
- data/spec/models/new_job_spec.rb +1 -1
- data/spec/models/new_jobs_wrapper_spec.rb +1 -1
- data/spec/models/reason_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7321f78e186335f676c6ddfec4eb42685a6c7881
|
4
|
+
data.tar.gz: b7c6f7bab9aceb0c689574edbffc562f5e0bfec1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8c4fcbf92521208a58182a6cbb4b0663d5ade72557cce5b3bf0cb483ef8afc73c57f90b372bf378d378e6afef6d68bd2b511a485ae3f777a4b50de658565b7c
|
7
|
+
data.tar.gz: 535ee7d411af9db85b21edfd5790c5299f507329eaa3fa90a88eb14c8ed57c6eb99663696f9121aaa49389f9827645fbf422cd17e18ab4371fe8e854d820b4b7
|
data/README.md
CHANGED
@@ -6,9 +6,9 @@ The ultimate, language agnostic, container based job processing framework.
|
|
6
6
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
|
-
- API version: 0.2.
|
10
|
-
- Package version: 0.2.
|
11
|
-
- Build date: 2016-04-
|
9
|
+
- API version: 0.2.17
|
10
|
+
- Package version: 0.2.17
|
11
|
+
- Build date: 2016-04-01T01:43:49.972Z
|
12
12
|
- Build package: class io.swagger.codegen.languages.RubyClientCodegen
|
13
13
|
|
14
14
|
## Installation
|
@@ -24,14 +24,14 @@ gem build iron_titan.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./iron_titan-0.2.
|
27
|
+
gem install ./iron_titan-0.2.17.gem
|
28
28
|
```
|
29
29
|
|
30
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
31
|
|
32
32
|
Finally add this to the Gemfile:
|
33
33
|
|
34
|
-
gem 'iron_titan', '~> 0.2.
|
34
|
+
gem 'iron_titan', '~> 0.2.17'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
@@ -85,6 +85,7 @@ Class | Method | HTTP request | Description
|
|
85
85
|
*IronTitan::JobsApi* | [**job_id_fail_post**](docs/JobsApi.md#job_id_fail_post) | **POST** /job/{id}/fail | Mark job as failed.
|
86
86
|
*IronTitan::JobsApi* | [**job_id_get**](docs/JobsApi.md#job_id_get) | **GET** /job/{id} | Gets job by id
|
87
87
|
*IronTitan::JobsApi* | [**job_id_log_get**](docs/JobsApi.md#job_id_log_get) | **GET** /job/{id}/log | Get the log of a completed job.
|
88
|
+
*IronTitan::JobsApi* | [**job_id_patch**](docs/JobsApi.md#job_id_patch) | **PATCH** /job/{id} | Update a job
|
88
89
|
*IronTitan::JobsApi* | [**job_id_retry_post**](docs/JobsApi.md#job_id_retry_post) | **POST** /job/{id}/retry | Retry a job.
|
89
90
|
*IronTitan::JobsApi* | [**job_id_success_post**](docs/JobsApi.md#job_id_success_post) | **POST** /job/{id}/success | Mark job as succeeded.
|
90
91
|
*IronTitan::JobsApi* | [**job_id_touch_post**](docs/JobsApi.md#job_id_touch_post) | **POST** /job/{id}/touch | Extend job timeout.
|
@@ -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.2.
|
6
|
+
OpenAPI spec version: 0.2.17
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -342,6 +342,71 @@ module IronTitan
|
|
342
342
|
return data, status_code, headers
|
343
343
|
end
|
344
344
|
|
345
|
+
# Update a job
|
346
|
+
# Typically used to update status on error/completion. TODO: only allow 'status' field.
|
347
|
+
# @param id Job id
|
348
|
+
# @param body Job data to post
|
349
|
+
# @param [Hash] opts the optional parameters
|
350
|
+
# @return [JobWrapper]
|
351
|
+
def job_id_patch(id, body, opts = {})
|
352
|
+
data, status_code, headers = job_id_patch_with_http_info(id, body, opts)
|
353
|
+
return data
|
354
|
+
end
|
355
|
+
|
356
|
+
# Update a job
|
357
|
+
# Typically used to update status on error/completion. TODO: only allow 'status' field.
|
358
|
+
# @param id Job id
|
359
|
+
# @param body Job data to post
|
360
|
+
# @param [Hash] opts the optional parameters
|
361
|
+
# @return [Array<(JobWrapper, Fixnum, Hash)>] JobWrapper data, response status code and response headers
|
362
|
+
def job_id_patch_with_http_info(id, body, opts = {})
|
363
|
+
if @api_client.config.debugging
|
364
|
+
@api_client.config.logger.debug "Calling API: JobsApi#job_id_patch ..."
|
365
|
+
end
|
366
|
+
|
367
|
+
# verify the required parameter 'id' is set
|
368
|
+
fail "Missing the required parameter 'id' when calling job_id_patch" if id.nil?
|
369
|
+
|
370
|
+
# verify the required parameter 'body' is set
|
371
|
+
fail "Missing the required parameter 'body' when calling job_id_patch" if body.nil?
|
372
|
+
|
373
|
+
# resource path
|
374
|
+
local_var_path = "/job/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
|
375
|
+
|
376
|
+
# query parameters
|
377
|
+
query_params = {}
|
378
|
+
|
379
|
+
# header parameters
|
380
|
+
header_params = {}
|
381
|
+
|
382
|
+
# HTTP header 'Accept' (if needed)
|
383
|
+
_header_accept = ['application/json']
|
384
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
385
|
+
|
386
|
+
# HTTP header 'Content-Type'
|
387
|
+
_header_content_type = ['application/json']
|
388
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
389
|
+
|
390
|
+
# form parameters
|
391
|
+
form_params = {}
|
392
|
+
|
393
|
+
# http body (model)
|
394
|
+
post_body = @api_client.object_to_http_body(body)
|
395
|
+
|
396
|
+
auth_names = []
|
397
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
398
|
+
:header_params => header_params,
|
399
|
+
:query_params => query_params,
|
400
|
+
:form_params => form_params,
|
401
|
+
:body => post_body,
|
402
|
+
:auth_names => auth_names,
|
403
|
+
:return_type => 'JobWrapper')
|
404
|
+
if @api_client.config.debugging
|
405
|
+
@api_client.config.logger.debug "API called: JobsApi#job_id_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
406
|
+
end
|
407
|
+
return data, status_code, headers
|
408
|
+
end
|
409
|
+
|
345
410
|
# Retry a job.
|
346
411
|
# 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.
|
347
412
|
# @param id Job id
|
data/lib/iron_titan/api_error.rb
CHANGED
data/lib/iron_titan/version.rb
CHANGED
@@ -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.2.
|
6
|
+
OpenAPI spec version: 0.2.17
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -11,5 +11,5 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module IronTitan
|
14
|
-
VERSION = "0.2.
|
14
|
+
VERSION = "0.2.17"
|
15
15
|
end
|
data/lib/iron_titan.rb
CHANGED
data/spec/api/core_api_spec.rb
CHANGED
data/spec/api/images_api_spec.rb
CHANGED
data/spec/api/jobs_api_spec.rb
CHANGED
@@ -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.2.
|
6
|
+
OpenAPI spec version: 0.2.17
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -116,6 +116,23 @@ describe 'JobsApi' do
|
|
116
116
|
end
|
117
117
|
end
|
118
118
|
|
119
|
+
# unit tests for job_id_patch
|
120
|
+
# Update a job
|
121
|
+
# Typically used to update status on error/completion. TODO: only allow 'status' field.
|
122
|
+
# @param id Job id
|
123
|
+
# @param body Job data to post
|
124
|
+
# @param [Hash] opts the optional parameters
|
125
|
+
# @return [JobWrapper]
|
126
|
+
describe 'job_id_patch test' do
|
127
|
+
it "should work" do
|
128
|
+
# assertion here
|
129
|
+
# should be_a()
|
130
|
+
# should be_nil
|
131
|
+
# should ==
|
132
|
+
# should_not ==
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
119
136
|
# unit tests for job_id_retry_post
|
120
137
|
# Retry a job.
|
121
138
|
# 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.
|
data/spec/models/Error_spec.rb
CHANGED
data/spec/models/Job_spec.rb
CHANGED
data/spec/models/image_spec.rb
CHANGED
data/spec/models/new_job_spec.rb
CHANGED
data/spec/models/reason_spec.rb
CHANGED