# Cloud OS Login V1beta API - Class Google::Cloud::OsLogin::V1beta::CreateSshPublicKeyRequest (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::CreateSshPublicKeyRequest.

A request message for creating an SSH public key.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. The unique ID for the user in format `users/{user}`.

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The unique ID for the user in format `users/{user}`.
**Returns**

- (::String) --- Required. The unique ID for the user in format `users/{user}`.

### #ssh_public_key

    def ssh_public_key() -> ::Google::Cloud::OsLogin::Common::SshPublicKey

**Returns**

- ([::Google::Cloud::OsLogin::Common::SshPublicKey](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1beta/latest/Google-Cloud-OsLogin-Common-SshPublicKey)) --- Required. The SSH public key and expiration time.

### #ssh_public_key=

    def ssh_public_key=(value) -> ::Google::Cloud::OsLogin::Common::SshPublicKey

**Parameter**

- **value** ([::Google::Cloud::OsLogin::Common::SshPublicKey](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1beta/latest/Google-Cloud-OsLogin-Common-SshPublicKey)) --- Required. The SSH public key and expiration time.
**Returns**

- ([::Google::Cloud::OsLogin::Common::SshPublicKey](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1beta/latest/Google-Cloud-OsLogin-Common-SshPublicKey)) --- Required. The SSH public key and expiration time.