public sealed class AddPublicKeyRequest : IMessage<AddPublicKeyRequest>, IEquatable<AddPublicKeyRequest>, IDeepCloneable<AddPublicKeyRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Shell v1 API class AddPublicKeyRequest.
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\u003eThis webpage provides reference documentation for the \u003ccode\u003eAddPublicKeyRequest\u003c/code\u003e class within the Google Cloud Shell v1 API, specifically version 2.3.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAddPublicKeyRequest\u003c/code\u003e class is used as a request message for adding a public key to a Cloud Shell environment via the \u003ccode\u003eAddPublicKey\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing it to be used with various Protobuf functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties to specify the \u003ccode\u003eEnvironment\u003c/code\u003e where the key should be added and the \u003ccode\u003eKey\u003c/code\u003e itself, which must be in a supported SSH key format.\u003c/p\u003e\n"],["\u003cp\u003eThere are also multiple previous versions available of the \u003ccode\u003eAddPublicKeyRequest\u003c/code\u003e class and these versions are accessible through the provided links.\u003c/p\u003e\n"]]],[],null,[]]