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.



748
749
750
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 748

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)


741
742
743
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 741

def name
  @name
end

#public_keyString

The public SSH key. Corresponds to the JSON property publicKey

Returns:

  • (String)


746
747
748
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 746

def public_key
  @public_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



753
754
755
756
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 753

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