public class Template extends KubernetesResource implements ITemplate
ANNOTATIONS, APIVERSION, CREATION_TIMESTAMP, FROM, KIND, LABELS, METADATA, METADATA_NAME, METADATA_NAMESPACE, METADATA_RESOURCE_VERSION, METADATA_UID, NAME, NAMESPACE, OBJECTS, PORTS, PROTOCOL, RESOURCE_VERSION, TYPE, VALUE| Constructor and Description |
|---|
Template(org.jboss.dmr.ModelNode node,
IClient client,
Map<String,String[]> overrideProperties) |
| Modifier and Type | Method and Description |
|---|---|
void |
addObjectLabel(String key,
String value)
Add or update a label that is applied to the objects of the template when it
is processed
|
Map<String,String> |
getObjectLabels()
Retrieves the labels that are applied to the objects of the template when it
is processed.
|
Collection<IResource> |
getObjects()
Retrieves the list of resources this template creates
|
Map<String,IParameter> |
getParameters()
Returns a map of parameter names to parameters.
|
boolean |
isMatching(String text)
Returns
true if this template contains the given text in name or
tags. |
void |
updateParameter(String key,
String value)
Update a parameter if it exists
|
void |
updateParameterValues(Collection<IParameter> parameters)
Update the template's parameter values, with the values from the collection
if a parameter with the same name is found
|
accept, addLabel, asBoolean, asBoolean, asInt, asInt, asMap, asSet, asString, asString, equals, get, get, getAnnotation, getAnnotations, getApiVersion, getCapabilities, getCapability, getClient, getCreationTimeStamp, getEnvMap, getKind, getLabels, getMetadata, getModifiableCapabilities, getName, getNamespace, getNamespaceName, getNode, getPath, getProject, getPropertyKeys, getResourceVersion, has, hashCode, isAnnotatedWith, refresh, removeAnnotation, set, set, set, set, set, set, set, set, set, setAnnotation, setEnvMap, setName, setNamespace, setNode, supports, toJson, toJson, toPrettyString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddLabel, getAnnotation, getAnnotations, getCapabilities, getCreationTimeStamp, getLabels, getMetadata, getName, getNamespace, getNamespaceName, getProject, getResourceVersion, isAnnotatedWith, removeAnnotation, setAnnotationaccept, getCapability, supportsgetApiVersiontoJson, toJsonpublic Map<String,String> getObjectLabels()
ITemplategetObjectLabels in interface ITemplatepublic void addObjectLabel(String key, String value)
ITemplateaddObjectLabel in interface ITemplatepublic Map<String,IParameter> getParameters()
ITemplategetParameters in interface ITemplatepublic Collection<IResource> getObjects()
ITemplategetObjects in interface ITemplatepublic void updateParameterValues(Collection<IParameter> parameters)
ITemplateupdateParameterValues in interface ITemplatepublic void updateParameter(String key, String value)
ITemplateupdateParameter in interface ITemplatepublic boolean isMatching(String text)
true if this template contains the given text in name or
tags.isMatching in interface ITemplateCopyright © 2019 Red Hat, Inc. All Rights Reserved.