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, uri
public TemplateResponse validateTemplate(String template)
validateTemplate
in interface TemplateService
template
- to validate, passed as String
in JSON Formatpublic TemplateResponse validateTemplateByURL(String templateURL)
validateTemplateByURL
in interface TemplateService
templateURL
- the remote template via URL to validatepublic TemplateResponse validateTemplate(Template template)
validateTemplate
in interface TemplateService
template
- to validate, passed as a Template
public String getTemplateAsString(String stackName, String stackId)
getTemplateAsString
in interface TemplateService
stackName
- the stack namestackId
- the stack identifierpublic Map<String,Object> getTemplateAsMap(String stackName, String stackId)
getTemplateAsMap
in interface TemplateService
stackName
- the stack namestackId
- the stack identifierpublic Map<String,Object> getTemplateAsMap(String stackNameOrId)
getTemplateAsMap
in interface TemplateService
stackNameOrId
- the stack name or stackIdCopyright © 2017. All rights reserved.