Cloud Shell v1 API - Class AddPublicKeyRequest (2.5.0)

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].

Inheritance

object > AddPublicKeyRequest

Namespace

Google.Cloud.Shell.V1

Assembly

Google.Cloud.Shell.V1.dll

Constructors

AddPublicKeyRequest()

public AddPublicKeyRequest()

AddPublicKeyRequest(AddPublicKeyRequest)

public AddPublicKeyRequest(AddPublicKeyRequest other)
Parameter
Name Description
other AddPublicKeyRequest

Properties

Environment

public string Environment { get; set; }

Environment this key should be added to, e.g. users/me/environments/default.

Property Value
Type Description
string

Key

public string Key { get; set; }

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 &lt;format&gt; &lt;content&gt;, where &lt;content&gt; part is encoded with Base64.

Property Value
Type Description
string