Interface Credential
public interface Credential
A credential used to access external resources such as Git repositories or the Kubernetes control plane.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionid()
Returns the ID of the credential.name()
Returns the name of the credential.type()
Returns theCredentialType
.Returns a newCredential
with the specifiedcredentialName
.Returns a newCredential
that does not contain any sensitive information.
-
Field Details
-
NONE
-
-
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
CredentialType type()Returns theCredentialType
. -
withoutSecret
Credential withoutSecret()Returns a newCredential
that does not contain any sensitive information. -
withName
Returns a newCredential
with the specifiedcredentialName
.
-