Class V1Secret

java.lang.Object
io.kubernetes.client.openapi.models.V1Secret
All Implemented Interfaces:
KubernetesObject, KubernetesType

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-18T15:05:57.863601Z[Etc/UTC]") public class V1Secret extends Object implements KubernetesObject
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 Details

  • Constructor Details

    • V1Secret

      public V1Secret()
  • Method Details

    • apiVersion

      public V1Secret apiVersion(String apiVersion)
    • getApiVersion

      @Nullable 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:
      getApiVersion in interface KubernetesType
      Returns:
      apiVersion
    • setApiVersion

      public void setApiVersion(String apiVersion)
    • data

      public V1Secret data(Map<String,byte[]> data)
    • putDataItem

      public V1Secret putDataItem(String key, byte[] dataItem)
    • getData

      @Nullable public Map<String,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:
      data
    • setData

      public void setData(Map<String,byte[]> data)
    • immutable

      public V1Secret immutable(Boolean immutable)
    • getImmutable

      @Nullable 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.
      Returns:
      immutable
    • setImmutable

      public void setImmutable(Boolean immutable)
    • kind

      public V1Secret kind(String kind)
    • getKind

      @Nullable 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:
      getKind in interface KubernetesType
      Returns:
      kind
    • setKind

      public void setKind(String kind)
    • metadata

      public V1Secret metadata(V1ObjectMeta metadata)
    • getMetadata

      @Nullable public V1ObjectMeta getMetadata()
      Get metadata
      Specified by:
      getMetadata in interface KubernetesObject
      Returns:
      metadata
    • setMetadata

      public void setMetadata(V1ObjectMeta metadata)
    • stringData

      public V1Secret stringData(Map<String,String> stringData)
    • putStringDataItem

      public V1Secret putStringDataItem(String key, String stringDataItem)
    • getStringData

      @Nullable 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.
      Returns:
      stringData
    • setStringData

      public void setStringData(Map<String,String> stringData)
    • type

      public V1Secret type(String type)
    • getType

      @Nullable public String getType()
      Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types
      Returns:
      type
    • setType

      public void setType(String type)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object