Class: Google::Apis::CloudshellV1::AddPublicKeyRequest
- Inherits:
-
Object
- Object
- Google::Apis::CloudshellV1::AddPublicKeyRequest
- 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
-
#key ⇒ String
Key that should be added to the environment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AddPublicKeyRequest
constructor
A new instance of AddPublicKeyRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#key ⇒ 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 , where part is encoded with Base64.
Corresponds to the JSON property key
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 |