Class GenericKubernetesApi<ApiType extends io.kubernetes.client.common.KubernetesObject,ApiListType extends io.kubernetes.client.common.KubernetesListObject>

java.lang.Object
io.kubernetes.client.util.generic.GenericKubernetesApi<ApiType,ApiListType>
Type Parameters:
ApiType - the api type parameter
ApiListType - the api list type parameter
Direct Known Subclasses:
DynamicKubernetesApi

public class GenericKubernetesApi<ApiType extends io.kubernetes.client.common.KubernetesObject,ApiListType extends io.kubernetes.client.common.KubernetesListObject> extends Object
The Generic kubernetes api provides a unified client interface for not only the non-core-group built-in resources from kubernetes but also the custom-resources models meet the following requirements:

1. there's a `V1ObjectMeta` field in the model along with its getter/setter. 2. there's a `V1ListMeta` field in the list model along with its getter/setter. - supports Gson serialization/deserialization. 3. the generic kubernetes api covers all the basic operations over the custom resources including {get, list, watch, create, update, patch, delete}.

The Generic kubernetes api is expected to have the following behaviors upon failures where KubernetesApiResponse.isSuccess() returns false:

- For kubernetes-defined failures, the server will return a V1Status with 4xx/5xx code. The status object will be nested in KubernetesApiResponse.getStatus() - For the other unknown reason (including network, JVM..), throws an unchecked exception.