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

2.5.1 (latest) 2.5.0 2.4.2 2.3.0 2.2.1 2.1.1 2.0.4 1.32.0 1.31.0 1.30.0 1.29.0 1.28.2 1.21.0 1.20.2 1.19.1 1.18.0 1.17.0 1.16.0 1.15.1 1.14.2 1.13.1 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** ||
|---|---|
| **Name** | **Description** |
| `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** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setPrincipalEmail

The email address of a Google account.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$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** ||
|---|---|
| **Type** | **Description** |
| `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** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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