Common Protos for Google Cloud APIs Client - Class ServiceAccountDelegationInfo (0.5.2)

Reference documentation and code samples for the Common Protos for Google Cloud APIs Client class ServiceAccountDelegationInfo.

Identity delegation history of an authenticated service account.

Generated from protobuf message google.cloud.audit.ServiceAccountDelegationInfo

Namespace

Google \ Cloud \ Audit

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ principal_subject string

A string representing the principal_subject associated with the identity. For most identities, the format will be principal://iam.googleapis.com/{identity pool name}/subject/{subject) except for some GKE identities (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the legacy format serviceAccount:{identity pool name}[{subject}]

↳ first_party_principal Google\Cloud\Audit\ServiceAccountDelegationInfo\FirstPartyPrincipal

First party (Google) identity as the real authority.

↳ third_party_principal Google\Cloud\Audit\ServiceAccountDelegationInfo\ThirdPartyPrincipal

Third party identity as the real authority.

getPrincipalSubject

A string representing the principal_subject associated with the identity.

For most identities, the format will be principal://iam.googleapis.com/{identity pool name}/subject/{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
Type Description
string

setPrincipalSubject

A string representing the principal_subject associated with the identity.

For most identities, the format will be principal://iam.googleapis.com/{identity pool name}/subject/{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
Name Description
var string
Returns
Type Description
$this

getFirstPartyPrincipal

First party (Google) identity as the real authority.

Returns
Type Description
Google\Cloud\Audit\ServiceAccountDelegationInfo\FirstPartyPrincipal|null

hasFirstPartyPrincipal

setFirstPartyPrincipal

First party (Google) identity as the real authority.

Parameter
Name Description
var Google\Cloud\Audit\ServiceAccountDelegationInfo\FirstPartyPrincipal
Returns
Type Description
$this

getThirdPartyPrincipal

Third party identity as the real authority.

Returns
Type Description
Google\Cloud\Audit\ServiceAccountDelegationInfo\ThirdPartyPrincipal|null

hasThirdPartyPrincipal

setThirdPartyPrincipal

Third party identity as the real authority.

Parameter
Name Description
var Google\Cloud\Audit\ServiceAccountDelegationInfo\ThirdPartyPrincipal
Returns
Type Description
$this

getAuthority

Returns
Type Description
string