kinetic_sdk 5.0.3 → 5.0.4

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: ad0e7ab692dcbe3b8490670c9b287728fefd5f55efae43dc8c300dfe18712889
4
- data.tar.gz: 6769c8d4ff7571c3ac162b7b513e6fb1022a3515cee75c70e9e116f0e35dad6e
3
+ metadata.gz: d9b3c58d40bc983f719f0c89d6091d90bdaf91560d1bbdf519699e3f97e055a7
4
+ data.tar.gz: 73cc0c037f8a2a8c1b4ae5dc4a2044d09d154db70a0969a89608e5dab2bec466
5
5
  SHA512:
6
- metadata.gz: 7af711dd0ecdff0aa958b9716a2c98f05038d813a36b76fad15ffb12b3bd2a85abc5c5a970516f2a42b522ed706edb700383d1fb95e8b81cc42b3edfb4102f82
7
- data.tar.gz: 373e02aa81064b9ce26a547dca6bcc66827f2c3719b1052344ef2511d0ff436e049f3604d485482310fa7504ccb082daa6147142133bea21d854b4a54ed040b2
6
+ metadata.gz: 7e8e2e838080dea431dc1b101c49fd674e4d4499cb55858cac8b9198a04b9d773f8442b83f66afe7b539551681b9b82cb6fd1236b85ad09e96d8991d9aa2ca88
7
+ data.tar.gz: 367dec28e45a1570e2e59d712754a4a2b86ec7a7e0c7cbc3ff89f1d89466938b2c9b7f95854d3edc31e64ae74e47c21f582482a3d01df900f8c8dc379c026c22
data/CHANGELOG.md CHANGED
@@ -39,3 +39,34 @@ sdk.logger.info("foo")
39
39
  - Gateway errors (HTTP codes [502](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502), [503](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503), and [504](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504)) will automatically be retried, and may be controlled by the following options:
40
40
  - :gateway_retry_limit (default 5), set to -1 to disable retrying gateway errors
41
41
  - :gateway_retry_delay (default 1.0)
