Class Secret
java.lang.Object
io.github.alersrt.pod4j.openapi.model.Secret
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-29T01:29:49.168634544+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class Secret
extends Object
Secret represents a Swarm Secret value that must be passed to the CSI storage plugin when operating on this Volume. It represents one key-value pair of possibly many.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SecretCreate an instance of Secret given an JSON stringgetKey()Key is the name of the key of the key-value pair passed to the plugin.Secret is the swarm Secret object from which to read data.inthashCode()voidvoidtoJson()Convert an instance of Secret to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_KEY
- See Also:
-
SERIALIZED_NAME_SECRET
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Secret
public Secret()
-
-
Method Details
-
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 Secret
-
fromJson
Create an instance of Secret given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Secret
- Throws:
IOException- if the JSON string is invalid with respect to Secret
-
key
-
getKey
Key is the name of the key of the key-value pair passed to the plugin.- Returns:
- key
-
setKey
-
secret
-
getSecret
Secret is the swarm Secret object from which to read data. This can be a Secret name or ID. The Secret data is retrieved by Swarm and used as the value of the key-value pair passed to the plugin.- Returns:
- secret
-
setSecret
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
Convert an instance of Secret to an JSON string- Returns:
- JSON string
-