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.
- checksums.yaml +5 -5
- data/Gemfile +0 -0
- data/README.md +8 -7
- data/Rakefile +0 -4
- data/dkron-rb.gemspec +10 -11
- data/docs/DefaultApi.md +0 -0
- data/docs/Execution.md +0 -0
- data/docs/ExecutionsApi.md +1 -1
- data/docs/ExecutorConfig.md +0 -0
- data/docs/Job.md +0 -0
- data/docs/JobsApi.md +60 -6
- data/docs/Member.md +0 -0
- data/docs/MembersApi.md +0 -0
- data/docs/Processors.md +0 -0
- data/docs/Status.md +3 -0
- data/git_push.sh +3 -3
- data/lib/dkron-rb.rb +2 -2
- data/lib/dkron-rb/api/default_api.rb +12 -21
- data/lib/dkron-rb/api/executions_api.rb +6 -9
- data/lib/dkron-rb/api/jobs_api.rb +73 -33
- data/lib/dkron-rb/api/members_api.rb +6 -9
- data/lib/dkron-rb/api_client.rb +10 -10
- data/lib/dkron-rb/api_error.rb +2 -2
- data/lib/dkron-rb/configuration.rb +3 -3
- data/lib/dkron-rb/models/execution.rb +7 -11
- data/lib/dkron-rb/models/executor_config.rb +7 -11
- data/lib/dkron-rb/models/job.rb +9 -13
- data/lib/dkron-rb/models/member.rb +7 -11
- data/lib/dkron-rb/models/processors.rb +7 -11
- data/lib/dkron-rb/models/status.rb +37 -11
- data/lib/dkron-rb/version.rb +3 -3
- data/spec/api/default_api_spec.rb +5 -8
- data/spec/api/executions_api_spec.rb +3 -4
- data/spec/api/jobs_api_spec.rb +19 -12
- data/spec/api/members_api_spec.rb +3 -4
- data/spec/api_client_spec.rb +36 -36
- data/spec/configuration_spec.rb +10 -10
- data/spec/models/execution_spec.rb +8 -9
- data/spec/models/executor_config_spec.rb +2 -3
- data/spec/models/job_spec.rb +20 -21
- data/spec/models/member_spec.rb +13 -14
- data/spec/models/processors_spec.rb +2 -3
- data/spec/models/status_spec.rb +20 -3
- data/spec/spec_helper.rb +2 -2
- metadata +18 -45
- data/Gemfile.lock +0 -67
- data/LICENSE +0 -201
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/config.json +0 -5
- data/docs/Agent.md +0 -7
- data/docs/ExecutorShell.md +0 -10
- data/docs/InlineResponse200.md +0 -10
- data/docs/MainApi.md +0 -90
- data/docs/ProcessorFiles.md +0 -9
- data/docs/ProcessorLog.md +0 -8
- data/docs/ProcessorSyslog.md +0 -8
- data/docs/Serf.md +0 -7
- data/docs/Tags.md +0 -7
- data/lib/dkron-rb/cron.rb +0 -152
- data/lib/dkron-rb/models/agent.rb +0 -152
- data/lib/dkron-rb/models/executor_shell.rb +0 -208
- data/lib/dkron-rb/models/inline_response_200.rb +0 -181
- data/lib/dkron-rb/models/processor_files.rb +0 -198
- data/lib/dkron-rb/models/processor_log.rb +0 -189
- data/lib/dkron-rb/models/processor_syslog.rb +0 -189
- data/lib/dkron-rb/models/serf.rb +0 -152
- data/lib/dkron-rb/models/tags.rb +0 -152
- data/lib/dkron-rb/numeric_seconds.rb +0 -48
- data/lib/dkron.rb +0 -9
- data/node_modules/isarray/build/build.js +0 -209
- data/node_modules/mime/build/build.js +0 -11
- data/node_modules/mime/build/test.js +0 -57
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5e525a0fff59d56719b7dcd52ebebb35de2561bbbc053212f73e78cec344e6f2
|
4
|
+
data.tar.gz: 3ac0326c956ab1a6947bfefeba6c748f9ef0c62bd39e145c17d8e04c60a43e58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
10
|
-
- Package version: 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.
|
26
|
+
gem install ./dkron-rb-1.0.0.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./dkron-rb-0.
|
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.
|
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/
|
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/
|
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
data/dkron-rb.gemspec
CHANGED
@@ -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:
|
8
|
+
OpenAPI spec version: 1
|
9
9
|
|
10
10
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
-
Swagger Codegen version: 2.
|
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 = ["
|
23
|
-
s.email = [""]
|
24
|
-
s.homepage = "https://
|
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
|
27
|
-
|
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.
|
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"]
|
data/docs/DefaultApi.md
CHANGED
File without changes
|
data/docs/Execution.md
CHANGED
File without changes
|
data/docs/ExecutionsApi.md
CHANGED
@@ -21,7 +21,7 @@ require 'dkron-rb'
|
|
21
21
|
|
22
22
|
api_instance = Dkron::ExecutionsApi.new
|
23
23
|
|
24
|
-
job_name =
|
24
|
+
job_name = 'job_name_example' # String | The job that owns the executions to be fetched.
|
25
25
|
|
26
26
|
|
27
27
|
begin
|
data/docs/ExecutorConfig.md
CHANGED
File without changes
|
data/docs/Job.md
CHANGED
File without changes
|
data/docs/JobsApi.md
CHANGED
@@ -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 =
|
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
|
-
|
134
|
+
|
135
|
+
Name | Type | Description | Notes
|
136
|
+
------------- | ------------- | ------------- | -------------
|
137
|
+
**tags** | [**Array<String>**](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 =
|
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 =
|
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
|
+
|
data/docs/Member.md
CHANGED
File without changes
|
data/docs/MembersApi.md
CHANGED
File without changes
|
data/docs/Processors.md
CHANGED
File without changes
|
data/docs/Status.md
CHANGED
@@ -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
|
|
data/git_push.sh
CHANGED
@@ -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="
|
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="
|
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="
|
24
|
+
release_note=""
|
25
25
|
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
26
26
|
fi
|
27
27
|
|
data/lib/dkron-rb.rb
CHANGED
@@ -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:
|
6
|
+
OpenAPI spec version: 1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
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:
|
6
|
+
OpenAPI spec version: 1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
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
|
-
|
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
|
35
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_leader ...'
|
39
36
|
end
|
40
37
|
# resource path
|
41
|
-
local_var_path =
|
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
|
-
|
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
|
81
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.leave ...'
|
88
82
|
end
|
89
83
|
# resource path
|
90
|
-
local_var_path =
|
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
|
-
|
119
|
+
data
|
128
120
|
end
|
129
121
|
|
130
|
-
#
|
131
122
|
# Gets `Status` 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
|
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:
|
6
|
+
OpenAPI spec version: 1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
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
|
-
|
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
|
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 =
|
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 = {}
|