Google Cloud Bare Metal Solution V2 Client - Class CreateSSHKeyRequest (0.6.0)

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

Message for registering a public SSH key in a project.

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

Namespace

Google \ Cloud \ BareMetalSolution \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent containing the SSH keys.

↳ ssh_key Google\Cloud\BareMetalSolution\V2\SSHKey

Required. The SSH key to register.

↳ ssh_key_id string

Required. The ID to use for the key, which will become the final component of the key's resource name. This value must match the regex: [a-zA-Z0-9@.-_]{1,64}

getParent

Required. The parent containing the SSH keys.

Returns
TypeDescription
string

setParent

Required. The parent containing the SSH keys.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSshKey

Required. The SSH key to register.

Returns
TypeDescription
Google\Cloud\BareMetalSolution\V2\SSHKey|null

hasSshKey

clearSshKey

setSshKey

Required. The SSH key to register.

Parameter
NameDescription
var Google\Cloud\BareMetalSolution\V2\SSHKey
Returns
TypeDescription
$this

getSshKeyId

Required. The ID to use for the key, which will become the final component of the key's resource name.

This value must match the regex: [a-zA-Z0-9@.-_]{1,64}

Returns
TypeDescription
string

setSshKeyId

Required. The ID to use for the key, which will become the final component of the key's resource name.

This value must match the regex: [a-zA-Z0-9@.-_]{1,64}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. The parent containing the SSH keys. Please see Google\Cloud\BareMetalSolution\V2\BareMetalSolutionClient::locationName() for help formatting this field.

sshKey Google\Cloud\BareMetalSolution\V2\SSHKey

Required. The SSH key to register.

sshKeyId string

Required. The ID to use for the key, which will become the final component of the key's resource name.

This value must match the regex: [a-zA-Z0-9@.-_]{1,64}

Returns
TypeDescription
Google\Cloud\BareMetalSolution\V2\CreateSSHKeyRequest