@itentialopensource/adapter-zero_networks 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 (183) 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 +5576 -0
  12. package/CHANGELOG.md +9 -0
  13. package/CODE_OF_CONDUCT.md +43 -0
  14. package/CONTRIBUTING.md +13 -0
  15. package/ENHANCE.md +69 -0
  16. package/LICENSE +201 -0
  17. package/PROPERTIES.md +641 -0
  18. package/README.md +346 -0
  19. package/SUMMARY.md +9 -0
  20. package/SYSTEMINFO.md +11 -0
  21. package/TAB1.md +5 -0
  22. package/TAB2.md +6798 -0
  23. package/TROUBLESHOOT.md +47 -0
  24. package/adapter.js +78448 -0
  25. package/adapterBase.js +1452 -0
  26. package/entities/.generic/action.json +214 -0
  27. package/entities/.generic/schema.json +28 -0
  28. package/entities/.system/action.json +50 -0
  29. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  30. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  31. package/entities/.system/schema.json +19 -0
  32. package/entities/.system/schemaTokenReq.json +53 -0
  33. package/entities/.system/schemaTokenResp.json +53 -0
  34. package/entities/Activities/action.json +295 -0
  35. package/entities/Activities/mockdatafiles/rPCActivitiesInterfaceCandidatesFiltersList-default.json +126 -0
  36. package/entities/Activities/mockdatafiles/rPCActivitiesOperationFiltersList-default.json +24 -0
  37. package/entities/Activities/schema.json +87 -0
  38. package/entities/Asset/action.json +3528 -0
  39. package/entities/Asset/mockdatafiles/assetRPCActivitiesInterfaceCandidatesFiltersList-default.json +52 -0
  40. package/entities/Asset/mockdatafiles/assetRPCActivitiesOperationFiltersList-default.json +78 -0
  41. package/entities/Asset/schema.json +288 -0
  42. package/entities/AssetOTIoT/action.json +3206 -0
  43. package/entities/AssetOTIoT/mockdatafiles/assetOTRPCActivitiesInterfaceCandidatesFiltersList-default.json +32 -0
  44. package/entities/AssetOTIoT/mockdatafiles/assetOTRPCActivitiesOperationFiltersList-default.json +46 -0
  45. package/entities/AssetOTIoT/schema.json +272 -0
  46. package/entities/Assets/action.json +1336 -0
  47. package/entities/Assets/mockdatafiles/assetsStatisticsGet-default.json +39 -0
  48. package/entities/Assets/schema.json +138 -0
  49. package/entities/AssetsOTIoT/action.json +106 -0
  50. package/entities/AssetsOTIoT/schema.json +78 -0
  51. package/entities/Audit/action.json +87 -0
  52. package/entities/Audit/schema.json +77 -0
  53. package/entities/Auth/action.json +64 -0
  54. package/entities/Auth/schema.json +21 -0
  55. package/entities/Entity/action.json +67 -0
  56. package/entities/Entity/schema.json +21 -0
  57. package/entities/Group/action.json +2565 -0
  58. package/entities/Group/schema.json +241 -0
  59. package/entities/Groups/action.json +378 -0
  60. package/entities/Groups/schema.json +124 -0
  61. package/entities/GroupsActiveDirectory/action.json +66 -0
  62. package/entities/GroupsActiveDirectory/schema.json +21 -0
  63. package/entities/GroupsCustom/action.json +125 -0
  64. package/entities/GroupsCustom/schema.json +68 -0
  65. package/entities/GroupsTags/action.json +24 -0
  66. package/entities/GroupsTags/schema.json +19 -0
  67. package/entities/MFA/action.json +46 -0
  68. package/entities/MFA/schema.json +20 -0
  69. package/entities/MFAInbound/action.json +379 -0
  70. package/entities/MFAInbound/schema.json +113 -0
  71. package/entities/MFAOutbound/action.json +379 -0
  72. package/entities/MFAOutbound/schema.json +102 -0
  73. package/entities/Profile/action.json +46 -0
  74. package/entities/Profile/schema.json +20 -0
  75. package/entities/Rules/action.json +227 -0
  76. package/entities/Rules/schema.json +29 -0
  77. package/entities/RulesIdentity/action.json +273 -0
  78. package/entities/RulesIdentity/schema.json +119 -0
  79. package/entities/RulesInboundAllow/action.json +293 -0
  80. package/entities/RulesInboundAllow/schema.json +120 -0
  81. package/entities/RulesInboundBlock/action.json +293 -0
  82. package/entities/RulesInboundBlock/schema.json +120 -0
  83. package/entities/RulesOutboundAllow/action.json +314 -0
  84. package/entities/RulesOutboundAllow/schema.json +121 -0
  85. package/entities/RulesOutboundBlock/action.json +293 -0
  86. package/entities/RulesOutboundBlock/schema.json +120 -0
  87. package/entities/RulesRPC/action.json +315 -0
  88. package/entities/RulesRPC/schema.json +121 -0
  89. package/entities/Sessions/action.json +66 -0
  90. package/entities/Sessions/schema.json +54 -0
  91. package/entities/Settings/action.json +66 -0
  92. package/entities/Settings/schema.json +21 -0
  93. package/entities/SettingsAI/action.json +189 -0
  94. package/entities/SettingsAI/schema.json +60 -0
  95. package/entities/SettingsAIRulesReview/action.json +45 -0
  96. package/entities/SettingsAIRulesReview/schema.json +20 -0
  97. package/entities/SettingsAccessTokens/action.json +85 -0
  98. package/entities/SettingsAccessTokens/schema.json +22 -0
  99. package/entities/SettingsActivities/action.json +45 -0
  100. package/entities/SettingsActivities/schema.json +20 -0
  101. package/entities/SettingsAssetManagement/action.json +533 -0
  102. package/entities/SettingsAssetManagement/schema.json +88 -0
  103. package/entities/SettingsAssetManagers/action.json +65 -0
  104. package/entities/SettingsAssetManagers/schema.json +43 -0
  105. package/entities/SettingsBreakGlass/action.json +45 -0
  106. package/entities/SettingsBreakGlass/schema.json +20 -0
  107. package/entities/SettingsCloudConnector/action.json +85 -0
  108. package/entities/SettingsCloudConnector/mockdatafiles/cloudConnectorAccessTokensCreate-default.json +9 -0
  109. package/entities/SettingsCloudConnector/mockdatafiles/cloudConnectorAccessTokensRegenerate-default.json +9 -0
  110. package/entities/SettingsCloudConnector/schema.json +22 -0
  111. package/entities/SettingsConnect/action.json +395 -0
  112. package/entities/SettingsConnect/schema.json +81 -0
  113. package/entities/SettingsFirewall/action.json +168 -0
  114. package/entities/SettingsFirewall/schema.json +26 -0
  115. package/entities/SettingsIdentityProviders/action.json +126 -0
  116. package/entities/SettingsIdentityProviders/schema.json +24 -0
  117. package/entities/SettingsInternalSubnets/action.json +86 -0
  118. package/entities/SettingsInternalSubnets/schema.json +22 -0
  119. package/entities/SettingsLearning/action.json +45 -0
  120. package/entities/SettingsLearning/schema.json +20 -0
  121. package/entities/SettingsMFA/action.json +86 -0
  122. package/entities/SettingsMFA/schema.json +22 -0
  123. package/entities/SettingsMailNotifications/action.json +45 -0
  124. package/entities/SettingsMailNotifications/schema.json +20 -0
  125. package/entities/SettingsPortalSecurity/action.json +45 -0
  126. package/entities/SettingsPortalSecurity/schema.json +20 -0
  127. package/entities/SettingsPrivilegedPorts/action.json +25 -0
  128. package/entities/SettingsPrivilegedPorts/schema.json +19 -0
  129. package/entities/SettingsProtectionPolicies/action.json +106 -0
  130. package/entities/SettingsProtectionPolicies/schema.json +56 -0
  131. package/entities/SettingsPushNotifications/action.json +85 -0
  132. package/entities/SettingsPushNotifications/schema.json +22 -0
  133. package/entities/SettingsRoles/action.json +86 -0
  134. package/entities/SettingsRoles/schema.json +55 -0
  135. package/entities/SettingsSegementServers/action.json +25 -0
  136. package/entities/SettingsSegementServers/schema.json +19 -0
  137. package/entities/SettingsServiceNow/action.json +85 -0
  138. package/entities/SettingsServiceNow/mockdatafiles/serviceNowAccessTokensCreate-default.json +9 -0
  139. package/entities/SettingsServiceNow/mockdatafiles/serviceNowAccessTokensRegenerate-default.json +9 -0
  140. package/entities/SettingsServiceNow/schema.json +22 -0
  141. package/entities/SettingsTrustedInternet/action.json +229 -0
  142. package/entities/SettingsTrustedInternet/schema.json +29 -0
  143. package/entities/SettingsZPA/action.json +45 -0
  144. package/entities/SettingsZPA/schema.json +20 -0
  145. package/entities/User/action.json +688 -0
  146. package/entities/User/schema.json +150 -0
  147. package/entities/Users/action.json +479 -0
  148. package/entities/Users/schema.json +107 -0
  149. package/error.json +190 -0
  150. package/metadata.json +56 -0
  151. package/package.json +83 -0
  152. package/pronghorn.json +55566 -0
  153. package/propertiesDecorators.json +14 -0
  154. package/propertiesSchema.json +1569 -0
  155. package/refs?service=git-upload-pack +0 -0
  156. package/report/ZeroNetworks-openapi (1).yaml-OpenApi3Json.json +94523 -0
  157. package/report/adapterInfo.json +10 -0
  158. package/report/creationReport.json +5425 -0
  159. package/sampleProperties.json +256 -0
  160. package/test/integration/adapterTestBasicGet.js +83 -0
  161. package/test/integration/adapterTestConnectivity.js +142 -0
  162. package/test/integration/adapterTestIntegration.js +23777 -0
  163. package/test/unit/adapterBaseTestUnit.js +1024 -0
  164. package/test/unit/adapterTestUnit.js +35451 -0
  165. package/utils/adapterInfo.js +206 -0
  166. package/utils/addAuth.js +94 -0
  167. package/utils/artifactize.js +146 -0
  168. package/utils/basicGet.js +50 -0
  169. package/utils/checkMigrate.js +63 -0
  170. package/utils/entitiesToDB.js +179 -0
  171. package/utils/findPath.js +74 -0
  172. package/utils/methodDocumentor.js +273 -0
  173. package/utils/modify.js +152 -0
  174. package/utils/packModificationScript.js +35 -0
  175. package/utils/patches2bundledDeps.js +90 -0
  176. package/utils/pre-commit.sh +32 -0
  177. package/utils/removeHooks.js +20 -0
  178. package/utils/setup.js +33 -0
  179. package/utils/taskMover.js +309 -0
  180. package/utils/tbScript.js +239 -0
  181. package/utils/tbUtils.js +489 -0
  182. package/utils/testRunner.js +298 -0
  183. package/utils/troubleshootingAdapter.js +193 -0
