Class V1Secret
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1Secret
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1Secret
extends Object
Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapiVersion
(String apiVersion) Set apiVersion in a chainable fashion.data
(Map<String, @jakarta.validation.constraints.Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"),@jakarta.validation.constraints.NotNull byte[]> data) Set data in a chainable fashion.boolean
APIVersion defines the versioned schema of this representation of an object.Map<String,
@jakarta.validation.constraints.Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"),@jakarta.validation.constraints.NotNull byte[]> getData()
Data contains the secret data.Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified).getKind()
Kind is a string value representing the REST resource this object represents.stringData allows specifying non-binary secret data in string form.getType()
Used to facilitate programmatic handling of secret data.int
hashCode()
Set immutable in a chainable fashion.Set kind in a chainable fashion.metadata
(V1ObjectMeta metadata) Set metadata in a chainable fashion.putdataItem
(String key, byte[] dataItem) Set the value for the key for the data map property in a chainable fashion.putstringDataItem
(String key, String stringDataItem) Set the value for the key for the stringData map property in a chainable fashion.void
setApiVersion
(String apiVersion) Set the apiVersion property valuevoid
setData
(Map<String, @jakarta.validation.constraints.Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"),@jakarta.validation.constraints.NotNull byte[]> data) Set the data property valuevoid
setImmutable
(Boolean immutable) Set the immutable property valuevoid
Set the kind property valuevoid
setMetadata
(V1ObjectMeta metadata) Set the metadata property valuevoid
setStringData
(Map<String, @NotNull String> stringData) Set the stringData property valuevoid
Set the type property valuestringData
(Map<String, @NotNull String> stringData) Set stringData in a chainable fashion.toString()
Set type in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_API_VERSION
- See Also:
-
JSON_PROPERTY_DATA
- See Also:
-
JSON_PROPERTY_IMMUTABLE
- See Also:
-
JSON_PROPERTY_KIND
- See Also:
-
JSON_PROPERTY_METADATA
- See Also:
-
JSON_PROPERTY_STRING_DATA
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
V1Secret
public V1Secret()
-
-
Method Details
-
getApiVersion
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources- Returns:
- the apiVersion property value
-
setApiVersion
Set the apiVersion property value- Parameters:
apiVersion
- property value to set
-
apiVersion
Set apiVersion in a chainable fashion.- Returns:
- The same instance of V1Secret for chaining.
-
getData
public Map<String,@jakarta.validation.constraints.Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"),@jakarta.validation.constraints.NotNull byte[]> getData()Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4- Returns:
- the data property value
-
setData
public void setData(Map<String, @jakarta.validation.constraints.Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"),@jakarta.validation.constraints.NotNull byte[]> data) Set the data property value- Parameters:
data
- property value to set
-
data
public V1Secret data(Map<String, @jakarta.validation.constraints.Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"),@jakarta.validation.constraints.NotNull byte[]> data) Set data in a chainable fashion.- Returns:
- The same instance of V1Secret for chaining.
-
putdataItem
Set the value for the key for the data map property in a chainable fashion.- Returns:
- The same instance of V1Secret for chaining.
-
getImmutable
Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.- Returns:
- the immutable property value
-
setImmutable
Set the immutable property value- Parameters:
immutable
- property value to set
-
immutable
Set immutable in a chainable fashion.- Returns:
- The same instance of V1Secret for chaining.
-
getKind
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds- Returns:
- the kind property value
-
setKind
Set the kind property value- Parameters:
kind
- property value to set
-
kind
Set kind in a chainable fashion.- Returns:
- The same instance of V1Secret for chaining.
-
getMetadata
- Returns:
- the metadata property value
-
setMetadata
Set the metadata property value- Parameters:
metadata
- property value to set
-
metadata
Set metadata in a chainable fashion.- Returns:
- The same instance of V1Secret for chaining.
-
getStringData
stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API.- Returns:
- the stringData property value
-
setStringData
Set the stringData property value- Parameters:
stringData
- property value to set
-
stringData
Set stringData in a chainable fashion.- Returns:
- The same instance of V1Secret for chaining.
-
putstringDataItem
Set the value for the key for the stringData map property in a chainable fashion.- Returns:
- The same instance of V1Secret for chaining.
-
getType
Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types- Returns:
- the type property value
-
setType
Set the type property value- Parameters:
type
- property value to set
-
type
Set type in a chainable fashion.- Returns:
- The same instance of V1Secret for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-