iron_titan 0.0.10 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/iron_titan.rb +1 -1
- data/lib/iron_titan/api/core_api.rb +1 -1
- data/lib/iron_titan/api/images_api.rb +62 -7
- data/lib/iron_titan/api/jobs_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/models/error.rb +1 -1
- data/lib/iron_titan/models/error_body.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/log.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/version.rb +2 -2
- data/spec/api/core_api_spec.rb +1 -1
- data/spec/api/images_api_spec.rb +19 -4
- data/spec/api/jobs_api_spec.rb +1 -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/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/log_spec.rb +1 -1
- data/spec/models/new_job_spec.rb +1 -1
- data/spec/models/new_jobs_wrapper_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: b2733bf5718b62919a89ef1daf508b4dd0b62649
|
4
|
+
data.tar.gz: 17476e9be12a4347a02983daebfc71f4115b988c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eeaaa9aa1f8cd64800d2ee1fe837ea425415832dd70692ef72cbadb0bb4f85c9e98ab9bed570eed34a52aa47c31806053d422e841d9d01c09baec6201a6a1cb3
|
7
|
+
data.tar.gz: 67c166e50568e2f546d9e2cf7b8beb5da1ee07415d3e2663f97f848221ba78187e5885db4f6bda2db0597b3dfd8dae8be18f827bf752b0dc0340642a98e4bcb9
|
data/lib/iron_titan.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.0
|
6
|
+
OpenAPI spec version: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -20,21 +20,76 @@ module IronTitan
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
|
23
|
-
# Get
|
23
|
+
# Get all image names.
|
24
24
|
# TODO: Using images for lack of a better term. See https://github.com/iron-io/titan/issues/43 for discussion.
|
25
|
-
# @param name Name of the image.
|
26
25
|
# @param [Hash] opts the optional parameters
|
27
26
|
# @return [ImagesWrapper]
|
27
|
+
def images_get(opts = {})
|
28
|
+
data, status_code, headers = images_get_with_http_info(opts)
|
29
|
+
return data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Get all image names.
|
33
|
+
# TODO: Using images for lack of a better term. See https://github.com/iron-io/titan/issues/43 for discussion.
|
34
|
+
# @param [Hash] opts the optional parameters
|
35
|
+
# @return [Array<(ImagesWrapper, Fixnum, Hash)>] ImagesWrapper data, response status code and response headers
|
36
|
+
def images_get_with_http_info(opts = {})
|
37
|
+
if @api_client.config.debugging
|
38
|
+
@api_client.config.logger.debug "Calling API: ImagesApi#images_get ..."
|
39
|
+
end
|
40
|
+
|
41
|
+
# resource path
|
42
|
+
local_var_path = "/images".sub('{format}','json')
|
43
|
+
|
44
|
+
# query parameters
|
45
|
+
query_params = {}
|
46
|
+
|
47
|
+
# header parameters
|
48
|
+
header_params = {}
|
49
|
+
|
50
|
+
# HTTP header 'Accept' (if needed)
|
51
|
+
_header_accept = ['application/json']
|
52
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
53
|
+
|
54
|
+
# HTTP header 'Content-Type'
|
55
|
+
_header_content_type = ['application/json']
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = nil
|
63
|
+
|
64
|
+
auth_names = []
|
65
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
66
|
+
:header_params => header_params,
|
67
|
+
:query_params => query_params,
|
68
|
+
:form_params => form_params,
|
69
|
+
:body => post_body,
|
70
|
+
:auth_names => auth_names,
|
71
|
+
:return_type => 'ImagesWrapper')
|
72
|
+
if @api_client.config.debugging
|
73
|
+
@api_client.config.logger.debug "API called: ImagesApi#images_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
74
|
+
end
|
75
|
+
return data, status_code, headers
|
76
|
+
end
|
77
|
+
|
78
|
+
# Get image by name.
|
79
|
+
# NOT IMPLEMENTED YET. This gives more details about on image, such as statistics and what not.
|
80
|
+
# @param name Name of the image.
|
81
|
+
# @param [Hash] opts the optional parameters
|
82
|
+
# @return [ImageWrapper]
|
28
83
|
def images_name_get(name, opts = {})
|
29
84
|
data, status_code, headers = images_name_get_with_http_info(name, opts)
|
30
85
|
return data
|
31
86
|
end
|
32
87
|
|
33
|
-
# Get
|
34
|
-
#
|
88
|
+
# Get image by name.
|
89
|
+
# NOT IMPLEMENTED YET. This gives more details about on image, such as statistics and what not.
|
35
90
|
# @param name Name of the image.
|
36
91
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<(
|
92
|
+
# @return [Array<(ImageWrapper, Fixnum, Hash)>] ImageWrapper data, response status code and response headers
|
38
93
|
def images_name_get_with_http_info(name, opts = {})
|
39
94
|
if @api_client.config.debugging
|
40
95
|
@api_client.config.logger.debug "Calling API: ImagesApi#images_name_get ..."
|
@@ -73,7 +128,7 @@ module IronTitan
|
|
73
128
|
:form_params => form_params,
|
74
129
|
:body => post_body,
|
75
130
|
:auth_names => auth_names,
|
76
|
-
:return_type => '
|
131
|
+
:return_type => 'ImageWrapper')
|
77
132
|
if @api_client.config.debugging
|
78
133
|
@api_client.config.logger.debug "API called: ImagesApi#images_name_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
79
134
|
end
|
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.0
|
6
|
+
OpenAPI spec version: 0.1.0
|
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.0
|
14
|
+
VERSION = "0.1.0"
|
15
15
|
end
|
data/spec/api/core_api_spec.rb
CHANGED
data/spec/api/images_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.0
|
6
|
+
OpenAPI spec version: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -32,12 +32,27 @@ describe 'ImagesApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
36
|
-
# Get
|
35
|
+
# unit tests for images_get
|
36
|
+
# Get all image names.
|
37
37
|
# TODO: Using images for lack of a better term. See https://github.com/iron-io/titan/issues/43 for discussion.
|
38
|
-
# @param name Name of the image.
|
39
38
|
# @param [Hash] opts the optional parameters
|
40
39
|
# @return [ImagesWrapper]
|
40
|
+
describe 'images_get test' do
|
41
|
+
it "should work" do
|
42
|
+
# assertion here
|
43
|
+
# should be_a()
|
44
|
+
# should be_nil
|
45
|
+
# should ==
|
46
|
+
# should_not ==
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
# unit tests for images_name_get
|
51
|
+
# Get image by name.
|
52
|
+
# NOT IMPLEMENTED YET. This gives more details about on image, such as statistics and what not.
|
53
|
+
# @param name Name of the image.
|
54
|
+
# @param [Hash] opts the optional parameters
|
55
|
+
# @return [ImageWrapper]
|
41
56
|
describe 'images_name_get test' do
|
42
57
|
it "should work" do
|
43
58
|
# assertion here
|
data/spec/api/jobs_api_spec.rb
CHANGED
data/spec/models/Error_spec.rb
CHANGED
data/spec/models/Job_spec.rb
CHANGED
data/spec/models/log_spec.rb
CHANGED
data/spec/models/new_job_spec.rb
CHANGED