Interface AddPublicKeyRequestOrBuilder (2.43.0)

public interface AddPublicKeyRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEnvironment()

public abstract String getEnvironment()

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

string environment = 1;

Returns
Type Description
String

The environment.

getEnvironmentBytes()

public abstract ByteString getEnvironmentBytes()

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

string environment = 1;

Returns
Type Description
ByteString

The bytes for environment.

getKey()

public abstract String getKey()

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.

string key = 2;

Returns
Type Description
String

The key.

getKeyBytes()

public abstract ByteString getKeyBytes()

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.

string key = 2;

Returns
Type Description
ByteString

The bytes for key.