Package org.jdrupes.vmoperator.common
Class K8sDynamicModelsBase<T extends K8sDynamicModel>
java.lang.Object
org.jdrupes.vmoperator.common.K8sDynamicModelsBase<T>
- All Implemented Interfaces:
io.kubernetes.client.common.KubernetesListObject,io.kubernetes.client.common.KubernetesType
- Direct Known Subclasses:
K8sDynamicModels,VmDefinitions
public class K8sDynamicModelsBase<T extends K8sDynamicModel>
extends Object
implements io.kubernetes.client.common.KubernetesListObject
Represents a list of Kubernetes objects each of which is
represented using a JSON data structure.
Some information that is common to all Kubernetes objects,
notably the metadata, is made available through the methods
defined by KubernetesListObject.
-
Constructor Summary
ConstructorsConstructorDescriptionK8sDynamicModelsBase(Class<T> itemClass, com.google.gson.Gson delegate, com.google.gson.JsonObject data) Initialize the object list using the given JSON data. -
Method Summary
Modifier and TypeMethodDescriptionGets the API version.com.google.gson.JsonObjectdata()Returns the JSON representation of this object.booleangetItems()getKind()io.kubernetes.client.openapi.models.V1ListMetainthashCode()kind()Gets the kind.io.kubernetes.client.openapi.models.V1ListMetametadata()Gets the metadata.voidsetApiVersion(String apiVersion) Sets the api version.voidSets the kind.voidsetMetadata(io.kubernetes.client.openapi.models.V1ListMeta objectMeta) Sets the metadata.
-
Constructor Details
-
K8sDynamicModelsBase
public K8sDynamicModelsBase(Class<T> itemClass, com.google.gson.Gson delegate, com.google.gson.JsonObject data) Initialize the object list using the given JSON data.- Parameters:
itemClass- the item classdelegate- the gson instance to use for extracting structured datadata- the data
-
-
Method Details
-
getApiVersion
- Specified by:
getApiVersionin interfaceio.kubernetes.client.common.KubernetesType
-
apiVersion
Gets the API version.(Abbreviated method name for convenience.)
- Returns:
- the API version
-
getKind
- Specified by:
getKindin interfaceio.kubernetes.client.common.KubernetesType
-
kind
Gets the kind.(Abbreviated method name for convenience.)
- Returns:
- the kind
-
getMetadata
- Specified by:
getMetadatain interfaceio.kubernetes.client.common.KubernetesListObject
-
metadata
Gets the metadata.(Abbreviated method name for convenience.)
- Returns:
- the metadata
-
data
Returns the JSON representation of this object.- Returns:
- the JOSN representation
-
getItems
- Specified by:
getItemsin interfaceio.kubernetes.client.common.KubernetesListObject
-
setApiVersion
Sets the api version.- Parameters:
apiVersion- the new api version
-
setKind
Sets the kind.- Parameters:
kind- the new kind
-
setMetadata
Sets the metadata.- Parameters:
objectMeta- the new metadata
-
hashCode
-
equals
-