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

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getFirstPartyPrincipal

First party (Google) identity as the real authority.

Returns
TypeDescription
Google\Cloud\Audit\ServiceAccountDelegationInfo\FirstPartyPrincipal|null

hasFirstPartyPrincipal

setFirstPartyPrincipal

First party (Google) identity as the real authority.

Parameter
NameDescription
var Google\Cloud\Audit\ServiceAccountDelegationInfo\FirstPartyPrincipal
Returns
TypeDescription
$this

getThirdPartyPrincipal

Third party identity as the real authority.

Returns
TypeDescription
Google\Cloud\Audit\ServiceAccountDelegationInfo\ThirdPartyPrincipal|null

hasThirdPartyPrincipal

setThirdPartyPrincipal

Third party identity as the real authority.

Parameter
NameDescription
var Google\Cloud\Audit\ServiceAccountDelegationInfo\ThirdPartyPrincipal
Returns
TypeDescription
$this

getAuthority

Returns
TypeDescription
string