dkron-rb 0.11.2 → 1.0.0

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.
Files changed (73) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +0 -0
  3. data/README.md +8 -7
  4. data/Rakefile +0 -4
  5. data/dkron-rb.gemspec +10 -11
  6. data/docs/DefaultApi.md +0 -0
  7. data/docs/Execution.md +0 -0
  8. data/docs/ExecutionsApi.md +1 -1
  9. data/docs/ExecutorConfig.md +0 -0
  10. data/docs/Job.md +0 -0
  11. data/docs/JobsApi.md +60 -6
  12. data/docs/Member.md +0 -0
  13. data/docs/MembersApi.md +0 -0
  14. data/docs/Processors.md +0 -0
  15. data/docs/Status.md +3 -0
  16. data/git_push.sh +3 -3
  17. data/lib/dkron-rb.rb +2 -2
  18. data/lib/dkron-rb/api/default_api.rb +12 -21
  19. data/lib/dkron-rb/api/executions_api.rb +6 -9
  20. data/lib/dkron-rb/api/jobs_api.rb +73 -33
  21. data/lib/dkron-rb/api/members_api.rb +6 -9
  22. data/lib/dkron-rb/api_client.rb +10 -10
  23. data/lib/dkron-rb/api_error.rb +2 -2
  24. data/lib/dkron-rb/configuration.rb +3 -3
  25. data/lib/dkron-rb/models/execution.rb +7 -11
  26. data/lib/dkron-rb/models/executor_config.rb +7 -11
  27. data/lib/dkron-rb/models/job.rb +9 -13
  28. data/lib/dkron-rb/models/member.rb +7 -11
  29. data/lib/dkron-rb/models/processors.rb +7 -11
  30. data/lib/dkron-rb/models/status.rb +37 -11
  31. data/lib/dkron-rb/version.rb +3 -3
  32. data/spec/api/default_api_spec.rb +5 -8
  33. data/spec/api/executions_api_spec.rb +3 -4
  34. data/spec/api/jobs_api_spec.rb +19 -12
  35. data/spec/api/members_api_spec.rb +3 -4
  36. data/spec/api_client_spec.rb +36 -36
  37. data/spec/configuration_spec.rb +10 -10
  38. data/spec/models/execution_spec.rb +8 -9
  39. data/spec/models/executor_config_spec.rb +2 -3
  40. data/spec/models/job_spec.rb +20 -21
  41. data/spec/models/member_spec.rb +13 -14
  42. data/spec/models/processors_spec.rb +2 -3
  43. data/spec/models/status_spec.rb +20 -3
  44. data/spec/spec_helper.rb +2 -2
  45. metadata +18 -45
  46. data/Gemfile.lock +0 -67
  47. data/LICENSE +0 -201
  48. data/bin/console +0 -14
  49. data/bin/setup +0 -8
  50. data/config.json +0 -5
  51. data/docs/Agent.md +0 -7
  52. data/docs/ExecutorShell.md +0 -10
  53. data/docs/InlineResponse200.md +0 -10
  54. data/docs/MainApi.md +0 -90
  55. data/docs/ProcessorFiles.md +0 -9
  56. data/docs/ProcessorLog.md +0 -8
  57. data/docs/ProcessorSyslog.md +0 -8
  58. data/docs/Serf.md +0 -7
  59. data/docs/Tags.md +0 -7
  60. data/lib/dkron-rb/cron.rb +0 -152
  61. data/lib/dkron-rb/models/agent.rb +0 -152
  62. data/lib/dkron-rb/models/executor_shell.rb +0 -208
  63. data/lib/dkron-rb/models/inline_response_200.rb +0 -181
  64. data/lib/dkron-rb/models/processor_files.rb +0 -198
  65. data/lib/dkron-rb/models/processor_log.rb +0 -189
  66. data/lib/dkron-rb/models/processor_syslog.rb +0 -189
  67. data/lib/dkron-rb/models/serf.rb +0 -152
  68. data/lib/dkron-rb/models/tags.rb +0 -152
  69. data/lib/dkron-rb/numeric_seconds.rb +0 -48
  70. data/lib/dkron.rb +0 -9
  71. data/node_modules/isarray/build/build.js +0 -209
  72. data/node_modules/mime/build/build.js +0 -11
  73. data/node_modules/mime/build/test.js +0 -57
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 49834e6dc68ff58937a3d32e05959ba28251551c
4
- data.tar.gz: d84b01ede79f593daadeee41eba39f1f7d2afb61
2
+ SHA256:
3
+ metadata.gz: 5e525a0fff59d56719b7dcd52ebebb35de2561bbbc053212f73e78cec344e6f2
4
+ data.tar.gz: 3ac0326c956ab1a6947bfefeba6c748f9ef0c62bd39e145c17d8e04c60a43e58
5
5
  SHA512:
