@itentialopensource/adapter-paragon_active_assurance 0.1.1

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.
Files changed (111) hide show
  1. package/.eslintignore +6 -0
  2. package/.eslintrc.js +18 -0
  3. package/.gitlab/.gitkeep +0 -0
  4. package/.gitlab/issue_templates/.gitkeep +0 -0
  5. package/.gitlab/issue_templates/Default.md +17 -0
  6. package/.gitlab/issue_templates/bugReportTemplate.md +76 -0
  7. package/.gitlab/issue_templates/featureRequestTemplate.md +14 -0
  8. package/.jshintrc +0 -0
  9. package/AUTH.md +39 -0
  10. package/BROKER.md +199 -0
  11. package/CALLS.md +866 -0
  12. package/CHANGELOG.md +9 -0
  13. package/CODE_OF_CONDUCT.md +43 -0
  14. package/CONTRIBUTING.md +172 -0
  15. package/ENHANCE.md +69 -0
  16. package/LICENSE +201 -0
  17. package/PROPERTIES.md +641 -0
  18. package/README.md +337 -0
  19. package/SUMMARY.md +9 -0
  20. package/SYSTEMINFO.md +11 -0
  21. package/TROUBLESHOOT.md +47 -0
  22. package/adapter.js +12175 -0
  23. package/adapterBase.js +1787 -0
  24. package/entities/.generic/action.json +214 -0
  25. package/entities/.generic/schema.json +28 -0
  26. package/entities/.system/action.json +50 -0
  27. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  28. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  29. package/entities/.system/schema.json +19 -0
  30. package/entities/.system/schemaTokenReq.json +53 -0
  31. package/entities/.system/schemaTokenResp.json +53 -0
  32. package/entities/Alarm/action.json +86 -0
  33. package/entities/Alarm/schema.json +132 -0
  34. package/entities/AlarmEmail/action.json +106 -0
  35. package/entities/AlarmEmail/schema.json +34 -0
  36. package/entities/AlarmTemplate/action.json +106 -0
  37. package/entities/AlarmTemplate/schema.json +34 -0
  38. package/entities/ExternalUrlShare/action.json +106 -0
  39. package/entities/ExternalUrlShare/schema.json +34 -0
  40. package/entities/IpLookupTable/action.json +106 -0
  41. package/entities/IpLookupTable/schema.json +45 -0
  42. package/entities/IptvChannel/action.json +106 -0
  43. package/entities/IptvChannel/schema.json +45 -0
  44. package/entities/Monitor/action.json +147 -0
  45. package/entities/Monitor/schema.json +102 -0
  46. package/entities/MonitorTemplate/action.json +87 -0
  47. package/entities/MonitorTemplate/schema.json +55 -0
  48. package/entities/NetworkDevice/action.json +126 -0
  49. package/entities/NetworkDevice/schema.json +46 -0
  50. package/entities/PingHost/action.json +126 -0
  51. package/entities/PingHost/schema.json +46 -0
  52. package/entities/SipAccount/action.json +106 -0
  53. package/entities/SipAccount/schema.json +34 -0
  54. package/entities/SnmpManager/action.json +106 -0
  55. package/entities/SnmpManager/schema.json +34 -0
  56. package/entities/Speedtest/action.json +46 -0
  57. package/entities/Speedtest/schema.json +31 -0
  58. package/entities/SpeedtestPublic/action.json +87 -0
  59. package/entities/SpeedtestPublic/schema.json +33 -0
  60. package/entities/SshKey/action.json +106 -0
  61. package/entities/SshKey/schema.json +45 -0
  62. package/entities/Statistics/action.json +46 -0
  63. package/entities/Statistics/schema.json +20 -0
  64. package/entities/Tag/action.json +106 -0
  65. package/entities/Tag/schema.json +34 -0
  66. package/entities/Test/action.json +127 -0
  67. package/entities/Test/schema.json +90 -0
  68. package/entities/TestAgent/action.json +267 -0
  69. package/entities/TestAgent/schema.json +86 -0
  70. package/entities/TestTemplate/action.json +107 -0
  71. package/entities/TestTemplate/schema.json +56 -0
  72. package/entities/TwampReflector/action.json +126 -0
  73. package/entities/TwampReflector/schema.json +46 -0
  74. package/entities/UpdateMonitorTemplate/action.json +24 -0
  75. package/entities/UpdateMonitorTemplate/schema.json +30 -0
  76. package/entities/Y1731Mep/action.json +106 -0
  77. package/entities/Y1731Mep/schema.json +45 -0
  78. package/error.json +190 -0
  79. package/package.json +87 -0
  80. package/pronghorn.json +10324 -0
  81. package/propertiesDecorators.json +14 -0
  82. package/propertiesSchema.json +1248 -0
  83. package/refs?service=git-upload-pack +0 -0
  84. package/report/adapterInfo.json +10 -0
  85. package/report/creationReport.json +1120 -0
  86. package/report/paragon-active-assurance.json-OpenApi3Json.json +15052 -0
  87. package/sampleProperties.json +195 -0
  88. package/test/integration/adapterTestBasicGet.js +83 -0
  89. package/test/integration/adapterTestConnectivity.js +93 -0
  90. package/test/integration/adapterTestIntegration.js +3651 -0
  91. package/test/unit/adapterBaseTestUnit.js +949 -0
  92. package/test/unit/adapterTestUnit.js +5967 -0
  93. package/utils/adapterInfo.js +206 -0
  94. package/utils/addAuth.js +94 -0
  95. package/utils/artifactize.js +146 -0
  96. package/utils/basicGet.js +50 -0
  97. package/utils/checkMigrate.js +63 -0
  98. package/utils/entitiesToDB.js +178 -0
  99. package/utils/findPath.js +74 -0
  100. package/utils/methodDocumentor.js +225 -0
  101. package/utils/modify.js +154 -0
  102. package/utils/packModificationScript.js +35 -0
  103. package/utils/patches2bundledDeps.js +90 -0
  104. package/utils/pre-commit.sh +32 -0
  105. package/utils/removeHooks.js +20 -0
  106. package/utils/setup.js +33 -0
  107. package/utils/tbScript.js +246 -0
  108. package/utils/tbUtils.js +490 -0
  109. package/utils/testRunner.js +298 -0
  110. package/utils/troubleshootingAdapter.js +195 -0
  111. package/workflows/README.md +3 -0
