kinetic_sdk 5.0.12 → 5.0.13

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: b48973a248ca9299a82e2f508af5fe67bea291f0b9a3b672c250fd963e96531b
4
- data.tar.gz: b2403cc106dee26a0a4f11f4bfe9be956d8ca3e7130a429285109569e4d406b0
3
+ metadata.gz: 1bd5047435e78a51884c4b0b9a9766e273637fe9e31134fda839ebd4b5c9f939
4
+ data.tar.gz: a22fb82511b3670bb86931fd0a57cea9ef91adc7ec4d0780f6f3c5f151a84eb6
5
5
  SHA512:
6
- metadata.gz: 9b511e848a0eb5ba0c452b2407edb60382ae1a1fc03ca286e88245f8bd94330b0327b503dc1c592e2eaefd2769a86df09409c42c54b4a99ed1e8be8b6cf69680
7
- data.tar.gz: df63b8db823ae2d18b427534604ec14014f8e4263a303edb38bbfe62befe8cd0ed547c9cd8e0642e9d371fd2d3ad4140ad2c5bb31d9bde0f1821c922ac3fdda7
6
+ metadata.gz: ea4237e58c4e40ee2b6c154efbec23d467a93d9ea83c0d0a798a53d987336c1fc9832ada3ea75527a74605ed36985f4e644876a345b4610cb74dd69d5574c971
7
+ data.tar.gz: b0901ed2b02c428e70eebaa6a260b16ca7f2f47aca26d020bdb79ab87de0f7e73205279a01bf9caba85b8b3f65e64662745247ae461ab29f2abddf2a91043e3d
@@ -1,68 +1,109 @@
1
1
  # Change Log
2
2
 
3
+ ## [5.0.13](https://github.com/kineticdata/kinetic-sdk-rb/releases/tag/5.0.13) (2020-09-03)
4
+
5
+ **Implemented enhancements:**
6
+
7
+ - Added missing Form Type methods.
8
+ - Deprecated some Form Type methods and replaced with simpler names.
9
+ - Removed an unnecessary logging statement when adding a team attribute.
10
+ - Removed double URL encoding when deleting a webhook from a Kapp.
11
+
3
12
  ## [5.0.12](https://github.com/kineticdata/kinetic-sdk-rb/releases/tag/5.0.12) (2020-08-27)
4
13
 
5
- Added routes for webapis.
14
+ **Implemented enhancements:**
15
+
16
+ - Implemented webapi APIs
6
17
 
7
18
  ## [5.0.11](https://github.com/kineticdata/kinetic-sdk-rb/releases/tag/5.0.11) (2020-08-24)
8
19
 
9
- Don't remove spaces in filenames when exporting items. Spaces are valid in Windows filenames.
20
+ **Implemented enhancements:**
21
+
22
+ - Allow spaces in filenames when exporting items. Spaces were removed in 5.0.10, but they are valid in Windows so allowing them if they exist.
10
23
 
11
24
  ## [5.0.10](https://github.com/kineticdata/kinetic-sdk-rb/releases/tag/5.0.10) (2020-08-24)
12
25
 
13
- Changed how filenames are stored when items are exported to be compatible with Windows.
26
+ **Implemented enhancements:**
27
+
28
+ - Changed how filenames are stored when items are exported to be compatible with Windows.
14
29
 
15
30
  ## [5.0.9](https://github.com/kineticdata/kinetic-sdk-rb/releases/tag/5.0.9) (2020-06-29)
16
31
 
17
- Bug Fixes.
32
+ **Implemented enhancements:**
33
+
34
+ - Bug fixes
18
35
 
19
36
  ## [5.0.8](https://github.com/kineticdata/kinetic-sdk-rb/releases/tag/5.0.8) (2020-06-11)
20
37
 
21
- Bug Fixes.
38
+ **Implemented enhancements:**
39
+
40
+ - Bug fixes
22
41
 
23
42
  ## [5.0.7](https://github.com/kineticdata/kinetic-sdk-rb/releases/tag/5.0.7) (2020-05-15)
24
43
 
25
- Bug Fixes.
44
+ **Implemented enhancements:**
45
+
46
+ - Bug fixes
26
47
 
