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 \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The parent containing the SSH keys.
↳ ssh_key
↳ 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.
string
setParent
Required. The parent containing the SSH keys.
var
string
$this
getSshKey
Required. The SSH key to register.
hasSshKey
clearSshKey
setSshKey
Required. The SSH key to register.
$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}
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}
var
string
$this
static::build
parent
string
Required. The parent containing the SSH keys. Please see Google\Cloud\BareMetalSolution\V2\BareMetalSolutionClient::locationName() for help formatting this field.
sshKey
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}