public sealed class UpdateSshPublicKeyRequest : IMessage<UpdateSshPublicKeyRequest>, IEquatable<UpdateSshPublicKeyRequest>, IDeepCloneable<UpdateSshPublicKeyRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud OS Login v1 API class UpdateSshPublicKeyRequest.
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}.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eUpdateSshPublicKeyRequest\u003c/code\u003e class is 3.5.0, and it is part of the Google Cloud OS Login v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class is used to create a request message for updating an SSH public key, which is identified by its SHA-256 fingerprint.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUpdateSshPublicKeyRequest\u003c/code\u003e class inherits from the base \u003ccode\u003eobject\u003c/code\u003e class and implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has several properties, including \u003ccode\u003eName\u003c/code\u003e (the fingerprint), \u003ccode\u003eSshPublicKey\u003c/code\u003e (the key and expiration time), \u003ccode\u003eSshPublicKeyName\u003c/code\u003e, and \u003ccode\u003eUpdateMask\u003c/code\u003e (to control which fields are updated).\u003c/p\u003e\n"],["\u003cp\u003eThe class has 2 constructors, one default and one that takes in another \u003ccode\u003eUpdateSshPublicKeyRequest\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["# Google Cloud OS Login v1 API - Class UpdateSshPublicKeyRequest (3.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/latest/Google.Cloud.OsLogin.V1.UpdateSshPublicKeyRequest)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/3.4.0/Google.Cloud.OsLogin.V1.UpdateSshPublicKeyRequest)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/3.3.0/Google.Cloud.OsLogin.V1.UpdateSshPublicKeyRequest)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/3.2.0/Google.Cloud.OsLogin.V1.UpdateSshPublicKeyRequest)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/3.1.0/Google.Cloud.OsLogin.V1.UpdateSshPublicKeyRequest)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/3.0.0/Google.Cloud.OsLogin.V1.UpdateSshPublicKeyRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/2.3.0/Google.Cloud.OsLogin.V1.UpdateSshPublicKeyRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/2.2.0/Google.Cloud.OsLogin.V1.UpdateSshPublicKeyRequest) \n\n public sealed class UpdateSshPublicKeyRequest : IMessage\u003cUpdateSshPublicKeyRequest\u003e, IEquatable\u003cUpdateSshPublicKeyRequest\u003e, IDeepCloneable\u003cUpdateSshPublicKeyRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud OS Login v1 API class UpdateSshPublicKeyRequest.\n\nA request message for updating an SSH public key. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e UpdateSshPublicKeyRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[UpdateSshPublicKeyRequest](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/latest/Google.Cloud.OsLogin.V1.UpdateSshPublicKeyRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[UpdateSshPublicKeyRequest](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/latest/Google.Cloud.OsLogin.V1.UpdateSshPublicKeyRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[UpdateSshPublicKeyRequest](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/latest/Google.Cloud.OsLogin.V1.UpdateSshPublicKeyRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.OsLogin.V1](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/latest/Google.Cloud.OsLogin.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.OsLogin.V1.dll\n\nConstructors\n------------\n\n### UpdateSshPublicKeyRequest()\n\n public UpdateSshPublicKeyRequest()\n\n### UpdateSshPublicKeyRequest(UpdateSshPublicKeyRequest)\n\n public UpdateSshPublicKeyRequest(UpdateSshPublicKeyRequest other)\n\nProperties\n----------\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The fingerprint of the public key to update. Public keys are\nidentified by their SHA-256 fingerprint. The fingerprint of the public key\nis in format `users/{user}/sshPublicKeys/{fingerprint}`.\n\n### SshPublicKey\n\n public SshPublicKey SshPublicKey { get; set; }\n\nRequired. The SSH public key and expiration time.\n\n### SshPublicKeyName\n\n public SshPublicKeyName SshPublicKeyName { get; set; }\n\n[SshPublicKeyName](https://github.com/googleapis/google-cloud-dotnet/blob/fabcd3fcb58c76146b4e09ef3bb416d9a36db288/apis/Google.Cloud.OsLogin.Common/Google.Cloud.OsLogin.Common/CommonResourceNames.g.cs)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/latest/Google.Cloud.OsLogin.V1.UpdateSshPublicKeyRequest#Google_Cloud_OsLogin_V1_UpdateSshPublicKeyRequest_Name) resource name property.\n\n### UpdateMask\n\n public FieldMask UpdateMask { get; set; }\n\nMask to control which fields get updated. Updates all if not present."]]