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 used to create request messages for adding a public key to a Cloud Shell environment.\u003c/p\u003e\n"],["\u003cp\u003eIt is part of the \u003ccode\u003eGoogle.Cloud.Shell.V1\u003c/code\u003e namespace within the \u003ccode\u003eGoogle.Cloud.Shell.V1.dll\u003c/code\u003e assembly and it has implemented several interfaces such as IMessage and IDeepCloneable.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAddPublicKeyRequest\u003c/code\u003e class has two constructors, one default and one that accepts another \u003ccode\u003eAddPublicKeyRequest\u003c/code\u003e as a parameter for creating a new instance.\u003c/p\u003e\n"],["\u003cp\u003eIt has two key properties: \u003ccode\u003eEnvironment\u003c/code\u003e, which specifies the target environment for the public key and \u003ccode\u003eKey\u003c/code\u003e, which contains the actual public key data in a supported SSH format.\u003c/p\u003e\n"],["\u003cp\u003eThis version (2.0.0) of the documentation has a list of other versions, ranging from 1.0.0 to 2.5.0, with 2.5.0 being the most recent.\u003c/p\u003e\n"]]],[],null,[]]