Class V1SeccompProfile
java.lang.Object
io.kubernetes.client.openapi.models.V1SeccompProfile
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1SeccompProfile
extends Object
SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1SeccompProfile
Create an instance of V1SeccompProfile given an JSON stringlocalhostProfile indicates a profile defined in a file on the node should be used.getType()
type indicates which kind of seccomp profile will be applied.int
hashCode()
localhostProfile
(String localhostProfile) void
setLocalhostProfile
(String localhostProfile) void
toJson()
Convert an instance of V1SeccompProfile to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_LOCALHOST_PROFILE
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1SeccompProfile
public V1SeccompProfile()
-
-
Method Details
-
localhostProfile
-
getLocalhostProfile
localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \"Localhost\". Must NOT be set for any other type.- Returns:
- localhostProfile
-
setLocalhostProfile
-
type
-
getType
type indicates which kind of seccomp profile will be applied. Valid options are: Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.- Returns:
- type
-
setType
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to V1SeccompProfile
-
fromJson
Create an instance of V1SeccompProfile given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1SeccompProfile
- Throws:
IOException
- if the JSON string is invalid with respect to V1SeccompProfile
-
toJson
Convert an instance of V1SeccompProfile to an JSON string- Returns:
- JSON string
-