1.4.0 (latest) 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class Identity : IMessage<Identity>, IEquatable<Identity>, IDeepCloneable<Identity>, IBufferMessage, IMessage

Reference documentation and code samples for the App Hub v1 API class Identity.

The identity associated with a service or workload.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Identity

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Identity](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.Identity.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Identity](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.Identity.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Identity](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.Identity.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.AppHub.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.md.txt)

## Assembly

Google.Cloud.AppHub.V1.dll

## Constructors

### Identity()

    public Identity()

### Identity(Identity)

    public Identity(Identity other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `Identity` |

## Properties

### Principal

    public string Principal { get; set; }

Output only. The principal of the identity.

Supported formats:

- `sa://my-sa@PROJECT_ID.iam.gserviceaccount.com` for GCP Service Account
- `principal://POOL_ID.global.PROJECT_NUMBER.workload.id.goog/ns/NAMESPACE_ID/sa/MANAGED_IDENTITY_ID` for Managed Workload Identity

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |