Class: Google::Apis::BaremetalsolutionV1alpha1::SshKey

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/baremetalsolution_v1alpha1/classes.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb

Overview

A public SSH key registered in the project. Used primarily for the interactive serial console feature.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SshKey

Returns a new instance of SshKey.



774
775
776
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 774

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

Instance Attribute Details

#nameString

Output only. The name of this SSH key. Corresponds to the JSON property name

Returns:

  • (String)


767
768
769
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 767

def name
  @name
end

#public_keyString

The public SSH key. Corresponds to the JSON property publicKey

Returns:

  • (String)


772
773
774
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 772

def public_key
  @public_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



779
780
781
782
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 779

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