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

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 ServiceAccountDelegationInfo\FirstPartyPrincipal

First party (Google) identity as the real authority.

↳ third_party_principal 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
ServiceAccountDelegationInfo\FirstPartyPrincipal|null

hasFirstPartyPrincipal

setFirstPartyPrincipal

First party (Google) identity as the real authority.

Parameter
Name Description
var ServiceAccountDelegationInfo\FirstPartyPrincipal
Returns
Type Description
$this

getThirdPartyPrincipal

Third party identity as the real authority.

Returns
Type Description
ServiceAccountDelegationInfo\ThirdPartyPrincipal|null

hasThirdPartyPrincipal

setThirdPartyPrincipal

Third party identity as the real authority.

Parameter
Name Description
var ServiceAccountDelegationInfo\ThirdPartyPrincipal
Returns
Type Description
$this

getAuthority

Returns
Type Description
string