kinetic_sdk 5.0.7 → 5.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fca223abfc805dbb5e2cb6394e0d5c09fd2999db457a865cd524e4d881b5f00c
4
- data.tar.gz: d6d4618ab49bde503416fa9ec337b10fa055b049cecd3063b56f446281a0fad6
3
+ metadata.gz: 8609e20b77b0b2e67c56e49dcf6663460e8bb48a96efac596ba7f5ef0059af29
4
+ data.tar.gz: 8f739a18f3628432f830847c41e0960cacfccb90f9a00cf464f248e17761cb7c
5
5
  SHA512:
6
- metadata.gz: 3beabc7004dff9b2e178bb55659afe16f7b1799e3029849871681fb4882640602ecf4e6879e1eb27fcbaf20c9f45f20a1794b64c8b09fc1a4e3c654d2504f5e7
7
- data.tar.gz: 2881b85313ca07763d93bf29aba28a2192e2740eecd691bb1921d4b390f3acb980f27081d0583aa40a236ba19d755349c3fad8ca6f93e565202dbb899497b866
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
- # - +slug+
10
- # - +properties+
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']}\" bridge through proxy to the agent platform component.")
15
- post("#{@proxy_url}/agent/app/api/v1/bridges", body, headers)
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 slug [String] slug of the Bridge
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(slug, headers=default_headers)
24
- @logger.info("Deleting the \"#{slug}\" bridge through proxy to the agent platform component.")
25
- delete("#{@proxy_url}/agent/app/api/v1/bridges/#{slug}", headers)
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 bridges through proxy to the agent platform component.")
35
- get("#{@proxy_url}/agent/app/api/v1/bridges", params, headers)
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 slug [String] slug of the bridge
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(slug, params={}, headers=default_headers)
45
- @logger.info("Finding the \"#{slug}\" bridge through proxy to the agent platform component.")
46
- get("#{@proxy_url}/agent/app/api/v1/bridges/#{slug}", params, headers)
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 slug [String] slug of the bridge
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(slug, body={}, headers=default_headers)
56
- @logger.info("Updating the \"#{slug}\" bridge through proxy to the agent platform component.")
57
- put("#{@proxy_url}/agent/app/api/v1/bridges/#{slug}", body, headers)
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
@@ -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.7"
6
+ VERSION = "5.0.8"
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.7
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-05-15 00:00:00.000000000 Z
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.6
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