# Google Cloud OS Login v1 API - Class LoginProfile (3.6.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [3.6.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.V1/latest/Google.Cloud.OsLogin.V1.LoginProfile)
- [3.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.V1/3.5.0/Google.Cloud.OsLogin.V1.LoginProfile)
- [3.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.V1/3.4.0/Google.Cloud.OsLogin.V1.LoginProfile)
- [3.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.V1/3.3.0/Google.Cloud.OsLogin.V1.LoginProfile)
- [3.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.V1/3.2.0/Google.Cloud.OsLogin.V1.LoginProfile)
- [3.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.V1/3.1.0/Google.Cloud.OsLogin.V1.LoginProfile)
- [3.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.V1/3.0.0/Google.Cloud.OsLogin.V1.LoginProfile)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.V1/2.3.0/Google.Cloud.OsLogin.V1.LoginProfile)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.V1/2.2.0/Google.Cloud.OsLogin.V1.LoginProfile)

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

Reference documentation and code samples for the Google Cloud OS Login v1 API class LoginProfile.

The user profile information used for logging in to a virtual machine on
Google Compute Engine.

## Inheritance

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

## Implements

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

## 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.OsLogin.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.V1/latest/Google.Cloud.OsLogin.V1)

## Assembly

Google.Cloud.OsLogin.V1.dll

## Constructors

### LoginProfile()

    public LoginProfile()

### LoginProfile(LoginProfile)

    public LoginProfile(LoginProfile other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.V1/latest/Google.Cloud.OsLogin.V1.LoginProfile` |

## Properties

### Name

    public string Name { get; set; }

Required. A unique user ID.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### PosixAccounts

    public RepeatedField<PosixAccount> PosixAccounts { get; }

The list of POSIX accounts associated with the user.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.PosixAccount.html` |   |

### SshPublicKeys

    public MapField<string, SshPublicKey> SshPublicKeys { get; }

A map from SSH public key fingerprint to the associated key object.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.stringhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.SshPublicKey.html` |   |