# Cloud OS Login V1 API - Class Google::Cloud::OsLogin::V1::UpdateSshPublicKeyRequest (v1.7.0)

1.7.0 (latest) 1.6.1 1.5.0 1.4.1 1.3.0 1.2.2 1.1.0 1.0.1 0.12.0 0.11.2 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 V1 API class Google::Cloud::OsLogin::V1::UpdateSshPublicKeyRequest.

A request message for updating an SSH public key.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.
**Returns**

- (::String) --- Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.

### #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-v1/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-v1/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-v1/latest/Google-Cloud-OsLogin-Common-SshPublicKey)) --- Required. The SSH public key and expiration time.

### #update_mask

    def update_mask() -> ::Google::Protobuf::FieldMask

**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1/latest/Google-Protobuf-FieldMask)) --- Mask to control which fields get updated. Updates all if not present.

### #update_mask=

    def update_mask=(value) -> ::Google::Protobuf::FieldMask

**Parameter**

- **value** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1/latest/Google-Protobuf-FieldMask)) --- Mask to control which fields get updated. Updates all if not present.
**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1/latest/Google-Protobuf-FieldMask)) --- Mask to control which fields get updated. Updates all if not present.