@sw-tsdk/plugin-connector 3.14.0-next.f332e96 → 3.15.0-next.f47121c
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.
- package/README.md +18 -18
- package/lib/templates/python_310_definition_fips/template/connector/config/actions/example.yaml +40 -0
- package/lib/templates/python_310_definition_fips/template/connector/config/assets/example.yaml +27 -0
- package/lib/templates/python_310_definition_fips/template/data/asset.json +1 -0
- package/lib/templates/python_310_definition_fips/template/docs/CHANGELOG.md.t +7 -0
- package/lib/templates/python_310_definition_fips/template/docs/README.md +38 -0
- package/lib/templates/python_310_definition_fips/template/requirements.txt +0 -0
- package/lib/templates/python_310_definition_fips/template_src/connector/config/actions/example.yaml +40 -0
- package/lib/templates/python_310_definition_fips/template_src/connector/config/assets/example.yaml +27 -0
- package/lib/templates/python_310_definition_fips/template_src/connector/src/runner_override.py +11 -0
- package/lib/templates/python_310_definition_fips/template_src/data/asset.json +1 -0
- package/lib/templates/python_310_definition_fips/template_src/docs/CHANGELOG.md.t +7 -0
- package/lib/templates/python_310_definition_fips/template_src/docs/README.md +38 -0
- package/lib/templates/python_310_definition_fips/template_src/requirements.txt +0 -0
- package/lib/templates/python_311_definition_fips/template/connector/config/actions/example.yaml +40 -0
- package/lib/templates/python_311_definition_fips/template/connector/config/assets/example.yaml +27 -0
- package/lib/templates/python_311_definition_fips/template/data/asset.json +1 -0
- package/lib/templates/python_311_definition_fips/template/docs/CHANGELOG.md.t +7 -0
- package/lib/templates/python_311_definition_fips/template/docs/README.md +38 -0
- package/lib/templates/python_311_definition_fips/template/requirements.txt +0 -0
- package/lib/templates/python_311_definition_fips/template_src/connector/config/actions/example.yaml +40 -0
- package/lib/templates/python_311_definition_fips/template_src/connector/config/assets/example.yaml +27 -0
- package/lib/templates/python_311_definition_fips/template_src/connector/src/runner_override.py +11 -0
- package/lib/templates/python_311_definition_fips/template_src/data/asset.json +1 -0
- package/lib/templates/python_311_definition_fips/template_src/docs/CHANGELOG.md.t +7 -0
- package/lib/templates/python_311_definition_fips/template_src/docs/README.md +38 -0
- package/lib/templates/python_311_definition_fips/template_src/requirements.txt +0 -0
- package/lib/templates/python_312_definition_fips/template/connector/config/actions/example.yaml +40 -0
- package/lib/templates/python_312_definition_fips/template/connector/config/assets/example.yaml +27 -0
- package/lib/templates/python_312_definition_fips/template/data/asset.json +1 -0
- package/lib/templates/python_312_definition_fips/template/docs/CHANGELOG.md.t +7 -0
- package/lib/templates/python_312_definition_fips/template/docs/README.md +38 -0
- package/lib/templates/python_312_definition_fips/template/requirements.txt +0 -0
- package/lib/templates/python_312_definition_fips/template_src/connector/config/actions/example.yaml +40 -0
- package/lib/templates/python_312_definition_fips/template_src/connector/config/assets/example.yaml +27 -0
- package/lib/templates/python_312_definition_fips/template_src/connector/src/runner_override.py +11 -0
- package/lib/templates/python_312_definition_fips/template_src/data/asset.json +1 -0
- package/lib/templates/python_312_definition_fips/template_src/docs/CHANGELOG.md.t +7 -0
- package/lib/templates/python_312_definition_fips/template_src/docs/README.md +38 -0
- package/lib/templates/python_312_definition_fips/template_src/requirements.txt +0 -0
- package/lib/templates/python_39_definition_fips/template/connector/config/actions/example.yaml +40 -0
- package/lib/templates/python_39_definition_fips/template/connector/config/assets/example.yaml +27 -0
- package/lib/templates/python_39_definition_fips/template/data/asset.json +1 -0
- package/lib/templates/python_39_definition_fips/template/docs/CHANGELOG.md.t +7 -0
- package/lib/templates/python_39_definition_fips/template/docs/README.md +38 -0
- package/lib/templates/python_39_definition_fips/template/requirements.txt +0 -0
- package/lib/templates/python_39_definition_fips/template_src/connector/config/actions/example.yaml +40 -0
- package/lib/templates/python_39_definition_fips/template_src/connector/config/assets/example.yaml +27 -0
- package/lib/templates/python_39_definition_fips/template_src/connector/src/runner_override.py +11 -0
- package/lib/templates/python_39_definition_fips/template_src/data/asset.json +1 -0
- package/lib/templates/python_39_definition_fips/template_src/docs/CHANGELOG.md.t +7 -0
- package/lib/templates/python_39_definition_fips/template_src/docs/README.md +38 -0
- package/lib/templates/python_39_definition_fips/template_src/requirements.txt +0 -0
- package/oclif.manifest.json +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ $ npm install -g @sw-tsdk/plugin-connector
|
|
|
16
16
|
$ sw-tsdk-connector COMMAND
|
|
17
17
|
running command...
|
|
18
18
|
$ sw-tsdk-connector (--version)
|
|
19
|
-
@sw-tsdk/plugin-connector/3.
|
|
19
|
+
@sw-tsdk/plugin-connector/3.15.0-next.f47121c linux-x64 node-v20.19.0
|
|
20
20
|
$ sw-tsdk-connector --help [COMMAND]
|
|
21
21
|
USAGE
|
|
22
22
|
$ sw-tsdk-connector COMMAND
|
|
@@ -61,7 +61,7 @@ DESCRIPTION
|
|
|
61
61
|
Update a connector action.
|
|
62
62
|
```
|
|
63
63
|
|
|
64
|
-
_See code: [lib/commands/action/add.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
64
|
+
_See code: [lib/commands/action/add.js](https://github.com/swimlane/turbine-sdk/blob/v3.15.0-next.f47121c/lib/commands/action/add.js)_
|
|
65
65
|
|
|
66
66
|
## `sw-tsdk-connector action:generate:data`
|
|
67
67
|
|
|
@@ -86,7 +86,7 @@ DESCRIPTION
|
|
|
86
86
|
Use to test a task in an integration
|
|
87
87
|
```
|
|
88
88
|
|
|
89
|
-
_See code: [lib/commands/action/generate/data.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
89
|
+
_See code: [lib/commands/action/generate/data.js](https://github.com/swimlane/turbine-sdk/blob/v3.15.0-next.f47121c/lib/commands/action/generate/data.js)_
|
|
90
90
|
|
|
91
91
|
## `sw-tsdk-connector action:generate:input`
|
|
92
92
|
|
|
@@ -111,7 +111,7 @@ DESCRIPTION
|
|
|
111
111
|
Update action input schema.
|
|
112
112
|
```
|
|
113
113
|
|
|
114
|
-
_See code: [lib/commands/action/generate/input.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
114
|
+
_See code: [lib/commands/action/generate/input.js](https://github.com/swimlane/turbine-sdk/blob/v3.15.0-next.f47121c/lib/commands/action/generate/input.js)_
|
|
115
115
|
|
|
116
116
|
## `sw-tsdk-connector action:generate:output`
|
|
117
117
|
|
|
@@ -135,7 +135,7 @@ DESCRIPTION
|
|
|
135
135
|
Update a connector action.
|
|
136
136
|
```
|
|
137
137
|
|
|
138
|
-
_See code: [lib/commands/action/generate/output.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
138
|
+
_See code: [lib/commands/action/generate/output.js](https://github.com/swimlane/turbine-sdk/blob/v3.15.0-next.f47121c/lib/commands/action/generate/output.js)_
|
|
139
139
|
|
|
140
140
|
## `sw-tsdk-connector action:run:local`
|
|
141
141
|
|
|
@@ -164,7 +164,7 @@ DESCRIPTION
|
|
|
164
164
|
Runs a connector action. (Defaults to current image version in local repository).
|
|
165
165
|
```
|
|
166
166
|
|
|
167
|
-
_See code: [lib/commands/action/run/local.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
167
|
+
_See code: [lib/commands/action/run/local.js](https://github.com/swimlane/turbine-sdk/blob/v3.15.0-next.f47121c/lib/commands/action/run/local.js)_
|
|
168
168
|
|
|
169
169
|
## `sw-tsdk-connector asset:add`
|
|
170
170
|
|
|
@@ -185,7 +185,7 @@ DESCRIPTION
|
|
|
185
185
|
Update a connector action.
|
|
186
186
|
```
|
|
187
187
|
|
|
188
|
-
_See code: [lib/commands/asset/add.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
188
|
+
_See code: [lib/commands/asset/add.js](https://github.com/swimlane/turbine-sdk/blob/v3.15.0-next.f47121c/lib/commands/asset/add.js)_
|
|
189
189
|
|
|
190
190
|
## `sw-tsdk-connector connector:build`
|
|
191
191
|
|
|
@@ -218,7 +218,7 @@ DESCRIPTION
|
|
|
218
218
|
Builds a local docker image of the connector.
|
|
219
219
|
```
|
|
220
220
|
|
|
221
|
-
_See code: [lib/commands/connector/build.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
221
|
+
_See code: [lib/commands/connector/build.js](https://github.com/swimlane/turbine-sdk/blob/v3.15.0-next.f47121c/lib/commands/connector/build.js)_
|
|
222
222
|
|
|
223
223
|
## `sw-tsdk-connector connector:create`
|
|
224
224
|
|
|
@@ -255,7 +255,7 @@ DESCRIPTION
|
|
|
255
255
|
Scaffold a new connector
|
|
256
256
|
```
|
|
257
257
|
|
|
258
|
-
_See code: [lib/commands/connector/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
258
|
+
_See code: [lib/commands/connector/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.15.0-next.f47121c/lib/commands/connector/create.js)_
|
|
259
259
|
|
|
260
260
|
## `sw-tsdk-connector connector:create:openapi`
|
|
261
261
|
|
|
@@ -284,7 +284,7 @@ DESCRIPTION
|
|
|
284
284
|
Scaffold a new connector
|
|
285
285
|
```
|
|
286
286
|
|
|
287
|
-
_See code: [lib/commands/connector/create/openapi.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
287
|
+
_See code: [lib/commands/connector/create/openapi.js](https://github.com/swimlane/turbine-sdk/blob/v3.15.0-next.f47121c/lib/commands/connector/create/openapi.js)_
|
|
288
288
|
|
|
289
289
|
## `sw-tsdk-connector connector:create:source`
|
|
290
290
|
|
|
@@ -302,7 +302,7 @@ DESCRIPTION
|
|
|
302
302
|
Generates 11x source from 10x
|
|
303
303
|
```
|
|
304
304
|
|
|
305
|
-
_See code: [lib/commands/connector/create/source.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
305
|
+
_See code: [lib/commands/connector/create/source.js](https://github.com/swimlane/turbine-sdk/blob/v3.15.0-next.f47121c/lib/commands/connector/create/source.js)_
|
|
306
306
|
|
|
307
307
|
## `sw-tsdk-connector connector:lint`
|
|
308
308
|
|
|
@@ -325,7 +325,7 @@ DESCRIPTION
|
|
|
325
325
|
Use to lint the connector
|
|
326
326
|
```
|
|
327
327
|
|
|
328
|
-
_See code: [lib/commands/connector/lint.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
328
|
+
_See code: [lib/commands/connector/lint.js](https://github.com/swimlane/turbine-sdk/blob/v3.15.0-next.f47121c/lib/commands/connector/lint.js)_
|
|
329
329
|
|
|
330
330
|
## `sw-tsdk-connector connector:logo`
|
|
331
331
|
|
|
@@ -344,7 +344,7 @@ DESCRIPTION
|
|
|
344
344
|
Update a connector.
|
|
345
345
|
```
|
|
346
346
|
|
|
347
|
-
_See code: [lib/commands/connector/logo.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
347
|
+
_See code: [lib/commands/connector/logo.js](https://github.com/swimlane/turbine-sdk/blob/v3.15.0-next.f47121c/lib/commands/connector/logo.js)_
|
|
348
348
|
|
|
349
349
|
## `sw-tsdk-connector connector:sign`
|
|
350
350
|
|
|
@@ -369,7 +369,7 @@ DESCRIPTION
|
|
|
369
369
|
Builds a local docker image of the connector.
|
|
370
370
|
```
|
|
371
371
|
|
|
372
|
-
_See code: [lib/commands/connector/sign.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
372
|
+
_See code: [lib/commands/connector/sign.js](https://github.com/swimlane/turbine-sdk/blob/v3.15.0-next.f47121c/lib/commands/connector/sign.js)_
|
|
373
373
|
|
|
374
374
|
## `sw-tsdk-connector connector:update`
|
|
375
375
|
|
|
@@ -389,7 +389,7 @@ DESCRIPTION
|
|
|
389
389
|
Update a connector.
|
|
390
390
|
```
|
|
391
391
|
|
|
392
|
-
_See code: [lib/commands/connector/update.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
392
|
+
_See code: [lib/commands/connector/update.js](https://github.com/swimlane/turbine-sdk/blob/v3.15.0-next.f47121c/lib/commands/connector/update.js)_
|
|
393
393
|
|
|
394
394
|
## `sw-tsdk-connector connector:validate`
|
|
395
395
|
|
|
@@ -412,7 +412,7 @@ DESCRIPTION
|
|
|
412
412
|
Use to validate an integration
|
|
413
413
|
```
|
|
414
414
|
|
|
415
|
-
_See code: [lib/commands/connector/validate.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
415
|
+
_See code: [lib/commands/connector/validate.js](https://github.com/swimlane/turbine-sdk/blob/v3.15.0-next.f47121c/lib/commands/connector/validate.js)_
|
|
416
416
|
|
|
417
417
|
## `sw-tsdk-connector migrator:convert`
|
|
418
418
|
|
|
@@ -438,7 +438,7 @@ DESCRIPTION
|
|
|
438
438
|
Convert scripts and forked plugins from Swimlane V10x to connectors.
|
|
439
439
|
```
|
|
440
440
|
|
|
441
|
-
_See code: [lib/commands/migrator/convert.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
441
|
+
_See code: [lib/commands/migrator/convert.js](https://github.com/swimlane/turbine-sdk/blob/v3.15.0-next.f47121c/lib/commands/migrator/convert.js)_
|
|
442
442
|
|
|
443
443
|
## `sw-tsdk-connector migrator:export`
|
|
444
444
|
|
|
@@ -459,5 +459,5 @@ DESCRIPTION
|
|
|
459
459
|
Use to export python scripts from a Swimlane instance
|
|
460
460
|
```
|
|
461
461
|
|
|
462
|
-
_See code: [lib/commands/migrator/export.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
462
|
+
_See code: [lib/commands/migrator/export.js](https://github.com/swimlane/turbine-sdk/blob/v3.15.0-next.f47121c/lib/commands/migrator/export.js)_
|
|
463
463
|
<!-- commandsstop -->
|
package/lib/templates/python_310_definition_fips/template/connector/config/actions/example.yaml
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# THIS IS AN EXAMPLE, PLEASE USE THE SDK TO CREATE A NEW ACTION and DELETE
|
|
2
|
+
name: action_name
|
|
3
|
+
schema: action/1
|
|
4
|
+
title: ''
|
|
5
|
+
description: ''
|
|
6
|
+
inputs: # Use the SDK to autogenerate the inputs, can be 'object' or 'array' type.
|
|
7
|
+
type: object
|
|
8
|
+
properties: # the following are used for definition runner.
|
|
9
|
+
path_parameters: # remove if path parameters are not needed.
|
|
10
|
+
type: object
|
|
11
|
+
description: Path Parameters
|
|
12
|
+
properties:
|
|
13
|
+
required:
|
|
14
|
+
parameters:
|
|
15
|
+
type: object
|
|
16
|
+
description: URL Query Parameters
|
|
17
|
+
properties:
|
|
18
|
+
required:
|
|
19
|
+
json_body: # remove if no json_body is needed.
|
|
20
|
+
type: object
|
|
21
|
+
description: Body
|
|
22
|
+
properties:
|
|
23
|
+
required:
|
|
24
|
+
data_body: # remove if no data_body is needed.
|
|
25
|
+
type: object
|
|
26
|
+
description: Body
|
|
27
|
+
properties:
|
|
28
|
+
required:
|
|
29
|
+
headers: # remove if no custom headers are needed.
|
|
30
|
+
type: object
|
|
31
|
+
description: Body
|
|
32
|
+
properties:
|
|
33
|
+
required:
|
|
34
|
+
output: # use the SDK to autogenerate the output schema. This can be 'object' or 'array' type.
|
|
35
|
+
type: object
|
|
36
|
+
properties:
|
|
37
|
+
additionalProperties: true
|
|
38
|
+
meta:
|
|
39
|
+
endpoint: turbine-api/v3/turbine # full path to endpoint after host.
|
|
40
|
+
method: GET
|
package/lib/templates/python_310_definition_fips/template/connector/config/assets/example.yaml
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# THIS IS AN EXAMPLE, PLEASE USE THE SDK TO CREATE A NEW ASSET and DELETE
|
|
2
|
+
schema: asset/1
|
|
3
|
+
name: asset
|
|
4
|
+
title: Virus Total API Key Authentication
|
|
5
|
+
description: ''
|
|
6
|
+
inputs:
|
|
7
|
+
type: object
|
|
8
|
+
properties:
|
|
9
|
+
url:
|
|
10
|
+
type: string
|
|
11
|
+
default: https://www.swimlane.com # add the default if cloud.
|
|
12
|
+
x-apikey:
|
|
13
|
+
type: string
|
|
14
|
+
verify_ssl:
|
|
15
|
+
type: boolean
|
|
16
|
+
http_proxy:
|
|
17
|
+
type: string
|
|
18
|
+
default: https://www.proxy.com
|
|
19
|
+
required:
|
|
20
|
+
- url
|
|
21
|
+
- x-apikey # example
|
|
22
|
+
meta:
|
|
23
|
+
asset_url_key: url
|
|
24
|
+
security: # example of header auth. All security objects must follow OpenAPI spec auth.
|
|
25
|
+
type: apiKey
|
|
26
|
+
name: x-apikey # example
|
|
27
|
+
in: header
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
## Overview
|
|
2
|
+
|
|
3
|
+
A brief description goes here. Be sure to provide an overview of what the plugin does. Include description of the
|
|
4
|
+
product being integrated, plus use cases/value prop of the Swimlane integration.
|
|
5
|
+
|
|
6
|
+
## Prerequisites
|
|
7
|
+
|
|
8
|
+
Prerequisites, everything outside of the plugin itself. This should include info on how to
|
|
9
|
+
configure the device (API Key, Perms, ect)
|
|
10
|
+
|
|
11
|
+
## Capabilities
|
|
12
|
+
|
|
13
|
+
This Connector provides the following capabilities:
|
|
14
|
+
|
|
15
|
+
* Capabilities
|
|
16
|
+
* Go
|
|
17
|
+
* Here
|
|
18
|
+
* e.g. Manage Firewall Policies instead of listing each individual tasks
|
|
19
|
+
|
|
20
|
+
### Limitations
|
|
21
|
+
|
|
22
|
+
Include information about known limitations here, including supported or minimum versions, especially
|
|
23
|
+
known unsupported versions.
|
|
24
|
+
|
|
25
|
+
## Asset Setup
|
|
26
|
+
|
|
27
|
+
The content here should discuss asset setup in a conversational manner. Be sure to include any known login
|
|
28
|
+
and test connection errors.
|
|
29
|
+
|
|
30
|
+
## Tasks Setup
|
|
31
|
+
Special task setup as needed depending on plugin, exclude if empty.
|
|
32
|
+
|
|
33
|
+
Known available allowed input options from enum type selection
|
|
34
|
+
|
|
35
|
+
## Notes
|
|
36
|
+
|
|
37
|
+
* Any other notes not fitting other sections go here.
|
|
38
|
+
* Any reference URLs to external docs or other resources
|
|
File without changes
|
package/lib/templates/python_310_definition_fips/template_src/connector/config/actions/example.yaml
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# THIS IS AN EXAMPLE, PLEASE USE THE SDK TO CREATE A NEW ACTION and DELETE
|
|
2
|
+
name: action_name
|
|
3
|
+
schema: action/1
|
|
4
|
+
title: ''
|
|
5
|
+
description: ''
|
|
6
|
+
inputs: # Use the SDK to autogenerate the inputs, can be 'object' or 'array' type.
|
|
7
|
+
type: object
|
|
8
|
+
properties: # the following are used for definition runner.
|
|
9
|
+
path_parameters: # remove if path parameters are not needed.
|
|
10
|
+
type: object
|
|
11
|
+
description: Path Parameters
|
|
12
|
+
properties:
|
|
13
|
+
required:
|
|
14
|
+
parameters:
|
|
15
|
+
type: object
|
|
16
|
+
description: URL Query Parameters
|
|
17
|
+
properties:
|
|
18
|
+
required:
|
|
19
|
+
json_body: # remove if no json_body is needed.
|
|
20
|
+
type: object
|
|
21
|
+
description: Body
|
|
22
|
+
properties:
|
|
23
|
+
required:
|
|
24
|
+
data_body: # remove if no data_body is needed.
|
|
25
|
+
type: object
|
|
26
|
+
description: Body
|
|
27
|
+
properties:
|
|
28
|
+
required:
|
|
29
|
+
headers: # remove if no custom headers are needed.
|
|
30
|
+
type: object
|
|
31
|
+
description: Body
|
|
32
|
+
properties:
|
|
33
|
+
required:
|
|
34
|
+
output: # use the SDK to autogenerate the output schema. This can be 'object' or 'array' type.
|
|
35
|
+
type: object
|
|
36
|
+
properties:
|
|
37
|
+
additionalProperties: true
|
|
38
|
+
meta:
|
|
39
|
+
endpoint: turbine-api/v3/turbine # full path to endpoint after host.
|
|
40
|
+
method: GET
|
package/lib/templates/python_310_definition_fips/template_src/connector/config/assets/example.yaml
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# THIS IS AN EXAMPLE, PLEASE USE THE SDK TO CREATE A NEW ASSET and DELETE
|
|
2
|
+
schema: asset/1
|
|
3
|
+
name: asset
|
|
4
|
+
title: Virus Total API Key Authentication
|
|
5
|
+
description: ''
|
|
6
|
+
inputs:
|
|
7
|
+
type: object
|
|
8
|
+
properties:
|
|
9
|
+
url:
|
|
10
|
+
type: string
|
|
11
|
+
default: https://www.swimlane.com # add the default if cloud.
|
|
12
|
+
x-apikey:
|
|
13
|
+
type: string
|
|
14
|
+
verify_ssl:
|
|
15
|
+
type: boolean
|
|
16
|
+
http_proxy:
|
|
17
|
+
type: string
|
|
18
|
+
default: https://www.proxy.com
|
|
19
|
+
required:
|
|
20
|
+
- url
|
|
21
|
+
- x-apikey # example
|
|
22
|
+
meta:
|
|
23
|
+
asset_url_key: url
|
|
24
|
+
security: # example of header auth. All security objects must follow OpenAPI spec auth.
|
|
25
|
+
type: apiKey
|
|
26
|
+
name: x-apikey # example
|
|
27
|
+
in: header
|
package/lib/templates/python_310_definition_fips/template_src/connector/src/runner_override.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from connector_definition_runner import Runner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class RunnerOverride(Runner):
|
|
5
|
+
|
|
6
|
+
def __init__(self, asset, asset_schema, http_proxy):
|
|
7
|
+
# Initialise asset and proxies
|
|
8
|
+
super().__init__(asset, asset_schema, http_proxy)
|
|
9
|
+
|
|
10
|
+
def run(self, inputs, action_schema):
|
|
11
|
+
return super().run(inputs, action_schema)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
## Overview
|
|
2
|
+
|
|
3
|
+
A brief description goes here. Be sure to provide an overview of what the plugin does. Include description of the
|
|
4
|
+
product being integrated, plus use cases/value prop of the Swimlane integration.
|
|
5
|
+
|
|
6
|
+
## Prerequisites
|
|
7
|
+
|
|
8
|
+
Prerequisites, everything outside of the plugin itself. This should include info on how to
|
|
9
|
+
configure the device (API Key, Perms, ect)
|
|
10
|
+
|
|
11
|
+
## Capabilities
|
|
12
|
+
|
|
13
|
+
This Connector provides the following capabilities:
|
|
14
|
+
|
|
15
|
+
* Capabilities
|
|
16
|
+
* Go
|
|
17
|
+
* Here
|
|
18
|
+
* e.g. Manage Firewall Policies instead of listing each individual tasks
|
|
19
|
+
|
|
20
|
+
### Limitations
|
|
21
|
+
|
|
22
|
+
Include information about known limitations here, including supported or minimum versions, especially
|
|
23
|
+
known unsupported versions.
|
|
24
|
+
|
|
25
|
+
## Asset Setup
|
|
26
|
+
|
|
27
|
+
The content here should discuss asset setup in a conversational manner. Be sure to include any known login
|
|
28
|
+
and test connection errors.
|
|
29
|
+
|
|
30
|
+
## Tasks Setup
|
|
31
|
+
Special task setup as needed depending on plugin, exclude if empty.
|
|
32
|
+
|
|
33
|
+
Known available allowed input options from enum type selection
|
|
34
|
+
|
|
35
|
+
## Notes
|
|
36
|
+
|
|
37
|
+
* Any other notes not fitting other sections go here.
|
|
38
|
+
* Any reference URLs to external docs or other resources
|
|
File without changes
|
package/lib/templates/python_311_definition_fips/template/connector/config/actions/example.yaml
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# THIS IS AN EXAMPLE, PLEASE USE THE SDK TO CREATE A NEW ACTION and DELETE
|
|
2
|
+
name: action_name
|
|
3
|
+
schema: action/1
|
|
4
|
+
title: ''
|
|
5
|
+
description: ''
|
|
6
|
+
inputs: # Use the SDK to autogenerate the inputs, can be 'object' or 'array' type.
|
|
7
|
+
type: object
|
|
8
|
+
properties: # the following are used for definition runner.
|
|
9
|
+
path_parameters: # remove if path parameters are not needed.
|
|
10
|
+
type: object
|
|
11
|
+
description: Path Parameters
|
|
12
|
+
properties:
|
|
13
|
+
required:
|
|
14
|
+
parameters:
|
|
15
|
+
type: object
|
|
16
|
+
description: URL Query Parameters
|
|
17
|
+
properties:
|
|
18
|
+
required:
|
|
19
|
+
json_body: # remove if no json_body is needed.
|
|
20
|
+
type: object
|
|
21
|
+
description: Body
|
|
22
|
+
properties:
|
|
23
|
+
required:
|
|
24
|
+
data_body: # remove if no data_body is needed.
|
|
25
|
+
type: object
|
|
26
|
+
description: Body
|
|
27
|
+
properties:
|
|
28
|
+
required:
|
|
29
|
+
headers: # remove if no custom headers are needed.
|
|
30
|
+
type: object
|
|
31
|
+
description: Body
|
|
32
|
+
properties:
|
|
33
|
+
required:
|
|
34
|
+
output: # use the SDK to autogenerate the output schema. This can be 'object' or 'array' type.
|
|
35
|
+
type: object
|
|
36
|
+
properties:
|
|
37
|
+
additionalProperties: true
|
|
38
|
+
meta:
|
|
39
|
+
endpoint: turbine-api/v3/turbine # full path to endpoint after host.
|
|
40
|
+
method: GET
|
package/lib/templates/python_311_definition_fips/template/connector/config/assets/example.yaml
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# THIS IS AN EXAMPLE, PLEASE USE THE SDK TO CREATE A NEW ASSET and DELETE
|
|
2
|
+
schema: asset/1
|
|
3
|
+
name: asset
|
|
4
|
+
title: Virus Total API Key Authentication
|
|
5
|
+
description: ''
|
|
6
|
+
inputs:
|
|
7
|
+
type: object
|
|
8
|
+
properties:
|
|
9
|
+
url:
|
|
10
|
+
type: string
|
|
11
|
+
default: https://www.swimlane.com # add the default if cloud.
|
|
12
|
+
x-apikey:
|
|
13
|
+
type: string
|
|
14
|
+
verify_ssl:
|
|
15
|
+
type: boolean
|
|
16
|
+
http_proxy:
|
|
17
|
+
type: string
|
|
18
|
+
default: https://www.proxy.com
|
|
19
|
+
required:
|
|
20
|
+
- url
|
|
21
|
+
- x-apikey # example
|
|
22
|
+
meta:
|
|
23
|
+
asset_url_key: url
|
|
24
|
+
security: # example of header auth. All security objects must follow OpenAPI spec auth.
|
|
25
|
+
type: apiKey
|
|
26
|
+
name: x-apikey # example
|
|
27
|
+
in: header
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
## Overview
|
|
2
|
+
|
|
3
|
+
A brief description goes here. Be sure to provide an overview of what the plugin does. Include description of the
|
|
4
|
+
product being integrated, plus use cases/value prop of the Swimlane integration.
|
|
5
|
+
|
|
6
|
+
## Prerequisites
|
|
7
|
+
|
|
8
|
+
Prerequisites, everything outside of the plugin itself. This should include info on how to
|
|
9
|
+
configure the device (API Key, Perms, ect)
|
|
10
|
+
|
|
11
|
+
## Capabilities
|
|
12
|
+
|
|
13
|
+
This Connector provides the following capabilities:
|
|
14
|
+
|
|
15
|
+
* Capabilities
|
|
16
|
+
* Go
|
|
17
|
+
* Here
|
|
18
|
+
* e.g. Manage Firewall Policies instead of listing each individual tasks
|
|
19
|
+
|
|
20
|
+
### Limitations
|
|
21
|
+
|
|
22
|
+
Include information about known limitations here, including supported or minimum versions, especially
|
|
23
|
+
known unsupported versions.
|
|
24
|
+
|
|
25
|
+
## Asset Setup
|
|
26
|
+
|
|
27
|
+
The content here should discuss asset setup in a conversational manner. Be sure to include any known login
|
|
28
|
+
and test connection errors.
|
|
29
|
+
|
|
30
|
+
## Tasks Setup
|
|
31
|
+
Special task setup as needed depending on plugin, exclude if empty.
|
|
32
|
+
|
|
33
|
+
Known available allowed input options from enum type selection
|
|
34
|
+
|
|
35
|
+
## Notes
|
|
36
|
+
|
|
37
|
+
* Any other notes not fitting other sections go here.
|
|
38
|
+
* Any reference URLs to external docs or other resources
|
|
File without changes
|
package/lib/templates/python_311_definition_fips/template_src/connector/config/actions/example.yaml
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# THIS IS AN EXAMPLE, PLEASE USE THE SDK TO CREATE A NEW ACTION and DELETE
|
|
2
|
+
name: action_name
|
|
3
|
+
schema: action/1
|
|
4
|
+
title: ''
|
|
5
|
+
description: ''
|
|
6
|
+
inputs: # Use the SDK to autogenerate the inputs, can be 'object' or 'array' type.
|
|
7
|
+
type: object
|
|
8
|
+
properties: # the following are used for definition runner.
|
|
9
|
+
path_parameters: # remove if path parameters are not needed.
|
|
10
|
+
type: object
|
|
11
|
+
description: Path Parameters
|
|
12
|
+
properties:
|
|
13
|
+
required:
|
|
14
|
+
parameters:
|
|
15
|
+
type: object
|
|
16
|
+
description: URL Query Parameters
|
|
17
|
+
properties:
|
|
18
|
+
required:
|
|
19
|
+
json_body: # remove if no json_body is needed.
|
|
20
|
+
type: object
|
|
21
|
+
description: Body
|
|
22
|
+
properties:
|
|
23
|
+
required:
|
|
24
|
+
data_body: # remove if no data_body is needed.
|
|
25
|
+
type: object
|
|
26
|
+
description: Body
|
|
27
|
+
properties:
|
|
28
|
+
required:
|
|
29
|
+
headers: # remove if no custom headers are needed.
|
|
30
|
+
type: object
|
|
31
|
+
description: Body
|
|
32
|
+
properties:
|
|
33
|
+
required:
|
|
34
|
+
output: # use the SDK to autogenerate the output schema. This can be 'object' or 'array' type.
|
|
35
|
+
type: object
|
|
36
|
+
properties:
|
|
37
|
+
additionalProperties: true
|
|
38
|
+
meta:
|
|
39
|
+
endpoint: turbine-api/v3/turbine # full path to endpoint after host.
|
|
40
|
+
method: GET
|
package/lib/templates/python_311_definition_fips/template_src/connector/config/assets/example.yaml
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# THIS IS AN EXAMPLE, PLEASE USE THE SDK TO CREATE A NEW ASSET and DELETE
|
|
2
|
+
schema: asset/1
|
|
3
|
+
name: asset
|
|
4
|
+
title: Virus Total API Key Authentication
|
|
5
|
+
description: ''
|
|
6
|
+
inputs:
|
|
7
|
+
type: object
|
|
8
|
+
properties:
|
|
9
|
+
url:
|
|
10
|
+
type: string
|
|
11
|
+
default: https://www.swimlane.com # add the default if cloud.
|
|
12
|
+
x-apikey:
|
|
13
|
+
type: string
|
|
14
|
+
verify_ssl:
|
|
15
|
+
type: boolean
|
|
16
|
+
http_proxy:
|
|
17
|
+
type: string
|
|
18
|
+
default: https://www.proxy.com
|
|
19
|
+
required:
|
|
20
|
+
- url
|
|
21
|
+
- x-apikey # example
|
|
22
|
+
meta:
|
|
23
|
+
asset_url_key: url
|
|
24
|
+
security: # example of header auth. All security objects must follow OpenAPI spec auth.
|
|
25
|
+
type: apiKey
|
|
26
|
+
name: x-apikey # example
|
|
27
|
+
in: header
|
package/lib/templates/python_311_definition_fips/template_src/connector/src/runner_override.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from connector_definition_runner import Runner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class RunnerOverride(Runner):
|
|
5
|
+
|
|
6
|
+
def __init__(self, asset, asset_schema, http_proxy):
|
|
7
|
+
# Initialise asset and proxies
|
|
8
|
+
super().__init__(asset, asset_schema, http_proxy)
|
|
9
|
+
|
|
10
|
+
def run(self, inputs, action_schema):
|
|
11
|
+
return super().run(inputs, action_schema)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
## Overview
|
|
2
|
+
|
|
3
|
+
A brief description goes here. Be sure to provide an overview of what the plugin does. Include description of the
|
|
4
|
+
product being integrated, plus use cases/value prop of the Swimlane integration.
|
|
5
|
+
|
|
6
|
+
## Prerequisites
|
|
7
|
+
|
|
8
|
+
Prerequisites, everything outside of the plugin itself. This should include info on how to
|
|
9
|
+
configure the device (API Key, Perms, ect)
|
|
10
|
+
|
|
11
|
+
## Capabilities
|
|
12
|
+
|
|
13
|
+
This Connector provides the following capabilities:
|
|
14
|
+
|
|
15
|
+
* Capabilities
|
|
16
|
+
* Go
|
|
17
|
+
* Here
|
|
18
|
+
* e.g. Manage Firewall Policies instead of listing each individual tasks
|
|
19
|
+
|
|
20
|
+
### Limitations
|
|
21
|
+
|
|
22
|
+
Include information about known limitations here, including supported or minimum versions, especially
|
|
23
|
+
known unsupported versions.
|
|
24
|
+
|
|
25
|
+
## Asset Setup
|
|
26
|
+
|
|
27
|
+
The content here should discuss asset setup in a conversational manner. Be sure to include any known login
|
|
28
|
+
and test connection errors.
|
|
29
|
+
|
|
30
|
+
## Tasks Setup
|
|
31
|
+
Special task setup as needed depending on plugin, exclude if empty.
|
|
32
|
+
|
|
33
|
+
Known available allowed input options from enum type selection
|
|
34
|
+
|
|
35
|
+
## Notes
|
|
36
|
+
|
|
37
|
+
* Any other notes not fitting other sections go here.
|
|
38
|
+
* Any reference URLs to external docs or other resources
|
|
File without changes
|
package/lib/templates/python_312_definition_fips/template/connector/config/actions/example.yaml
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# THIS IS AN EXAMPLE, PLEASE USE THE SDK TO CREATE A NEW ACTION and DELETE
|
|
2
|
+
name: action_name
|
|
3
|
+
schema: action/1
|
|
4
|
+
title: ''
|
|
5
|
+
description: ''
|
|
6
|
+
inputs: # Use the SDK to autogenerate the inputs, can be 'object' or 'array' type.
|
|
7
|
+
type: object
|
|
8
|
+
properties: # the following are used for definition runner.
|
|
9
|
+
path_parameters: # remove if path parameters are not needed.
|
|
10
|
+
type: object
|
|
11
|
+
description: Path Parameters
|
|
12
|
+
properties:
|
|
13
|
+
required:
|
|
14
|
+
parameters:
|
|
15
|
+
type: object
|
|
16
|
+
description: URL Query Parameters
|
|
17
|
+
properties:
|
|
18
|
+
required:
|
|
19
|
+
json_body: # remove if no json_body is needed.
|
|
20
|
+
type: object
|
|
21
|
+
description: Body
|
|
22
|
+
properties:
|
|
23
|
+
required:
|
|
24
|
+
data_body: # remove if no data_body is needed.
|
|
25
|
+
type: object
|
|
26
|
+
description: Body
|
|
27
|
+
properties:
|
|
28
|
+
required:
|
|
29
|
+
headers: # remove if no custom headers are needed.
|
|
30
|
+
type: object
|
|
31
|
+
description: Body
|
|
32
|
+
properties:
|
|
33
|
+
required:
|
|
34
|
+
output: # use the SDK to autogenerate the output schema. This can be 'object' or 'array' type.
|
|
35
|
+
type: object
|
|
36
|
+
properties:
|
|
37
|
+
additionalProperties: true
|
|
38
|
+
meta:
|
|
39
|
+
endpoint: turbine-api/v3/turbine # full path to endpoint after host.
|
|
40
|
+
method: GET
|
package/lib/templates/python_312_definition_fips/template/connector/config/assets/example.yaml
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# THIS IS AN EXAMPLE, PLEASE USE THE SDK TO CREATE A NEW ASSET and DELETE
|
|
2
|
+
schema: asset/1
|
|
3
|
+
name: asset
|
|
4
|
+
title: Virus Total API Key Authentication
|
|
5
|
+
description: ''
|
|
6
|
+
inputs:
|
|
7
|
+
type: object
|
|
8
|
+
properties:
|
|
9
|
+
url:
|
|
10
|
+
type: string
|
|
11
|
+
default: https://www.swimlane.com # add the default if cloud.
|
|
12
|
+
x-apikey:
|
|
13
|
+
type: string
|
|
14
|
+
verify_ssl:
|
|
15
|
+
type: boolean
|
|
16
|
+
http_proxy:
|
|
17
|
+
type: string
|
|
18
|
+
default: https://www.proxy.com
|
|
19
|
+
required:
|
|
20
|
+
- url
|
|
21
|
+
- x-apikey # example
|
|
22
|
+
meta:
|
|
23
|
+
asset_url_key: url
|
|
24
|
+
security: # example of header auth. All security objects must follow OpenAPI spec auth.
|
|
25
|
+
type: apiKey
|
|
26
|
+
name: x-apikey # example
|
|
27
|
+
in: header
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
## Overview
|
|
2
|
+
|
|
3
|
+
A brief description goes here. Be sure to provide an overview of what the plugin does. Include description of the
|
|
4
|
+
product being integrated, plus use cases/value prop of the Swimlane integration.
|
|
5
|
+
|
|
6
|
+
## Prerequisites
|
|
7
|
+
|
|
8
|
+
Prerequisites, everything outside of the plugin itself. This should include info on how to
|
|
9
|
+
configure the device (API Key, Perms, ect)
|
|
10
|
+
|
|
11
|
+
## Capabilities
|
|
12
|
+
|
|
13
|
+
This Connector provides the following capabilities:
|
|
14
|
+
|
|
15
|
+
* Capabilities
|
|
16
|
+
* Go
|
|
17
|
+
* Here
|
|
18
|
+
* e.g. Manage Firewall Policies instead of listing each individual tasks
|
|
19
|
+
|
|
20
|
+
### Limitations
|
|
21
|
+
|
|
22
|
+
Include information about known limitations here, including supported or minimum versions, especially
|
|
23
|
+
known unsupported versions.
|
|
24
|
+
|
|
25
|
+
## Asset Setup
|
|
26
|
+
|
|
27
|
+
The content here should discuss asset setup in a conversational manner. Be sure to include any known login
|
|
28
|
+
and test connection errors.
|
|
29
|
+
|
|
30
|
+
## Tasks Setup
|
|
31
|
+
Special task setup as needed depending on plugin, exclude if empty.
|
|
32
|
+
|
|
33
|
+
Known available allowed input options from enum type selection
|
|
34
|
+
|
|
35
|
+
## Notes
|
|
36
|
+
|
|
37
|
+
* Any other notes not fitting other sections go here.
|
|
38
|
+
* Any reference URLs to external docs or other resources
|
|
File without changes
|
package/lib/templates/python_312_definition_fips/template_src/connector/config/actions/example.yaml
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# THIS IS AN EXAMPLE, PLEASE USE THE SDK TO CREATE A NEW ACTION and DELETE
|
|
2
|
+
name: action_name
|
|
3
|
+
schema: action/1
|
|
4
|
+
title: ''
|
|
5
|
+
description: ''
|
|
6
|
+
inputs: # Use the SDK to autogenerate the inputs, can be 'object' or 'array' type.
|
|
7
|
+
type: object
|
|
8
|
+
properties: # the following are used for definition runner.
|
|
9
|
+
path_parameters: # remove if path parameters are not needed.
|
|
10
|
+
type: object
|
|
11
|
+
description: Path Parameters
|
|
12
|
+
properties:
|
|
13
|
+
required:
|
|
14
|
+
parameters:
|
|
15
|
+
type: object
|
|
16
|
+
description: URL Query Parameters
|
|
17
|
+
properties:
|
|
18
|
+
required:
|
|
19
|
+
json_body: # remove if no json_body is needed.
|
|
20
|
+
type: object
|
|
21
|
+
description: Body
|
|
22
|
+
properties:
|
|
23
|
+
required:
|
|
24
|
+
data_body: # remove if no data_body is needed.
|
|
25
|
+
type: object
|
|
26
|
+
description: Body
|
|
27
|
+
properties:
|
|
28
|
+
required:
|
|
29
|
+
headers: # remove if no custom headers are needed.
|
|
30
|
+
type: object
|
|
31
|
+
description: Body
|
|
32
|
+
properties:
|
|
33
|
+
required:
|
|
34
|
+
output: # use the SDK to autogenerate the output schema. This can be 'object' or 'array' type.
|
|
35
|
+
type: object
|
|
36
|
+
properties:
|
|
37
|
+
additionalProperties: true
|
|
38
|
+
meta:
|
|
39
|
+
endpoint: turbine-api/v3/turbine # full path to endpoint after host.
|
|
40
|
+
method: GET
|
package/lib/templates/python_312_definition_fips/template_src/connector/config/assets/example.yaml
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# THIS IS AN EXAMPLE, PLEASE USE THE SDK TO CREATE A NEW ASSET and DELETE
|
|
2
|
+
schema: asset/1
|
|
3
|
+
name: asset
|
|
4
|
+
title: Virus Total API Key Authentication
|
|
5
|
+
description: ''
|
|
6
|
+
inputs:
|
|
7
|
+
type: object
|
|
8
|
+
properties:
|
|
9
|
+
url:
|
|
10
|
+
type: string
|
|
11
|
+
default: https://www.swimlane.com # add the default if cloud.
|
|
12
|
+
x-apikey:
|
|
13
|
+
type: string
|
|
14
|
+
verify_ssl:
|
|
15
|
+
type: boolean
|
|
16
|
+
http_proxy:
|
|
17
|
+
type: string
|
|
18
|
+
default: https://www.proxy.com
|
|
19
|
+
required:
|
|
20
|
+
- url
|
|
21
|
+
- x-apikey # example
|
|
22
|
+
meta:
|
|
23
|
+
asset_url_key: url
|
|
24
|
+
security: # example of header auth. All security objects must follow OpenAPI spec auth.
|
|
25
|
+
type: apiKey
|
|
26
|
+
name: x-apikey # example
|
|
27
|
+
in: header
|
package/lib/templates/python_312_definition_fips/template_src/connector/src/runner_override.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from connector_definition_runner import Runner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class RunnerOverride(Runner):
|
|
5
|
+
|
|
6
|
+
def __init__(self, asset, asset_schema, http_proxy):
|
|
7
|
+
# Initialise asset and proxies
|
|
8
|
+
super().__init__(asset, asset_schema, http_proxy)
|
|
9
|
+
|
|
10
|
+
def run(self, inputs, action_schema):
|
|
11
|
+
return super().run(inputs, action_schema)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
## Overview
|
|
2
|
+
|
|
3
|
+
A brief description goes here. Be sure to provide an overview of what the plugin does. Include description of the
|
|
4
|
+
product being integrated, plus use cases/value prop of the Swimlane integration.
|
|
5
|
+
|
|
6
|
+
## Prerequisites
|
|
7
|
+
|
|
8
|
+
Prerequisites, everything outside of the plugin itself. This should include info on how to
|
|
9
|
+
configure the device (API Key, Perms, ect)
|
|
10
|
+
|
|
11
|
+
## Capabilities
|
|
12
|
+
|
|
13
|
+
This Connector provides the following capabilities:
|
|
14
|
+
|
|
15
|
+
* Capabilities
|
|
16
|
+
* Go
|
|
17
|
+
* Here
|
|
18
|
+
* e.g. Manage Firewall Policies instead of listing each individual tasks
|
|
19
|
+
|
|
20
|
+
### Limitations
|
|
21
|
+
|
|
22
|
+
Include information about known limitations here, including supported or minimum versions, especially
|
|
23
|
+
known unsupported versions.
|
|
24
|
+
|
|
25
|
+
## Asset Setup
|
|
26
|
+
|
|
27
|
+
The content here should discuss asset setup in a conversational manner. Be sure to include any known login
|
|
28
|
+
and test connection errors.
|
|
29
|
+
|
|
30
|
+
## Tasks Setup
|
|
31
|
+
Special task setup as needed depending on plugin, exclude if empty.
|
|
32
|
+
|
|
33
|
+
Known available allowed input options from enum type selection
|
|
34
|
+
|
|
35
|
+
## Notes
|
|
36
|
+
|
|
37
|
+
* Any other notes not fitting other sections go here.
|
|
38
|
+
* Any reference URLs to external docs or other resources
|
|
File without changes
|
package/lib/templates/python_39_definition_fips/template/connector/config/actions/example.yaml
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# THIS IS AN EXAMPLE, PLEASE USE THE SDK TO CREATE A NEW ACTION and DELETE
|
|
2
|
+
name: action_name
|
|
3
|
+
schema: action/1
|
|
4
|
+
title: ''
|
|
5
|
+
description: ''
|
|
6
|
+
inputs: # Use the SDK to autogenerate the inputs, can be 'object' or 'array' type.
|
|
7
|
+
type: object
|
|
8
|
+
properties: # the following are used for definition runner.
|
|
9
|
+
path_parameters: # remove if path parameters are not needed.
|
|
10
|
+
type: object
|
|
11
|
+
description: Path Parameters
|
|
12
|
+
properties:
|
|
13
|
+
required:
|
|
14
|
+
parameters:
|
|
15
|
+
type: object
|
|
16
|
+
description: URL Query Parameters
|
|
17
|
+
properties:
|
|
18
|
+
required:
|
|
19
|
+
json_body: # remove if no json_body is needed.
|
|
20
|
+
type: object
|
|
21
|
+
description: Body
|
|
22
|
+
properties:
|
|
23
|
+
required:
|
|
24
|
+
data_body: # remove if no data_body is needed.
|
|
25
|
+
type: object
|
|
26
|
+
description: Body
|
|
27
|
+
properties:
|
|
28
|
+
required:
|
|
29
|
+
headers: # remove if no custom headers are needed.
|
|
30
|
+
type: object
|
|
31
|
+
description: Body
|
|
32
|
+
properties:
|
|
33
|
+
required:
|
|
34
|
+
output: # use the SDK to autogenerate the output schema. This can be 'object' or 'array' type.
|
|
35
|
+
type: object
|
|
36
|
+
properties:
|
|
37
|
+
additionalProperties: true
|
|
38
|
+
meta:
|
|
39
|
+
endpoint: turbine-api/v3/turbine # full path to endpoint after host.
|
|
40
|
+
method: GET
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# THIS IS AN EXAMPLE, PLEASE USE THE SDK TO CREATE A NEW ASSET and DELETE
|
|
2
|
+
schema: asset/1
|
|
3
|
+
name: asset
|
|
4
|
+
title: Virus Total API Key Authentication
|
|
5
|
+
description: ''
|
|
6
|
+
inputs:
|
|
7
|
+
type: object
|
|
8
|
+
properties:
|
|
9
|
+
url:
|
|
10
|
+
type: string
|
|
11
|
+
default: https://www.swimlane.com # add the default if cloud.
|
|
12
|
+
x-apikey:
|
|
13
|
+
type: string
|
|
14
|
+
verify_ssl:
|
|
15
|
+
type: boolean
|
|
16
|
+
http_proxy:
|
|
17
|
+
type: string
|
|
18
|
+
default: https://www.proxy.com
|
|
19
|
+
required:
|
|
20
|
+
- url
|
|
21
|
+
- x-apikey # example
|
|
22
|
+
meta:
|
|
23
|
+
asset_url_key: url
|
|
24
|
+
security: # example of header auth. All security objects must follow OpenAPI spec auth.
|
|
25
|
+
type: apiKey
|
|
26
|
+
name: x-apikey # example
|
|
27
|
+
in: header
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
## Overview
|
|
2
|
+
|
|
3
|
+
A brief description goes here. Be sure to provide an overview of what the plugin does. Include description of the
|
|
4
|
+
product being integrated, plus use cases/value prop of the Swimlane integration.
|
|
5
|
+
|
|
6
|
+
## Prerequisites
|
|
7
|
+
|
|
8
|
+
Prerequisites, everything outside of the plugin itself. This should include info on how to
|
|
9
|
+
configure the device (API Key, Perms, ect)
|
|
10
|
+
|
|
11
|
+
## Capabilities
|
|
12
|
+
|
|
13
|
+
This Connector provides the following capabilities:
|
|
14
|
+
|
|
15
|
+
* Capabilities
|
|
16
|
+
* Go
|
|
17
|
+
* Here
|
|
18
|
+
* e.g. Manage Firewall Policies instead of listing each individual tasks
|
|
19
|
+
|
|
20
|
+
### Limitations
|
|
21
|
+
|
|
22
|
+
Include information about known limitations here, including supported or minimum versions, especially
|
|
23
|
+
known unsupported versions.
|
|
24
|
+
|
|
25
|
+
## Asset Setup
|
|
26
|
+
|
|
27
|
+
The content here should discuss asset setup in a conversational manner. Be sure to include any known login
|
|
28
|
+
and test connection errors.
|
|
29
|
+
|
|
30
|
+
## Tasks Setup
|
|
31
|
+
Special task setup as needed depending on plugin, exclude if empty.
|
|
32
|
+
|
|
33
|
+
Known available allowed input options from enum type selection
|
|
34
|
+
|
|
35
|
+
## Notes
|
|
36
|
+
|
|
37
|
+
* Any other notes not fitting other sections go here.
|
|
38
|
+
* Any reference URLs to external docs or other resources
|
|
File without changes
|
package/lib/templates/python_39_definition_fips/template_src/connector/config/actions/example.yaml
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# THIS IS AN EXAMPLE, PLEASE USE THE SDK TO CREATE A NEW ACTION and DELETE
|
|
2
|
+
name: action_name
|
|
3
|
+
schema: action/1
|
|
4
|
+
title: ''
|
|
5
|
+
description: ''
|
|
6
|
+
inputs: # Use the SDK to autogenerate the inputs, can be 'object' or 'array' type.
|
|
7
|
+
type: object
|
|
8
|
+
properties: # the following are used for definition runner.
|
|
9
|
+
path_parameters: # remove if path parameters are not needed.
|
|
10
|
+
type: object
|
|
11
|
+
description: Path Parameters
|
|
12
|
+
properties:
|
|
13
|
+
required:
|
|
14
|
+
parameters:
|
|
15
|
+
type: object
|
|
16
|
+
description: URL Query Parameters
|
|
17
|
+
properties:
|
|
18
|
+
required:
|
|
19
|
+
json_body: # remove if no json_body is needed.
|
|
20
|
+
type: object
|
|
21
|
+
description: Body
|
|
22
|
+
properties:
|
|
23
|
+
required:
|
|
24
|
+
data_body: # remove if no data_body is needed.
|
|
25
|
+
type: object
|
|
26
|
+
description: Body
|
|
27
|
+
properties:
|
|
28
|
+
required:
|
|
29
|
+
headers: # remove if no custom headers are needed.
|
|
30
|
+
type: object
|
|
31
|
+
description: Body
|
|
32
|
+
properties:
|
|
33
|
+
required:
|
|
34
|
+
output: # use the SDK to autogenerate the output schema. This can be 'object' or 'array' type.
|
|
35
|
+
type: object
|
|
36
|
+
properties:
|
|
37
|
+
additionalProperties: true
|
|
38
|
+
meta:
|
|
39
|
+
endpoint: turbine-api/v3/turbine # full path to endpoint after host.
|
|
40
|
+
method: GET
|
package/lib/templates/python_39_definition_fips/template_src/connector/config/assets/example.yaml
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# THIS IS AN EXAMPLE, PLEASE USE THE SDK TO CREATE A NEW ASSET and DELETE
|
|
2
|
+
schema: asset/1
|
|
3
|
+
name: asset
|
|
4
|
+
title: Virus Total API Key Authentication
|
|
5
|
+
description: ''
|
|
6
|
+
inputs:
|
|
7
|
+
type: object
|
|
8
|
+
properties:
|
|
9
|
+
url:
|
|
10
|
+
type: string
|
|
11
|
+
default: https://www.swimlane.com # add the default if cloud.
|
|
12
|
+
x-apikey:
|
|
13
|
+
type: string
|
|
14
|
+
verify_ssl:
|
|
15
|
+
type: boolean
|
|
16
|
+
http_proxy:
|
|
17
|
+
type: string
|
|
18
|
+
default: https://www.proxy.com
|
|
19
|
+
required:
|
|
20
|
+
- url
|
|
21
|
+
- x-apikey # example
|
|
22
|
+
meta:
|
|
23
|
+
asset_url_key: url
|
|
24
|
+
security: # example of header auth. All security objects must follow OpenAPI spec auth.
|
|
25
|
+
type: apiKey
|
|
26
|
+
name: x-apikey # example
|
|
27
|
+
in: header
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from connector_definition_runner import Runner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class RunnerOverride(Runner):
|
|
5
|
+
|
|
6
|
+
def __init__(self, asset, asset_schema, http_proxy):
|
|
7
|
+
# Initialise asset and proxies
|
|
8
|
+
super().__init__(asset, asset_schema, http_proxy)
|
|
9
|
+
|
|
10
|
+
def run(self, inputs, action_schema):
|
|
11
|
+
return super().run(inputs, action_schema)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
## Overview
|
|
2
|
+
|
|
3
|
+
A brief description goes here. Be sure to provide an overview of what the plugin does. Include description of the
|
|
4
|
+
product being integrated, plus use cases/value prop of the Swimlane integration.
|
|
5
|
+
|
|
6
|
+
## Prerequisites
|
|
7
|
+
|
|
8
|
+
Prerequisites, everything outside of the plugin itself. This should include info on how to
|
|
9
|
+
configure the device (API Key, Perms, ect)
|
|
10
|
+
|
|
11
|
+
## Capabilities
|
|
12
|
+
|
|
13
|
+
This Connector provides the following capabilities:
|
|
14
|
+
|
|
15
|
+
* Capabilities
|
|
16
|
+
* Go
|
|
17
|
+
* Here
|
|
18
|
+
* e.g. Manage Firewall Policies instead of listing each individual tasks
|
|
19
|
+
|
|
20
|
+
### Limitations
|
|
21
|
+
|
|
22
|
+
Include information about known limitations here, including supported or minimum versions, especially
|
|
23
|
+
known unsupported versions.
|
|
24
|
+
|
|
25
|
+
## Asset Setup
|
|
26
|
+
|
|
27
|
+
The content here should discuss asset setup in a conversational manner. Be sure to include any known login
|
|
28
|
+
and test connection errors.
|
|
29
|
+
|
|
30
|
+
## Tasks Setup
|
|
31
|
+
Special task setup as needed depending on plugin, exclude if empty.
|
|
32
|
+
|
|
33
|
+
Known available allowed input options from enum type selection
|
|
34
|
+
|
|
35
|
+
## Notes
|
|
36
|
+
|
|
37
|
+
* Any other notes not fitting other sections go here.
|
|
38
|
+
* Any reference URLs to external docs or other resources
|
|
File without changes
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@apidevtools/json-schema-ref-parser": "10.1.0",
|
|
8
8
|
"@oclif/core": "2.8.5",
|
|
9
|
-
"@sw-tsdk/common": "3.
|
|
10
|
-
"@sw-tsdk/connector": "3.
|
|
11
|
-
"@sw-tsdk/core": "3.
|
|
12
|
-
"@sw-tsdk/docker": "3.
|
|
9
|
+
"@sw-tsdk/common": "3.15.0-next.f47121c",
|
|
10
|
+
"@sw-tsdk/connector": "3.15.0-next.f47121c",
|
|
11
|
+
"@sw-tsdk/core": "3.15.0-next.f47121c",
|
|
12
|
+
"@sw-tsdk/docker": "3.15.0-next.f47121c",
|
|
13
13
|
"@swimlane/connector-interfaces": "1.11.0",
|
|
14
14
|
"@swimlane/cosign": "1.4.1",
|
|
15
15
|
"@swimlane/docker-reference": "2.0.1",
|
|
@@ -103,6 +103,6 @@
|
|
|
103
103
|
"posttest": "yarn lint",
|
|
104
104
|
"dev:setup": "yarn link"
|
|
105
105
|
},
|
|
106
|
-
"version": "3.
|
|
107
|
-
"gitHead": "
|
|
106
|
+
"version": "3.15.0-next.f47121c",
|
|
107
|
+
"gitHead": "f47121ce7d6d8735eba7d7f4a966fbfa82a0ea0d"
|
|
108
108
|
}
|