iron_titan 0.2.15 → 0.2.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -5
  3. data/lib/iron_titan/api/core_api.rb +1 -1
  4. data/lib/iron_titan/api/images_api.rb +1 -1
  5. data/lib/iron_titan/api/jobs_api.rb +66 -1
  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/error.rb +1 -1
  9. data/lib/iron_titan/models/error_body.rb +1 -1
  10. data/lib/iron_titan/models/id_status.rb +1 -1
  11. data/lib/iron_titan/models/image.rb +1 -1
  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 +1 -1
  15. data/lib/iron_titan/models/job_wrapper.rb +1 -1
  16. data/lib/iron_titan/models/jobs_wrapper.rb +1 -1
  17. data/lib/iron_titan/models/new_job.rb +1 -1
  18. data/lib/iron_titan/models/new_jobs_wrapper.rb +1 -1
  19. data/lib/iron_titan/models/reason.rb +1 -1
  20. data/lib/iron_titan/version.rb +2 -2
  21. data/lib/iron_titan.rb +1 -1
  22. data/spec/api/core_api_spec.rb +1 -1
  23. data/spec/api/images_api_spec.rb +1 -1
  24. data/spec/api/jobs_api_spec.rb +18 -1
  25. data/spec/models/Error_spec.rb +1 -1
  26. data/spec/models/Job_spec.rb +1 -1
  27. data/spec/models/error_body_spec.rb +1 -1
  28. data/spec/models/id_status_spec.rb +1 -1
  29. data/spec/models/image_spec.rb +1 -1
  30. data/spec/models/image_wrapper_spec.rb +1 -1
  31. data/spec/models/images_wrapper_spec.rb +1 -1
  32. data/spec/models/job_wrapper_spec.rb +1 -1
  33. data/spec/models/jobs_wrapper_spec.rb +1 -1
  34. data/spec/models/new_job_spec.rb +1 -1
  35. data/spec/models/new_jobs_wrapper_spec.rb +1 -1
  36. data/spec/models/reason_spec.rb +1 -1
  37. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 472a0198f3150defb879a01b8740ac9b7d988fb7
4
- data.tar.gz: 80eb2cfdabc8062503e0e864a7dbb82069b1d9a6
3
+ metadata.gz: 7321f78e186335f676c6ddfec4eb42685a6c7881
4
+ data.tar.gz: b7c6f7bab9aceb0c689574edbffc562f5e0bfec1
5
5
  SHA512:
6
- metadata.gz: 21c47c9380c3000864bcd72691894660bc54b9d61563160c3a95d48c9d0e652882c0639b6609bdf503ae2f2f9939aa3929e69b9ce7cef01451fd295953e6f551
7
- data.tar.gz: 1e54befcd47352d5e7c184b0ecb6f4360236108fb7b8c14f2b3ee08ea8e850004219c4515370e0478793e8e4bf8a266c651f8c3365953e59316df07a1bebccc9
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.15
10
- - Package version: 0.2.15
11
- - Build date: 2016-04-01T00:48:31.251Z
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.15.gem
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.15'
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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
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
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
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.15"
14
+ VERSION = "0.2.17"
15
15
  end
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.2.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
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 &#39;status&#39; 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.
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -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.15
6
+ OpenAPI spec version: 0.2.17
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron_titan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.15
4
+ version: 0.2.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Reeder