kinetic_sdk 5.0.28 → 5.0.29
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af8ae8e567ca02d56419f62d5d065cc75cd3371dbd7ef3ca80d497f5eae076c8
|
4
|
+
data.tar.gz: 83ef665a09075f3d43ad5e28099a5125f83ed32256c7fab651dd69ae1ef44bd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 144a1d3677376488ca3b2a626a11643186eff94d6fc14699e566ffb575e077b209fe6e0ba3136879f2c7d112f06935f11479f14e67e20df275c4df065fcb354c
|
7
|
+
data.tar.gz: e83d3a855d3d457f5fb6b2b86c6e5a0b1b52b6ff2252ce24b31fbfa367d449ebd20c29cc3092727c25296dab3efe43b1cad6d47feff897f45adfeb3294040084
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [5.0.29](https://github.com/kineticdata/kinetic-sdk-rb/tree/5.0.29) (2025-01-11)
|
4
|
+
|
5
|
+
**Implemented enhancements:**
|
6
|
+
|
7
|
+
- Fix integrator sdk methods for executing and inspecting operations.
|
8
|
+
- Fix integrator sdk methods for testing connections.
|
9
|
+
|
3
10
|
## [5.0.28](https://github.com/kineticdata/kinetic-sdk-rb/tree/5.0.28) (2025-01-10)
|
4
11
|
|
5
12
|
**Implemented enhancements:**
|
@@ -58,5 +58,25 @@ module KineticSdk
|
|
58
58
|
put("#{@api_url}/connections/#{connection_id}", properties, headers)
|
59
59
|
end
|
60
60
|
|
61
|
+
# Test an unsaved Connection
|
62
|
+
#
|
63
|
+
# @param properties [Hash] connection properties to test
|
64
|
+
# @param headers [Hash] hash of headers to send, default is bearer authentication and accept JSON content type
|
65
|
+
# @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties
|
66
|
+
def test_unsaved_connection(properties={}, headers=default_jwt_headers)
|
67
|
+
@logger.info("Testing unsaved connection")
|
68
|
+
post("#{@api_url}/test", properties, headers)
|
69
|
+
end
|
70
|
+
|
71
|
+
# Test a saved Connection
|
72
|
+
#
|
73
|
+
# @param connection_id [String] id of the Connection
|
74
|
+
# @param properties [Hash] connection properties to test
|
75
|
+
# @param headers [Hash] hash of headers to send, default is bearer authentication and accept JSON content type
|
76
|
+
# @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties
|
77
|
+
def test_saved_connection(connection_id, properties={}, headers=default_jwt_headers)
|
78
|
+
@logger.info("Testing saved connection: #{connection_id}")
|
79
|
+
post("#{@api_url}/connections/#{connection_id}/test", properties, headers)
|
80
|
+
end
|
61
81
|
end
|
62
82
|
end
|
@@ -65,5 +65,38 @@ module KineticSdk
|
|
65
65
|
put("#{@api_url}/connections/#{connection_id}/operations/#{operation_id}", properties, headers)
|
66
66
|
end
|
67
67
|
|
68
|
+
# Execute an Operation
|
69
|
+
#
|
70
|
+
# @param connection_id [String] id of the Connection
|
71
|
+
# @param operation_id [String] id of the Operation
|
72
|
+
# @param parameters [Hash] operation execution parameters
|
73
|
+
# @param debug [boolean] execute in debug mode
|
74
|
+
# @param headers [Hash] hash of headers to send, default is bearer authentication and accept JSON content type
|
75
|
+
# @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties
|
76
|
+
def execute_operation(connection_id, operation_id, parameters={}, debug=false, headers=default_jwt_headers)
|
77
|
+
@logger.info("Executing operation #{operation_id}")
|
78
|
+
payload = {
|
79
|
+
"connectionId" => connection_id,
|
80
|
+
"operationId" => operation_id,
|
81
|
+
"parameters" => parameters
|
82
|
+
}
|
83
|
+
url = "#{@api_url}/execute"
|
84
|
+
url = "#{url}?debug=true" if debug
|
85
|
+
post(url, payload, headers)
|
86
|
+
end
|
87
|
+
|
88
|
+
# Inspect an Operation
|
89
|
+
#
|
90
|
+
# @param operation_id [String] id of the Operation
|
91
|
+
# @param headers [Hash] hash of headers to send, default is bearer authentication and accept JSON content type
|
92
|
+
# @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties
|
93
|
+
def inspect_operation(operation_id, headers=default_jwt_headers)
|
94
|
+
@logger.info("Inspecting operation #{operation_id}")
|
95
|
+
payload = {
|
96
|
+
"operationId" => operation_id
|
97
|
+
}
|
98
|
+
url = "#{@api_url}/inspect"
|
99
|
+
post(url, payload, headers)
|
100
|
+
end
|
68
101
|
end
|
69
102
|
end
|
data/lib/kinetic_sdk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kinetic_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kinetic Data
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slugify
|
@@ -663,7 +663,6 @@ files:
|
|
663
663
|
- lib/kinetic_sdk/filehub/lib/filestores.rb
|
664
664
|
- lib/kinetic_sdk/integrator/integrator-sdk.rb
|
665
665
|
- lib/kinetic_sdk/integrator/lib/connections.rb
|
666
|
-
- lib/kinetic_sdk/integrator/lib/executions.rb
|
667
666
|
- lib/kinetic_sdk/integrator/lib/metadata.rb
|
668
667
|
- lib/kinetic_sdk/integrator/lib/operations.rb
|
669
668
|
- lib/kinetic_sdk/task/lib/access_keys.rb
|
@@ -1,38 +0,0 @@
|
|
1
|
-
module KineticSdk
|
2
|
-
class Integrator
|
3
|
-
|
4
|
-
# Execute an Operation
|
5
|
-
#
|
6
|
-
# @param connection_id [String] id of the Connection
|
7
|
-
# @param operation_id [String] id of the Operation
|
8
|
-
# @param parameters [Hash] operation execution parameters
|
9
|
-
# @param debug [boolean] execute in debug mode
|
10
|
-
# @param headers [Hash] hash of headers to send, default is bearer authentication and accept JSON content type
|
11
|
-
# @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties
|
12
|
-
def execute_operation(connection_id, operation_id, parameters={}, debug=false, headers=default_jwt_headers)
|
13
|
-
@logger.info("Executing operation #{operation_id}")
|
14
|
-
payload = {
|
15
|
-
"connection" => connection_id,
|
16
|
-
"operation" => operation_id,
|
17
|
-
"parameters" => parameters
|
18
|
-
}
|
19
|
-
url = "#{@api_url}/execute"
|
20
|
-
url = "#{url}?debug=true" if debug
|
21
|
-
post(url, payload, headers)
|
22
|
-
end
|
23
|
-
|
24
|
-
# Inspect an Operation
|
25
|
-
#
|
26
|
-
# @param operation_id [String] id of the Operation
|
27
|
-
# @param headers [Hash] hash of headers to send, default is bearer authentication and accept JSON content type
|
28
|
-
# @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties
|
29
|
-
def inspect_operation(operation_id, headers=default_jwt_headers)
|
30
|
-
@logger.info("Inspecting operation #{operation_id}")
|
31
|
-
payload = {
|
32
|
-
"operation" => operation_id
|
33
|
-
}
|
34
|
-
url = "#{@api_url}/inspect"
|
35
|
-
post(url, payload, headers)
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|