Class Secret
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.Secret
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class Secret extends java.lang.Object implements com.marcnuri.yakc.model.Model
Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Secret.Builder
-
Constructor Summary
Constructors Constructor Description Secret()
Secret(java.lang.String apiVersion, java.util.Map<java.lang.String,java.lang.String> data, java.lang.Boolean immutable, java.lang.String kind, ObjectMeta metadata, java.util.Map<java.lang.String,java.lang.String> stringData, java.lang.String type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Secret.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getApiVersion()
APIVersion defines the versioned schema of this representation of an object.java.util.Map<java.lang.String,java.lang.String>
getData()
Data contains the secret data.java.lang.Boolean
getImmutable()
Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified).java.lang.String
getKind()
Kind is a string value representing the REST resource this object represents.ObjectMeta
getMetadata()
java.util.Map<java.lang.String,java.lang.String>
getStringData()
stringData allows specifying non-binary secret data in string form.java.lang.String
getType()
Used to facilitate programmatic handling of secret data.int
hashCode()
void
setApiVersion(java.lang.String apiVersion)
APIVersion defines the versioned schema of this representation of an object.void
setData(java.util.Map<java.lang.String,java.lang.String> data)
Data contains the secret data.void
setImmutable(java.lang.Boolean immutable)
Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified).void
setKind(java.lang.String kind)
Kind is a string value representing the REST resource this object represents.void
setMetadata(ObjectMeta metadata)
void
setStringData(java.util.Map<java.lang.String,java.lang.String> stringData)
stringData allows specifying non-binary secret data in string form.void
setType(java.lang.String type)
Used to facilitate programmatic handling of secret data.Secret.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Secret
public Secret(java.lang.String apiVersion, java.util.Map<java.lang.String,java.lang.String> data, java.lang.Boolean immutable, java.lang.String kind, ObjectMeta metadata, java.util.Map<java.lang.String,java.lang.String> stringData, java.lang.String type)
-
Secret
public Secret()
-
-
Method Detail
-
builder
public static Secret.Builder builder()
-
toBuilder
public Secret.Builder toBuilder()
-
getApiVersion
public java.lang.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
-
getData
public java.util.Map<java.lang.String,java.lang.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
-
getImmutable
public java.lang.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. This is a beta field enabled by ImmutableEphemeralVolumes feature gate.
-
getKind
public java.lang.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
-
getMetadata
public ObjectMeta getMetadata()
-
getStringData
public java.util.Map<java.lang.String,java.lang.String> getStringData()
stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API.
-
getType
public java.lang.String getType()
Used to facilitate programmatic handling of secret data.
-
setApiVersion
public void setApiVersion(java.lang.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
-
setData
public void setData(java.util.Map<java.lang.String,java.lang.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
-
setImmutable
public void setImmutable(java.lang.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. This is a beta field enabled by ImmutableEphemeralVolumes feature gate.
-
setKind
public void setKind(java.lang.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
-
setMetadata
public void setMetadata(ObjectMeta metadata)
-
setStringData
public void setStringData(java.util.Map<java.lang.String,java.lang.String> stringData)
stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API.
-
setType
public void setType(java.lang.String type)
Used to facilitate programmatic handling of secret data.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-