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"]],[["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-05-02 UTC."],[[["The latest version of the `AddPublicKeyRequest` class in the Cloud Shell v1 API is 2.5.0, with documentation available for versions back to 1.0.0."],["The `AddPublicKeyRequest` class is used to send requests for adding a public key to a Cloud Shell environment."],["This class inherits from `object` and implements several interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The `AddPublicKeyRequest` class has properties for setting the `Environment` (where the key is added) and the `Key` itself, which must be in a supported SSH format."],["The `AddPublicKeyRequest` has two constructors, one parameterless, and another that allows you to set the values based on a pre-existing `AddPublicKeyRequest` object."]]],[]]