iron_titan 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +100 -29
  3. data/lib/iron_titan/api/core_api.rb +71 -12
  4. data/lib/iron_titan/api/images_api.rb +32 -32
  5. data/lib/iron_titan/api/jobs_api.rb +335 -75
  6. data/lib/iron_titan/api_client.rb +2 -2
  7. data/lib/iron_titan/api_error.rb +1 -1
  8. data/lib/iron_titan/models/error.rb +1 -1
  9. data/lib/iron_titan/models/error_body.rb +1 -1
  10. data/lib/iron_titan/models/id_status.rb +182 -0
  11. data/lib/iron_titan/models/image.rb +8 -8
  12. data/lib/iron_titan/models/image_wrapper.rb +1 -1
  13. data/lib/iron_titan/models/images_wrapper.rb +1 -1
  14. data/lib/iron_titan/models/job.rb +110 -103
  15. data/lib/iron_titan/models/job_wrapper.rb +1 -1
  16. data/lib/iron_titan/models/jobs_wrapper.rb +15 -5
  17. data/lib/iron_titan/models/new_job.rb +27 -50
  18. data/lib/iron_titan/models/new_job_with_image.rb +249 -0
  19. data/lib/iron_titan/models/new_jobs_wrapper.rb +2 -2
  20. data/lib/iron_titan/models/reason.rb +152 -0
  21. data/lib/iron_titan/version.rb +2 -2
  22. data/lib/iron_titan.rb +11 -9
  23. data/spec/api/core_api_spec.rb +21 -5
  24. data/spec/api/images_api_spec.rb +12 -12
  25. data/spec/api/jobs_api_spec.rb +92 -24
  26. data/spec/models/Error_spec.rb +2 -2
  27. data/spec/models/Job_spec.rb +15 -25
  28. data/spec/models/error_body_spec.rb +2 -2
  29. data/spec/models/id_status_spec.rb +56 -0
  30. data/spec/models/image_spec.rb +3 -3
  31. data/spec/models/image_wrapper_spec.rb +2 -2
  32. data/spec/models/images_wrapper_spec.rb +2 -2
  33. data/spec/models/job_wrapper_spec.rb +2 -2
  34. data/spec/models/jobs_wrapper_spec.rb +12 -2
  35. data/spec/models/log_spec.rb +1 -1
  36. data/spec/models/new_job_spec.rb +3 -33
  37. data/spec/models/new_job_with_image_spec.rb +116 -0
  38. data/spec/models/new_jobs_wrapper_spec.rb +2 -2
  39. data/spec/models/reason_spec.rb +36 -0
  40. metadata +11 -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.1.1
6
+ OpenAPI spec version: 0.2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -14,7 +14,7 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for IronTitan::
17
+ # Unit tests for IronTitan::JobsWrapper
18
18
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
19
  # Please update as you see appropriate
20
20
  describe 'JobsWrapper' do
@@ -42,5 +42,15 @@ describe 'JobsWrapper' do
42
42
  end
43
43
  end
44
44
 
45
+ describe 'test attribute "error"' do
46
+ it 'should work' do
47
+ # assertion here
48
+ # should be_a()
49
+ # should be_nil
50
+ # should ==
51
+ # should_not ==
52
+ end
53
+ end
54
+
45
55
  end
46
56
 
@@ -14,7 +14,7 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for IronTitan::
17
+ # Unit tests for IronTitan::Log
18
18
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
19
  # Please update as you see appropriate
20
20
  describe 'Log' do
@@ -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.1.1
6
+ OpenAPI spec version: 0.2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -14,7 +14,7 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for IronTitan::
17
+ # Unit tests for IronTitan::NewJob
18
18
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
19
  # Please update as you see appropriate
20
20
  describe 'NewJob' do
@@ -32,26 +32,6 @@ describe 'NewJob' do
32
32
  @instance.should be_a(IronTitan::NewJob)
