public class TemplateOperationsImpl extends OpenShiftOperation<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList,io.fabric8.openshift.api.model.DoneableTemplate,TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList,io.fabric8.openshift.api.model.DoneableTemplate>> implements TemplateOperation
DEFAULT_PROPAGATION_POLICYapiVersion, doneableType, listType, typeapiGroupName, apiGroupVersion, client, config, context, JSON, JSON_MAPPER, JSON_PATCH, name, namespace, resourceT, YAML_MAPPERDEFAULT_BACKOFF_MULTIPLIER, DEFAULT_INITIAL_BACKOFF_MILLIS| Constructor and Description |
|---|
TemplateOperationsImpl(okhttp3.OkHttpClient client,
OpenShiftConfig config) |
TemplateOperationsImpl(TemplateOperationContext context) |
| Modifier and Type | Method and Description |
|---|---|
TemplateOperationContext |
getContext() |
protected io.fabric8.openshift.api.model.Template |
handleGet(URL resourceUrl) |
protected <T> T |
handleResponse(okhttp3.Request.Builder requestBuilder,
Class<T> type) |
TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList,io.fabric8.openshift.api.model.DoneableTemplate> |
load(InputStream is) |
TemplateOperationsImpl |
newInstance(OperationContext context) |
io.fabric8.kubernetes.api.model.KubernetesList |
process(File f)
Process a template reading parameter values from a
File in json or yml format. |
io.fabric8.kubernetes.api.model.KubernetesList |
process(InputStream is)
Process a template reading parameter values from an
InputStream in json or yml format. |
io.fabric8.kubernetes.api.model.KubernetesList |
process(Map<String,String> valuesMap)
Process a template reading parameter values from am
Map. |
io.fabric8.kubernetes.api.model.KubernetesList |
process(ParameterValue... values)
Process a template with the specified
ParameterValues. |
io.fabric8.kubernetes.api.model.KubernetesList |
processLocally(File f)
Process a template locally reading parameter values from a
File in json or yml format. |
io.fabric8.kubernetes.api.model.KubernetesList |
processLocally(InputStream is)
Process a template locally reading parameter values from an
InputStream in json or yml format. |
io.fabric8.kubernetes.api.model.KubernetesList |
processLocally(Map<String,String> valuesMap)
Process a template locally reading parameter values from am
Map. |
io.fabric8.kubernetes.api.model.KubernetesList |
processLocally(ParameterValue... values)
Process a template with the specified
ParameterValues. |
MixedOperation<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList,io.fabric8.openshift.api.model.DoneableTemplate,TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList,io.fabric8.openshift.api.model.DoneableTemplate>> |
withParameters(Map<String,String> parameters) |
getConfig, getConfigType, getRootUrledit, patch, replacecascading, create, create, createNew, createOrReplace, createOrReplaceWithNew, delete, delete, delete, fetchListUrl, 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, handleDeploymentRollback, handlePatch, handleReplace, handleResponse, handleScale, inAnyNamespace, inNamespace, isApiGroup, isCascading, isReady, isReloadingFromServer, isResourceNamespaced, list, list, list, load, load, load, lockResourceVersion, require, setListType, setNamespace, setType, updateApiVersion, updateApiVersion, updateApiVersionResource, updateStatus, waitUntilCondition, waitUntilReady, watch, watch, watch, withField, withFields, withGracePeriod, withItem, withLabel, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withName, withoutField, withoutFields, withoutLabel, withoutLabel, withoutLabels, withPropagationPolicy, withResourceVersion, withWaitRetryBackoffassertResponseCode, checkName, checkNamespace, createStatus, createStatus, getAPIGroup, getAPIVersion, getName, getNamespace, getNamespacedUrl, getNamespacedUrl, getNamespacedUrl, getResourceUrl, getResourceUrl, handleCreate, handleDelete, handleDelete, handleDeploymentRollback, handleGet, handleGet, handleMetric, handlePatch, handleReplace, handleReplace, handleResponse, handleResponse, handleResponse, handleScale, handleStatusUpdate, requestException, requestFailure, unmarshal, unmarshal, unmarshalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create, createNewfromServerreplacelockResourceVersionwaitUntilCondition, waitUntilReady, withWaitRetryBackoffrequireinAnyNamespaceinNamespacewithField, withFields, withLabel, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withoutField, withoutFields, withoutLabel, withoutLabel, withoutLabelswithResourceVersionwithGracePeriodupdateStatuswithPropagationPolicydelete, deletecreateOrReplace, createOrReplaceWithNewgetName, getNamespacepublic TemplateOperationsImpl(okhttp3.OkHttpClient client,
OpenShiftConfig config)
public TemplateOperationsImpl(TemplateOperationContext context)
public TemplateOperationsImpl newInstance(OperationContext context)
newInstance in class BaseOperation<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList,io.fabric8.openshift.api.model.DoneableTemplate,TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList,io.fabric8.openshift.api.model.DoneableTemplate>>public TemplateOperationContext getContext()
public io.fabric8.kubernetes.api.model.KubernetesList process(File f)
ProcessableFile in json or yml format.process in interface Processable<io.fabric8.kubernetes.api.model.KubernetesList>f - The specified File.public io.fabric8.kubernetes.api.model.KubernetesList process(InputStream is)
ProcessableInputStream in json or yml format.process in interface Processable<io.fabric8.kubernetes.api.model.KubernetesList>is - The specified InputStream.public io.fabric8.kubernetes.api.model.KubernetesList process(Map<String,String> valuesMap)
ProcessableMap.process in interface Processable<io.fabric8.kubernetes.api.model.KubernetesList>valuesMap - The specified Map.public io.fabric8.kubernetes.api.model.KubernetesList process(ParameterValue... values)
ProcessableParameterValues.process in interface Processable<io.fabric8.kubernetes.api.model.KubernetesList>values - The specified ParameterValues.public io.fabric8.kubernetes.api.model.KubernetesList processLocally(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<io.fabric8.kubernetes.api.model.KubernetesList>f - The specified File.public io.fabric8.kubernetes.api.model.KubernetesList processLocally(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<io.fabric8.kubernetes.api.model.KubernetesList>is - The specified InputStream.public io.fabric8.kubernetes.api.model.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<io.fabric8.kubernetes.api.model.KubernetesList>values - The specified ParameterValues.public MixedOperation<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList,io.fabric8.openshift.api.model.DoneableTemplate,TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList,io.fabric8.openshift.api.model.DoneableTemplate>> withParameters(Map<String,String> parameters)
withParameters in interface Parameterizable<MixedOperation<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList,io.fabric8.openshift.api.model.DoneableTemplate,TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList,io.fabric8.openshift.api.model.DoneableTemplate>>>public io.fabric8.kubernetes.api.model.KubernetesList processLocally(Map<String,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<io.fabric8.kubernetes.api.model.KubernetesList>valuesMap - The specified Map.public TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList,io.fabric8.openshift.api.model.DoneableTemplate> load(InputStream is)
load in interface Loadable<TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList,io.fabric8.openshift.api.model.DoneableTemplate>>load in class BaseOperation<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList,io.fabric8.openshift.api.model.DoneableTemplate,TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList,io.fabric8.openshift.api.model.DoneableTemplate>>protected io.fabric8.openshift.api.model.Template handleGet(URL resourceUrl) throws InterruptedException, ExecutionException, IOException
handleGet in class BaseOperation<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList,io.fabric8.openshift.api.model.DoneableTemplate,TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList,io.fabric8.openshift.api.model.DoneableTemplate>>InterruptedExceptionExecutionExceptionIOExceptionprotected <T> T handleResponse(okhttp3.Request.Builder requestBuilder,
Class<T> type)
throws ExecutionException,
InterruptedException,
KubernetesClientException,
IOException
handleResponse in class OperationSupportExecutionExceptionInterruptedExceptionKubernetesClientExceptionIOExceptionCopyright © 2015–2020 Red Hat. All rights reserved.