Interface Credential


public interface Credential
A credential used to access external resources such as Git repositories or the Kubernetes control plane.
  • Field Details

  • Method Details

    • id

      String id()
      Returns the ID of the credential.
    • name

      String name()
      Returns the name of the credential. It is in the form of "projects/<project>/credentials/<credential>" or "projects/<project>/repos/<repo>/credentials/<credential>".
    • type

      Returns the CredentialType.
    • withoutSecret

      Credential withoutSecret()
      Returns a new Credential that does not contain any sensitive information.
    • withName

      Credential withName(String credentialName)
      Returns a new Credential with the specified credentialName.