Google Cloud Security Command Center V1 Client - Class ServiceAccountDelegationInfo (1.16.0)

Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class ServiceAccountDelegationInfo.

Identity delegation history of an authenticated service account.

Generated from protobuf message google.cloud.securitycenter.v1.ServiceAccountDelegationInfo

Namespace

Google \ Cloud \ SecurityCenter \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ principal_email string

The email address of a Google account.

↳ principal_subject string

A string representing the principal_subject associated with the identity. As compared to principal_email, supports principals that aren't associated with email addresses, such as third party principals. For most identities, the format will be principal://iam.googleapis.com/{identity pool name}/subjects/{subject} except for some GKE identities (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the legacy format serviceAccount:{identity pool name}[{subject}]

getPrincipalEmail

The email address of a Google account.

Returns
TypeDescription
string

setPrincipalEmail

The email address of a Google account.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPrincipalSubject

A string representing the principal_subject associated with the identity.

As compared to principal_email, supports principals that aren't associated with email addresses, such as third party principals. For most identities, the format will be principal://iam.googleapis.com/{identity pool name}/subjects/{subject} except for some GKE identities (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the legacy format serviceAccount:{identity pool name}[{subject}]

Returns
TypeDescription
string

setPrincipalSubject

A string representing the principal_subject associated with the identity.

As compared to principal_email, supports principals that aren't associated with email addresses, such as third party principals. For most identities, the format will be principal://iam.googleapis.com/{identity pool name}/subjects/{subject} except for some GKE identities (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the legacy format serviceAccount:{identity pool name}[{subject}]

Parameter
NameDescription
var string
Returns
TypeDescription
$this