# Google Cloud OsLogin V1 Client - Class LoginProfile (2.1.3)

2.1.3 (latest) 2.1.2 2.0.5 1.9.6 1.8.0 1.7.0 1.6.0 1.5.2 1.4.6 Reference documentation and code samples for the Google Cloud OsLogin V1 Client class LoginProfile.

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

Generated from protobuf message `google.cloud.oslogin.v1.LoginProfile`

## Namespace

Google \\ Cloud \\ OsLogin \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. A unique user ID. |
| `↳ posix_accounts` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-oslogin/latest/Common.PosixAccount>` The list of POSIX accounts associated with the user. |
| `↳ ssh_public_keys` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` A map from SSH public key fingerprint to the associated key object. |

### getName

Required. A unique user ID.

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

### setName

Required. A unique user ID.

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

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

### getPosixAccounts

The list of POSIX accounts associated with the user.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/RepeatedField` |   |

### setPosixAccounts

The list of POSIX accounts associated with the user.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-oslogin/latest/Common.PosixAccount>` |

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

### getSshPublicKeys

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setSshPublicKeys

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

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