Class TemplateOperationsImpl
java.lang.Object
io.fabric8.kubernetes.client.dsl.base.OperationSupport
io.fabric8.kubernetes.client.dsl.base.BaseOperation<T,L,D,R>
io.fabric8.kubernetes.client.dsl.base.HasMetadataOperation<T,L,D,R>
io.fabric8.openshift.client.dsl.internal.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>>
io.fabric8.openshift.client.dsl.internal.TemplateOperationsImpl
- All Implemented Interfaces:
AnyNamespaceable<FilterWatchListMultiDeletable<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList,Boolean,Watch,Watcher<io.fabric8.openshift.api.model.Template>>>,Cascading<EditReplacePatchDeletable<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.DoneableTemplate,Boolean>>,CascadingEditReplacePatchDeletable<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.DoneableTemplate,Boolean>,Createable<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.DoneableTemplate>,CreateFromServerGettable<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.DoneableTemplate>,CreateOrReplaceable<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.DoneableTemplate>,Deletable<Boolean>,Editable<io.fabric8.openshift.api.model.DoneableTemplate>,EditReplacePatchable<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.DoneableTemplate>,EditReplacePatchDeletable<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.DoneableTemplate,Boolean>,Filterable<FilterWatchListDeletable<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList,Boolean,Watch,Watcher<io.fabric8.openshift.api.model.Template>>>,FilterWatchListDeletable<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList,Boolean,Watch,Watcher<io.fabric8.openshift.api.model.Template>>,FilterWatchListMultiDeletable<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList,Boolean,Watch,Watcher<io.fabric8.openshift.api.model.Template>>,FromServerable<Gettable<io.fabric8.openshift.api.model.Template>>,Gettable<io.fabric8.openshift.api.model.Template>,Listable<io.fabric8.openshift.api.model.TemplateList>,Loadable<TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList,io.fabric8.openshift.api.model.DoneableTemplate>>,Lockable<Replaceable<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.Template>>,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>>,MultiDeleteable<io.fabric8.openshift.api.model.Template,Boolean>,Nameable<TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList,io.fabric8.openshift.api.model.DoneableTemplate>>,Namespaceable<NonNamespaceOperation<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>>>,NonNamespaceOperation<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>>,Operation<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>>,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>>>,ParameterMixedOperation<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>>,Patchable<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.Template>,Readiable,Replaceable<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.Template>,Requirable<io.fabric8.openshift.api.model.Template>,Resource<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.DoneableTemplate>,StatusUpdatable<io.fabric8.openshift.api.model.Template>,Versionable<Watchable<Watch,Watcher<io.fabric8.openshift.api.model.Template>>>,VersionWatchable<Watch,Watcher<io.fabric8.openshift.api.model.Template>>,Waitable<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.Template>,Watchable<Watch,Watcher<io.fabric8.openshift.api.model.Template>>,WatchListDeletable<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList,Boolean,Watch,Watcher<io.fabric8.openshift.api.model.Template>>,FromServerGettable<io.fabric8.openshift.api.model.Template>,GracePeriodConfigurable<Deletable<Boolean>>,OperationInfo,PropagationPolicyConfigurable<EditReplacePatchDeletable<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.DoneableTemplate,Boolean>>,Processable<io.fabric8.kubernetes.api.model.KubernetesList>,ProcessableResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList,io.fabric8.openshift.api.model.DoneableTemplate>,TemplateOperation,TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList,io.fabric8.openshift.api.model.DoneableTemplate>
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
-
Field Summary
Fields inherited from class io.fabric8.kubernetes.client.dsl.base.HasMetadataOperation
DEFAULT_PROPAGATION_POLICYFields inherited from class io.fabric8.kubernetes.client.dsl.base.BaseOperation
apiVersion, doneableType, listType, typeFields inherited from class io.fabric8.kubernetes.client.dsl.base.OperationSupport
apiGroupName, apiGroupVersion, client, config, context, JSON, JSON_MAPPER, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCH, YAML_MAPPERFields inherited from interface io.fabric8.kubernetes.client.dsl.Waitable
DEFAULT_BACKOFF_MULTIPLIER, DEFAULT_INITIAL_BACKOFF_MILLIS -
Constructor Summary
Constructors Constructor Description TemplateOperationsImpl(TemplateOperationContext context)TemplateOperationsImpl(okhttp3.OkHttpClient client, OpenShiftConfig config) -
Method Summary
Modifier and Type Method Description TemplateOperationContextgetContext()protected io.fabric8.openshift.api.model.TemplatehandleGet(URL resourceUrl)protected <T> ThandleResponse(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)TemplateOperationsImplnewInstance(OperationContext context)io.fabric8.kubernetes.api.model.KubernetesListprocess(ParameterValue... values)Process a template with the specifiedParameterValues.io.fabric8.kubernetes.api.model.KubernetesListprocess(File f)Process a template reading parameter values from aFilein json or yml format.io.fabric8.kubernetes.api.model.KubernetesListprocess(InputStream is)Process a template reading parameter values from anInputStreamin json or yml format.io.fabric8.kubernetes.api.model.KubernetesListprocess(Map<String,String> valuesMap)Process a template reading parameter values from amMap.io.fabric8.kubernetes.api.model.KubernetesListprocessLocally(ParameterValue... values)Process a template with the specifiedParameterValues.io.fabric8.kubernetes.api.model.KubernetesListprocessLocally(File f)Process a template locally reading parameter values from aFilein json or yml format.io.fabric8.kubernetes.api.model.KubernetesListprocessLocally(InputStream is)Process a template locally reading parameter values from anInputStreamin json or yml format.io.fabric8.kubernetes.api.model.KubernetesListprocessLocally(Map<String,String> valuesMap)Process a template locally reading parameter values from amMap.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)Methods inherited from class io.fabric8.openshift.client.dsl.internal.OpenShiftOperation
getConfig, getConfigType, getRootUrlMethods inherited from class io.fabric8.kubernetes.client.dsl.base.HasMetadataOperation
edit, patch, replaceMethods inherited from class io.fabric8.kubernetes.client.dsl.base.BaseOperation
cascading, 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, handlePatch, handleReplace, handleResponse, handleScale, inAnyNamespace, inNamespace, isApiGroup, isCascading, isReady, isReloadingFromServer, isResourceNamespaced, list, list, list, load, load, load, lockResourceVersion, require, sendPatchedObject, 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, withWaitRetryBackoffMethods inherited from class io.fabric8.kubernetes.client.dsl.base.OperationSupport
assertResponseCode, checkName, checkNamespace, createStatus, createStatus, getAPIGroup, getAPIVersion, getName, getNamespace, getNamespacedUrl, getNamespacedUrl, getNamespacedUrl, getObjectValueAsMap, getResourceUrl, getResourceUrl, handleCreate, handleDelete, handleDelete, handleDeploymentRollback, handleGet, handleGet, handleMetric, handlePatch, handlePatch, handleReplace, handleReplace, handleResponse, handleResponse, handleResponse, handleScale, handleStatusUpdate, requestException, requestFailure, unmarshal, unmarshal, unmarshalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.fabric8.kubernetes.client.dsl.Createable
create, create, createNewMethods inherited from interface io.fabric8.kubernetes.client.dsl.CreateOrReplaceable
createOrReplace, createOrReplaceWithNewMethods inherited from interface io.fabric8.kubernetes.client.dsl.Filterable
withField, withFields, withLabel, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withoutField, withoutFields, withoutLabel, withoutLabel, withoutLabelsMethods inherited from interface io.fabric8.kubernetes.client.GracePeriodConfigurable
withGracePeriodMethods inherited from interface io.fabric8.kubernetes.client.PropagationPolicyConfigurable
withPropagationPolicyMethods inherited from interface io.fabric8.kubernetes.client.dsl.Waitable
waitUntilCondition, waitUntilReady, withWaitRetryBackoff
-
Constructor Details
-
Method Details
-
newInstance
- Overrides:
newInstancein classBaseOperation<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>>
-
getContext
-
process
Description copied from interface:ProcessableProcess a template reading parameter values from aFilein json or yml format.- Specified by:
processin interfaceProcessable<io.fabric8.kubernetes.api.model.KubernetesList>- Parameters:
f- The specifiedFile.- Returns:
-
process
Description copied from interface:ProcessableProcess a template reading parameter values from anInputStreamin json or yml format.- Specified by:
processin interfaceProcessable<io.fabric8.kubernetes.api.model.KubernetesList>- Parameters:
is- The specifiedInputStream.- Returns:
-
process
Description copied from interface:ProcessableProcess a template reading parameter values from amMap.- Specified by:
processin interfaceProcessable<io.fabric8.kubernetes.api.model.KubernetesList>- Parameters:
valuesMap- The specifiedMap.- Returns:
-
process
Description copied from interface:ProcessableProcess a template with the specifiedParameterValues.- Specified by:
processin interfaceProcessable<io.fabric8.kubernetes.api.model.KubernetesList>- Parameters:
values- The specifiedParameterValues.- Returns:
-
processLocally
Description copied from interface:ProcessableProcess a template locally reading parameter values from aFilein json or yml format. This kind of processing is performed locally, without communicating with the server (e.g for generating values using expressions).- Specified by:
processLocallyin interfaceProcessable<io.fabric8.kubernetes.api.model.KubernetesList>- Parameters:
f- The specifiedFile.- Returns:
-
processLocally
Description copied from interface:ProcessableProcess a template locally reading parameter values from anInputStreamin json or yml format. This kind of processing is performed locally, without communicating with the server (e.g for generating values using expressions).- Specified by:
processLocallyin interfaceProcessable<io.fabric8.kubernetes.api.model.KubernetesList>- Parameters:
is- The specifiedInputStream.- Returns:
-
processLocally
Description copied from interface:ProcessableProcess a template with the specifiedParameterValues. This kind of processing is performed locally, without communicating with the server (e.g for generating values using expressions).- Specified by:
processLocallyin interfaceProcessable<io.fabric8.kubernetes.api.model.KubernetesList>- Parameters:
values- The specifiedParameterValues.- Returns:
-
withParameters
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)- Specified by:
withParametersin interfaceParameterizable<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>>>
-
processLocally
public io.fabric8.kubernetes.api.model.KubernetesList processLocally(Map<String,String> valuesMap)Description copied from interface:ProcessableProcess a template locally reading parameter values from amMap. This kind of processing is performed locally, without communicating with the server (e.g for generating values using expressions).- Specified by:
processLocallyin interfaceProcessable<io.fabric8.kubernetes.api.model.KubernetesList>- Parameters:
valuesMap- The specifiedMap.- Returns:
-
load
public TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList,io.fabric8.openshift.api.model.DoneableTemplate> load(InputStream is)- Specified by:
loadin interfaceLoadable<TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList,io.fabric8.openshift.api.model.DoneableTemplate>>- Overrides:
loadin classBaseOperation<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>>
-
handleGet
protected io.fabric8.openshift.api.model.Template handleGet(URL resourceUrl) throws InterruptedException, ExecutionException, IOException- Overrides:
handleGetin classBaseOperation<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>>- Throws:
InterruptedExceptionExecutionExceptionIOException
-
handleResponse
protected <T> T handleResponse(okhttp3.Request.Builder requestBuilder, Class<T> type) throws ExecutionException, InterruptedException, KubernetesClientException, IOException- Overrides:
handleResponsein classOperationSupport- Throws:
ExecutionExceptionInterruptedExceptionKubernetesClientExceptionIOException
-