Google Cloud Bare Metal Solution V2 Client - Class SSHKey (0.5.2)

Reference documentation and code samples for the Google Cloud Bare Metal Solution V2 Client class SSHKey.

An SSH key, used for authorizing with the interactive serial console feature.

Generated from protobuf message google.cloud.baremetalsolution.v2.SSHKey

Namespace

Google \ Cloud \ BareMetalSolution \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

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

↳ public_key string

The public SSH key. This must be in OpenSSH .authorized_keys format.

getName

Output only. The name of this SSH key.

Currently, the only valid value for the location is "global".

Returns
TypeDescription
string

setName

Output only. The name of this SSH key.

Currently, the only valid value for the location is "global".

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPublicKey

The public SSH key. This must be in OpenSSH .authorized_keys format.

Returns
TypeDescription
string

setPublicKey

The public SSH key. This must be in OpenSSH .authorized_keys format.

Parameter
NameDescription
var string
Returns
TypeDescription
$this