Package io.fabric8.kubernetes.api.model
Class Secret
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.Secret
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<SecretBuilder>,HasMetadata,KubernetesResource,Namespaced,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class Secret extends Object implements io.fabric8.kubernetes.api.builder.Editable<SecretBuilder>, HasMetadata, Namespaced
Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface io.fabric8.kubernetes.api.model.HasMetadata
DNS_LABEL_END, DNS_LABEL_REGEXP, DNS_LABEL_START, FINALIZER_NAME_MATCHER, REQUIRES_NON_NULL_METADATA, REQUIRES_NON_NULL_NAME, REQUIRES_NON_NULL_NAMESPACE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecretBuilderedit()Map<String,Object>getAdditionalProperties()StringgetApiVersion()APIVersion defines the versioned schema of this representation of an object.Map<String,String>getData()Data contains the secret data.BooleangetImmutable()Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified).StringgetKind()Kind is a string value representing the REST resource this object represents.ObjectMetagetMetadata()Secret holds secret data of a certain type.Map<String,String>getStringData()stringData allows specifying non-binary secret data in string form.StringgetType()Used to facilitate programmatic handling of secret data.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetApiVersion(String apiVersion)APIVersion defines the versioned schema of this representation of an object.voidsetData(Map<String,String> data)Data contains the secret data.voidsetImmutable(Boolean immutable)Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified).voidsetKind(String kind)Kind is a string value representing the REST resource this object represents.voidsetMetadata(ObjectMeta metadata)Secret holds secret data of a certain type.voidsetStringData(Map<String,String> stringData)stringData allows specifying non-binary secret data in string form.voidsetType(String type)Used to facilitate programmatic handling of secret data.SecretBuildertoBuilder()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fabric8.kubernetes.api.model.HasMetadata
addFinalizer, addOwnerReference, addOwnerReference, getFinalizers, getFullResourceName, getOwnerReferenceFor, getOwnerReferenceFor, getPlural, getSingular, hasFinalizer, hasOwnerReferenceFor, hasOwnerReferenceFor, initNameAndNamespaceFrom, isFinalizerValid, isMarkedForDeletion, optionalMetadata, removeFinalizer, removeOwnerReference, removeOwnerReference
-
-
-
-
Method Detail
-
getApiVersion
public String 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- Specified by:
getApiVersionin interfaceHasMetadata
-
setApiVersion
public void setApiVersion(String apiVersion)
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- Specified by:
setApiVersionin interfaceHasMetadata
-
getData
public Map<String,String> 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
-
setData
public void setData(Map<String,String> data)
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
-
getImmutable
public Boolean 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.
-
setImmutable
public void setImmutable(Boolean immutable)
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.
-
getKind
public String 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- Specified by:
getKindin interfaceHasMetadata
-
setKind
public void setKind(String kind)
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
-
getMetadata
public ObjectMeta getMetadata()
Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.- Specified by:
getMetadatain interfaceHasMetadata
-
setMetadata
public void setMetadata(ObjectMeta metadata)
Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.- Specified by:
setMetadatain interfaceHasMetadata
-
getStringData
public Map<String,String> 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.
-
setStringData
public void setStringData(Map<String,String> stringData)
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.
-
getType
public String getType()
Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types
-
setType
public void setType(String type)
Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types
-
edit
public SecretBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<SecretBuilder>
-
toBuilder
public SecretBuilder toBuilder()
-
-