Cloud Shell V1 API - Class Google::Cloud::Shell::V1::AddPublicKeyRequest (v1.0.0)

Reference documentation and code samples for the Cloud Shell V1 API class Google::Cloud::Shell::V1::AddPublicKeyRequest.

Request message for AddPublicKey.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#environment

def environment() -> ::String
Returns
  • (::String) — Environment this key should be added to, e.g. users/me/environments/default.

#environment=

def environment=(value) -> ::String
Parameter
  • value (::String) — Environment this key should be added to, e.g. users/me/environments/default.
Returns
  • (::String) — Environment this key should be added to, e.g. users/me/environments/default.

#key

def key() -> ::String
Returns
  • (::String) — 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.

#key=

def key=(value) -> ::String
Parameter
  • value (::String) — 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.
Returns
  • (::String) — 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.