@itentialopensource/adapter-nutanix_intentful 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 (153) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.jshintrc +3 -0
  4. package/AUTH.md +34 -0
  5. package/BROKER.md +211 -0
  6. package/CALLS.md +1677 -0
  7. package/CHANGELOG.md +9 -0
  8. package/CODE_OF_CONDUCT.md +43 -0
  9. package/CONTRIBUTING.md +13 -0
  10. package/ENHANCE.md +69 -0
  11. package/LICENSE +201 -0
  12. package/PROPERTIES.md +646 -0
  13. package/README.md +343 -0
  14. package/SUMMARY.md +9 -0
  15. package/SYSTEMINFO.md +20 -0
  16. package/TAB1.md +10 -0
  17. package/TAB2.md +303 -0
  18. package/TROUBLESHOOT.md +47 -0
  19. package/adapter.js +26226 -0
  20. package/adapterBase.js +1452 -0
  21. package/changelogs/CHANGELOG.md +0 -0
  22. package/entities/.generic/action.json +214 -0
  23. package/entities/.generic/schema.json +28 -0
  24. package/entities/.system/action.json +50 -0
  25. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  26. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  27. package/entities/.system/schema.json +19 -0
  28. package/entities/.system/schemaTokenReq.json +53 -0
  29. package/entities/.system/schemaTokenResp.json +53 -0
  30. package/entities/AccessControlPolicies/action.json +105 -0
  31. package/entities/AccessControlPolicies/schema.json +23 -0
  32. package/entities/AddressGroups/action.json +105 -0
  33. package/entities/AddressGroups/schema.json +23 -0
  34. package/entities/Alerts/action.json +85 -0
  35. package/entities/Alerts/schema.json +22 -0
  36. package/entities/Audits/action.json +45 -0
  37. package/entities/Audits/schema.json +20 -0
  38. package/entities/Batch/action.json +24 -0
  39. package/entities/Batch/schema.json +19 -0
  40. package/entities/Blackouts/action.json +105 -0
  41. package/entities/Blackouts/schema.json +23 -0
  42. package/entities/Categories/action.json +186 -0
  43. package/entities/Categories/schema.json +27 -0
  44. package/entities/Clusters/action.json +65 -0
  45. package/entities/Clusters/schema.json +21 -0
  46. package/entities/DirectoryServices/action.json +125 -0
  47. package/entities/DirectoryServices/schema.json +24 -0
  48. package/entities/FloatingIp/action.json +105 -0
  49. package/entities/FloatingIp/schema.json +23 -0
  50. package/entities/Hosts/action.json +45 -0
  51. package/entities/Hosts/schema.json +20 -0
  52. package/entities/IdempotenceIdentifiers/action.json +65 -0
  53. package/entities/IdempotenceIdentifiers/schema.json +32 -0
  54. package/entities/IdentityProviders/action.json +126 -0
  55. package/entities/IdentityProviders/schema.json +24 -0
  56. package/entities/ImagePlacementPolicies/action.json +105 -0
  57. package/entities/ImagePlacementPolicies/schema.json +23 -0
  58. package/entities/Images/action.json +166 -0
  59. package/entities/Images/schema.json +26 -0
  60. package/entities/NetworkFunctionChains/action.json +105 -0
  61. package/entities/NetworkFunctionChains/schema.json +23 -0
  62. package/entities/NetworkSecurityRules/action.json +166 -0
  63. package/entities/NetworkSecurityRules/schema.json +26 -0
  64. package/entities/NgtPolicies/action.json +105 -0
  65. package/entities/NgtPolicies/schema.json +23 -0
  66. package/entities/Ovas/action.json +249 -0
  67. package/entities/Ovas/schema.json +52 -0
  68. package/entities/Permissions/action.json +45 -0
  69. package/entities/Permissions/schema.json +20 -0
  70. package/entities/Projects/action.json +105 -0
  71. package/entities/Projects/schema.json +23 -0
  72. package/entities/ProtectionRules/action.json +146 -0
  73. package/entities/ProtectionRules/schema.json +25 -0
  74. package/entities/RecoveryPlanJobs/action.json +126 -0
  75. package/entities/RecoveryPlanJobs/schema.json +24 -0
  76. package/entities/RecoveryPlans/action.json +126 -0
  77. package/entities/RecoveryPlans/schema.json +68 -0
  78. package/entities/RemoteSyslogModules/action.json +105 -0
  79. package/entities/RemoteSyslogModules/schema.json +23 -0
  80. package/entities/RemoteSyslogServers/action.json +126 -0
  81. package/entities/RemoteSyslogServers/schema.json +24 -0
  82. package/entities/Reports/action.json +267 -0
  83. package/entities/Reports/schema.json +31 -0
  84. package/entities/Roles/action.json +105 -0
  85. package/entities/Roles/schema.json +23 -0
  86. package/entities/RoutingPolicies/action.json +145 -0
  87. package/entities/RoutingPolicies/schema.json +25 -0
  88. package/entities/ServiceGroups/action.json +105 -0
  89. package/entities/ServiceGroups/schema.json +23 -0
  90. package/entities/StoragePolicies/action.json +125 -0
  91. package/entities/StoragePolicies/schema.json +24 -0
  92. package/entities/Subnets/action.json +105 -0
  93. package/entities/Subnets/schema.json +23 -0
  94. package/entities/Tasks/action.json +45 -0
  95. package/entities/Tasks/schema.json +20 -0
  96. package/entities/UserGroups/action.json +85 -0
  97. package/entities/UserGroups/schema.json +22 -0
  98. package/entities/Users/action.json +127 -0
  99. package/entities/Users/schema.json +24 -0
  100. package/entities/VirtualNetwork/action.json +105 -0
  101. package/entities/VirtualNetwork/schema.json +23 -0
  102. package/entities/VmHostAffinityLegacyPolicies/action.json +44 -0
  103. package/entities/VmHostAffinityLegacyPolicies/schema.json +20 -0
  104. package/entities/VmHostAffinityPolicies/action.json +145 -0
  105. package/entities/VmHostAffinityPolicies/schema.json +36 -0
  106. package/entities/Vms/action.json +365 -0
  107. package/entities/Vms/schema.json +36 -0
  108. package/entities/Vpc/action.json +45 -0
  109. package/entities/Vpc/schema.json +20 -0
  110. package/entities/VpnConnection/action.json +168 -0
  111. package/entities/VpnConnection/schema.json +26 -0
  112. package/entities/VpnGateway/action.json +105 -0
  113. package/entities/VpnGateway/schema.json +23 -0
  114. package/entities/Whatif/action.json +188 -0
  115. package/entities/Whatif/schema.json +38 -0
  116. package/error.json +190 -0
  117. package/metadata.json +92 -0
  118. package/package.json +81 -0
  119. package/pronghorn.json +12449 -0
  120. package/propertiesDecorators.json +14 -0
  121. package/propertiesSchema.json +1574 -0
  122. package/refs?service=git-upload-pack +0 -0
  123. package/report/adapter-openapi.json +85398 -0
  124. package/report/adapter-openapi.yaml +62985 -0
  125. package/report/adapterInfo.json +10 -0
  126. package/report/auto-adapter-openapi.json +9609 -0
  127. package/report/creationReport.json +2065 -0
  128. package/report/nutanix-openapi.json +85398 -0
  129. package/sampleProperties.json +257 -0
  130. package/test/integration/adapterTestBasicGet.js +83 -0
  131. package/test/integration/adapterTestConnectivity.js +118 -0
  132. package/test/integration/adapterTestIntegration.js +6792 -0
  133. package/test/unit/adapterBaseTestUnit.js +1024 -0
  134. package/test/unit/adapterTestUnit.js +9255 -0
  135. package/utils/adapterInfo.js +206 -0
  136. package/utils/addAuth.js +94 -0
  137. package/utils/artifactize.js +146 -0
  138. package/utils/basicGet.js +50 -0
  139. package/utils/checkMigrate.js +63 -0
  140. package/utils/entitiesToDB.js +179 -0
  141. package/utils/findPath.js +74 -0
  142. package/utils/methodDocumentor.js +273 -0
  143. package/utils/modify.js +152 -0
  144. package/utils/packModificationScript.js +35 -0
  145. package/utils/patches2bundledDeps.js +90 -0
  146. package/utils/pre-commit.sh +32 -0
  147. package/utils/removeHooks.js +20 -0
  148. package/utils/setup.js +33 -0
  149. package/utils/taskMover.js +309 -0
  150. package/utils/tbScript.js +239 -0
  151. package/utils/tbUtils.js +489 -0
  152. package/utils/testRunner.js +298 -0
  153. package/utils/troubleshootingAdapter.js +193 -0
