kinetic_sdk 5.0.7 → 5.0.8
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 +4 -4
- data/lib/kinetic_sdk/core/lib/bridges.rb +21 -21
- data/lib/kinetic_sdk/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8609e20b77b0b2e67c56e49dcf6663460e8bb48a96efac596ba7f5ef0059af29
|
4
|
+
data.tar.gz: 8f739a18f3628432f830847c41e0960cacfccb90f9a00cf464f248e17761cb7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1cc775a113d0af41d243f234fdf35dace6a54e5696774b97e8e68477a6bc53c13da510faa9cf0e73c9fb0e664d3351067adfa7e656feae39367284203ab48e2
|
7
|
+
data.tar.gz: 5cc32a2d2ba49cc09119adf8fedffaa27e318714446111ab3c1c559f30ee5633217e9dbf80b7e3f26e74c809f3c05f1ad04a1edbe8f487257a265a5b17d4978e
|
@@ -3,26 +3,26 @@ module KineticSdk
|
|
3
3
|
|
4
4
|
# Add a Bridge
|
5
5
|
#
|
6
|
-
# @param body [Hash] properties associated to the Bridge
|
7
|
-
# - +adapterClass+
|
6
|
+
# @param body [Hash] optional properties associated to the Bridge
|
8
7
|
# - +name+
|
9
|
-
# - +
|
10
|
-
# - +
|
8
|
+
# - +status+
|
9
|
+
# - +url+
|
11
10
|
# @param headers [Hash] hash of headers to send, default is basic authentication and accept JSON content type
|
12
11
|
# @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties
|
13
|
-
def add_bridge(body, headers=default_headers)
|
14
|
-
@logger.info("Adding the \"#{body['name']}\"
|
15
|
-
post("#{@
|
12
|
+
def add_bridge(body={}, headers=default_headers)
|
13
|
+
@logger.info("Adding the \"#{body['name']}\" Bridge.")
|
14
|
+
post("#{@api_url}/bridges", body, headers)
|
16
15
|
end
|
17
16
|
|
18
17
|
# Delete a Bridge
|
19
18
|
#
|
20
|
-
# @param
|
19
|
+
# @param name [String] name of the bridge
|
20
|
+
# @param params [Hash] Query parameters that are added to the URL, such as +include+
|
21
21
|
# @param headers [Hash] hash of headers to send, default is basic authentication and accept JSON content type
|
22
22
|
# @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties
|
23
|
-
def delete_bridge(
|
24
|
-
@logger.info("Deleting the \"#{
|
25
|
-
delete("#{@
|
23
|
+
def delete_bridge(name, params={}, headers=default_headers)
|
24
|
+
@logger.info("Deleting the \"#{name}\" bridge.")
|
25
|
+
delete("#{@api_url}/bridges/#{encode(name)}", headers)
|
26
26
|
end
|
27
27
|
|
28
28
|
# Find a list of bridges
|
@@ -31,30 +31,30 @@ module KineticSdk
|
|
31
31
|
# @param headers [Hash] hash of headers to send, default is basic authentication and accept JSON content type
|
32
32
|
# @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties
|
33
33
|
def find_bridges(params={}, headers=default_headers)
|
34
|
-
@logger.info("Find
|
35
|
-
get("#{@
|
34
|
+
@logger.info("Find Bridges.")
|
35
|
+
get("#{@api_url}/bridges", params, headers)
|
36
36
|
end
|
37
37
|
|
38
38
|
# Find a bridge
|
39
39
|
#
|
40
|
-
# @param
|
40
|
+
# @param name [String] name of the bridge
|
41
41
|
# @param params [Hash] Query parameters that are added to the URL, such as +include+
|
42
42
|
# @param headers [Hash] hash of headers to send, default is basic authentication and accept JSON content type
|
43
43
|
# @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties
|
44
|
-
def find_bridge(
|
45
|
-
@logger.info("Finding the \"#{
|
46
|
-
get("#{@
|
44
|
+
def find_bridge(name, params={}, headers=default_headers)
|
45
|
+
@logger.info("Finding the \"#{name}\" Bridge.")
|
46
|
+
get("#{@api_url}/bridges/#{encode(name)}", params, headers)
|
47
47
|
end
|
48
48
|
|
49
49
|
# Update a bridge
|
50
50
|
#
|
51
|
-
# @param
|
51
|
+
# @param name [String] name of the bridge
|
52
52
|
# @param body [Hash] properties of the bridge to update
|
53
53
|
# @param headers [Hash] hash of headers to send, default is basic authentication and accept JSON content type
|
54
54
|
# @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties
|
55
|
-
def update_bridge(
|
56
|
-
@logger.info("Updating the \"#{
|
57
|
-
put("#{@
|
55
|
+
def update_bridge(name, body={}, headers=default_headers)
|
56
|
+
@logger.info("Updating the \"#{name}\" Bridge.")
|
57
|
+
put("#{@api_url}/bridges/#{encode(name)}", body, headers)
|
58
58
|
end
|
59
59
|
|
60
60
|
# Add a Bridge Model
|
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.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kinetic Data
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slugify
|
@@ -422,7 +422,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
422
422
|
- !ruby/object:Gem::Version
|
423
423
|
version: '0'
|
424
424
|
requirements: []
|
425
|
-
rubygems_version: 3.0.
|
425
|
+
rubygems_version: 3.0.8
|
426
426
|
signing_key:
|
427
427
|
specification_version: 4
|
428
428
|
summary: Ruby SDK for Kinetic Data application APIs
|