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

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
Name Description
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
Type Description
string

setName

Output only. The name of this SSH key.

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

Parameter
Name Description
var string
Returns
Type Description
$this

getPublicKey

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

Returns
Type Description
string

setPublicKey

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

Parameter
Name Description
var string
Returns
Type Description
$this