42
+
43
+ ## [5.0.0](https://github.com/kineticdata/kinetic-sdk-rb/tree/5.0.0) (2019-12-19)
44
+
45
+ ** 1.x to 5.x Upgrade Warning **
46
+ All platform components (Core, Task, Agent, Discussions...etc) should be running a 5.x release or greater.
47
+ Unintended behavior is possible if running 5.x of the SDK against any platform component < 5.x.
48
+
49
+ ## [5.0.1](https://github.com/kineticdata/kinetic-sdk-rb/tree/5.0.1) (2020-01-10)
50
+
51
+ **Implemented enhancements:**
52
+
53
+ - Implemented Task System error API
54
+ - Fixed typo in Discussions component
55
+
56
+ ## [5.0.2](https://github.com/kineticdata/kinetic-sdk-rb/tree/5.0.2) (2020-01-10)
57
+
58
+ **Implemented enhancements:**
59
+
60
+ - Fixed bug with jetching JWT regarding redirects
61
+
62
+ ## [5.0.3](https://github.com/kineticdata/kinetic-sdk-rb/tree/5.0.3) (2020-01-17)
63
+
64
+ **Implemented enhancements:**
65
+
66
+ - Implmented task engine configuration APIs
67
+
68
+ ## [5.0.4](https://github.com/kineticdata/kinetic-sdk-rb/tree/5.0.4) (2020-02-12)
69
+
70
+ **Implemented enhancements:**
71
+
72
+ - Implmented platform components APIs
@@ -0,0 +1,90 @@
1
+ require "digest/md5"
2
+
3
+ module KineticSdk
4
+ class Core
5
+
6
+ # Find Task Component
7
+ #
8
+ # @param params [Hash] Query parameters that are added to the URL, such as +include+
9
+ # @param headers [Hash] hash of headers to send, default is basic authentication and accept JSON content type
10
+ # @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties
11
+ def find_task_component(params = {}, headers = default_headers)
12
+ @logger.info("Finding Task Component.")
13
+ get("#{@api_url}/platformComponents/task", params, headers)
14
+ end
15
+
16
+ # Update Task Component
17
+ #
18
+ # @param component_properties [Hash] the property values for the platform component
19
+ # - +url+ - Url to the task component
20
+ # - +secret+ - Shared secret used to encrypt traffic between core component and task component
21
+ # @param headers [Hash] hash of headers to send, default is basic authentication and accept JSON content type
22
+ # @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties
23
+ def update_task_component(component_properties, headers = default_headers)
24
+ raise StandardError.new "Task Component properties is not valid, must be a Hash." unless component_properties.is_a? Hash
25
+ @logger.info("Updating Task Platform Component")
26
+ put("#{@api_url}/platformComponents/task", component_properties, headers)
27
+ end
28
+
29
+ # Find Agent Component
30
+ #
31
+ # @param agent_slug [String] the slug of the agent to retrieve
32
+ # @param params [Hash] Query parameters that are added to the URL, such as +include+
33
+ # @param headers [Hash] hash of headers to send, default is basic authentication and accept JSON content type
34
+ # @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties
35
+ def find_agent_component(agent_slug, params = {}, headers = default_headers)
36
+ @logger.info("Finding Agent Component with slug: \"#{agent_slug}\".")
37
+ get("#{@api_url}/platformComponents/agents/#{agent_slug}", params, headers)
38
+ end
39
+
40
+ # Find Agent Components
41
+ #
42
+ # @param params [Hash] Query parameters that are added to the URL, such as +include+
43
+ # @param headers [Hash] hash of headers to send, default is basic authentication and accept JSON content type
44
+ # @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties
45
+ def find_agent_components(params = {}, headers = default_headers)
46
+ @logger.info("Finding Agent Components.")
47
+ get("#{@api_url}/platformComponents/agents", params, headers)
48
+ end
49
+
50
+ # Add Agent Component
51
+ #
52
+ # @param component_properties [Hash] the property values for the team
53
+ # - +slug+ - Slug of the agent to be added
54
+ # - +url+ - URL for the agent being added
55
+ # - +secret+ - Secret for the agent being added
56
+ # @param headers [Hash] hash of headers to send, default is basic authentication and accept JSON content type
57
+ # @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties
58
+ def add_agent_component(component_properties, headers = default_headers)
59
+ raise StandardError.new "Agent Component properties is not valid, must be a Hash." unless component_properties.is_a? Hash
60
+ @logger.info("Creating Agent Component \"#{component_properties["slug"]}\".")
61
+ post("#{@api_url}/platformComponents/agents", component_properties, headers)
62
+ end
63
+
64
+ # Update Agent Component
65
+ #
66
+ # @param agent_slug [String] the slug of the agent to update
67
+ # @param component_properties [Hash] the property values for the team
68
+ # - +slug+ - Slug of the agent to be added
69
+ # - +url+ - URL for the agent being added
70
+ # - +secret+ - Secret for the agent being added
71
+ # @param headers [Hash] hash of headers to send, default is basic authentication and accept JSON content type
72
+ # @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties
73
+ def update_agent_component(agent_slug, component_properties, headers = default_headers)
74
+ raise StandardError.new "Agent Component properties is not valid, must be a Hash." unless component_properties.is_a? Hash
75
+ @logger.info("Updating Agent Component \"#{agent_slug}\".")
76
+ put("#{@api_url}/platformComponents/agents/#{agent_slug}", component_properties, headers)
77
+ end
78
+
79
+ # Delete Agent Component
80
+ #
81
+ # @param agent_slug [String] the slug of the agent to retrieve
82
+ # @param params [Hash] Query parameters that are added to the URL, such as +include+
83
+ # @param headers [Hash] hash of headers to send, default is basic authentication and accept JSON content type
84
+ # @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties
85
+ def delete_agent_component(agent_slug, headers = default_headers)
86
+ @logger.info("Deleting Agent Component with slug: \"#{agent_slug}\".")
87
+ delete("#{@api_url}/platformComponents/agents/#{agent_slug}", headers)
88
+ end
89
+ end
90
+ 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.3"
6
+ VERSION = "5.0.4"
7
7
  end
metadata CHANGED
@@ -1,142 +1,142 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kinetic_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.3
4
+ version: 5.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kinetic Data
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-17 00:00:00.000000000 Z
11
+ date: 2020-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ name: slugify
14
15
  requirement: !ruby/object:Gem::Requirement
15
16
  requirements:
16
17
  - - '='
17
18
  - !ruby/object:Gem::Version
18
19
  version: 1.0.7
19
- name: slugify
20
- prerelease: false
21
20
  type: :runtime
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.0.7
27
27
  - !ruby/object:Gem::Dependency
28
+ name: multipart-post
28
29
  requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - '='
31
32
  - !ruby/object:Gem::Version
