Class TemplateOperationsImpl
- java.lang.Object
-
- io.fabric8.kubernetes.client.dsl.base.OperationSupport
-
- io.fabric8.kubernetes.client.dsl.base.BaseOperation<T,L,R>
-
- io.fabric8.kubernetes.client.dsl.base.HasMetadataOperation<T,L,R>
-
- io.fabric8.openshift.client.dsl.internal.OpenShiftOperation<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList,TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList>>
-
- io.fabric8.openshift.client.dsl.internal.TemplateOperationsImpl
-
- All Implemented Interfaces:
AnyNamespaceable<FilterWatchListMultiDeletable<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList>>,Cascading<EditReplacePatchDeletable<io.fabric8.openshift.api.model.Template>>,CascadingEditReplacePatchDeletable<io.fabric8.openshift.api.model.Template>,Createable<io.fabric8.openshift.api.model.Template>,CreateFromServerGettable<io.fabric8.openshift.api.model.Template>,CreateOrReplaceable<io.fabric8.openshift.api.model.Template>,Deletable,DryRunable<WritableOperation<io.fabric8.openshift.api.model.Template>>,Editable<io.fabric8.openshift.api.model.Template>,EditReplacePatchable<io.fabric8.openshift.api.model.Template>,EditReplacePatchDeletable<io.fabric8.openshift.api.model.Template>,Filterable<FilterWatchListDeletable<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList>>,FilterWatchListDeletable<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList>,FilterWatchListMultiDeletable<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList>,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>>,Lockable<Replaceable<io.fabric8.openshift.api.model.Template>>,MixedOperation<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList,TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList>>,MultiDeleteable<io.fabric8.openshift.api.model.Template>,Nameable<TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList>>,Namespaceable<NonNamespaceOperation<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList,TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList>>>,NonNamespaceOperation<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList,TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList>>,Operation<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList,TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList>>,Parameterizable<MixedOperation<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList,TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList>>>,ParameterMixedOperation<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList,TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList>>,Patchable<io.fabric8.openshift.api.model.Template>,Readiable,Replaceable<io.fabric8.openshift.api.model.Template>,Requirable<io.fabric8.openshift.api.model.Template>,Resource<io.fabric8.openshift.api.model.Template>,StatusUpdatable<io.fabric8.openshift.api.model.Template>,Versionable<WatchAndWaitable<io.fabric8.openshift.api.model.Template>>,VersionWatchAndWaitable<io.fabric8.openshift.api.model.Template>,Waitable<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.Template>,Watchable<Watcher<io.fabric8.openshift.api.model.Template>>,WatchAndWaitable<io.fabric8.openshift.api.model.Template>,WatchListDeletable<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList>,WritableOperation<io.fabric8.openshift.api.model.Template>,FromServerGettable<io.fabric8.openshift.api.model.Template>,GracePeriodConfigurable<Deletable>,OperationInfo,PropagationPolicyConfigurable<EditReplacePatchDeletable<io.fabric8.openshift.api.model.Template>>,Processable<io.fabric8.kubernetes.api.model.KubernetesList>,ProcessableResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList>,TemplateOperation,TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList>
public class TemplateOperationsImpl extends OpenShiftOperation<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList,TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList>> implements TemplateOperation
-
-
Field Summary
-
Fields inherited from class io.fabric8.openshift.client.dsl.internal.OpenShiftOperation
OPENSHIFT_APIGROUP_SUFFIX
-
Fields inherited from class io.fabric8.kubernetes.client.dsl.base.HasMetadataOperation
DEFAULT_GRACE_PERIOD_IN_SECONDS, DEFAULT_PROPAGATION_POLICY
-
Fields inherited from class io.fabric8.kubernetes.client.dsl.base.BaseOperation
apiVersion, listType, type
-
Fields inherited from class io.fabric8.kubernetes.client.dsl.base.OperationSupport
apiGroupName, apiGroupVersion, client, config, context, dryRun, JSON, JSON_MAPPER, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCH, YAML_MAPPER
-
Fields 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.fabric8.openshift.api.model.Templateedit(io.fabric8.kubernetes.api.builder.Visitor... visitors)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>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,TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList>>withParameters(Map<String,String> parameters)-
Methods inherited from class io.fabric8.openshift.client.dsl.internal.OpenShiftOperation
getConfig, getConfigType, getReadiness, getRootUrl
-
Methods inherited from class io.fabric8.kubernetes.client.dsl.base.HasMetadataOperation
accept, edit, patch, replace
-
Methods inherited from class io.fabric8.kubernetes.client.dsl.base.BaseOperation
cascading, create, create, createOrReplace, delete, delete, delete, dryRun, edit, fetchListUrl, forOperationType, fromServer, get, getApiVersion, getFieldQueryParam, getFields, getFieldsNot, getGracePeriodSeconds, getItem, getKind, getLabelQueryParam, getLabels, getLabelsIn, getLabelsNot, getLabelsNotIn, getListType, getMandatory, getOperationType, getPropagationPolicy, 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, updateStatus, waitUntilCondition, waitUntilReady, watch, watch, watch, withField, withFields, withGracePeriod, withInvolvedObject, withItem, withLabel, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withName, withoutField, withoutFields, withoutLabel, withoutLabel, withoutLabels, withPropagationPolicy, withResourceVersion, withWaitRetryBackoff
-
Methods 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, getResourceURLForWriteOperation, handleCreate, handleDelete, handleDelete, handleDeploymentRollback, handleGet, handleGet, handleMetric, handlePatch, handlePatch, handleReplace, handleReplace, handleResponse, handleResponse, handleResponse, handleScale, handleStatusUpdate, requestException, requestFailure, unmarshal, unmarshal, unmarshal
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.AnyNamespaceable
inAnyNamespace
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Createable
create, create
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.CreateOrReplaceable
createOrReplace
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.DryRunable
dryRun, dryRun
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Filterable
withField, withFields, withInvolvedObject, withLabel, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withoutField, withoutFields, withoutLabel, withoutLabel, withoutLabels
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.FromServerable
fromServer
-
Methods inherited from interface io.fabric8.kubernetes.client.GracePeriodConfigurable
withGracePeriod
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Lockable
lockResourceVersion
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.MultiDeleteable
delete, delete
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Namespaceable
inNamespace
-
Methods inherited from interface io.fabric8.kubernetes.client.OperationInfo
getName, getNamespace
-
Methods inherited from interface io.fabric8.kubernetes.client.PropagationPolicyConfigurable
withPropagationPolicy
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Replaceable
replace
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Requirable
require
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.StatusUpdatable
updateStatus
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Versionable
withResourceVersion
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.Waitable
waitUntilCondition, waitUntilReady, withWaitRetryBackoff
-
-
-
-
Constructor Detail
-
TemplateOperationsImpl
public TemplateOperationsImpl(okhttp3.OkHttpClient client, OpenShiftConfig config)
-
TemplateOperationsImpl
public TemplateOperationsImpl(TemplateOperationContext context)
-
-
Method Detail
-
newInstance
public TemplateOperationsImpl newInstance(OperationContext context)
- Overrides:
newInstancein classBaseOperation<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList,TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList>>
-
getContext
public TemplateOperationContext getContext()
-
process
public io.fabric8.kubernetes.api.model.KubernetesList process(File f)
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
public io.fabric8.kubernetes.api.model.KubernetesList process(InputStream is)
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
public io.fabric8.kubernetes.api.model.KubernetesList process(Map<String,String> valuesMap)
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
public io.fabric8.kubernetes.api.model.KubernetesList process(ParameterValue... values)
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
public io.fabric8.kubernetes.api.model.KubernetesList processLocally(File f)
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
public io.fabric8.kubernetes.api.model.KubernetesList processLocally(InputStream is)
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
public io.fabric8.kubernetes.api.model.KubernetesList processLocally(ParameterValue... values)
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,TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList>> withParameters(Map<String,String> parameters)
- Specified by:
withParametersin interfaceParameterizable<MixedOperation<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList,TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList>>>
-
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> load(InputStream is)
- Specified by:
loadin interfaceLoadable<TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList>>- Overrides:
loadin classBaseOperation<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList,TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList>>
-
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,TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList>>- Throws:
InterruptedExceptionExecutionExceptionIOException
-
handleResponse
protected <T> T handleResponse(okhttp3.Request.Builder requestBuilder, Class<T> type) throws ExecutionException, InterruptedException, KubernetesClientException, IOException- Overrides:
handleResponsein classOperationSupport- Throws:
ExecutionExceptionInterruptedExceptionKubernetesClientExceptionIOException
-
edit
public io.fabric8.openshift.api.model.Template edit(io.fabric8.kubernetes.api.builder.Visitor... visitors)
- Specified by:
editin interfaceEditable<io.fabric8.openshift.api.model.Template>- Overrides:
editin classBaseOperation<io.fabric8.openshift.api.model.Template,io.fabric8.openshift.api.model.TemplateList,TemplateResource<io.fabric8.openshift.api.model.Template,io.fabric8.kubernetes.api.model.KubernetesList>>
-
-