# Cloud OS Login V1beta API - Class Google::Cloud::OsLogin::V1beta::LoginProfile (v0.22.0)

0.22.0 (latest) 0.21.1 0.20.0 0.19.1 0.18.0 0.17.2 0.16.0 0.15.2 0.14.2 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.5 Reference documentation and code samples for the Cloud OS Login V1beta API class Google::Cloud::OsLogin::V1beta::LoginProfile.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. A unique user ID.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. A unique user ID.
**Returns**

- (::String) --- Required. A unique user ID.

### #posix_accounts

    def posix_accounts() -> ::Array<::Google::Cloud::OsLogin::Common::PosixAccount>

**Returns**

- (::Array\<[::Google::Cloud::OsLogin::Common::PosixAccount](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1beta/latest/Google-Cloud-OsLogin-Common-PosixAccount)\>) --- The list of POSIX accounts associated with the user.

### #posix_accounts=

    def posix_accounts=(value) -> ::Array<::Google::Cloud::OsLogin::Common::PosixAccount>

**Parameter**

- **value** (::Array\<[::Google::Cloud::OsLogin::Common::PosixAccount](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1beta/latest/Google-Cloud-OsLogin-Common-PosixAccount)\>) --- The list of POSIX accounts associated with the user.
**Returns**

- (::Array\<[::Google::Cloud::OsLogin::Common::PosixAccount](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1beta/latest/Google-Cloud-OsLogin-Common-PosixAccount)\>) --- The list of POSIX accounts associated with the user.

### #security_keys

    def security_keys() -> ::Array<::Google::Cloud::OsLogin::V1beta::SecurityKey>

**Returns**

- (::Array\<[::Google::Cloud::OsLogin::V1beta::SecurityKey](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1beta/latest/Google-Cloud-OsLogin-V1beta-SecurityKey)\>) --- The registered security key credentials for a user.

### #security_keys=

    def security_keys=(value) -> ::Array<::Google::Cloud::OsLogin::V1beta::SecurityKey>

**Parameter**

- **value** (::Array\<[::Google::Cloud::OsLogin::V1beta::SecurityKey](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1beta/latest/Google-Cloud-OsLogin-V1beta-SecurityKey)\>) --- The registered security key credentials for a user.
**Returns**

- (::Array\<[::Google::Cloud::OsLogin::V1beta::SecurityKey](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1beta/latest/Google-Cloud-OsLogin-V1beta-SecurityKey)\>) --- The registered security key credentials for a user.

### #ssh_public_keys

    def ssh_public_keys() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::OsLogin::Common::SshPublicKey}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::Google::Cloud::OsLogin::Common::SshPublicKey}) --- A map from SSH public key fingerprint to the associated key object.

### #ssh_public_keys=

    def ssh_public_keys=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::OsLogin::Common::SshPublicKey}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::Google::Cloud::OsLogin::Common::SshPublicKey}) --- A map from SSH public key fingerprint to the associated key object.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::Google::Cloud::OsLogin::Common::SshPublicKey}) --- A map from SSH public key fingerprint to the associated key object.