public interface IdentityOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getPrincipal()
public abstract String getPrincipal()Output only. The principal of the identity.
Supported formats:
sa://my-sa@PROJECT_ID.iam.gserviceaccount.comfor GCP Service Accountprincipal://POOL_ID.global.PROJECT_NUMBER.workload.id.goog/ns/NAMESPACE_ID/sa/MANAGED_IDENTITY_IDfor Managed Workload Identity
string principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The principal. |
getPrincipalBytes()
public abstract ByteString getPrincipalBytes()Output only. The principal of the identity.
Supported formats:
sa://my-sa@PROJECT_ID.iam.gserviceaccount.comfor GCP Service Accountprincipal://POOL_ID.global.PROJECT_NUMBER.workload.id.goog/ns/NAMESPACE_ID/sa/MANAGED_IDENTITY_IDfor Managed Workload Identity
string principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for principal. |