public class TemplateOperationsImpl extends OpenShiftOperation<Template,TemplateList,DoneableTemplate,TemplateResource<Template,KubernetesList,DoneableTemplate>> implements TemplateOperation
apiVersion, doneableType, listType, reaper, typeapiGroupName, apiGroupVersion, client, config, context, JSON, JSON_MAPPER, JSON_PATCH, name, namespace, resourceT, YAML_MAPPER| Constructor and Description |
|---|
TemplateOperationsImpl(okhttp3.OkHttpClient client,
OpenShiftConfig config) |
TemplateOperationsImpl(TemplateOperationContext context) |
| Modifier and Type | Method and Description |
|---|---|
TemplateOperationContext |
getContext() |
protected Template |
handleGet(java.net.URL resourceUrl) |
protected <T> T |
handleResponse(okhttp3.Request.Builder requestBuilder,
java.lang.Class<T> type) |
TemplateResource<Template,KubernetesList,DoneableTemplate> |
load(java.io.InputStream is) |
TemplateOperationsImpl |
newInstance(OperationContext context) |
KubernetesList |
process(java.io.File f)
Process a template reading parameter values from a
File in json or yml format. |
KubernetesList |
process(java.io.InputStream is)
Process a template reading parameter values from an
InputStream in json or yml format. |
KubernetesList |
process(java.util.Map<java.lang.String,java.lang.String> valuesMap)
Process a template reading parameter values from am
Map. |
KubernetesList |
process(ParameterValue... values)
Process a template with the specified
ParameterValues. |
KubernetesList |
processLocally(java.io.File f)
Process a template locally reading parameter values from a
File in json or yml format. |
KubernetesList |
processLocally(java.io.InputStream is)
Process a template locally reading parameter values from an
InputStream in json or yml format. |
KubernetesList |
processLocally(java.util.Map<java.lang.String,java.lang.String> valuesMap)
Process a template locally reading parameter values from am
Map. |
KubernetesList |
processLocally(ParameterValue... values)
Process a template with the specified
ParameterValues. |
MixedOperation<Template,TemplateList,DoneableTemplate,TemplateResource<Template,KubernetesList,DoneableTemplate>> |
withParameters(java.util.Map<java.lang.String,java.lang.String> parameters) |
getConfig, getConfigType, getRootUrledit, patch, periodicWatchUntilReady, replace, waitUntilReadycascading, create, createNew, createOrReplace, createOrReplaceWithNew, delete, delete, delete, forOperationType, fromServer, get, getApiVersion, getDoneableType, getFieldQueryParam, getFields, getFieldsNot, getGracePeriodSeconds, getItem, getKind, getLabelQueryParam, getLabels, getLabelsIn, getLabelsNot, getLabelsNotIn, getListType, getMandatory, getOperationType, getPropagationPolicy, getReloadingFromServer, getResourceT, getResourceVersion, getRootPaths, getType, handleCreate, handlePatch, handleReplace, handleResponse, inAnyNamespace, inNamespace, isApiGroup, isCascading, isReady, isReaping, isReloadingFromServer, isResourceNamespaced, list, list, load, load, load, lockResourceVersion, require, setReaping, updateApiVersion, updateApiVersion, updateApiVersionResource, waitUntilCondition, waitUntilExists, watch, watch, withField, withFields, withGracePeriod, withItem, withLabel, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withName, withoutField, withoutFields, withoutLabel, withoutLabel, withoutLabels, withPropagationPolicy, withResourceVersionassertResponseCode, checkName, checkNamespace, createStatus, createStatus, getAPIGroup, getAPIVersion, getName, getNamespace, getNamespacedUrl, getNamespacedUrl, getNamespacedUrl, getResourceUrl, getResourceUrl, handleCreate, handleDelete, handleDelete, handleGet, handleGet, handlePatch, handleReplace, handleReplace, handleResponse, handleResponse, handleResponse, requestException, requestFailure, unmarshal, unmarshal, unmarshalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, createNewfromServerreplacelockResourceVersionwaitUntilCondition, waitUntilReadyrequireinAnyNamespaceinNamespacewithField, withFields, withLabel, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withoutField, withoutFields, withoutLabel, withoutLabel, withoutLabelswithResourceVersionwithGracePeriodwithPropagationPolicydelete, deletecreateOrReplace, createOrReplaceWithNewgetName, getNamespacepublic TemplateOperationsImpl(okhttp3.OkHttpClient client,
OpenShiftConfig config)
public TemplateOperationsImpl(TemplateOperationContext context)
public TemplateOperationsImpl newInstance(OperationContext context)
newInstance in class BaseOperation<Template,TemplateList,DoneableTemplate,TemplateResource<Template,KubernetesList,DoneableTemplate>>public TemplateOperationContext getContext()
public KubernetesList process(java.io.File f)
ProcessableFile in json or yml format.process in interface Processable<KubernetesList>f - The specified File.public KubernetesList process(java.io.InputStream is)
ProcessableInputStream in json or yml format.process in interface Processable<KubernetesList>is - The specified InputStream.public KubernetesList process(java.util.Map<java.lang.String,java.lang.String> valuesMap)
ProcessableMap.process in interface Processable<KubernetesList>valuesMap - The specified Map.public KubernetesList process(ParameterValue... values)
ProcessableParameterValues.process in interface Processable<KubernetesList>values - The specified ParameterValues.public KubernetesList processLocally(java.io.File f)
ProcessableFile in json or yml format.
This kind of processing is performed locally, without communicating with the server (e.g for generating values using expressions).processLocally in interface Processable<KubernetesList>f - The specified File.public KubernetesList processLocally(java.io.InputStream is)
ProcessableInputStream in json or yml format.
This kind of processing is performed locally, without communicating with the server (e.g for generating values using expressions).processLocally in interface Processable<KubernetesList>is - The specified InputStream.public KubernetesList processLocally(ParameterValue... values)
ProcessableParameterValues.
This kind of processing is performed locally, without communicating with the server (e.g for generating values using expressions).processLocally in interface Processable<KubernetesList>values - The specified ParameterValues.public MixedOperation<Template,TemplateList,DoneableTemplate,TemplateResource<Template,KubernetesList,DoneableTemplate>> withParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
withParameters in interface Parameterizable<MixedOperation<Template,TemplateList,DoneableTemplate,TemplateResource<Template,KubernetesList,DoneableTemplate>>>public KubernetesList processLocally(java.util.Map<java.lang.String,java.lang.String> valuesMap)
ProcessableMap.
This kind of processing is performed locally, without communicating with the server (e.g for generating values using expressions).processLocally in interface Processable<KubernetesList>valuesMap - The specified Map.public TemplateResource<Template,KubernetesList,DoneableTemplate> load(java.io.InputStream is)
load in interface Loadable<TemplateResource<Template,KubernetesList,DoneableTemplate>>load in class BaseOperation<Template,TemplateList,DoneableTemplate,TemplateResource<Template,KubernetesList,DoneableTemplate>>protected Template handleGet(java.net.URL resourceUrl) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.io.IOException
handleGet in class BaseOperation<Template,TemplateList,DoneableTemplate,TemplateResource<Template,KubernetesList,DoneableTemplate>>java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.io.IOExceptionprotected <T> T handleResponse(okhttp3.Request.Builder requestBuilder,
java.lang.Class<T> type)
throws java.util.concurrent.ExecutionException,
java.lang.InterruptedException,
KubernetesClientException,
java.io.IOException
handleResponse in class OperationSupportjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionKubernetesClientExceptionjava.io.IOExceptionCopyright © 2015-2019 Red Hat. All Rights Reserved.