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

1.0.0 (latest) 0.8.3 0.7.0 0.6.0 0.5.2 0.4.2 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`

## 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` | `https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.ServiceAccountDelegationInfo.FirstPartyPrincipal` First party (Google) identity as the real authority. |
| `↳ third_party_principal` | `https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/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** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.ServiceAccountDelegationInfo.FirstPartyPrincipal|null` |   |

### hasFirstPartyPrincipal

### setFirstPartyPrincipal

First party (Google) identity as the real authority.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.ServiceAccountDelegationInfo.FirstPartyPrincipal` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getThirdPartyPrincipal

Third party identity as the real authority.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.ServiceAccountDelegationInfo.ThirdPartyPrincipal|null` |   |

### hasThirdPartyPrincipal

### setThirdPartyPrincipal

Third party identity as the real authority.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.ServiceAccountDelegationInfo.ThirdPartyPrincipal` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAuthority

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |