Class: Google::Apis::CloudshellV1::AddPublicKeyRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudshell_v1/classes.rb,
generated/google/apis/cloudshell_v1/representations.rb,
generated/google/apis/cloudshell_v1/representations.rb

Overview

Request message for AddPublicKey.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AddPublicKeyRequest

Returns a new instance of AddPublicKeyRequest.



51
52
53
# File 'generated/google/apis/cloudshell_v1/classes.rb', line 51

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#keyString

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 , where part is encoded with Base64. Corresponds to the JSON property key

Returns:

  • (String)


49
50
51
# File 'generated/google/apis/cloudshell_v1/classes.rb', line 49

def key
  @key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



56
57
58
# File 'generated/google/apis/cloudshell_v1/classes.rb', line 56

def update!(**args)
  @key = args[:key] if args.key?(:key)
end