27
48
  ## [5.0.6](https://github.com/kineticdata/kinetic-sdk-rb/releases/tag/5.0.6) (2020-04-24)
28
49
 
29
- Bug Fixes.
50
+ **Implemented enhancements:**
51
+
52
+ - Bug fixes
30
53
 
31
54
  ## [5.0.5](https://github.com/kineticdata/kinetic-sdk-rb/releases/tag/5.0.5) (2020-04-24)
32
55
 
33
- Bug Fixes.
56
+ **Implemented enhancements:**
57
+
58
+ - Bug fixes
59
+
60
+ ## [5.0.4](https://github.com/kineticdata/kinetic-sdk-rb/tree/5.0.4) (2020-02-12)
61
+
62
+ **Implemented enhancements:**
63
+
64
+ - Implemented platform components APIs
65
+
66
+ ## [5.0.3](https://github.com/kineticdata/kinetic-sdk-rb/tree/5.0.3) (2020-01-17)
34
67
 
35
- ## [5.0.4](https://github.com/kineticdata/kinetic-sdk-rb/releases/tag/5.0.4) (2020-02-12)
68
+ **Implemented enhancements:**
36
69
 
37
- Bug Fixes.
70
+ - Implemented task engine configuration APIs
38
71
 
39
- ## [5.0.3](https://github.com/kineticdata/kinetic-sdk-rb/releases/tag/5.0.3) (2020-01-16)
72
+ ## [5.0.2](https://github.com/kineticdata/kinetic-sdk-rb/tree/5.0.2) (2020-01-10)
40
73
 
41
- Bug Fixes.
74
+ **Implemented enhancements:**
42
75
 
43
- ## [5.0.2](https://github.com/kineticdata/kinetic-sdk-rb/releases/tag/5.0.2) (2020-01-10)
76
+ - Fixed bug with jetching JWT regarding redirects
44
77
 
45
- Bug Fixes.
78
+ ## [5.0.1](https://github.com/kineticdata/kinetic-sdk-rb/tree/5.0.1) (2020-01-10)
46
79
 
47
- ## [5.0.1](https://github.com/kineticdata/kinetic-sdk-rb/releases/tag/5.0.1) (2020-01-10)
80
+ **Implemented enhancements:**
48
81
 
49
- Bug Fixes.
82
+ - Implemented Task System error API
83
+ - Fixed typo in Discussions component
50
84
 
51
- ## [5.0.0](https://github.com/kineticdata/kinetic-sdk-rb/releases/tag/5.0.0) (2019-12-19)
85
+ ## [5.0.0](https://github.com/kineticdata/kinetic-sdk-rb/tree/5.0.0) (2019-12-19)
52
86
 
53
- Bumped version to correspond with Kinetic Platform 5.0.0.
87
+ ### **1.x to 5.x Upgrade Warning**
88
+
89
+ All platform components (Core, Task, Agent, Discussions...etc) should be running a 5.x release or greater.
90
+ Unintended behavior is possible if running 5.x of the SDK against any platform component < 5.x.
54
91
 
55
92
  ## [1.0.2](https://github.com/kineticdata/kinetic-sdk-rb/releases/tag/1.0.2) (2019-12-18)
56
93
 
57
- Bug Fixes.
94
+ **Implemented enhancements:**
95
+
96
+ - Bug fixes
58
97
 
59
98
  ## [1.0.1](https://github.com/kineticdata/kinetic-sdk-rb/releases/tag/1.0.1) (2019-12-17)
60
99
 
61
- Bug Fixes.
100
+ **Implemented enhancements:**
101
+
102
+ - Bug fixes
62
103
 
63
104
  ## [1.0.0](https://github.com/kineticdata/kinetic-sdk-rb/tree/1.0.0) (2019-06-13)
64
105
 
65
- ** 0.x to 1.x Upgrade Warning **
106
+ ### **0.x to 1.x Upgrade Warning**
66
107
 
67
108
  Export methods have been updated to reflect the folder structure
68
109
  of their respective API routes.
@@ -99,34 +140,3 @@ sdk.logger.info("foo")
99
140
  - 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:
100
141
  - :gateway_retry_limit (default 5), set to -1 to disable retrying gateway errors
