Class VersionedSecret

java.lang.Object
io.micronaut.gcp.secretmanager.client.VersionedSecret

public class VersionedSecret extends Object
A wrapper class around AccessSecretVersionResponse with secret information.
Since:
3.4.0
Author:
Vinicius Carvalho
  • Constructor Details

    • VersionedSecret

      public VersionedSecret(String name, String projectId, String version, byte[] contents)
    • VersionedSecret

      public VersionedSecret(String name, String projectId, String version, byte[] contents, String location)
  • Method Details

    • getName

      public String getName()
      Returns:
      name
    • getContents

      public byte[] getContents()
      Returns:
      contents
    • getVersion

      public String getVersion()
      Returns:
      version
    • getProjectId

      public String getProjectId()
      Returns:
      projectId
    • getLocation

      @Nullable public @Nullable String getLocation()
      Returns:
      location
      Since:
      5.8.0