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."],[[["The `AddPublicKeyRequest` class is a request message for adding a public key in the Google Cloud Shell environment, specifically used with the `CloudShellService.AddPublicKey` method."],["This class implements multiple interfaces such as `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and is part of the `Google.Cloud.Shell.V1` namespace in the `Google.Cloud.Shell.V1.dll` assembly."],["The class has two constructors, one default and one that takes another `AddPublicKeyRequest` object as a parameter for copying."],["The `AddPublicKeyRequest` class includes properties to specify the `Environment` (e.g., `users/me/environments/default`) and the `Key`, which must adhere to specific supported SSH key formats."],["There are multiple versions of this request class, with the most current one being 2.5.0."]]],[]]