101
142
  - :gateway_retry_delay (default 1.0)
102
-
103
- ## [5.0.0](https://github.com/kineticdata/kinetic-sdk-rb/tree/5.0.0) (2019-12-19)
104
-
105
- ** 1.x to 5.x Upgrade Warning **
106
- All platform components (Core, Task, Agent, Discussions...etc) should be running a 5.x release or greater.
107
- Unintended behavior is possible if running 5.x of the SDK against any platform component < 5.x.
108
-
109
- ## [5.0.1](https://github.com/kineticdata/kinetic-sdk-rb/tree/5.0.1) (2020-01-10)
110
-
111
- **Implemented enhancements:**
112
-
113
- - Implemented Task System error API
114
- - Fixed typo in Discussions component
115
-
116
- ## [5.0.2](https://github.com/kineticdata/kinetic-sdk-rb/tree/5.0.2) (2020-01-10)
117
-
118
- **Implemented enhancements:**
119
-
120
- - Fixed bug with jetching JWT regarding redirects
121
-
122
- ## [5.0.3](https://github.com/kineticdata/kinetic-sdk-rb/tree/5.0.3) (2020-01-17)
123
-
124
- **Implemented enhancements:**
125
-
126
- - Implmented task engine configuration APIs
127
-
128
- ## [5.0.4](https://github.com/kineticdata/kinetic-sdk-rb/tree/5.0.4) (2020-02-12)
129
-
130
- **Implemented enhancements:**
131
-
132
- - Implmented platform components APIs
@@ -2,6 +2,7 @@ module KineticSdk
2
2
  class Core
3
3
 
4
4
  # Add a form type on a Kapp
5
+ # The method is being depreciated and replaced with add_formtype
5
6
  #
6
7
  # @param kapp_slug [String] slug of the Kapp the form type belongs to
7
8
  # @param body [Hash] form type properties
@@ -14,7 +15,30 @@ module KineticSdk
14
15
  post("#{@api_url}/kapps/#{kapp_slug}/formTypes", body, headers)
15
16
  end
16
17
 
18
+ alias :add_formtype :add_form_type_on_kapp
19
+
20
+ def add_form_type_on_kapp(kapp_slug, body, headers=default_headers)
21
+ logger.info "Deprecation Warning: add_form_type_on_kapp method will be removed in a future version. Please use #add_formtype"
22
+ add_formtype(kapp_slug, body, headers=default_headers)
23
+ end
24
+
25
+
26
+ # Update a form type on a Kapp
27
+ #
28
+ # @param kapp_slug [String] slug of the Kapp the form type belongs to
29
+ # @param name [String] name of the form type
30
+ # @param body [Hash] form type properties
31
+ # - +name+ - A descriptive name for the form type
32
+ # @param headers [Hash] hash of headers to send, default is basic authentication and accept JSON content type
33
+ # @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties
34
+ def update_formtype(kapp_slug, name, body, headers=default_headers)
35
+ raise StandardError.new "Form Type properties is not valid, must be a Hash." unless body.is_a? Hash
36
+ @logger.info("Updating Form Type \"#{body['name']}\" for \"#{kapp_slug}\" kapp")
37
+ put("#{@api_url}/kapps/#{kapp_slug}/formTypes/#{encode(name)}", body, headers)
38
+ end
39
+
17
40
  # Delete a form type on a Kapp
41
+ # The method is being depreciated and replaced with delete_formtype
18
42
  #
19
43
  # @param kapp_slug [String] slug of the Kapp the form type belongs to
20
44
  # @param name [String] name of the form type
@@ -24,19 +48,46 @@ module KineticSdk
24
48
  @logger.info("Deleting form type \"#{name}\" from \"#{kapp_slug}\" kapp")
25
49
  delete("#{@api_url}/kapps/#{kapp_slug}/formTypes/#{encode(name)}", headers)
26
50
  end
51
+
52
+ alias :delete_formtype :delete_form_type
53
+
54
+ def delete_form_type(kapp_slug, name, headers=default_headers)
55
+ logger.info "Deprecation Warning: delete_form_type method will be removed in a future version. Please use #delete_formtype"
56
+ delete_formtype(kapp_slug, name, headers=default_headers)
57
+ end
27
58
 