@@ -0,0 +1,227 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "rulesDistributionGet",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/protection/rules/distribution/{pathv1}?{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": "rulesHistoryGet",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/protection/rules/history/{pathv1}?{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": "inboundAllowRulesReviewApprove",
47
+ "protocol": "REST",
48
+ "method": "PUT",
49
+ "entitypath": "{base_path}/{version}/protection/rules/inbound-allow/review/approve/{pathv1}?{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": "inboundAllowRulesReviewDeny",
67
+ "protocol": "REST",
68
+ "method": "DELETE",
69
+ "entitypath": "{base_path}/{version}/protection/rules/inbound-allow/review/reject/{pathv1}?{query}",
70
+ "requestSchema": "schema.json",
71
+ "responseSchema": "schema.json",
72
+ "timeout": 0,
73
+ "sendEmpty": 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": "inboundBlockRulesReviewApprove",
87
+ "protocol": "REST",
88
+ "method": "PUT",
89
+ "entitypath": "{base_path}/{version}/protection/rules/inbound-block/review/approve/{pathv1}?{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": "inboundBlockRulesReviewDeny",
107
+ "protocol": "REST",
108
+ "method": "DELETE",
109
+ "entitypath": "{base_path}/{version}/protection/rules/inbound-block/review/reject/{pathv1}?{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": "outboundBlockRulesReviewApprove",
127
+ "protocol": "REST",
128
+ "method": "PUT",
129
+ "entitypath": "{base_path}/{version}/protection/rules/outbound-block/review/approve/{pathv1}?{query}",
130
+ "requestSchema": "schema.json",
131
+ "responseSchema": "schema.json",
132
+ "timeout": 0,
133
+ "sendEmpty": false,
134
+ "requestDatatype": "JSON",
135
+ "responseDatatype": "JSON",
136
+ "headers": {},
137
+ "responseObjects": [
138
+ {
139
+ "type": "default",
140
+ "key": "",
141
+ "mockFile": ""
142
+ }
143
+ ]
144
+ },
145
+ {
146
+ "name": "outboundBlockRulesReviewDeny",
147
+ "protocol": "REST",
148
+ "method": "DELETE",
149
+ "entitypath": "{base_path}/{version}/protection/rules/outbound-block/review/reject/{pathv1}?{query}",
150
+ "requestSchema": "schema.json",
151
+ "responseSchema": "schema.json",
152
+ "timeout": 0,
153
+ "sendEmpty": false,
154
+ "requestDatatype": "JSON",
155
+ "responseDatatype": "JSON",
156
+ "headers": {},
157
+ "responseObjects": [
158
+ {
159
+ "type": "default",
160
+ "key": "",
161
+ "mockFile": ""
162
+ }
163
+ ]
164
+ },
165
+ {
166
+ "name": "outboundAllowRulesReviewApprove",
167
+ "protocol": "REST",
168
+ "method": "PUT",
169
+ "entitypath": "{base_path}/{version}/protection/rules/outbound/review/approve/{pathv1}?{query}",
170
+ "requestSchema": "schema.json",
171
+ "responseSchema": "schema.json",
172
+ "timeout": 0,
173
+ "sendEmpty": false,
174
+ "requestDatatype": "JSON",
175
+ "responseDatatype": "JSON",
176
+ "headers": {},
177
+ "responseObjects": [
178
+ {
179
+ "type": "default",
180
+ "key": "",
181
+ "mockFile": ""
182
+ }
183
+ ]
184
+ },
185
+ {
186
+ "name": "outboundAllowRulesReviewDeny",
187
+ "protocol": "REST",
188
+ "method": "DELETE",
189
+ "entitypath": "{base_path}/{version}/protection/rules/outbound/review/reject/{pathv1}?{query}",
190
+ "requestSchema": "schema.json",
191
+ "responseSchema": "schema.json",
192
+ "timeout": 0,
193
+ "sendEmpty": false,
194
+ "requestDatatype": "JSON",
195
+ "responseDatatype": "JSON",
196
+ "headers": {},
197
+ "responseObjects": [
198
+ {
199
+ "type": "default",
200
+ "key": "",
201
+ "mockFile": ""
202
+ }
203
+ ]
204
+ },
205
+ {
206
+ "name": "rulesStatisticsGet",
207
+ "protocol": "REST",
208
+ "method": "GET",
209
+ "entitypath": "{base_path}/{version}/protection/rules/statistics?{query}",
210
+ "requestSchema": "schema.json",
211
+ "responseSchema": "schema.json",
212
+ "timeout": 0,
213
+ "sendEmpty": false,
214
+ "sendGetBody": false,
215
+ "requestDatatype": "JSON",
216
+ "responseDatatype": "JSON",
217
+ "headers": {},
218
+ "responseObjects": [
219
+ {
220
+ "type": "default",
221
+ "key": "",
222
+ "mockFile": ""
223
+ }
224
+ ]
225
+ }
226
+ ]
227
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "rulesDistributionGet",
12
+ "enum": [
13
+ "rulesDistributionGet",
14
+ "rulesHistoryGet",
15
+ "inboundAllowRulesReviewApprove",
16
+ "inboundAllowRulesReviewDeny",
17
+ "inboundBlockRulesReviewApprove",
18
+ "inboundBlockRulesReviewDeny",
19
+ "outboundBlockRulesReviewApprove",
20
+ "outboundBlockRulesReviewDeny",
21
+ "outboundAllowRulesReviewApprove",
22
+ "outboundAllowRulesReviewDeny",
23
+ "rulesStatisticsGet"
24
+ ],
25
+ "external_name": "ph_request_type"
26
+ }
27
+ },
28
+ "definitions": {}
29
+ }
@@ -0,0 +1,273 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "identityRulesList",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/protection/identity-rules?{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": "identityRulesCreate",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/protection/identity-rules?{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": "identityRulesAssetsCandidatesList",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/protection/identity-rules/asset-candidates?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "sendGetBody": 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": "identityRulesExcludedAssetsCandidatesList",
67
+ "protocol": "REST",
68
+ "method": "GET",
69
+ "entitypath": "{base_path}/{version}/protection/identity-rules/excluded-asset-candidates?{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
+ "name": "identityRulesExport",
88
+ "protocol": "REST",
89
+ "method": "POST",
90
+ "entitypath": "{base_path}/{version}/protection/identity-rules/export?{query}",
91
+ "requestSchema": "schema.json",
92
+ "responseSchema": "schema.json",
93
+ "timeout": 0,
94
+ "sendEmpty": false,
95
+ "requestDatatype": "JSON",
96
+ "responseDatatype": "JSON",
97
+ "headers": {},
98
+ "responseObjects": [
99
+ {
100
+ "type": "default",
101
+ "key": "",
102
+ "mockFile": ""
103
+ }
104
+ ]
105
+ },
106
+ {
107
+ "name": "identityRulesExportGet",
108
+ "protocol": "REST",
109
+ "method": "GET",
110
+ "entitypath": "{base_path}/{version}/protection/identity-rules/export/csv/{pathv1}?{query}",
111
+ "requestSchema": "schema.json",
112
+ "responseSchema": "schema.json",
113
+ "timeout": 0,
114
+ "sendEmpty": false,
115
+ "sendGetBody": false,
116
+ "requestDatatype": "JSON",
117
+ "responseDatatype": "JSON",
118
+ "headers": {},
119
+ "responseObjects": [
120
+ {
121
+ "type": "default",
122
+ "key": "",
123
+ "mockFile": ""
124
+ }
125
+ ]
126
+ },
127
+ {
128
+ "name": "identityRulesFiltersList",
129
+ "protocol": "REST",
130
+ "method": "GET",
131
+ "entitypath": "{base_path}/{version}/protection/identity-rules/filters?{query}",
132
+ "requestSchema": "schema.json",
133
+ "responseSchema": "schema.json",
134
+ "timeout": 0,
135
+ "sendEmpty": false,
136
+ "sendGetBody": false,
137
+ "requestDatatype": "JSON",
138
+ "responseDatatype": "JSON",
139
+ "headers": {},
140
+ "responseObjects": [
141
+ {
142
+ "type": "default",
143
+ "key": "",
144
+ "mockFile": ""
145
+ }
146
+ ]
147
+ },
148
+ {
149
+ "name": "identityRulesAssetsCandidatesFiltersList",
150
+ "protocol": "REST",
151
+ "method": "GET",
152
+ "entitypath": "{base_path}/{version}/protection/identity-rules/filters/asset-candidates?{query}",
153
+ "requestSchema": "schema.json",
154
+ "responseSchema": "schema.json",
155
+ "timeout": 0,
156
+ "sendEmpty": false,
157
+ "sendGetBody": false,
158
+ "requestDatatype": "JSON",
159
+ "responseDatatype": "JSON",
160
+ "headers": {},
161
+ "responseObjects": [
162
+ {
163
+ "type": "default",
164
+ "key": "",
165
+ "mockFile": ""
166
+ }
167
+ ]
168
+ },
169
+ {
170
+ "name": "identityRulesUserCandidatesFiltersList",
171
+ "protocol": "REST",
172
+ "method": "GET",
173
+ "entitypath": "{base_path}/{version}/protection/identity-rules/filters/user-candidates?{query}",
174
+ "requestSchema": "schema.json",
175
+ "responseSchema": "schema.json",
176
+ "timeout": 0,
177
+ "sendEmpty": false,
178
+ "sendGetBody": false,
179
+ "requestDatatype": "JSON",
180
+ "responseDatatype": "JSON",
181
+ "headers": {},
182
+ "responseObjects": [
183
+ {
184
+ "type": "default",
185
+ "key": "",
186
+ "mockFile": ""
187
+ }
188
+ ]
189
+ },
190
+ {
191
+ "name": "identityRulesUserCandidatesList",
192
+ "protocol": "REST",
193
+ "method": "GET",
194
+ "entitypath": "{base_path}/{version}/protection/identity-rules/user-candidates?{query}",
195
+ "requestSchema": "schema.json",
196
+ "responseSchema": "schema.json",
197
+ "timeout": 0,
198
+ "sendEmpty": false,
199
+ "sendGetBody": false,
200
+ "requestDatatype": "JSON",
201
+ "responseDatatype": "JSON",
202
+ "headers": {},
203
+ "responseObjects": [
204
+ {
205
+ "type": "default",
206
+ "key": "",
207
+ "mockFile": ""
208
+ }
209
+ ]
210
+ },
211
+ {
212
+ "name": "identityRulesGet",
213
+ "protocol": "REST",
214
+ "method": "GET",
215
+ "entitypath": "{base_path}/{version}/protection/identity-rules/{pathv1}?{query}",
216
+ "requestSchema": "schema.json",
217
+ "responseSchema": "schema.json",
218
+ "timeout": 0,
219
+ "sendEmpty": false,
220
+ "sendGetBody": false,
221
+ "requestDatatype": "JSON",
222
+ "responseDatatype": "JSON",
223
+ "headers": {},
224
+ "responseObjects": [
225
+ {
226
+ "type": "default",
227
+ "key": "",
228
+ "mockFile": ""
229
+ }
230
+ ]
231
+ },
232
+ {
233
+ "name": "identityRulesUpdate",
234
+ "protocol": "REST",
235
+ "method": "PUT",
236
+ "entitypath": "{base_path}/{version}/protection/identity-rules/{pathv1}?{query}",
237
+ "requestSchema": "schema.json",
238
+ "responseSchema": "schema.json",
239
+ "timeout": 0,
240
+ "sendEmpty": false,
241
+ "requestDatatype": "JSON",
242
+ "responseDatatype": "JSON",
243
+ "headers": {},
244
+ "responseObjects": [
245
+ {
246
+ "type": "default",
247
+ "key": "",
248
+ "mockFile": ""
249
+ }
250
+ ]
251
+ },
252
+ {
253
+ "name": "identityRulesDelete",
254
+ "protocol": "REST",
255
+ "method": "DELETE",
256
+ "entitypath": "{base_path}/{version}/protection/identity-rules/{pathv1}?{query}",
257
+ "requestSchema": "schema.json",
258
+ "responseSchema": "schema.json",
259
+ "timeout": 0,
260
+ "sendEmpty": false,
261
+ "requestDatatype": "JSON",
262
+ "responseDatatype": "JSON",
263
+ "headers": {},
264
+ "responseObjects": [
265
+ {
266
+ "type": "default",
267
+ "key": "",
268
+ "mockFile": ""
269
+ }
270
+ ]
271
+ }
272
+ ]
273
+ }
@@ -0,0 +1,119 @@
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": "identityRulesList",
12
+ "enum": [
13
+ "identityRulesList",
14
+ "identityRulesCreate",
15
+ "identityRulesAssetsCandidatesList",
16
+ "identityRulesExcludedAssetsCandidatesList",
17
+ "identityRulesExport",
18
+ "identityRulesExportGet",
19
+ "identityRulesFiltersList",
20
+ "identityRulesAssetsCandidatesFiltersList",
21
+ "identityRulesUserCandidatesFiltersList",
22
+ "identityRulesUserCandidatesList",
23
+ "identityRulesGet",
24
+ "identityRulesUpdate",
25
+ "identityRulesDelete"
26
+ ],
27
+ "external_name": "ph_request_type"
28
+ },
29
+ "limit": {
30
+ "type": "number",
31
+ "description": "Limit the return results",
32
+ "parse": false,
33
+ "encode": false,
34
+ "encrypt": {
35
+ "type": "AES",
36
+ "key": ""
37
+ },
38
+ "external_name": "_limit"
39
+ },
40
+ "cursor": {
41
+ "type": "number",
42
+ "description": "cursor position to start at",
43
+ "parse": false,
44
+ "encode": false,
45
+ "encrypt": {
46
+ "type": "AES",
47
+ "key": ""
48
+ },
49
+ "external_name": "_cursor"
50
+ },
51
+ "search": {
52
+ "type": "string",
53
+ "description": "Test to search for",
54
+ "parse": false,
55
+ "encode": false,
56
+ "encrypt": {
57
+ "type": "AES",
58
+ "key": ""
59
+ },
60
+ "external_name": "_search"
61
+ },
62
+ "withCount": {
63
+ "type": "boolean",
64
+ "description": "return count of objects",
65
+ "parse": false,
66
+ "encode": false,
67
+ "encrypt": {
68
+ "type": "AES",
69
+ "key": ""
70
+ },
71
+ "external_name": "with_count"
72
+ },
73
+ "filters": {
74
+ "type": "string",
75
+ "description": "JSON string URI encoded set of fiters",
76
+ "parse": false,
77
+ "encode": false,
78
+ "encrypt": {
79
+ "type": "AES",
80
+ "key": ""
81
+ },
82
+ "external_name": "_filters"
83
+ },
84
+ "addBuiltins": {
85
+ "type": "boolean",
86
+ "description": "show global rules",
87
+ "parse": false,
88
+ "encode": false,
89
+ "encrypt": {
90
+ "type": "AES",
91
+ "key": ""
92
+ },
93
+ "external_name": "_add_builtins"
94
+ },
95
+ "addAncestors": {
96
+ "type": "boolean",
97
+ "description": "show rules where the asset is part of a group",
98
+ "parse": false,
99
+ "encode": false,
100
+ "encrypt": {
101
+ "type": "AES",
102
+ "key": ""
103
+ },
104
+ "external_name": "_add_ancestors"
105
+ },
106
+ "offset": {
107
+ "type": "number",
108
+ "description": "Used to page through results",
109
+ "parse": false,
110
+ "encode": false,
111
+ "encrypt": {
112
+ "type": "AES",
113
+ "key": ""
114
+ },
115
+ "external_name": "_offset"
116
+ }
117
+ },
118
+ "definitions": {}
119
+ }