Class V1DownwardAPIVolumeSource
java.lang.Object
io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1DownwardAPIVolumeSource
extends Object
DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddItemsItem
(V1DownwardAPIVolumeFile itemsItem) defaultMode
(Integer defaultMode) boolean
static V1DownwardAPIVolumeSource
Create an instance of V1DownwardAPIVolumeSource given an JSON stringOptional: mode bits to use on created files by default.getItems()
Items is a list of downward API volume fileint
hashCode()
items
(List<V1DownwardAPIVolumeFile> items) void
setDefaultMode
(Integer defaultMode) void
setItems
(List<V1DownwardAPIVolumeFile> items) toJson()
Convert an instance of V1DownwardAPIVolumeSource 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_DEFAULT_MODE
- See Also:
-
SERIALIZED_NAME_ITEMS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1DownwardAPIVolumeSource
public V1DownwardAPIVolumeSource()
-
-
Method Details
-
defaultMode
-
getDefaultMode
Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.- Returns:
- defaultMode
-
setDefaultMode
-
items
-
addItemsItem
-
getItems
Items is a list of downward API volume file- Returns:
- items
-
setItems
-
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 V1DownwardAPIVolumeSource
-
fromJson
Create an instance of V1DownwardAPIVolumeSource given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1DownwardAPIVolumeSource
- Throws:
IOException
- if the JSON string is invalid with respect to V1DownwardAPIVolumeSource
-
toJson
Convert an instance of V1DownwardAPIVolumeSource to an JSON string- Returns:
- JSON string
-