28
59
  # Delete all form types on a Kapp
60
+ # The method is being depreciated and replaced with delete_formtypes
29
61
  #
30
62
  # @param kapp_slug [String] slug of the Kapp the form types belongs to
31
63
  # @param headers [Hash] hash of headers to send, default is basic authentication and accept JSON content type
32
64
  # @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties
33
65
  def delete_form_types_on_kapp(kapp_slug, headers=default_headers)
34
- (find_form_types_on_kapp(kapp_slug, {}, headers).content["formTypes"] || []).each do |form_type|
35
- delete_form_type(kapp_slug, form_type['name'], headers)
66
+ (find_formtypes(kapp_slug, {}, headers).content["formTypes"] || []).each do |form_type|
67
+ delete_formtype(kapp_slug, form_type['name'], headers)
36
68
  end
37
69
  end
70
+
71
+ alias :delete_formtypes :delete_form_types_on_kapp
72
+
73
+ def delete_form_types_on_kapp(kapp_slug, headers=default_headers)
74
+ logger.info "Deprecation Warning: delete_form_types_on_kapp method will be removed in a future version. Please use #delete_formtypes"
75
+ delete_formtypes(kapp_slug, headers=default_headers)
76
+ end
77
+
78
+ # Retrieve a single form types for a Kapp
79
+ #
80
+ # @param kapp_slug [String] slug of the Kapp the form types belongs to
81
+ # @param params [Hash] Query parameters that are added to the URL, such as +include+
82
+ # @param headers [Hash] hash of headers to send, default is basic authentication and accept JSON content type
83
+ # @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties
84
+ def find_formtype(kapp_slug, name, params={}, headers=default_headers)
85
+ @logger.info("Finding the #{name}Form Type for \"#{kapp_slug}\" kapp")
86
+ get("#{@api_url}/kapps/#{kapp_slug}/formTypes/#{encode(name)}", params, headers)
87
+ end
38
88
 
39
89
  # Retrieve a list of all form types for a Kapp
90
+ # The method is being depreciated and replaced with find_formtypes
40
91
  #
41
92
  # @param kapp_slug [String] slug of the Kapp the form types belongs to
42
93
  # @param params [Hash] Query parameters that are added to the URL, such as +include+
@@ -46,6 +97,12 @@ module KineticSdk
46
97
  @logger.info("Finding Form Types for \"#{kapp_slug}\" kapp")
47
98
  get("#{@api_url}/kapps/#{kapp_slug}/formTypes", params, headers)
48
99
  end
100
+
101
+ alias :find_formtypes :find_form_types_on_kapp
49
102
 
103
+ def find_form_types_on_kapp(kapp_slug, params={}, headers=default_headers)
104
+ logger.info "Deprecation Warning: find_form_types_on_kapp method will be removed in a future version. Please use #find_formtypes"
105
+ find_formtypes(kapp_slug, params={}, headers=default_headers)
106
+ end
50
107
  end
51
108
  end
@@ -18,7 +18,6 @@ module KineticSdk
18
18
  # either add or update the attribute value
19
19
  exists = false
20
20
  attributes.each do |attribute|
21
- @logger.info("Attribute: #{attribute.inspect}")
22
21
  # if the attribute already exists, update it
23
22
  if attribute["name"] == attribute_name
24
23
  attribute["values"] = attribute_value.is_a?(Array) ? attribute_value : [ attribute_value ]
@@ -196,7 +196,7 @@ module KineticSdk
196
196
  # @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties
197
197
  def delete_webhook_on_kapp(kapp_slug, name, headers=default_headers)
198
198
  @logger.info("Deleting the #{name} webhook on the #{kapp_slug}\ kapp.")
199
- delete(URI.encode("#{@api_url}/kapps/#{kapp_slug}/webhooks/#{encode(name)}"), headers)
199
+ delete("#{@api_url}/kapps/#{kapp_slug}/webhooks/#{encode(name)}", headers)
200
200
  end
201
201
 
202
202
  # Delete a webhook on space
@@ -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.12"
6
+ VERSION = "5.0.13"
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.12
4
+ version: 5.0.13
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-08-27 00:00:00.000000000 Z
11
+ date: 2020-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement