private A1ClientHelper() {
}
- protected static String createInputJsonString(SdncOscAdapterInput inputParams) {
+ protected static <T> String createInputJsonString(T inputParams) {
JSONObject inputJson = new JSONObject();
inputJson.put("input", new JSONObject(gson.toJson(inputParams)));
return inputJson.toString();
return ImmutablePolicyType.builder().name(name).schema("schema").build();
}
+ protected static String getCreateSchema(String policyType, String policyTypeId) {
+ JSONObject obj = new JSONObject(policyType);
+ JSONObject schemaObj = obj.getJSONObject("create_schema");
+ schemaObj.put("title", policyTypeId);
+ return schemaObj.toString();
+ }
}