Class Secret
java.lang.Object
io.github.alersrt.pod4j.openapi.model.Secret
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class Secret
extends Object
implements Serializable
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.
- See Also:
-
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 voidvalidateJsonObject(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_SECRET
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Secret
public Secret()
-
-
Method Details
-
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
-
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 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
-
toJson
Convert an instance of Secret to an JSON string- Returns:
- JSON string
-