Reference documentation and code samples for the Google Cloud App Hub V1 Client class Identity.
The identity associated with a service or workload.
Generated from protobuf message google.cloud.apphub.v1.Identity
Namespace
Google \ Cloud \ AppHub \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ principal |
string
Output only. The principal of the identity. Supported formats: * * |
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
| Returns | |
|---|---|
| Type | Description |
string |
|
setPrincipal
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
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|