Class TemplateServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.heat.internal.BaseHeatServices
-
- org.openstack4j.openstack.heat.internal.TemplateServiceImpl
-
- All Implemented Interfaces:
TemplateService
public class TemplateServiceImpl extends BaseHeatServices implements TemplateService
This class implements all methods for manipulation ofHeatTemplateobjects. The non-exhaustive list of methods is oriented along http://developer.openstack.org/api-ref-orchestration-v1.html#stack-templates- Author:
- Matthias Reisser
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description TemplateServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getTemplateAsMap(String stackNameOrId)Retrieves the original template as Mapwhen you know only the stack name or stack id Map<String,Object>getTemplateAsMap(String stackName, String stackId)Retrieves the original template as MapStringgetTemplateAsString(String stackName, String stackId)Retrieves the original template in original String form JSON or YAMLTemplateResponsevalidateTemplate(String template)Validates the templateTemplateResponsevalidateTemplate(Template template)Validates the templateTemplateResponsevalidateTemplateByURL(String templateURL)Validates the template-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
validateTemplate
public TemplateResponse validateTemplate(String template)
Validates the template- Specified by:
validateTemplatein interfaceTemplateService- Parameters:
template- to validate, passed asStringin JSON Format- Returns:
- TemplateResponse indicating valid or the error condition if not valid
-
validateTemplateByURL
public TemplateResponse validateTemplateByURL(String templateURL)
Validates the template- Specified by:
validateTemplateByURLin interfaceTemplateService- Parameters:
templateURL- the remote template via URL to validate- Returns:
- TemplateResponse indicating valid or the error condition if not valid
-
validateTemplate
public TemplateResponse validateTemplate(Template template)
Validates the template- Specified by:
validateTemplatein interfaceTemplateService- Parameters:
template- to validate, passed as aTemplate- Returns:
- TemplateResponse indicating valid or the error condition if not valid
-
getTemplateAsString
public String getTemplateAsString(String stackName, String stackId)
Retrieves the original template in original String form JSON or YAML- Specified by:
getTemplateAsStringin interfaceTemplateService- Parameters:
stackName- the stack namestackId- the stack identifier- Returns:
- the template
-
getTemplateAsMap
public Map<String,Object> getTemplateAsMap(String stackName, String stackId)
Retrieves the original template as Map- Specified by:
getTemplateAsMapin interfaceTemplateService- Parameters:
stackName- the stack namestackId- the stack identifier- Returns:
- the template
-
getTemplateAsMap
public Map<String,Object> getTemplateAsMap(String stackNameOrId)
Retrieves the original template as Mapwhen you know only the stack name or stack id - Specified by:
getTemplateAsMapin interfaceTemplateService- Parameters:
stackNameOrId- the stack name or stackId- Returns:
- the template
-
-