Class: Google::Apis::BaremetalsolutionV2::SshKey

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SshKey

Returns a new instance of SshKey.



2014
2015
2016
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2014

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

Instance Attribute Details

#nameString

Output only. The name of this SSH key. Currently, the only valid value for the location is "global". Corresponds to the JSON property name

Returns:

  • (String)


2007
2008
2009
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2007

def name
  @name
end

#public_keyString

The public SSH key. This must be in OpenSSH .authorized_keys format. Corresponds to the JSON property publicKey

Returns:

  • (String)


2012
2013
2014
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2012

def public_key
  @public_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2019
2020
2021
2022
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2019

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