public class TemplateServiceImpl extends BaseHeatServices implements TemplateService
HeatTemplate
objects. The non-exhaustive list of methods is oriented along
http://developer.openstack.org/api-ref-orchestration-v1.html#stack-templatesBaseOpenStackService.Invocation<R>| Constructor and Description |
|---|
TemplateServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getTemplateAsMap(String stackNameOrId)
Retrieves the original template as Map
|
Map<String,Object> |
getTemplateAsMap(String stackName,
String stackId)
Retrieves the original template as Map
|
String |
getTemplateAsString(String stackName,
String stackId)
Retrieves the original template in original String form JSON or YAML
|
TemplateResponse |
validateTemplate(String template)
Validates the template
|
TemplateResponse |
validateTemplate(Template template)
Validates the template
|
TemplateResponse |
validateTemplateByURL(String templateURL)
Validates the template
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uripublic TemplateResponse validateTemplate(String template)
validateTemplate in interface TemplateServicetemplate - to validate, passed as String in JSON Formatpublic TemplateResponse validateTemplateByURL(String templateURL)
validateTemplateByURL in interface TemplateServicetemplateURL - the remote template via URL to validatepublic TemplateResponse validateTemplate(Template template)
validateTemplate in interface TemplateServicetemplate - to validate, passed as a Templatepublic String getTemplateAsString(String stackName, String stackId)
getTemplateAsString in interface TemplateServicestackName - the stack namestackId - the stack identifierpublic Map<String,Object> getTemplateAsMap(String stackName, String stackId)
getTemplateAsMap in interface TemplateServicestackName - the stack namestackId - the stack identifierpublic Map<String,Object> getTemplateAsMap(String stackNameOrId)
getTemplateAsMap in interface TemplateServicestackNameOrId - the stack name or stackIdCopyright © 2017. All rights reserved.