Class: Google::Apis::CloudshellV1::PublicKey
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::CloudshellV1::PublicKey
 
 
- Defined in:
 - generated/google/apis/cloudshell_v1/classes.rb,
generated/google/apis/cloudshell_v1/representations.rb,
generated/google/apis/cloudshell_v1/representations.rb 
Overview
A public SSH key, corresponding to a private SSH key held by the client.
Instance Attribute Summary collapse
- 
  
    
      #format  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required.
 - 
  
    
      #key  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required.
 - 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Output only.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ PublicKey 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of PublicKey.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ PublicKey
Returns a new instance of PublicKey
      280 281 282  | 
    
      # File 'generated/google/apis/cloudshell_v1/classes.rb', line 280 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#format ⇒ String
Required. Format of this key's content.
Corresponds to the JSON property format
      262 263 264  | 
    
      # File 'generated/google/apis/cloudshell_v1/classes.rb', line 262 def format @format end  | 
  
#key ⇒ String
Required. Content of this key.
Corresponds to the JSON property key
NOTE: Values are automatically base64 encoded/decoded in the client library.
      268 269 270  | 
    
      # File 'generated/google/apis/cloudshell_v1/classes.rb', line 268 def key @key end  | 
  
#name ⇒ String
Output only. Full name of this resource, in the format
users/owner_email/environments/environment_id/publicKeys/key_id.
owner_emailis the email address of the user to whom the key belongs.
environment_idis the identifier of the environment to which the key
grants access.key_id`is the unique identifier of the key. For example,
users/someone@example.com/environments/default/publicKeys/myKey.
Corresponds to the JSON propertyname`
      278 279 280  | 
    
      # File 'generated/google/apis/cloudshell_v1/classes.rb', line 278 def name @name end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      285 286 287 288 289  | 
    
      # File 'generated/google/apis/cloudshell_v1/classes.rb', line 285 def update!(**args) @format = args[:format] if args.key?(:format) @key = args[:key] if args.key?(:key) @name = args[:name] if args.key?(:name) end  |