33
33
  end
34
34
  end
35
- describe 'test attribute "name"' do
36
- it 'should work' do
37
- # assertion here
38
- # should be_a()
39
- # should be_nil
40
- # should ==
41
- # should_not ==
42
- end
43
- end
44
-
45
- describe 'test attribute "image"' do
46
- it 'should work' do
47
- # assertion here
48
- # should be_a()
49
- # should be_nil
50
- # should ==
51
- # should_not ==
52
- end
53
- end
54
-
55
35
  describe 'test attribute "payload"' do
56
36
  it 'should work' do
57
37
  # assertion here
@@ -92,7 +72,7 @@ describe 'NewJob' do
92
72
  end
93
73
  end
94
74
 
95
- describe 'test attribute "retries"' do
75
+ describe 'test attribute "max_retries"' do
96
76
  it 'should work' do
97
77
  # assertion here
98
78
  # should be_a()
@@ -112,15 +92,5 @@ describe 'NewJob' do
112
92
  end
113
93
  end
114
94
 
115
- describe 'test attribute "retry_from_id"' do
116
- it 'should work' do
117
- # assertion here
118
- # should be_a()
119
- # should be_nil
120
- # should ==
121
- # should_not ==
122
- end
123
- end
124
-
125
95
  end
126
96
 
@@ -0,0 +1,116 @@
1
+ =begin
2
+ Titan API
3
+
4
+ The ultimate, language agnostic, container based job processing framework.
5
+
6
+ OpenAPI spec version: 0.2.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for IronTitan::NewJobWithImage
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'NewJobWithImage' do
21
+ before do
22
+ # run before each test
23
+ @instance = IronTitan::NewJobWithImage.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of NewJobWithImage' do
31
+ it 'should create an instact of NewJobWithImage' do
32
+ @instance.should be_a(IronTitan::NewJobWithImage)
33
+ end
34
+ end
35
+ describe 'test attribute "payload"' do
36
+ it 'should work' do
37
+ # assertion here
38
+ # should be_a()
39
+ # should be_nil
40
+ # should ==
41
+ # should_not ==
42
+ end
43
+ end
44
+
45
+ describe 'test attribute "delay"' do
46
+ it 'should work' do
47
+ # assertion here
48
+ # should be_a()
49
+ # should be_nil
50
+ # should ==
51
+ # should_not ==
52
+ end
53
+ end
54
+
55
+ describe 'test attribute "timeout"' do
56
+ it 'should work' do
57
+ # assertion here
58
+ # should be_a()
59
+ # should be_nil
60
+ # should ==
61
+ # should_not ==
62
+ end
63
+ end
64
+
65
+ describe 'test attribute "priority"' do
66
+ it 'should work' do
67
+ # assertion here
68
+ # should be_a()
69
+ # should be_nil
70
+ # should ==
71
+ # should_not ==
72
+ end
73
+ end
74
+
75
+ describe 'test attribute "max_retries"' do
76
+ it 'should work' do
77
+ # assertion here
78
+ # should be_a()
79
+ # should be_nil
80
+ # should ==
81
+ # should_not ==
82
+ end
83
+ end
84
+
85
+ describe 'test attribute "retries_delay"' do
86
+ it 'should work' do
87
+ # assertion here
88
+ # should be_a()
89
+ # should be_nil
90
+ # should ==
91
+ # should_not ==
92
+ end
93
+ end
94
+
95
+ describe 'test attribute "image"' do
96
+ it 'should work' do
97
+ # assertion here
98
+ # should be_a()
99
+ # should be_nil
100
+ # should ==
101
+ # should_not ==
102
+ end
103
+ end
104
+
105
+ describe 'test attribute "created_at"' do
106
+ it 'should work' do
107
+ # assertion here
108
+ # should be_a()
109
+ # should be_nil
110
+ # should ==
111
+ # should_not ==
112
+ end
113
+ end
114
+
115
+ end
116
+
@@ -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.1.1
6
+ OpenAPI spec version: 0.2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -14,7 +14,7 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for IronTitan::
17
+ # Unit tests for IronTitan::NewJobsWrapper
18
18
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
19
  # Please update as you see appropriate
