iron_titan 0.4.0 → 0.4.2
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 +7 -6
- data/lib/iron_titan/api/groups_api.rb +58 -1
- data/lib/iron_titan/api/jobs_api.rb +1 -1
- data/lib/iron_titan/api/runner_api.rb +1 -1
- data/lib/iron_titan/api_client.rb +1 -1
- data/lib/iron_titan/api_error.rb +1 -1
- data/lib/iron_titan/configuration.rb +1 -1
- data/lib/iron_titan/models/complete.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/group.rb +1 -1
- data/lib/iron_titan/models/group_wrapper.rb +1 -1
- data/lib/iron_titan/models/groups_wrapper.rb +1 -1
- data/lib/iron_titan/models/id_status.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/start.rb +1 -1
- data/lib/iron_titan/version.rb +2 -2
- data/lib/iron_titan.rb +1 -1
- data/spec/api/groups_api_spec.rb +13 -1
- data/spec/api/jobs_api_spec.rb +1 -1
- data/spec/api/runner_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/complete_spec.rb +1 -1
- data/spec/models/error_body_spec.rb +1 -1
- data/spec/models/error_spec.rb +1 -1
- data/spec/models/group_spec.rb +1 -1
- data/spec/models/group_wrapper_spec.rb +1 -1
- data/spec/models/groups_wrapper_spec.rb +1 -1
- data/spec/models/id_status_spec.rb +1 -1
- data/spec/models/job_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/start_spec.rb +1 -1
- data/spec/spec_helper.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: b94a75c5e24083e774f7b2ea736907266f555a37
|
4
|
+
data.tar.gz: 418797f04f8411e91f515aefe9d1821621866a1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4a1ad4311e323ff516613e359572a5e3a7a5c1802aaae8094bfe9c13ca2d5a519fa810f4f179e5ddd636907236828feacba6e65dad4154a81d69c46e3bbd01f
|
7
|
+
data.tar.gz: 7889a1eb5d810e3a21de35f745f96fc46dc75385d67d18a583bad7ae83756d418450ac651ab22d9ef6caff76fe54677e7c552daf0bd444ae1cd61023314b0ac6
|
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.4.
|
10
|
-
- Package version: 0.4.
|
11
|
-
- Build date: 2016-06-20T22:
|
9
|
+
- API version: 0.4.2
|
10
|
+
- Package version: 0.4.2
|
11
|
+
- Build date: 2016-06-20T22:16:29.935Z
|
12
12
|
- Build package: class io.swagger.codegen.languages.RubyClientCodegen
|
13
13
|
|
14
14
|
## Installation
|
@@ -24,15 +24,15 @@ gem build iron_titan.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./iron_titan-0.4.
|
27
|
+
gem install ./iron_titan-0.4.2.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./iron_titan-0.4.
|
29
|
+
(for development, run `gem install --dev ./iron_titan-0.4.2.gem` to install the development dependencies)
|
30
30
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
32
|
|
33
33
|
Finally add this to the Gemfile:
|
34
34
|
|
35
|
-
gem 'iron_titan', '~> 0.4.
|
35
|
+
gem 'iron_titan', '~> 0.4.2'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -75,6 +75,7 @@ Class | Method | HTTP request | Description
|
|
75
75
|
------------ | ------------- | ------------- | -------------
|
76
76
|
*IronTitan::GroupsApi* | [**groups_get**](docs/GroupsApi.md#groups_get) | **GET** /groups | Get all group names.
|
77
77
|
*IronTitan::GroupsApi* | [**groups_name_get**](docs/GroupsApi.md#groups_name_get) | **GET** /groups/{name} | Get information for a group.
|
78
|
+
*IronTitan::GroupsApi* | [**groups_name_put**](docs/GroupsApi.md#groups_name_put) | **PUT** /groups/{name} | Create/update a job group.
|
78
79
|
*IronTitan::GroupsApi* | [**groups_post**](docs/GroupsApi.md#groups_post) | **POST** /groups | Post new group
|
79
80
|
*IronTitan::JobsApi* | [**groups_name_jobs_get**](docs/JobsApi.md#groups_name_jobs_get) | **GET** /groups/{name}/jobs | Get job list by group name.
|
80
81
|
*IronTitan::JobsApi* | [**groups_name_jobs_id_cancel_post**](docs/JobsApi.md#groups_name_jobs_id_cancel_post) | **POST** /groups/{name}/jobs/{id}/cancel | Cancel a job.
|
@@ -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.4.
|
6
|
+
OpenAPI spec version: 0.4.2
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -141,6 +141,63 @@ module IronTitan
|
|
141
141
|
return data, status_code, headers
|
142
142
|
end
|
143
143
|
|
144
|
+
# Create/update a job group.
|
145
|
+
# You can set group level settings here.
|
146
|
+
# @param body Group to post.
|
147
|
+
# @param [Hash] opts the optional parameters
|
148
|
+
# @return [GroupWrapper]
|
149
|
+
def groups_name_put(body, opts = {})
|
150
|
+
data, _status_code, _headers = groups_name_put_with_http_info(body, opts)
|
151
|
+
return data
|
152
|
+
end
|
153
|
+
|
154
|
+
# Create/update a job group.
|
155
|
+
# You can set group level settings here.
|
156
|
+
# @param body Group to post.
|
157
|
+
# @param [Hash] opts the optional parameters
|
158
|
+
# @return [Array<(GroupWrapper, Fixnum, Hash)>] GroupWrapper data, response status code and response headers
|
159
|
+
def groups_name_put_with_http_info(body, opts = {})
|
160
|
+
if @api_client.config.debugging
|
161
|
+
@api_client.config.logger.debug "Calling API: GroupsApi.groups_name_put ..."
|
162
|
+
end
|
163
|
+
# verify the required parameter 'body' is set
|
164
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling GroupsApi.groups_name_put" if body.nil?
|
165
|
+
# resource path
|
166
|
+
local_var_path = "/groups/{name}".sub('{format}','json')
|
167
|
+
|
168
|
+
# query parameters
|
169
|
+
query_params = {}
|
170
|
+
|
171
|
+
# header parameters
|
172
|
+
header_params = {}
|
173
|
+
|
174
|
+
# HTTP header 'Accept' (if needed)
|
175
|
+
local_header_accept = ['application/json']
|
176
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
177
|
+
|
178
|
+
# HTTP header 'Content-Type'
|
179
|
+
local_header_content_type = ['application/json']
|
180
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
181
|
+
|
182
|
+
# form parameters
|
183
|
+
form_params = {}
|
184
|
+
|
185
|
+
# http body (model)
|
186
|
+
post_body = @api_client.object_to_http_body(body)
|
187
|
+
auth_names = []
|
188
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
189
|
+
:header_params => header_params,
|
190
|
+
:query_params => query_params,
|
191
|
+
:form_params => form_params,
|
192
|
+
:body => post_body,
|
193
|
+
:auth_names => auth_names,
|
194
|
+
:return_type => 'GroupWrapper')
|
195
|
+
if @api_client.config.debugging
|
196
|
+
@api_client.config.logger.debug "API called: GroupsApi#groups_name_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
197
|
+
end
|
198
|
+
return data, status_code, headers
|
199
|
+
end
|
200
|
+
|
144
201
|
# Post new group
|
145
202
|
# Insert a new job group
|
146
203
|
# @param body Group to post.
|
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.4.
|
6
|
+
OpenAPI spec version: 0.4.2
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -22,5 +22,5 @@ limitations under the License.
|
|
22
22
|
=end
|
23
23
|
|
24
24
|
module IronTitan
|
25
|
-
VERSION = "0.4.
|
25
|
+
VERSION = "0.4.2"
|
26
26
|
end
|
data/lib/iron_titan.rb
CHANGED
data/spec/api/groups_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.4.
|
6
|
+
OpenAPI spec version: 0.4.2
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -66,6 +66,18 @@ describe 'GroupsApi' do
|
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|
69
|
+
# unit tests for groups_name_put
|
70
|
+
# Create/update a job group.
|
71
|
+
# You can set group level settings here.
|
72
|
+
# @param body Group to post.
|
73
|
+
# @param [Hash] opts the optional parameters
|
74
|
+
# @return [GroupWrapper]
|
75
|
+
describe 'groups_name_put test' do
|
76
|
+
it "should work" do
|
77
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
69
81
|
# unit tests for groups_post
|
70
82
|
# Post new group
|
71
83
|
# Insert a new job group
|
data/spec/api/jobs_api_spec.rb
CHANGED
data/spec/api/runner_api_spec.rb
CHANGED
data/spec/api_client_spec.rb
CHANGED
data/spec/configuration_spec.rb
CHANGED
data/spec/models/error_spec.rb
CHANGED
data/spec/models/group_spec.rb
CHANGED
data/spec/models/job_spec.rb
CHANGED
data/spec/models/new_job_spec.rb
CHANGED
data/spec/models/start_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED