Class: Google::Cloud::Shell::V1::AddPublicKeyRequest

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/shell/v1/cloudshell.rb

Overview

Request message for AddPublicKey.

Instance Attribute Summary collapse

Instance Attribute Details

#environment::String

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



243
244
245
246
# File 'proto_docs/google/cloud/shell/v1/cloudshell.rb', line 243

class AddPublicKeyRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#key::String

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



243
244
245
246
# File 'proto_docs/google/cloud/shell/v1/cloudshell.rb', line 243

class AddPublicKeyRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end