Class: Google::Apis::BaremetalsolutionV2::SshKey
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::SshKey
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/baremetalsolution_v2/classes.rb,
lib/google/apis/baremetalsolution_v2/representations.rb,
lib/google/apis/baremetalsolution_v2/representations.rb
Overview
An SSH key, used for authorizing with 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.
1884 1885 1886 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1884 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Output only. The name of this SSH key. Currently, the only valid value for the
location is "global".
Corresponds to the JSON property name
1877 1878 1879 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1877 def name @name end |
#public_key ⇒ String
The public SSH key. This must be in OpenSSH .authorized_keys format.
Corresponds to the JSON property publicKey
1882 1883 1884 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1882 def public_key @public_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1889 1890 1891 1892 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1889 def update!(**args) @name = args[:name] if args.key?(:name) @public_key = args[:public_key] if args.key?(:public_key) end |