6
- metadata.gz: b3f3826cea04680a60ca4e9411050b56e1bcd0454d941a42d4d1a11efb7d92c3c79023684c0c83f7543bfd9fd9692e7bbaea4e10b30b5454663b5201944083ba
7
- data.tar.gz: e447340e8a3c3cb20f34b18b09b7ded1d4fcea68e7f01cae2aabad1955fb947a878e357ec696ebbf50a59015c0e9aee154677283195317458fbb2f3ead77c971
6
+ metadata.gz: 8af3e0af0cb5f73d2aeddff537d9102f480ec4d56277c03af5fec7c497c2f830b26ea1a78f90cd61fba283f2c305d9df795d7fd8424a4273fe6b8babb247873a
7
+ data.tar.gz: bf534a2000f0966a41f3d51ac7245d207d3339201afe498e05ba10a2e520dd9e6d86ebb81ba2878160c4f697bbc3a0eac27d3d7dcb5c89115264d04f86407410
data/Gemfile CHANGED
File without changes
data/README.md CHANGED
@@ -6,8 +6,8 @@ You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes u
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.11.2
10
- - Package version: 0.10.0
9
+ - API version: 1
10
+ - Package version: 1.0.0
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,21 +23,21 @@ gem build dkron-rb.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./dkron-rb-0.10.0.gem
26
+ gem install ./dkron-rb-1.0.0.gem
27
27
  ```
28
- (for development, run `gem install --dev ./dkron-rb-0.10.0.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./dkron-rb-1.0.0.gem` to install the development dependencies)
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 'dkron-rb', '~> 0.10.0'
34
+ gem 'dkron-rb', '~> 1.0.0'
35
35
 
36
36
  ### Install from Git
37
37
 
38
- If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
38
+ If the Ruby gem is hosted at a git repository: https://github.com/YOUR_GIT_USERNAME/YOUR_GIT_REPO, then add the following in the Gemfile:
39
39
 
40
- gem 'dkron-rb', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
40
+ gem 'dkron-rb', :git => 'https://github.com/YOUR_GIT_USERNAME/YOUR_GIT_REPO.git'
41
41
 
42
42
  ### Include the Ruby code directly
43
43
 
@@ -80,6 +80,7 @@ Class | Method | HTTP request | Description
80
80
  *Dkron::JobsApi* | [**get_jobs**](docs/JobsApi.md#get_jobs) | **GET** /jobs |
81
81
  *Dkron::JobsApi* | [**run_job**](docs/JobsApi.md#run_job) | **POST** /jobs/{job_name} |
82
82
  *Dkron::JobsApi* | [**show_job_by_name**](docs/JobsApi.md#show_job_by_name) | **GET** /jobs/{job_name} |
83
+ *Dkron::JobsApi* | [**toggle_job**](docs/JobsApi.md#toggle_job) | **POST** /jobs/{job_name}/toggle |
83
84
  *Dkron::MembersApi* | [**get_member**](docs/MembersApi.md#get_member) | **GET** /members |
84
85
 
85
86
 
data/Rakefile CHANGED
@@ -6,7 +6,3 @@ begin
6
6
  rescue LoadError
7
7
  # no rspec available
8
8
  end
9
-
10
- task(:codegen) do
11
- sh('swagger-codegen', 'generate', '-i', 'https://dkron.io/swagger.yaml', '-l', 'ruby', '-o', '.', '-c', 'config.json')
12
- end
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- #
2
+
3
3
  =begin
4
4
  #Dkron REST API
5
5
 
6
6
  #You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
7
7
 
8
- OpenAPI spec version: 0.11.2
8
+ OpenAPI spec version: 1
9
9
 
10
10
  Generated by: https://github.com/swagger-api/swagger-codegen.git
11
- Swagger Codegen version: 2.3.1
11
+ Swagger Codegen version: 2.4.2
12
12
 
13
13
  =end
14
14
 
@@ -19,17 +19,16 @@ Gem::Specification.new do |s|
19
19
  s.name = "dkron-rb"
20
20
  s.version = Dkron::VERSION
21
21
  s.platform = Gem::Platform::RUBY
22
- s.authors = ["Swagger-Codegen"]
23
- s.email = [""]
24
- s.homepage = "https://github.com/swagger-api/swagger-codegen"
22
+ s.authors = ["Victor Castell"]
23
+ s.email = ["victor.castell@jobandtalent.com"]
24
+ s.homepage = "https://dkron.io"
25
25
  s.summary = "Dkron REST API Ruby Gem"
26
- s.description = "You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response. "
27
- # TODO uncommnet and update below with a proper license
28
- #s.license = "Apache 2.0"
26
+ s.description = "You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response. "
27
+ s.license = 'Apache 2.0'
29
28
  s.required_ruby_version = ">= 1.9"
30
29
 
31
30
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
32
- s.add_runtime_dependency 'json', '~> 1', '>= 1.4'
31
+ s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
33
32
 
34
33
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
35
34
  s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
@@ -39,7 +38,7 @@ Gem::Specification.new do |s|
39
38
  s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
40
39
  s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
41
40
 
42
- s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
41
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
43
42
  s.test_files = `find spec/*`.split("\n")
44
43
  s.executables = []
45
44
  s.require_paths = ["lib"]
File without changes
File without changes
@@ -21,7 +21,7 @@ require 'dkron-rb'
21
21
 
22
22
  api_instance = Dkron::ExecutionsApi.new
23
23
 
24
- job_name = "job_name_example" # String | The job that owns the executions to be fetched.
24
+ job_name = 'job_name_example' # String | The job that owns the executions to be fetched.
25
25
 
26
26
 
27
27
  begin
File without changes
File without changes
@@ -9,6 +9,7 @@ Method | HTTP request | Description
9
9
  [**get_jobs**](JobsApi.md#get_jobs) | **GET** /jobs |
10
10
  [**run_job**](JobsApi.md#run_job) | **POST** /jobs/{job_name} |
11
11
  [**show_job_by_name**](JobsApi.md#show_job_by_name) | **GET** /jobs/{job_name} |
12
+ [**toggle_job**](JobsApi.md#toggle_job) | **POST** /jobs/{job_name}/toggle |
12
13
 
13
14
 
14
15
  # **create_or_update_job**
@@ -71,7 +72,7 @@ require 'dkron-rb'
71
72
 
72
73
  api_instance = Dkron::JobsApi.new
73
74
 
74
- job_name = "job_name_example" # String | The job that needs to be deleted.
75
+ job_name = 'job_name_example' # String | The job that needs to be deleted.
75
76
 
76
77
 
77
78
  begin
@@ -104,7 +105,7 @@ No authorization required
104
105
 
105
106
 
106
107
  # **get_jobs**
107
- > Array<Job> get_jobs
108
+ > Array<Job> get_jobs(opts)
108
109
 
109
110
 
110
111
 
@@ -117,8 +118,12 @@ require 'dkron-rb'
117
118
 
118
119
  api_instance = Dkron::JobsApi.new
119
120
 
121
+ opts = {
122
+ tags: ['tags_example'] # Array<String> | Filter jobs by tags
123
+ }
124
+
120
125
  begin
121
- result = api_instance.get_jobs
126
+ result = api_instance.get_jobs(opts)
122
127
  p result
123
128
  rescue Dkron::ApiError => e
124
129
  puts "Exception when calling JobsApi->get_jobs: #{e}"
@@ -126,7 +131,10 @@ end
126
131
  ```
127
132
 
128
133
  ### Parameters
129
- This endpoint does not need any parameter.
134
+
135
+ Name | Type | Description | Notes
136
+ ------------- | ------------- | ------------- | -------------
137
+ **tags** | [**Array&lt;String&gt;**](String.md)| Filter jobs by tags | [optional]
130
138
 
131
139
  ### Return type
132
140
 
@@ -157,7 +165,7 @@ require 'dkron-rb'
157
165
 
158
166
  api_instance = Dkron::JobsApi.new
159
167
 
160
- job_name = "job_name_example" # String | The job that needs to be run.
168
+ job_name = 'job_name_example' # String | The job that needs to be run.
161
169
 
162
170
 
163
171
  begin
@@ -203,7 +211,7 @@ require 'dkron-rb'
203
211
 
204
212
  api_instance = Dkron::JobsApi.new
205
213
 
206
- job_name = "job_name_example" # String | The job that needs to be fetched.
214
+ job_name = 'job_name_example' # String | The job that needs to be fetched.
207
215
 
208
216
 
209
217
  begin
@@ -235,3 +243,49 @@ No authorization required
235
243
 
236
244
 
237
245
 
246
+ # **toggle_job**
247
+ > Job toggle_job(job_name)
248
+
249
+
250
+
251
+ Toggle a job.
252
+
253
+ ### Example
254
+ ```ruby
255
+ # load the gem
256
+ require 'dkron-rb'
257
+
258
+ api_instance = Dkron::JobsApi.new
259
+
260
+ job_name = 'job_name_example' # String | The job that needs to be toggled.
261
+
262
+
263
+ begin
264
+ result = api_instance.toggle_job(job_name)
265
+ p result
266
+ rescue Dkron::ApiError => e
267
+ puts "Exception when calling JobsApi->toggle_job: #{e}"
268
+ end
269
+ ```
270
+
271
+ ### Parameters
272
+
273
+ Name | Type | Description | Notes
274
+ ------------- | ------------- | ------------- | -------------
275
+ **job_name** | **String**| The job that needs to be toggled. |
276
+
277
+ ### Return type
278
+
279
+ [**Job**](Job.md)
280
+
281
+ ### Authorization
282
+
283
+ No authorization required
284
+
285
+ ### HTTP request headers
286
+
287
+ - **Content-Type**: application/json
288
+ - **Accept**: application/json
289
+
290
+
291
+
File without changes
File without changes
File without changes
@@ -3,5 +3,8 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
+ **agent** | [****](.md) | Node basic details | [optional]
7
+ **serf** | [****](.md) | Serf status | [optional]
8
+ **tags** | [****](.md) | Tags asociated with this node | [optional]
6
9
 
7
10
 
@@ -11,17 +11,17 @@ git_repo_id=$2
11
11
  release_note=$3
12
12
 
13
13
  if [ "$git_user_id" = "" ]; then
14
- git_user_id="GIT_USER_ID"
14
+ git_user_id=""
15
15
  echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
16
16
  fi
17
17
 
18
18
  if [ "$git_repo_id" = "" ]; then
19
- git_repo_id="GIT_REPO_ID"
19
+ git_repo_id=""
20
20
  echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
21
21
  fi
22
22
 
23
23
  if [ "$release_note" = "" ]; then
24
- release_note="Minor update"
24
+ release_note=""
25
25
  echo "[INFO] No command line input provided. Set \$release_note to $release_note"
26
26
  fi
27
27
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
5
5
 
6
- OpenAPI spec version: 0.11.2
6
+ OpenAPI spec version: 1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.2
10
10
 
11
11
  =end
12
12
 
@@ -3,14 +3,14 @@
3
3
 
4
4
  #You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
5
5
 
6
- OpenAPI spec version: 0.11.2
6
+ OpenAPI spec version: 1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.2
10
10
 
11
11
  =end
12
12
 
13
- require "uri"
13
+ require 'uri'
14
14
 
15
15
  module Dkron
16
16
  class DefaultApi
@@ -19,26 +19,23 @@ module Dkron
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
- #
24
22
  # List leader of cluster.
25
23
  # @param [Hash] opts the optional parameters
26
24
  # @return [Member]
27
25
  def get_leader(opts = {})
28
26
  data, _status_code, _headers = get_leader_with_http_info(opts)
29
- return data
27
+ data
30
28
  end
31
29
 
32
- #
33
30
  # List leader of cluster.
34
31
  # @param [Hash] opts the optional parameters
35
32
  # @return [Array<(Member, Fixnum, Hash)>] Member data, response status code and response headers
36
33
  def get_leader_with_http_info(opts = {})
37
34
  if @api_client.config.debugging
38
- @api_client.config.logger.debug "Calling API: DefaultApi.get_leader ..."
35
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_leader ...'
39
36
  end
40
37
  # resource path
41
- local_var_path = "/leader"
38
+ local_var_path = '/leader'
42
39
 
43
40
  # query parameters
44
41
  query_params = {}
@@ -68,26 +65,23 @@ module Dkron
68
65
  end
69
66
  return data, status_code, headers
70
67
  end
71
-
72
- #
73
68
  # Force the node to leave the cluster.
74
69
  # @param [Hash] opts the optional parameters
75
70
  # @return [Array<Member>]
76
71
  def leave(opts = {})
77
72
  data, _status_code, _headers = leave_with_http_info(opts)
78
- return data
73
+ data
79
74
  end
80
75
 
81
- #
82
76
  # Force the node to leave the cluster.
83
77
  # @param [Hash] opts the optional parameters
84
78
  # @return [Array<(Array<Member>, Fixnum, Hash)>] Array<Member> data, response status code and response headers
85
79
  def leave_with_http_info(opts = {})
86
80
  if @api_client.config.debugging
87
- @api_client.config.logger.debug "Calling API: DefaultApi.leave ..."
81
+ @api_client.config.logger.debug 'Calling API: DefaultApi.leave ...'
88
82
  end
89
83
  # resource path
90
- local_var_path = "/leave"
84
+ local_var_path = '/leave'
91
85
 
92
86
  # query parameters
93
87
  query_params = {}
@@ -117,26 +111,23 @@ module Dkron
117
111
  end
118
112
  return data, status_code, headers
119
113
  end
120
-
121
- #
122
114
  # Gets `Status` object.
123
115
  # @param [Hash] opts the optional parameters
124
116
  # @return [Status]
125
117
  def status(opts = {})
126
118
  data, _status_code, _headers = status_with_http_info(opts)
127
- return data
119
+ data
128
120
  end
129
121
 
130
- #
131
122
  # Gets &#x60;Status&#x60; object.
132
123
  # @param [Hash] opts the optional parameters
133
124
  # @return [Array<(Status, Fixnum, Hash)>] Status data, response status code and response headers
134
125
  def status_with_http_info(opts = {})
135
126
  if @api_client.config.debugging
136
- @api_client.config.logger.debug "Calling API: DefaultApi.status ..."
127
+ @api_client.config.logger.debug 'Calling API: DefaultApi.status ...'
137
128
  end
138
129
  # resource path
139
- local_var_path = "/"
130
+ local_var_path = '/'
140
131
 
141
132
  # query parameters
142
133
  query_params = {}
@@ -3,14 +3,14 @@
3
3
 
4
4
  #You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
5
5
 
6
- OpenAPI spec version: 0.11.2
6
+ OpenAPI spec version: 1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.2
10
10
 
11
11
  =end
12
12
 
13
- require "uri"
13
+ require 'uri'
14
14
 
15
15
  module Dkron
16
16
  class ExecutionsApi
@@ -19,32 +19,29 @@ module Dkron
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
- #
24
22
  # List executions.
25
23
  # @param job_name The job that owns the executions to be fetched.
26
24
  # @param [Hash] opts the optional parameters
27
25
  # @return [Array<Execution>]
28
26
  def list_executions_by_job(job_name, opts = {})
29
27
  data, _status_code, _headers = list_executions_by_job_with_http_info(job_name, opts)
30
- return data
28
+ data
31
29
  end
32
30
 
33
- #
34
31
  # List executions.
35
32
  # @param job_name The job that owns the executions to be fetched.
36
33
  # @param [Hash] opts the optional parameters
37
34
  # @return [Array<(Array<Execution>, Fixnum, Hash)>] Array<Execution> data, response status code and response headers
38
35
  def list_executions_by_job_with_http_info(job_name, opts = {})
39
36
  if @api_client.config.debugging
40
- @api_client.config.logger.debug "Calling API: ExecutionsApi.list_executions_by_job ..."
37
+ @api_client.config.logger.debug 'Calling API: ExecutionsApi.list_executions_by_job ...'
41
38
  end
42
39
  # verify the required parameter 'job_name' is set
43
40
  if @api_client.config.client_side_validation && job_name.nil?
44
41
  fail ArgumentError, "Missing the required parameter 'job_name' when calling ExecutionsApi.list_executions_by_job"
45
42
  end
46
43
  # resource path
47
- local_var_path = "/jobs/{job_name}/executions".sub('{' + 'job_name' + '}', job_name.to_s)
44
+ local_var_path = '/jobs/{job_name}/executions'.sub('{' + 'job_name' + '}', job_name.to_s)
48
45
 
49
46
  # query parameters
50
47
  query_params = {}