Class V1RuntimeClass
java.lang.Object
io.kubernetes.client.openapi.models.V1RuntimeClass
- All Implemented Interfaces:
KubernetesObject
,KubernetesType
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1RuntimeClass
extends Object
implements KubernetesObject
RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiVersion
(String apiVersion) boolean
static V1RuntimeClass
Create an instance of V1RuntimeClass given an JSON stringAPIVersion defines the versioned schema of this representation of an object.handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class.getKind()
Kind is a string value representing the REST resource this object represents.Get metadataGet overheadGet schedulingint
hashCode()
metadata
(V1ObjectMeta metadata) overhead
(V1Overhead overhead) scheduling
(V1Scheduling scheduling) void
setApiVersion
(String apiVersion) void
setHandler
(String handler) void
void
setMetadata
(V1ObjectMeta metadata) void
setOverhead
(V1Overhead overhead) void
setScheduling
(V1Scheduling scheduling) toJson()
Convert an instance of V1RuntimeClass to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_API_VERSION
- See Also:
-
SERIALIZED_NAME_HANDLER
- See Also:
-
SERIALIZED_NAME_KIND
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_OVERHEAD
- See Also:
-
SERIALIZED_NAME_SCHEDULING
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1RuntimeClass
public V1RuntimeClass()
-
-
Method Details
-
apiVersion
-
getApiVersion
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources- Specified by:
getApiVersion
in interfaceKubernetesType
- Returns:
- apiVersion
-
setApiVersion
-
handler
-
getHandler
handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.- Returns:
- handler
-
setHandler
-
kind
-
getKind
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds- Specified by:
getKind
in interfaceKubernetesType
- Returns:
- kind
-
setKind
-
metadata
-
getMetadata
Get metadata- Specified by:
getMetadata
in interfaceKubernetesObject
- Returns:
- metadata
-
setMetadata
-
overhead
-
getOverhead
Get overhead- Returns:
- overhead
-
setOverhead
-
scheduling
-
getScheduling
Get scheduling- Returns:
- scheduling
-
setScheduling
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V1RuntimeClass
-
fromJson
Create an instance of V1RuntimeClass given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1RuntimeClass
- Throws:
IOException
- if the JSON string is invalid with respect to V1RuntimeClass
-
toJson
Convert an instance of V1RuntimeClass to an JSON string- Returns:
- JSON string
-