Google Cloud App Hub V1 Client - Class Identity (0.6.0)

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 \ V1

Methods

__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: * * sa://my-sa\@PROJECT_ID.iam.gserviceaccount.com for GCP Service Account * * principal://POOL_ID.global.PROJECT_NUMBER.workload.id.goog/ns/NAMESPACE_ID/sa/MANAGED_IDENTITY_ID for Managed Workload Identity

getPrincipal

Output only. The principal of the identity.

Supported formats:

  • sa://my-sa\@PROJECT_ID.iam.gserviceaccount.com for GCP Service Account
  • principal://POOL_ID.global.PROJECT_NUMBER.workload.id.goog/ns/NAMESPACE_ID/sa/MANAGED_IDENTITY_ID for Managed Workload Identity
Returns
Type Description
string

setPrincipal

Output only. The principal of the identity.

Supported formats:

  • sa://my-sa\@PROJECT_ID.iam.gserviceaccount.com for GCP Service Account
  • principal://POOL_ID.global.PROJECT_NUMBER.workload.id.goog/ns/NAMESPACE_ID/sa/MANAGED_IDENTITY_ID for Managed Workload Identity
Parameter
Name Description
var string
Returns
Type Description
$this