@@ -0,0 +1,105 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "updateImagePlacementPolicy",
5
+ "protocol": "REST",
6
+ "method": "PUT",
7
+ "entitypath": "{base_path}/{version}/images/placement_policies/{pathv1}?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "deleteImagePlacementPolicy",
25
+ "protocol": "REST",
26
+ "method": "DELETE",
27
+ "entitypath": "{base_path}/{version}/images/placement_policies/{pathv1}?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "requestDatatype": "JSON",
33
+ "responseDatatype": "JSON",
34
+ "headers": {},
35
+ "responseObjects": [
36
+ {
37
+ "type": "default",
38
+ "key": "",
39
+ "mockFile": ""
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "name": "getImagePlacementPolicy",
45
+ "protocol": "REST",
46
+ "method": "GET",
47
+ "entitypath": "{base_path}/{version}/images/placement_policies/{pathv1}?{query}",
48
+ "requestSchema": "schema.json",
49
+ "responseSchema": "schema.json",
50
+ "timeout": 0,
51
+ "sendEmpty": false,
52
+ "sendGetBody": 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": "createAnImagePlacementPolicy",
66
+ "protocol": "REST",
67
+ "method": "POST",
68
+ "entitypath": "{base_path}/{version}/images/placement_policies?{query}",
69
+ "requestSchema": "schema.json",
70
+ "responseSchema": "schema.json",
71
+ "timeout": 0,
72
+ "sendEmpty": false,
73
+ "requestDatatype": "JSON",
74
+ "responseDatatype": "JSON",
75
+ "headers": {},
76
+ "responseObjects": [
77
+ {
78
+ "type": "default",
79
+ "key": "",
80
+ "mockFile": ""
81
+ }
82
+ ]
83
+ },
84
+ {
85
+ "name": "getImagePlacementPolicies",
86
+ "protocol": "REST",
87
+ "method": "POST",
88
+ "entitypath": "{base_path}/{version}/images/placement_policies/list?{query}",
89
+ "requestSchema": "schema.json",
90
+ "responseSchema": "schema.json",
91
+ "timeout": 0,
92
+ "sendEmpty": false,
93
+ "requestDatatype": "JSON",
94
+ "responseDatatype": "JSON",
95
+ "headers": {},
96
+ "responseObjects": [
97
+ {
98
+ "type": "default",
99
+ "key": "",
100
+ "mockFile": ""
101
+ }
102
+ ]
103
+ }
104
+ ]
105
+ }
@@ -0,0 +1,23 @@
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": "updateImagePlacementPolicy",
12
+ "enum": [
13
+ "updateImagePlacementPolicy",
14
+ "deleteImagePlacementPolicy",
15
+ "getImagePlacementPolicy",
16
+ "createAnImagePlacementPolicy",
17
+ "getImagePlacementPolicies"
18
+ ],
19
+ "external_name": "ph_request_type"
20
+ }
21
+ },
22
+ "definitions": {}
23
+ }
@@ -0,0 +1,166 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "uploadImageContents",
5
+ "protocol": "REST",
6
+ "method": "PUT",
7
+ "entitypath": "{base_path}/{version}/images/{pathv1}/file?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "getImageContents",
25
+ "protocol": "REST",
26
+ "method": "GET",
27
+ "entitypath": "{base_path}/{version}/images/{pathv1}/file?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "sendGetBody": 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": "createImage",
46
+ "protocol": "REST",
47
+ "method": "POST",
48
+ "entitypath": "{base_path}/{version}/images?{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": "getImages",
66
+ "protocol": "REST",
67
+ "method": "POST",
68
+ "entitypath": "{base_path}/{version}/images/list?{query}",
69
+ "requestSchema": "schema.json",
70
+ "responseSchema": "schema.json",
71
+ "timeout": 0,
72
+ "sendEmpty": false,
73
+ "requestDatatype": "JSON",
74
+ "responseDatatype": "JSON",
75
+ "headers": {},
76
+ "responseObjects": [
77
+ {
78
+ "type": "default",
79
+ "key": "",
80
+ "mockFile": ""
81
+ }
82
+ ]
83
+ },
84
+ {
85
+ "name": "updateImage",
86
+ "protocol": "REST",
87
+ "method": "PUT",
88
+ "entitypath": "{base_path}/{version}/images/{pathv1}?{query}",
89
+ "requestSchema": "schema.json",
90
+ "responseSchema": "schema.json",
91
+ "timeout": 0,
92
+ "sendEmpty": false,
93
+ "requestDatatype": "JSON",
94
+ "responseDatatype": "JSON",
95
+ "headers": {},
96
+ "responseObjects": [
97
+ {
98
+ "type": "default",
99
+ "key": "",
100
+ "mockFile": ""
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ "name": "deleteImage",
106
+ "protocol": "REST",
107
+ "method": "DELETE",
108
+ "entitypath": "{base_path}/{version}/images/{pathv1}?{query}",
109
+ "requestSchema": "schema.json",
110
+ "responseSchema": "schema.json",
111
+ "timeout": 0,
112
+ "sendEmpty": false,
113
+ "requestDatatype": "JSON",
114
+ "responseDatatype": "JSON",
115
+ "headers": {},
116
+ "responseObjects": [
117
+ {
118
+ "type": "default",
119
+ "key": "",
120
+ "mockFile": ""
121
+ }
122
+ ]
123
+ },
124
+ {
125
+ "name": "getImage",
126
+ "protocol": "REST",
127
+ "method": "GET",
128
+ "entitypath": "{base_path}/{version}/images/{pathv1}?{query}",
129
+ "requestSchema": "schema.json",
130
+ "responseSchema": "schema.json",
131
+ "timeout": 0,
132
+ "sendEmpty": false,
133
+ "sendGetBody": 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": "migrateImagesFromPEClusterToPC",
147
+ "protocol": "REST",
148
+ "method": "POST",
149
+ "entitypath": "{base_path}/{version}/images/migrate?{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
+ }
@@ -0,0 +1,26 @@
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": "uploadImageContents",
12
+ "enum": [
13
+ "uploadImageContents",
14
+ "getImageContents",
15
+ "createImage",
16
+ "getImages",
17
+ "updateImage",
18
+ "deleteImage",
19
+ "getImage",
20
+ "migrateImagesFromPEClusterToPC"
21
+ ],
22
+ "external_name": "ph_request_type"
23
+ }
24
+ },
25
+ "definitions": {}
26
+ }
@@ -0,0 +1,105 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "updateANetworkFunctionChain",
5
+ "protocol": "REST",
6
+ "method": "PUT",
7
+ "entitypath": "{base_path}/{version}/network_function_chains/{pathv1}?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "deleteANetworkFunctionChain",
25
+ "protocol": "REST",
26
+ "method": "DELETE",
27
+ "entitypath": "{base_path}/{version}/network_function_chains/{pathv1}?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "requestDatatype": "JSON",
33
+ "responseDatatype": "JSON",
34
+ "headers": {},
35
+ "responseObjects": [
36
+ {
37
+ "type": "default",
38
+ "key": "",
39
+ "mockFile": ""
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "name": "getANetworkFunctionChain",
45
+ "protocol": "REST",
46
+ "method": "GET",
47
+ "entitypath": "{base_path}/{version}/network_function_chains/{pathv1}?{query}",
48
+ "requestSchema": "schema.json",
49
+ "responseSchema": "schema.json",
50
+ "timeout": 0,
51
+ "sendEmpty": false,
52
+ "sendGetBody": 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": "createNetworkFunctionChain",
66
+ "protocol": "REST",
67
+ "method": "POST",
68
+ "entitypath": "{base_path}/{version}/network_function_chains?{query}",
69
+ "requestSchema": "schema.json",
70
+ "responseSchema": "schema.json",
71
+ "timeout": 0,
72
+ "sendEmpty": false,
73
+ "requestDatatype": "JSON",
74
+ "responseDatatype": "JSON",
75
+ "headers": {},
76
+ "responseObjects": [
77
+ {
78
+ "type": "default",
79
+ "key": "",
80
+ "mockFile": ""
81
+ }
82
+ ]
83
+ },
84
+ {
85
+ "name": "getNetworkFunctionChains",
86
+ "protocol": "REST",
87
+ "method": "POST",
88
+ "entitypath": "{base_path}/{version}/network_function_chains/list?{query}",
89
+ "requestSchema": "schema.json",
90
+ "responseSchema": "schema.json",
91
+ "timeout": 0,
92
+ "sendEmpty": false,
93
+ "requestDatatype": "JSON",
94
+ "responseDatatype": "JSON",
95
+ "headers": {},
96
+ "responseObjects": [
97
+ {
98
+ "type": "default",
99
+ "key": "",
100
+ "mockFile": ""
101
+ }
102
+ ]
103
+ }
104
+ ]
105
+ }
@@ -0,0 +1,23 @@
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": "updateANetworkFunctionChain",
12
+ "enum": [
13
+ "updateANetworkFunctionChain",
14
+ "deleteANetworkFunctionChain",
15
+ "getANetworkFunctionChain",
16
+ "createNetworkFunctionChain",
17
+ "getNetworkFunctionChains"
18
+ ],
19
+ "external_name": "ph_request_type"
20
+ }
21
+ },
22
+ "definitions": {}
23
+ }
@@ -0,0 +1,166 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "exportAllNetworkSecurityRules",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/network_security_rules/export?{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": "importNetworkSecurityRules",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/network_security_rules/import/apply?{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": "getAllNetworkSecurityRules",
46
+ "protocol": "REST",
47
+ "method": "POST",
48
+ "entitypath": "{base_path}/{version}/network_security_rules/list?{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": "createNetworkSecurityRule",
66
+ "protocol": "REST",
67
+ "method": "POST",
68
+ "entitypath": "{base_path}/{version}/network_security_rules?{query}",
69
+ "requestSchema": "schema.json",
70
+ "responseSchema": "schema.json",
71
+ "timeout": 0,
72
+ "sendEmpty": false,
73
+ "requestDatatype": "JSON",
74
+ "responseDatatype": "JSON",
75
+ "headers": {},
76
+ "responseObjects": [
77
+ {
78
+ "type": "default",
79
+ "key": "",
80
+ "mockFile": ""
81
+ }
82
+ ]
83
+ },
84
+ {
85
+ "name": "generatePolicyImportReport",
86
+ "protocol": "REST",
87
+ "method": "POST",
88
+ "entitypath": "{base_path}/{version}/network_security_rules/import/dry_run?{query}",
89
+ "requestSchema": "schema.json",
90
+ "responseSchema": "schema.json",
91
+ "timeout": 0,
92
+ "sendEmpty": false,
93
+ "requestDatatype": "JSON",
94
+ "responseDatatype": "JSON",
95
+ "headers": {},
96
+ "responseObjects": [
97
+ {
98
+ "type": "default",
99
+ "key": "",
100
+ "mockFile": ""
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ "name": "updateANetworkSecurityRule",
106
+ "protocol": "REST",
107
+ "method": "PUT",
108
+ "entitypath": "{base_path}/{version}/network_security_rules/{pathv1}?{query}",
109
+ "requestSchema": "schema.json",
110
+ "responseSchema": "schema.json",
111
+ "timeout": 0,
112
+ "sendEmpty": false,
113
+ "requestDatatype": "JSON",
114
+ "responseDatatype": "JSON",
115
+ "headers": {},
116
+ "responseObjects": [
117
+ {
118
+ "type": "default",
119
+ "key": "",
120
+ "mockFile": ""
121
+ }
122
+ ]
123
+ },
124
+ {
125
+ "name": "deleteANetworkSecurityRule",
126
+ "protocol": "REST",
127
+ "method": "DELETE",
128
+ "entitypath": "{base_path}/{version}/network_security_rules/{pathv1}?{query}",
129
+ "requestSchema": "schema.json",
130
+ "responseSchema": "schema.json",
131
+ "timeout": 0,
132
+ "sendEmpty": false,
133
+ "requestDatatype": "JSON",
134
+ "responseDatatype": "JSON",
135
+ "headers": {},
136
+ "responseObjects": [
137
+ {
138
+ "type": "default",
139
+ "key": "",
140
+ "mockFile": ""
141
+ }
142
+ ]
143
+ },
144
+ {
145
+ "name": "getANetworkSecurityRule",
146
+ "protocol": "REST",
147
+ "method": "GET",
148
+ "entitypath": "{base_path}/{version}/network_security_rules/{pathv1}?{query}",
149
+ "requestSchema": "schema.json",
150
+ "responseSchema": "schema.json",
151
+ "timeout": 0,
152
+ "sendEmpty": false,
153
+ "sendGetBody": false,
154
+ "requestDatatype": "JSON",
155
+ "responseDatatype": "JSON",
156
+ "headers": {},
157
+ "responseObjects": [
158
+ {
159
+ "type": "default",
160
+ "key": "",
161
+ "mockFile": ""
162
+ }
163
+ ]
164
+ }
165
+ ]
166
+ }
@@ -0,0 +1,26 @@
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": "exportAllNetworkSecurityRules",
12
+ "enum": [
13
+ "exportAllNetworkSecurityRules",
14
+ "importNetworkSecurityRules",
15
+ "getAllNetworkSecurityRules",
16
+ "createNetworkSecurityRule",
17
+ "generatePolicyImportReport",
18
+ "updateANetworkSecurityRule",
19
+ "deleteANetworkSecurityRule",
20
+ "getANetworkSecurityRule"
21
+ ],
22
+ "external_name": "ph_request_type"
23
+ }
24
+ },
25
+ "definitions": {}
26
+ }