public final SshPublicKey updateSshPublicKey(String name, SshPublicKey sshPublicKey) {

    UpdateSshPublicKeyRequest request =
        UpdateSshPublicKeyRequest.newBuilder().setName(name).setSshPublicKey(sshPublicKey).build();
    return updateSshPublicKey(request);
  }
public final SshPublicKey updateSshPublicKey ( String name , SshPublicKey sshPublicKey ) { UpdateSshPublicKeyRequest request = UpdateSshPublicKeyRequest . newBuilder ( ) . setName ( name ) . setSshPublicKey ( sshPublicKey ) . build ( ) ; return updateSshPublicKey ( request ) ; }
Updates an SSH public key and returns the profile information. This method supports patch
semantics.

<p>Sample code:

<pre><code>
try (OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.create()) {
FingerprintName name = FingerprintName.of("[USER]", "[FINGERPRINT]");
SshPublicKey sshPublicKey = SshPublicKey.newBuilder().build();
SshPublicKey response = osLoginServiceClient.updateSshPublicKey(name.toString(), sshPublicKey);
}
</code></pre>

@param name 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}`.
@param sshPublicKey The SSH public key and expiration time.
@throws com.google.api.gax.rpc.ApiException if the remote call fails