20
20
  describe 'NewJobsWrapper' do
@@ -0,0 +1,36 @@
1
+ =begin
2
+ Titan API
3
+
4
+ The ultimate, language agnostic, container based job processing framework.
5
+
6
+ OpenAPI spec version: 0.2.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for IronTitan::Reason
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'Reason' do
21
+ before do
22
+ # run before each test
23
+ @instance = IronTitan::Reason.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of Reason' do
31
+ it 'should create an instact of Reason' do
32
+ @instance.should be_a(IronTitan::Reason)
33
+ end
34
+ end
35
+ end
36
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron_titan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Reeder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-10 00:00:00.000000000 Z
11
+ date: 2016-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -207,6 +207,7 @@ files:
207
207
  - lib/iron_titan/configuration.rb
208
208
  - lib/iron_titan/models/error.rb
209
209
  - lib/iron_titan/models/error_body.rb
210
+ - lib/iron_titan/models/id_status.rb
210
211
  - lib/iron_titan/models/image.rb
211
212
  - lib/iron_titan/models/image_wrapper.rb
212
213
  - lib/iron_titan/models/images_wrapper.rb
@@ -217,7 +218,9 @@ files:
217
218
  - lib/iron_titan/models/log.rb
218
219
  - lib/iron_titan/models/new_job.rb
219
220
  - lib/iron_titan/models/new_job_array.rb
221
+ - lib/iron_titan/models/new_job_with_image.rb
220
222
  - lib/iron_titan/models/new_jobs_wrapper.rb
223
+ - lib/iron_titan/models/reason.rb
221
224
  - lib/iron_titan/version.rb
222
225
  - spec/api/CoreApi_spec.rb
223
226
  - spec/api/JobsApi_spec.rb
@@ -232,6 +235,7 @@ files:
232
235
  - spec/models/NewJobArray_spec.rb
233
236
  - spec/models/NewJob_spec.rb
234
237
  - spec/models/error_body_spec.rb
238
+ - spec/models/id_status_spec.rb
235
239
  - spec/models/image_spec.rb
236
240
  - spec/models/image_wrapper_spec.rb
237
241
  - spec/models/images_wrapper_spec.rb
@@ -241,7 +245,9 @@ files:
241
245
  - spec/models/log_spec.rb
242
246
  - spec/models/new_job_array_spec.rb
243
247
  - spec/models/new_job_spec.rb
248
+ - spec/models/new_job_with_image_spec.rb
244
249
  - spec/models/new_jobs_wrapper_spec.rb
250
+ - spec/models/reason_spec.rb
245
251
  homepage: https://github.com/iron-io/titan_ruby
246
252
  licenses:
247
253
  - Apache 2.0
@@ -275,6 +281,7 @@ test_files:
275
281
  - spec/models/error_body_spec.rb
276
282
  - spec/models/Error_spec.rb
277
283
  - spec/models/ErrorBody_spec.rb
284
+ - spec/models/id_status_spec.rb
278
285
  - spec/models/image_spec.rb
279
286
  - spec/models/image_wrapper_spec.rb
280
287
  - spec/models/images_wrapper_spec.rb
@@ -287,6 +294,8 @@ test_files:
287
294
  - spec/models/log_spec.rb
288
295
  - spec/models/new_job_array_spec.rb
289
296
  - spec/models/new_job_spec.rb
297
+ - spec/models/new_job_with_image_spec.rb
290
298
  - spec/models/new_jobs_wrapper_spec.rb
291
299
  - spec/models/NewJob_spec.rb
292
300
  - spec/models/NewJobArray_spec.rb
301
+ - spec/models/reason_spec.rb