Class V1KeyToPath
java.lang.Object
io.kubernetes.client.openapi.models.V1KeyToPath
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1KeyToPath
extends Object
Maps a string key to a path within a volume.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1KeyToPath
Create an instance of V1KeyToPath given an JSON stringgetKey()
key is the key to project.getMode()
mode is Optional: mode bits used to set permissions on this file.getPath()
path is the relative path of the file to map the key to.int
hashCode()
void
void
void
toJson()
Convert an instance of V1KeyToPath 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_KEY
- See Also:
-
SERIALIZED_NAME_MODE
- See Also:
-
SERIALIZED_NAME_PATH
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1KeyToPath
public V1KeyToPath()
-
-
Method Details
-
key
-
getKey
key is the key to project.- Returns:
- key
-
setKey
-
mode
-
getMode
mode is 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
path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.- Returns:
- path
-
setPath
-
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 V1KeyToPath
-
fromJson
Create an instance of V1KeyToPath given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1KeyToPath
- Throws:
IOException
- if the JSON string is invalid with respect to V1KeyToPath
-
toJson
Convert an instance of V1KeyToPath to an JSON string- Returns:
- JSON string
-