Class Kv2Metadata


  • public class Kv2Metadata
    extends ApiJsonParser
    Metadata of a KV version 2 secret.
    • Method Detail

      • createdTime

        public Instant createdTime()
        Created timestamp.
        Returns:
        timestamp
      • deletedTime

        public Optional<Instant> deletedTime()
        Deleted timestamp for deleted secrets.
        Returns:
        timestamp or empty if not deleted
      • version

        public int version()
        Version of the secret.
        Returns:
        version
      • deleted

        public boolean deleted()
        Whether the secret is deleted (can be undeleted).
        Returns:
        true if the secret is deleted, false otherwise
      • destroyed

        public boolean destroyed()
        Whether the secret is destroyed (cannot be undeleted).
        Returns:
        true if the secret is destroyed, false otherwise