public class OpenShiftOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList,D extends io.fabric8.kubernetes.api.model.Doneable<T>,R extends Resource<T,D>> extends HasMetadataOperation<T,L,D,R>
apiGroupVersion, reaperapiGroup, apiVersion, client, config, JSON, JSON_MAPPER, JSON_PATCH, name, namespace, resourceT, YAML_MAPPER| Modifier | Constructor and Description |
|---|---|
protected |
OpenShiftOperation(okhttp3.OkHttpClient client,
ConfigAndApiGroupsInfo config,
String resourceT,
String namespace,
String name,
Boolean cascading,
T item,
String resourceVersion,
Boolean reloadingFromServer,
long gracePeriodSeconds,
Map<String,String> labels,
Map<String,String> labelsNot,
Map<String,String[]> labelsIn,
Map<String,String[]> labelsNotIn,
Map<String,String> fields) |
| Modifier and Type | Method and Description |
|---|---|
OpenShiftConfig |
getConfig() |
protected Class<? extends Config> |
getConfigType() |
URL |
getRootUrl() |
OpenShiftOperation<T,L,D,R> |
inNamespace(String namespace) |
static ConfigAndApiGroupsInfo |
withApiGroup(okhttp3.OkHttpClient httpClient,
String apiGroupName,
String apiVersion,
OpenShiftConfig config)
If the current client supports the new API Group REST API at
/apis/*.openshift.io/v1
then lets use that URL otherwise lets stick to the legacy /oapi/v1 API |
static ConfigAndApiGroupsInfo |
withApiGroup(OpenShiftClient openShiftClient,
String apiGroupName,
String apiVersion,
OpenShiftConfig config)
If the current client supports the new API Group REST API at
/apis/*.openshift.io/v1
then lets use that URL otherwise lets stick to the legacy /oapi/v1 API |
edit, patch, periodicWatchUntilReady, replacecascading, create, createNew, createOrReplace, createOrReplaceWithNew, delete, delete, delete, forOperationType, fromServer, get, getApiGroupVersion, getDoneableType, getFieldQueryParam, getFields, getGracePeriodSeconds, getItem, getKind, getLabelQueryParam, getLabels, getLabelsIn, getLabelsNot, getLabelsNotIn, getListType, getMandatory, getOperationType, getReloadingFromServer, getResourceT, getResourceVersion, getRootPaths, getType, handleCreate, handleGet, handlePatch, handleReplace, handleResponse, inAnyNamespace, isApiGroup, isCascading, isReady, isReaping, isReloadingFromServer, isResourceNamespaced, list, load, load, load, load, setReaping, updateApiVersion, updateApiVersion, updateApiVersionResource, waitUntilReady, watch, watch, withField, withFields, withGracePeriod, withLabel, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withName, withoutLabel, withoutLabel, withoutLabels, 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, handleResponse, requestException, requestFailure, unmarshal, unmarshal, unmarshalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getNamespaceprotected OpenShiftOperation(okhttp3.OkHttpClient client,
ConfigAndApiGroupsInfo config,
String resourceT,
String namespace,
String name,
Boolean cascading,
T item,
String resourceVersion,
Boolean reloadingFromServer,
long gracePeriodSeconds,
Map<String,String> labels,
Map<String,String> labelsNot,
Map<String,String[]> labelsIn,
Map<String,String[]> labelsNotIn,
Map<String,String> fields)
public static ConfigAndApiGroupsInfo withApiGroup(OpenShiftClient openShiftClient, String apiGroupName, String apiVersion, OpenShiftConfig config)
/apis/*.openshift.io/v1
then lets use that URL otherwise lets stick to the legacy /oapi/v1 APIopenShiftClient - the OpenShift client to useapiGroupName - the API Group name like apps.openshift.io or build.openshift.ioconfig - the current configurationpublic static ConfigAndApiGroupsInfo withApiGroup(okhttp3.OkHttpClient httpClient, String apiGroupName, String apiVersion, OpenShiftConfig config)
/apis/*.openshift.io/v1
then lets use that URL otherwise lets stick to the legacy /oapi/v1 APIhttpClient - the HTTP client to useapiGroupName - the API Group name like apps.openshift.io or build.openshift.ioconfig - the current configurationpublic URL getRootUrl()
getRootUrl in class OperationSupportpublic OpenShiftOperation<T,L,D,R> inNamespace(String namespace)
inNamespace in interface Namespaceable<NonNamespaceOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList,D extends io.fabric8.kubernetes.api.model.Doneable<T>,R extends Resource<T,D>>>inNamespace in class BaseOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList,D extends io.fabric8.kubernetes.api.model.Doneable<T>,R extends Resource<T,D>>public OpenShiftConfig getConfig()
getConfig in class OperationSupportprotected Class<? extends Config> getConfigType()
getConfigType in class BaseOperation<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList,D extends io.fabric8.kubernetes.api.model.Doneable<T>,R extends Resource<T,D>>Copyright © 2015–2017 Red Hat. All rights reserved.