32
33
  version: 2.0.0
33
- name: multipart-post
34
- prerelease: false
35
34
  type: :runtime
35
+ prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
40
  version: 2.0.0
41
41
  - !ruby/object:Gem::Dependency
42
+ name: mime-types
42
43
  requirement: !ruby/object:Gem::Requirement
43
44
  requirements:
44
45
  - - '='
45
46
  - !ruby/object:Gem::Version
46
47
  version: '3.1'
47
- name: mime-types
48
- prerelease: false
49
48
  type: :runtime
49
+ prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.1'
55
55
  - !ruby/object:Gem::Dependency
56
+ name: parallel
56
57
  requirement: !ruby/object:Gem::Requirement
57
58
  requirements:
58
59
  - - '='
59
60
  - !ruby/object:Gem::Version
60
61
  version: 1.12.1
61
- name: parallel
62
- prerelease: false
63
62
  type: :runtime
63
+ prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
68
  version: 1.12.1
69
69
  - !ruby/object:Gem::Dependency
70
+ name: ruby-progressbar
70
71
  requirement: !ruby/object:Gem::Requirement
71
72
  requirements:
72
73
  - - '='
73
74
  - !ruby/object:Gem::Version
74
75
  version: 1.9.0
75
- name: ruby-progressbar
76
- prerelease: false
77
76
  type: :runtime
77
+ prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
82
  version: 1.9.0
83
83
  - !ruby/object:Gem::Dependency
84
+ name: kontena-websocket-client
84
85
  requirement: !ruby/object:Gem::Requirement
85
86
  requirements:
86
87
  - - '='
87
88
  - !ruby/object:Gem::Version
88
89
  version: 0.1.1
89
- name: kontena-websocket-client
90
- prerelease: false
91
90
  type: :development
91
+ prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
96
  version: 0.1.1
97
97
  - !ruby/object:Gem::Dependency
98
+ name: bundler
98
99
  requirement: !ruby/object:Gem::Requirement
99
100
  requirements:
100
101
  - - "~>"
101
102
  - !ruby/object:Gem::Version
102
103
  version: '1.16'
103
- name: bundler
104
- prerelease: false
105
104
  type: :development
105
+ prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '1.16'
111
111
  - !ruby/object:Gem::Dependency
112
+ name: rake
112
113
  requirement: !ruby/object:Gem::Requirement
113
114
  requirements:
114
115
  - - "~>"
115
116
  - !ruby/object:Gem::Version
116
117
  version: 12.3.0
117
- name: rake
118
- prerelease: false
119
118
  type: :development
119
+ prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: 12.3.0
125
125
  - !ruby/object:Gem::Dependency
126
+ name: yard
126
127
  requirement: !ruby/object:Gem::Requirement
127
128
  requirements:
128
129
  - - "~>"
129
130
  - !ruby/object:Gem::Version
130
131
  version: 0.9.20
131
- name: yard
132
- prerelease: false
133
132
  type: :development
133
+ prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: 0.9.20
139
- description:
139
+ description:
140
140
  email:
141
141
  - support@kineticdata.com
142
142
  executables:
@@ -355,6 +355,7 @@ files:
355
355
  - lib/kinetic_sdk/core/lib/kapp.rb
356
356
  - lib/kinetic_sdk/core/lib/meta.rb
357
357
  - lib/kinetic_sdk/core/lib/oauth.rb
358
+ - lib/kinetic_sdk/core/lib/platform_components.rb
358
359
  - lib/kinetic_sdk/core/lib/security_policy_definitions.rb
359
360
  - lib/kinetic_sdk/core/lib/space.rb
360
361
  - lib/kinetic_sdk/core/lib/submissions.rb
@@ -406,7 +407,7 @@ homepage: https://github.com/kineticdata/kinetic-sdk-rb
406
407
  licenses: []
407
408
  metadata:
408
409
  yard.run: yri
409
- post_install_message:
410
+ post_install_message:
410
411
  rdoc_options: []
411
412
  require_paths:
412
413
  - lib
@@ -421,9 +422,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
421
422
  - !ruby/object:Gem::Version
422
423
  version: '0'
423
424
  requirements: []
424
- rubyforge_project:
425
- rubygems_version: 2.6.11
426
- signing_key:
425
+ rubygems_version: 3.0.6
426
+ signing_key:
427
427
  specification_version: 4
428
428
  summary: Ruby SDK for Kinetic Data application APIs
429
429
  test_files: []