Class: Google::Apis::CloudshellV1::AddPublicKeyRequest
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::CloudshellV1::AddPublicKeyRequest
 
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudshell_v1/classes.rb,
 lib/google/apis/cloudshell_v1/representations.rb,
 lib/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.
| 52 53 54 | # File 'lib/google/apis/cloudshell_v1/classes.rb', line 52 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 key
| 50 51 52 | # File 'lib/google/apis/cloudshell_v1/classes.rb', line 50 def key @key end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 57 58 59 | # File 'lib/google/apis/cloudshell_v1/classes.rb', line 57 def update!(**args) @key = args[:key] if args.key?(:key) end |