public sealed class AddPublicKeyRequest : IMessage<AddPublicKeyRequest>, IEquatable<AddPublicKeyRequest>, IDeepCloneable<AddPublicKeyRequest>, IBufferMessage, IMessage
Request message for
[AddPublicKey][google.cloud.shell.v1.CloudShellService.AddPublicKey].
Key that should be added to the environment. Supported formats are
ssh-dss (see RFC4253), ssh-rsa (see RFC4253), ecdsa-sha2-nistp256
(see RFC5656), ecdsa-sha2-nistp384 (see RFC5656) and
ecdsa-sha2-nistp521 (see RFC5656). It should be structured as
<format> <content>, where <content> part is encoded with
Base64.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eAddPublicKeyRequest\u003c/code\u003e class is a request message for adding a public key in the Google Cloud Shell environment, specifically used with the \u003ccode\u003eCloudShellService.AddPublicKey\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and is part of the \u003ccode\u003eGoogle.Cloud.Shell.V1\u003c/code\u003e namespace in the \u003ccode\u003eGoogle.Cloud.Shell.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, one default and one that takes another \u003ccode\u003eAddPublicKeyRequest\u003c/code\u003e object as a parameter for copying.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAddPublicKeyRequest\u003c/code\u003e class includes properties to specify the \u003ccode\u003eEnvironment\u003c/code\u003e (e.g., \u003ccode\u003eusers/me/environments/default\u003c/code\u003e) and the \u003ccode\u003eKey\u003c/code\u003e, which must adhere to specific supported SSH key formats.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of this request class, with the most current one being 2.5.0.\u003c/p\u003e\n"]]],[],null,[]]