@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,145 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "clearAllRoutingPolicyCounters",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/vpcs/{pathv1}/routing_policies/reset_counters?{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": "clearRoutingPolicyCounters",
25
+ "protocol": "REST",
26
+ "method": "POST",
27
+ "entitypath": "{base_path}/{version}/routing_policies/{pathv1}/reset_counters?{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": "updateRoutingPolicy",
45
+ "protocol": "REST",
46
+ "method": "PUT",
47
+ "entitypath": "{base_path}/{version}/routing_policies/{pathv1}?{query}",
48
+ "requestSchema": "schema.json",
49
+ "responseSchema": "schema.json",
50
+ "timeout": 0,
51
+ "sendEmpty": false,
52
+ "requestDatatype": "JSON",
53
+ "responseDatatype": "JSON",
54
+ "headers": {},
55
+ "responseObjects": [
56
+ {
57
+ "type": "default",
58
+ "key": "",
59
+ "mockFile": ""
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ "name": "deleteRoutingPolicy",
65
+ "protocol": "REST",
66
+ "method": "DELETE",
67
+ "entitypath": "{base_path}/{version}/routing_policies/{pathv1}?{query}",
68
+ "requestSchema": "schema.json",
69
+ "responseSchema": "schema.json",
70
+ "timeout": 0,
71
+ "sendEmpty": false,
72
+ "requestDatatype": "JSON",
73
+ "responseDatatype": "JSON",
74
+ "headers": {},
75
+ "responseObjects": [
76
+ {
77
+ "type": "default",
78
+ "key": "",
79
+ "mockFile": ""
80
+ }
81
+ ]
82
+ },
83
+ {
84
+ "name": "getARoutingPolicy",
85
+ "protocol": "REST",
86
+ "method": "GET",
87
+ "entitypath": "{base_path}/{version}/routing_policies/{pathv1}?{query}",
88
+ "requestSchema": "schema.json",
89
+ "responseSchema": "schema.json",
90
+ "timeout": 0,
91
+ "sendEmpty": false,
92
+ "sendGetBody": 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": "getRoutingPolicies",
106
+ "protocol": "REST",
107
+ "method": "POST",
108
+ "entitypath": "{base_path}/{version}/routing_policies/list?{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": "createARoutingPolicy",
126
+ "protocol": "REST",
127
+ "method": "POST",
128
+ "entitypath": "{base_path}/{version}/routing_policies?{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
+ }
@@ -0,0 +1,25 @@
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": "clearAllRoutingPolicyCounters",
12
+ "enum": [
13
+ "clearAllRoutingPolicyCounters",
14
+ "clearRoutingPolicyCounters",
15
+ "updateRoutingPolicy",
16
+ "deleteRoutingPolicy",
17
+ "getARoutingPolicy",
18
+ "getRoutingPolicies",
19
+ "createARoutingPolicy"
20
+ ],
21
+ "external_name": "ph_request_type"
22
+ }
23
+ },
24
+ "definitions": {}
25
+ }
@@ -0,0 +1,105 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "updateAServiceGroup",
5
+ "protocol": "REST",
6
+ "method": "PUT",
7
+ "entitypath": "{base_path}/{version}/service_groups/{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": "deleteAServiceGroup",
25
+ "protocol": "REST",
26
+ "method": "DELETE",
27
+ "entitypath": "{base_path}/{version}/service_groups/{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": "getAServiceGroup",
45
+ "protocol": "REST",
46
+ "method": "GET",
47
+ "entitypath": "{base_path}/{version}/service_groups/{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": "createAServiceGroup",
66
+ "protocol": "REST",
67
+ "method": "POST",
68
+ "entitypath": "{base_path}/{version}/service_groups?{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": "getServiceGroups",
86
+ "protocol": "REST",
87
+ "method": "POST",
88
+ "entitypath": "{base_path}/{version}/service_groups/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": "updateAServiceGroup",
12
+ "enum": [
13
+ "updateAServiceGroup",
14
+ "deleteAServiceGroup",
15
+ "getAServiceGroup",
16
+ "createAServiceGroup",
17
+ "getServiceGroups"
18
+ ],
19
+ "external_name": "ph_request_type"
20
+ }
21
+ },
22
+ "definitions": {}
23
+ }
@@ -0,0 +1,125 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getStoragePolicies",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/storage_policies/list?{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": "createAStoragePolicy",
25
+ "protocol": "REST",
26
+ "method": "POST",
27
+ "entitypath": "{base_path}/{version}/storage_policies?{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": "updateStoragePolicy",
45
+ "protocol": "REST",
46
+ "method": "PUT",
47
+ "entitypath": "{base_path}/{version}/storage_policies/{pathv1}?{query}",
48
+ "requestSchema": "schema.json",
49
+ "responseSchema": "schema.json",
50
+ "timeout": 0,
51
+ "sendEmpty": false,
52
+ "requestDatatype": "JSON",
53
+ "responseDatatype": "JSON",
54
+ "headers": {},
55
+ "responseObjects": [
56
+ {
57
+ "type": "default",
58
+ "key": "",
59
+ "mockFile": ""
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ "name": "deleteStoragePolicy",
65
+ "protocol": "REST",
66
+ "method": "DELETE",
67
+ "entitypath": "{base_path}/{version}/storage_policies/{pathv1}?{query}",
68
+ "requestSchema": "schema.json",
69
+ "responseSchema": "schema.json",
70
+ "timeout": 0,
71
+ "sendEmpty": false,
72
+ "requestDatatype": "JSON",
73
+ "responseDatatype": "JSON",
74
+ "headers": {},
75
+ "responseObjects": [
76
+ {
77
+ "type": "default",
78
+ "key": "",
79
+ "mockFile": ""
80
+ }
81
+ ]
82
+ },
83
+ {
84
+ "name": "getStoragePolicy",
85
+ "protocol": "REST",
86
+ "method": "GET",
87
+ "entitypath": "{base_path}/{version}/storage_policies/{pathv1}?{query}",
88
+ "requestSchema": "schema.json",
89
+ "responseSchema": "schema.json",
90
+ "timeout": 0,
91
+ "sendEmpty": false,
92
+ "sendGetBody": 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": "postStoragePoliciesComputeCounts",
106
+ "protocol": "REST",
107
+ "method": "POST",
108
+ "entitypath": "{base_path}/{version}/storage_policies/compute_counts?{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
+ }
@@ -0,0 +1,24 @@
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": "getStoragePolicies",
12
+ "enum": [
13
+ "getStoragePolicies",
14
+ "createAStoragePolicy",
15
+ "updateStoragePolicy",
16
+ "deleteStoragePolicy",
17
+ "getStoragePolicy",
18
+ "postStoragePoliciesComputeCounts"
19
+ ],
20
+ "external_name": "ph_request_type"
21
+ }
22
+ },
23
+ "definitions": {}
24
+ }
@@ -0,0 +1,105 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "updateASubnet",
5
+ "protocol": "REST",
6
+ "method": "PUT",
7
+ "entitypath": "{base_path}/{version}/subnets/{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": "deleteASubnet",
25
+ "protocol": "REST",
26
+ "method": "DELETE",
27
+ "entitypath": "{base_path}/{version}/subnets/{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": "getASubnet",
45
+ "protocol": "REST",
46
+ "method": "GET",
47
+ "entitypath": "{base_path}/{version}/subnets/{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": "getSubnets",
66
+ "protocol": "REST",
67
+ "method": "POST",
68
+ "entitypath": "{base_path}/{version}/subnets/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": "createASubnet",
86
+ "protocol": "REST",
87
+ "method": "POST",
88
+ "entitypath": "{base_path}/{version}/subnets?{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": "updateASubnet",
12
+ "enum": [
13
+ "updateASubnet",
14
+ "deleteASubnet",
15
+ "getASubnet",
16
+ "getSubnets",
17
+ "createASubnet"
18
+ ],
19
+ "external_name": "ph_request_type"
20
+ }
21
+ },
22
+ "definitions": {}
23
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getATask",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/tasks/{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": "issueAbortRequestOnTask",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/tasks/{pathv1}/abort?{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
+ }
@@ -0,0 +1,20 @@
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": "getATask",
12
+ "enum": [
13
+ "getATask",
14
+ "issueAbortRequestOnTask"
15
+ ],
16
+ "external_name": "ph_request_type"
17
+ }
18
+ },
19
+ "definitions": {}
20
+ }