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: 3b09563966c2fd8fb0733a8ae84b2c5300e076d4606571e368bbd02cd8c77edb
4
- data.tar.gz: b834a8806f2f95eae015fc5c89764eaedc58cf85889d9ec9562501f7b48c9234
3
+ metadata.gz: af8ae8e567ca02d56419f62d5d065cc75cd3371dbd7ef3ca80d497f5eae076c8
4
+ data.tar.gz: 83ef665a09075f3d43ad5e28099a5125f83ed32256c7fab651dd69ae1ef44bd1
5
5
  SHA512:
6
- metadata.gz: 10a9c65096a5404c49e497b29a9f4c226b98eb4c8a17471a45cb2a5c7233ad3fdf3fa9be4ede7e5050598adab313f02f60027ddb9e8bce6a4823aa07b2fa6e57
7
- data.tar.gz: fe578a51d97965d33c093df1240db88d21aa77e28d41eeb762f46cf3b4eb293c3f23dd392d53d0b6bf0c1cf26087258b6b8ff653a0fa497c14cc10ee1832d39f
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
@@ -3,5 +3,5 @@ module KineticSdk
3
3
  # Version of Kinetic SDK
4
4
  #
5
5
  # @return [String] Version of the SDK
6
- VERSION = "5.0.28"
6
+ VERSION = "5.0.29"
7
7
  end
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.28
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-10 00:00:00.000000000 Z
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