Class MuranoApplicationUtils
- java.lang.Object
-
- org.openstack4j.openstack.murano.v1.utils.MuranoApplicationUtils
-
public class MuranoApplicationUtils extends Object
- Author:
- Nikolay Mahotkin.
-
-
Constructor Summary
Constructors Constructor Description MuranoApplicationUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MuranoApplication.ApplicationListtoApplications(com.fasterxml.jackson.databind.JsonNode json)Murano API has some methods which can return both item and List- .
static MuranoApplication.ApplicationListtoApplications(String jsonString)It is done due to the bug in restEasy connector: it can't send json as String whereas all other connectors work fine.
-
-
-
Method Detail
-
toApplications
public static MuranoApplication.ApplicationList toApplications(com.fasterxml.jackson.databind.JsonNode json)
Murano API has some methods which can return both item and List- . Need to cast it to one type which can be used further for convenience work.
- Parameters:
json- JsonNode- Returns:
- a List of Applications
-
toApplications
public static MuranoApplication.ApplicationList toApplications(String jsonString)
It is done due to the bug in restEasy connector: it can't send json as String whereas all other connectors work fine.- Parameters:
jsonString- json-encoded String- Returns:
- ApplicationList representing the Applications given in @jsonString
-
-