Skip to content

Commit 47b88b3

Browse files
authored
Type Converter - (SDK Automation prep) (#3252) (#3256)
* Type Converter - (SDK Automation prep) * Adding parameterized package back
1 parent 4dd244a commit 47b88b3

File tree

6 files changed

+73
-67
lines changed

6 files changed

+73
-67
lines changed

plugins/type_converter/.CHECKSUM

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"spec": "9b3995cc1e20fe466bda9bd528512033",
3-
"manifest": "2e8b974471667f94eb5421b8d41519a7",
4-
"setup": "c7e9ae4430e3328fee3eeaa96b2544c3",
2+
"spec": "357804e0f18485693cad900fc8abece4",
3+
"manifest": "12ee089548dfac153622122de88d2fc4",
4+
"setup": "83235489de4d8a70a9a16e4037bda59a",
55
"schemas": [
66
{
77
"identifier": "array_diff/schema.py",

plugins/type_converter/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.1.0
1+
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.2.5
22

33
LABEL organization=rapid7
44
LABEL sdk=python
@@ -12,7 +12,7 @@ RUN if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
1212

1313
ADD . /python/src
1414

15-
RUN python setup.py build && python setup.py install
15+
RUN pip install .
1616

1717
# User to run plugin code. The two supported users are: root, nobody
1818
USER nobody

plugins/type_converter/bin/icon_type_converter

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ from sys import argv
66

77
Name = "Type Converter"
88
Vendor = "rapid7"
9-
Version = "1.8.3"
10-
Description = "Type Converter is a utility plugin for converting data types within a Rapid7 InsightConnect workflow"
9+
Version = "1.8.4"
10+
Description = "Type Converter is a utility plugin for converting data types within a Rapid7 InsightConnect workflow. This is useful for enabling input interoperability between certain plugins"
1111

1212

1313
def main():

plugins/type_converter/help.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Description
22

3-
Type Converter is a utility plugin for converting data types within a Rapid7 InsightConnect workflow. This is useful
4-
for enabling input interoperability between certain plugins.
3+
Type Converter is a utility plugin for converting data types within a Rapid7 InsightConnect workflow. This is useful for enabling input interoperability between certain plugins
54

65
# Key Features
76

@@ -631,6 +630,7 @@ Example output:
631630

632631
# Version History
633632

633+
* 1.8.4 - Updated SDK to the latest version (6.2.5)
634634
* 1.8.3 - Initial updates for fedramp compliance | Updated SDK to the latest version
635635
* 1.8.2 - Updated error handling for string_to_int & string_to_float
636636
* 1.8.1 - Help.md input examples updated

plugins/type_converter/plugin.spec.yaml

+62-56
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,64 @@
11
plugin_spec_version: v2
22
extension: plugin
3-
products: ["insightconnect"]
3+
products: [insightconnect]
44
name: type_converter
55
title: Type Converter
6-
description: Type Converter is a utility plugin for converting data types within a Rapid7 InsightConnect workflow
7-
version: 1.8.3
6+
description: Type Converter is a utility plugin for converting data types within a
7+
Rapid7 InsightConnect workflow. This is useful for enabling input interoperability
8+
between certain plugins
9+
version: 1.8.4
810
connection_version: 1
911
vendor: rapid7
1012
support: rapid7
1113
status: []
1214
cloud_ready: true
1315
fedramp_ready: true
14-
supported_versions: ["2024-08-29"]
16+
supported_versions: ['2024-08-29']
1517
resources:
1618
vendor_url: https://www.rapid7.com/
17-
source_url: https://github.com/rapid7/insightconnect-plugins/tree/master/plugins/type_converter
19+
source_url:
20+
https://github.com/rapid7/insightconnect-plugins/tree/master/plugins/type_converter
1821
tags:
19-
- utilities
20-
- type
21-
- cast
22+
- utilities
23+
- type
24+
- cast
2225
hub_tags:
2326
use_cases: [data_utility]
2427
keywords: [utilities, type, cast, cloud_enabled]
2528
features: []
2629
sdk:
2730
type: slim
28-
version: 6.1.0
31+
version: 6.2.5
2932
user: nobody
3033
key_features:
31-
- Convert arrays, booleans, integers, numbers, objects, and strings from one type to another to easily retype any variable
34+
- Convert arrays, booleans, integers, numbers, objects, and strings from one type
35+
to another to easily retype any variable
3236
version_history:
33-
- "1.8.3 - Initial updates for fedramp compliance | Updated SDK to the latest version"
34-
- "1.8.2 - Updated error handling for string_to_int & string_to_float"
35-
- "1.8.1 - Help.md input examples updated"
36-
- "1.8.0 - New action Array Match"
37-
- "1.7.0 - New action Array Diff"
38-
- "1.6.1 - Add Cloud Enabled tag"
39-
- "1.6.0 - New action Combine Arrays"
40-
- "1.5.2 - Rewrite plugin in Python 3 | Configure as Cloud Plugin"
41-
- "1.5.1 - New spec and help.md format for the Extension Library"
42-
- "1.5.0 - New action Array to String"
43-
- "1.4.1 - Update plugin tag from `util` to `utilities` for Marketplace searchability"
44-
- "1.4.0 - New action String to Float"
45-
- "1.3.0 - New action String to List"
46-
- "1.2.2 - Regenerate with latest Go SDK to solve bug with triggers"
47-
- "1.2.0 - Support web server mode"
48-
- "1.1.0 - Add action Number->Integer, Integer->Number"
49-
- "1.0.0 - Bug fix for int->bool and bool->int"
50-
- "0.1.2 - Bug fix for string_to_object action"
51-
- "0.1.1 - Bug fix string to int with spaces"
52-
- "0.1.0 - Initial plugin"
37+
- 1.8.4 - Updated SDK to the latest version (6.2.5)
38+
- 1.8.3 - Initial updates for fedramp compliance | Updated SDK to the latest version
39+
- 1.8.2 - Updated error handling for string_to_int & string_to_float
40+
- 1.8.1 - Help.md input examples updated
41+
- 1.8.0 - New action Array Match
42+
- 1.7.0 - New action Array Diff
43+
- 1.6.1 - Add Cloud Enabled tag
44+
- 1.6.0 - New action Combine Arrays
45+
- 1.5.2 - Rewrite plugin in Python 3 | Configure as Cloud Plugin
46+
- 1.5.1 - New spec and help.md format for the Extension Library
47+
- 1.5.0 - New action Array to String
48+
- 1.4.1 - Update plugin tag from `util` to `utilities` for Marketplace searchability
49+
- 1.4.0 - New action String to Float
50+
- 1.3.0 - New action String to List
51+
- 1.2.2 - Regenerate with latest Go SDK to solve bug with triggers
52+
- 1.2.0 - Support web server mode
53+
- 1.1.0 - Add action Number->Integer, Integer->Number
54+
- 1.0.0 - Bug fix for int->bool and bool->int
55+
- 0.1.2 - Bug fix for string_to_object action
56+
- 0.1.1 - Bug fix string to int with spaces
57+
- 0.1.0 - Initial plugin
5358
links:
54-
- "[Type Converter](https://extensions.rapid7.com/extension/type-converter)"
59+
- '[Type Converter](https://extensions.rapid7.com/extension/type-converter)'
5560
references:
56-
- "[Type Converter](https://extensions.rapid7.com/extension/type-converter)"
61+
- '[Type Converter](https://extensions.rapid7.com/extension/type-converter)'
5762
actions:
5863
boolean_to_integer:
5964
title: Boolean to Integer
@@ -88,7 +93,7 @@ actions:
8893
description: Type converted input
8994
type: string
9095
required: true
91-
example: "false"
96+
example: 'false'
9297
integer_to_boolean:
9398
title: Integer to Boolean
9499
description: Converts an integer to a boolean. Non-Zero -> True, 0 -> False
@@ -122,7 +127,7 @@ actions:
122127
description: Type converted input
123128
type: string
124129
required: true
125-
example: "123"
130+
example: '123'
126131
string_to_boolean:
127132
title: String to Boolean
128133
description: Converts a string to a boolean. Case-insensitive true -> True, else
@@ -133,7 +138,7 @@ actions:
133138
description: Input variable
134139
type: string
135140
required: true
136-
example: "true"
141+
example: 'true'
137142
output:
138143
output:
139144
title: Output
@@ -150,7 +155,7 @@ actions:
150155
description: Input variable
151156
type: string
152157
required: true
153-
example: "123"
158+
example: '123'
154159
strip:
155160
title: Strip
156161
description: Strip whitespace
@@ -241,14 +246,14 @@ actions:
241246
description: Type converted input
242247
type: string
243248
required: true
244-
example: 'Rapid7 InsightConnect'
249+
example: Rapid7 InsightConnect
245250
delimiter:
246251
title: Delimiter
247252
description: Character used to split the string into slices for the list.
248253
Default is a newline, if not provided by user
249254
type: string
250255
required: false
251-
example: " "
256+
example: ' '
252257
output:
253258
output:
254259
title: Output
@@ -282,14 +287,14 @@ actions:
282287
description: Array to convert
283288
type: '[]string'
284289
required: true
285-
example: ["hello","world"]
290+
example: [hello, world]
286291
delimiter:
287292
title: Delimiter
288-
description: Characters used to join an array to a string.
289-
Default is a space, if not provided by user
293+
description: Characters used to join an array to a string. Default is a space,
294+
if not provided by user
290295
type: string
291296
required: false
292-
example: " "
297+
example: ' '
293298
output:
294299
output:
295300
title: Output
@@ -306,36 +311,36 @@ actions:
306311
description: First array
307312
type: '[]string'
308313
required: true
309-
example: ["rapid7", "insight_connect"]
314+
example: [rapid7, insight_connect]
310315
array2:
311316
title: Array2
312317
description: Second array
313318
type: '[]string'
314319
required: true
315-
example: ["rapid7", "insight_connect"]
320+
example: [rapid7, insight_connect]
316321
array3:
317322
title: Array3
318323
description: Third array
319324
type: '[]string'
320325
required: false
321-
example: ["rapid7", "insight_connect"]
326+
example: [rapid7, insight_connect]
322327
array4:
323328
title: Array4
324329
description: Fourth array
325330
type: '[]string'
326331
required: false
327-
example: ["rapid7", "insight_connect"]
332+
example: [rapid7, insight_connect]
328333
array5:
329334
title: Array5
330335
description: Fifth array
331336
type: '[]string'
332337
required: false
333-
example: ["rapid7", "insight_connect"]
338+
example: [rapid7, insight_connect]
334339
output:
335340
combined_array:
336341
title: Combined Array
337342
description: Combined array
338-
type: "[]string"
343+
type: '[]string'
339344
required: true
340345
example: '["rapid7", "insight_connect"]'
341346
array_diff:
@@ -347,18 +352,18 @@ actions:
347352
description: First array
348353
type: '[]string'
349354
required: true
350-
example: ["rapid7","insight_connect","example"]
355+
example: [rapid7, insight_connect, example]
351356
array2:
352357
title: Array2
353358
description: Second array
354359
type: '[]string'
355360
required: true
356-
example: ["rapid7","insight_connect"]
361+
example: [rapid7, insight_connect]
357362
output:
358363
difference_array:
359364
title: Difference Array
360365
description: Difference array
361-
type: "[]string"
366+
type: '[]string'
362367
required: true
363368
example: '["example"]'
364369
array_match:
@@ -370,25 +375,26 @@ actions:
370375
description: First array
371376
type: '[]string'
372377
required: true
373-
example: ["rapid7","insight_connect","example"]
378+
example: [rapid7, insight_connect, example]
374379
array2:
375380
title: Array2
376381
description: Second array
377382
type: '[]string'
378383
required: true
379-
example: ["rapid7","insight_connect"]
384+
example: [rapid7, insight_connect]
380385
deduplicates:
381386
title: Deduplicates
382-
description: Set to true to return first matches items, set to false to return all matches
387+
description: Set to true to return first matches items, set to false to return
388+
all matches
383389
type: boolean
384390
required: false
385391
default: true
386-
example: True
392+
example: true
387393
output:
388394
matches_array:
389395
title: Matches Array
390396
description: Array containing items found in both the first and second arrays
391-
type: "[]string"
397+
type: '[]string'
392398
required: true
393399
example: '["rapid7","insight_connect"]'
394400
count:

plugins/type_converter/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44

55
setup(name="type_converter-rapid7-plugin",
6-
version="1.8.3",
7-
description="Type Converter is a utility plugin for converting data types within a Rapid7 InsightConnect workflow",
6+
version="1.8.4",
7+
description="Type Converter is a utility plugin for converting data types within a Rapid7 InsightConnect workflow. This is useful for enabling input interoperability between certain plugins",
88
author="rapid7",
99
author_email="",
1010
url="",

0 commit comments

Comments
 (0)