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.
774 775 776 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 774 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
767 768 769 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 767 def name @name end |
#public_key ⇒ String
The public SSH key.
Corresponds to the JSON property publicKey
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 |