Class: Google::Apis::BaremetalsolutionV1alpha1::SshKey
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV1alpha1::SshKey
- 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
-
#name ⇒ String
Output only.
-
#public_key ⇒ String
The public SSH key.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SshKey
constructor
A new instance of SshKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#name ⇒ String
Output only. The name of this SSH key.
Corresponds to the JSON property name
741 742 743 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 741 def name @name end |
#public_key ⇒ String
The public SSH key.
Corresponds to the JSON property publicKey
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 |