@@ -0,0 +1,45 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "listIptvChannels",
12
+ "enum": [
13
+ "listIptvChannels",
14
+ "createIptvChannel",
15
+ "deleteIptvChannel",
16
+ "getIptvChannel",
17
+ "updateIptvChannel"
18
+ ],
19
+ "external_name": "ph_request_type"
20
+ },
21
+ "tagName": {
22
+ "type": "string",
23
+ "description": "Filter by tag name e.g. 'key:value'",
24
+ "parse": false,
25
+ "encode": false,
26
+ "encrypt": {
27
+ "type": "AES",
28
+ "key": ""
29
+ },
30
+ "external_name": "tag_name"
31
+ },
32
+ "iptvId": {
33
+ "type": "number",
34
+ "description": "ID of the IPTV channel",
35
+ "parse": false,
36
+ "encode": false,
37
+ "encrypt": {
38
+ "type": "AES",
39
+ "key": ""
40
+ },
41
+ "external_name": "iptv_id"
42
+ }
43
+ },
44
+ "definitions": {}
45
+ }
@@ -0,0 +1,147 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "listMonitors",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/accounts/{pathv1}/monitors/?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": ""
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "createMonitor",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/accounts/{pathv1}/monitors/?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "deleteMonitor",
46
+ "protocol": "REST",
47
+ "method": "DELETE",
48
+ "entitypath": "{base_path}/{version}/accounts/{pathv1}/monitors/{pathv2}/?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "requestDatatype": "JSON",
54
+ "responseDatatype": "JSON",
55
+ "headers": {},
56
+ "responseObjects": [
57
+ {
58
+ "type": "default",
59
+ "key": "",
60
+ "mockFile": ""
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "name": "getMonitor",
66
+ "protocol": "REST",
67
+ "method": "GET",
68
+ "entitypath": "{base_path}/{version}/accounts/{pathv1}/monitors/{pathv2}/?{query}",
69
+ "requestSchema": "schema.json",
70
+ "responseSchema": "schema.json",
71
+ "timeout": 0,
72
+ "sendEmpty": false,
73
+ "sendGetBody": false,
74
+ "requestDatatype": "JSON",
75
+ "responseDatatype": "JSON",
76
+ "headers": {},
77
+ "responseObjects": [
78
+ {
79
+ "type": "default",
80
+ "key": "",
81
+ "mockFile": ""
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "name": "patchMonitor",
87
+ "protocol": "REST",
88
+ "method": "PATCH",
89
+ "entitypath": "{base_path}/{version}/accounts/{pathv1}/monitors/{pathv2}/?{query}",
90
+ "requestSchema": "schema.json",
91
+ "responseSchema": "schema.json",
92
+ "timeout": 0,
93
+ "sendEmpty": false,
94
+ "requestDatatype": "JSON",
95
+ "responseDatatype": "JSON",
96
+ "headers": {},
97
+ "responseObjects": [
98
+ {
99
+ "type": "default",
100
+ "key": "",
101
+ "mockFile": ""
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "name": "updateMonitor",
107
+ "protocol": "REST",
108
+ "method": "PUT",
109
+ "entitypath": "{base_path}/{version}/accounts/{pathv1}/monitors/{pathv2}/?{query}",
110
+ "requestSchema": "schema.json",
111
+ "responseSchema": "schema.json",
112
+ "timeout": 0,
113
+ "sendEmpty": false,
114
+ "requestDatatype": "JSON",
115
+ "responseDatatype": "JSON",
116
+ "headers": {},
117
+ "responseObjects": [
118
+ {
119
+ "type": "default",
120
+ "key": "",
121
+ "mockFile": ""
122
+ }
123
+ ]
124
+ },
125
+ {
126
+ "name": "getMonitorPdfreport",
127
+ "protocol": "REST",
128
+ "method": "GET",
129
+ "entitypath": "{base_path}/{version}/accounts/{pathv1}/monitors/{pathv2}/pdf_report?{query}",
130
+ "requestSchema": "schema.json",
131
+ "responseSchema": "schema.json",
132
+ "timeout": 0,
133
+ "sendEmpty": false,
134
+ "sendGetBody": false,
135
+ "requestDatatype": "JSON",
136
+ "responseDatatype": "JSON",
137
+ "headers": {},
138
+ "responseObjects": [
139
+ {
140
+ "type": "default",
141
+ "key": "",
142
+ "mockFile": ""
143
+ }
144
+ ]
145
+ }
146
+ ]
147
+ }
@@ -0,0 +1,102 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "listMonitors",
12
+ "enum": [
13
+ "listMonitors",
14
+ "createMonitor",
15
+ "deleteMonitor",
16
+ "getMonitor",
17
+ "patchMonitor",
18
+ "updateMonitor",
19
+ "getMonitorPdfreport"
20
+ ],
21
+ "external_name": "ph_request_type"
22
+ },
23
+ "basedOnTemplate": {
24
+ "type": "boolean",
25
+ "description": "Only monitors based on a template.",
26
+ "parse": false,
27
+ "encode": false,
28
+ "encrypt": {
29
+ "type": "AES",
30
+ "key": ""
31
+ },
32
+ "external_name": "based_on_template"
33
+ },
34
+ "tagName": {
35
+ "type": "string",
36
+ "description": "Filter by tag name e.g. 'key:value'",
37
+ "parse": false,
38
+ "encode": false,
39
+ "encrypt": {
40
+ "type": "AES",
41
+ "key": ""
42
+ },
43
+ "external_name": "tag_name"
44
+ },
45
+ "monitorId": {
46
+ "type": "number",
47
+ "description": "Id of the Monitor",
48
+ "parse": false,
49
+ "encode": false,
50
+ "encrypt": {
51
+ "type": "AES",
52
+ "key": ""
53
+ },
54
+ "external_name": "monitor_id"
55
+ },
56
+ "withDetailedMetrics": {
57
+ "type": "boolean",
58
+ "description": "Set to true to get response with metrics.",
59
+ "parse": false,
60
+ "encode": false,
61
+ "encrypt": {
62
+ "type": "AES",
63
+ "key": ""
64
+ },
65
+ "external_name": "with_detailed_metrics"
66
+ },
67
+ "withMetricsAvg": {
68
+ "type": "boolean",
69
+ "description": "Set to true to get response with metrics averages.",
70
+ "parse": false,
71
+ "encode": false,
72
+ "encrypt": {
73
+ "type": "AES",
74
+ "key": ""
75
+ },
76
+ "external_name": "with_metrics_avg"
77
+ },
78
+ "withOtherResults": {
79
+ "type": "boolean",
80
+ "description": "If set to `true` this will include extra results.\nFor the Path trace task type this will include a key `other` that lists `routes` and `reroute_events`.\nThe `routes` cont...(description truncated)",
81
+ "parse": false,
82
+ "encode": false,
83
+ "encrypt": {
84
+ "type": "AES",
85
+ "key": ""
86
+ },
87
+ "external_name": "with_other_results"
88
+ },
89
+ "worstNum": {
90
+ "type": "number",
91
+ "description": "The minimum count of result in the periodic report.",
92
+ "parse": false,
93
+ "encode": false,
94
+ "encrypt": {
95
+ "type": "AES",
96
+ "key": ""
97
+ },
98
+ "external_name": "worst_num"
99
+ }
100
+ },
101
+ "definitions": {}
102
+ }
@@ -0,0 +1,87 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "listMonitorTemplates",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/accounts/{pathv1}/monitor_templates/?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": ""
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "exportMonitorTemplates",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/accounts/{pathv1}/monitor_templates/export/?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "sendGetBody": false,
34
+ "requestDatatype": "JSON",
35
+ "responseDatatype": "JSON",
36
+ "headers": {},
37
+ "responseObjects": [
38
+ {
39
+ "type": "default",
40
+ "key": "",
41
+ "mockFile": ""
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "name": "importMonitorTemplates",
47
+ "protocol": "REST",
48
+ "method": "POST",
49
+ "entitypath": "{base_path}/{version}/accounts/{pathv1}/monitor_templates/import/?{query}",
50
+ "requestSchema": "schema.json",
51
+ "responseSchema": "schema.json",
52
+ "timeout": 0,
53
+ "sendEmpty": false,
54
+ "requestDatatype": "JSON",
55
+ "responseDatatype": "JSON",
56
+ "headers": {},
57
+ "responseObjects": [
58
+ {
59
+ "type": "default",
60
+ "key": "",
61
+ "mockFile": ""
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "name": "getMonitorTemplate",
67
+ "protocol": "REST",
68
+ "method": "GET",
69
+ "entitypath": "{base_path}/{version}/accounts/{pathv1}/monitor_templates/{pathv2}?{query}",
70
+ "requestSchema": "schema.json",
71
+ "responseSchema": "schema.json",
72
+ "timeout": 0,
73
+ "sendEmpty": false,
74
+ "sendGetBody": false,
75
+ "requestDatatype": "JSON",
76
+ "responseDatatype": "JSON",
77
+ "headers": {},
78
+ "responseObjects": [
79
+ {
80
+ "type": "default",
81
+ "key": "",
82
+ "mockFile": ""
83
+ }
84
+ ]
85
+ }
86
+ ]
87
+ }
@@ -0,0 +1,55 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "listMonitorTemplates",
12
+ "enum": [
13
+ "listMonitorTemplates",
14
+ "exportMonitorTemplates",
15
+ "importMonitorTemplates",
16
+ "getMonitorTemplate"
17
+ ],
18
+ "external_name": "ph_request_type"
19
+ },
20
+ "tagName": {
21
+ "type": "string",
22
+ "description": "Filter by tag name e.g. 'key:value'",
23
+ "parse": false,
24
+ "encode": false,
25
+ "encrypt": {
26
+ "type": "AES",
27
+ "key": ""
28
+ },
29
+ "external_name": "tag_name"
30
+ },
31
+ "forceOverwrite": {
32
+ "type": "boolean",
33
+ "description": "Force overwriting existing templates with conflicting names",
34
+ "parse": false,
35
+ "encode": false,
36
+ "encrypt": {
37
+ "type": "AES",
38
+ "key": ""
39
+ },
40
+ "external_name": "force_overwrite"
41
+ },
42
+ "templateId": {
43
+ "type": "number",
44
+ "description": "Id of the Monitor template",
45
+ "parse": false,
46
+ "encode": false,
47
+ "encrypt": {
48
+ "type": "AES",
49
+ "key": ""
50
+ },
51
+ "external_name": "template_id"
52
+ }
53
+ },
54
+ "definitions": {}
55
+ }
@@ -0,0 +1,126 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "listNetworkDevices",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/accounts/{pathv1}/network_devices/?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": ""
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "createNetworkDevice",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/accounts/{pathv1}/network_devices/?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "deleteNetworkDevice",
46
+ "protocol": "REST",
47
+ "method": "DELETE",
48
+ "entitypath": "{base_path}/{version}/accounts/{pathv1}/network_devices/{pathv2}/?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "requestDatatype": "JSON",
54
+ "responseDatatype": "JSON",
55
+ "headers": {},
56
+ "responseObjects": [
57
+ {
58
+ "type": "default",
59
+ "key": "",
60
+ "mockFile": ""
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "name": "getNetworkDevice",
66
+ "protocol": "REST",
67
+ "method": "GET",
68
+ "entitypath": "{base_path}/{version}/accounts/{pathv1}/network_devices/{pathv2}/?{query}",
69
+ "requestSchema": "schema.json",
70
+ "responseSchema": "schema.json",
71
+ "timeout": 0,
72
+ "sendEmpty": false,
73
+ "sendGetBody": false,
74
+ "requestDatatype": "JSON",
75
+ "responseDatatype": "JSON",
76
+ "headers": {},
77
+ "responseObjects": [
78
+ {
79
+ "type": "default",
80
+ "key": "",
81
+ "mockFile": ""
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "name": "updateNetworkDevicePatch",
87
+ "protocol": "REST",
88
+ "method": "PATCH",
89
+ "entitypath": "{base_path}/{version}/accounts/{pathv1}/network_devices/{pathv2}/?{query}",
90
+ "requestSchema": "schema.json",
91
+ "responseSchema": "schema.json",
92
+ "timeout": 0,
93
+ "sendEmpty": false,
94
+ "requestDatatype": "JSON",
95
+ "responseDatatype": "JSON",
96
+ "headers": {},
97
+ "responseObjects": [
98
+ {
99
+ "type": "default",
100
+ "key": "",
101
+ "mockFile": ""
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "name": "updateNetworkDevice",
107
+ "protocol": "REST",
108
+ "method": "PUT",
109
+ "entitypath": "{base_path}/{version}/accounts/{pathv1}/network_devices/{pathv2}/?{query}",
110
+ "requestSchema": "schema.json",
111
+ "responseSchema": "schema.json",
112
+ "timeout": 0,
113
+ "sendEmpty": false,
114
+ "requestDatatype": "JSON",
115
+ "responseDatatype": "JSON",
116
+ "headers": {},
117
+ "responseObjects": [
118
+ {
119
+ "type": "default",
120
+ "key": "",
121
+ "mockFile": ""
122
+ }
123
+ ]
124
+ }
125
+ ]
126
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "listNetworkDevices",
12
+ "enum": [
13
+ "listNetworkDevices",
14
+ "createNetworkDevice",
15
+ "deleteNetworkDevice",
16
+ "getNetworkDevice",
17
+ "updateNetworkDevicePatch",
18
+ "updateNetworkDevice"
19
+ ],
20
+ "external_name": "ph_request_type"
21
+ },
22
+ "tagName": {
23
+ "type": "string",
24
+ "description": "Filter by tag name e.g. 'key:value'",
25
+ "parse": false,
26
+ "encode": false,
27
+ "encrypt": {
28
+ "type": "AES",
29
+ "key": ""
30
+ },
31
+ "external_name": "tag_name"
32
+ },
33
+ "networkDeviceId": {
34
+ "type": "number",
35
+ "description": "ID of the network device",
36
+ "parse": false,
37
+ "encode": false,
38
+ "encrypt": {
39
+ "type": "AES",
40
+ "key": ""
41
+ },
42
+ "external_name": "network_device_id"
43
+ }
44
+ },
45
+ "definitions": {}
46
+ }