Class V1DownwardAPIVolumeFile
java.lang.Object
io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1DownwardAPIVolumeFile
extends Object
DownwardAPIVolumeFile represents information to create the file containing the pod field
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
fieldRef
(V1ObjectFieldSelector fieldRef) static V1DownwardAPIVolumeFile
Create an instance of V1DownwardAPIVolumeFile given an JSON stringGet fieldRefgetMode()
Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.getPath()
Required: Path is the relative path name of the file to be created.Get resourceFieldRefint
hashCode()
resourceFieldRef
(V1ResourceFieldSelector resourceFieldRef) void
setFieldRef
(V1ObjectFieldSelector fieldRef) void
void
void
setResourceFieldRef
(V1ResourceFieldSelector resourceFieldRef) toJson()
Convert an instance of V1DownwardAPIVolumeFile 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_FIELD_REF
- See Also:
-
SERIALIZED_NAME_MODE
- See Also:
-
SERIALIZED_NAME_PATH
- See Also:
-
SERIALIZED_NAME_RESOURCE_FIELD_REF
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1DownwardAPIVolumeFile
public V1DownwardAPIVolumeFile()
-
-
Method Details
-
fieldRef
-
getFieldRef
Get fieldRef- Returns:
- fieldRef
-
setFieldRef
-
mode
-
getMode
Optional: mode bits used to set permissions on this file, 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. If not specified, the volume defaultMode will be used. 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:
- mode
-
setMode
-
path
-
getPath
Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'- Returns:
- path
-
setPath
-
resourceFieldRef
-
getResourceFieldRef
Get resourceFieldRef- Returns:
- resourceFieldRef
-
setResourceFieldRef
-
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 V1DownwardAPIVolumeFile
-
fromJson
Create an instance of V1DownwardAPIVolumeFile given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1DownwardAPIVolumeFile
- Throws:
IOException
- if the JSON string is invalid with respect to V1DownwardAPIVolumeFile
-
toJson
Convert an instance of V1DownwardAPIVolumeFile to an JSON string- Returns:
- JSON string
-