Google Cloud OsLogin V1beta Client - Class CreateSshPublicKeyRequest (1.5.2)

Reference documentation and code samples for the Google Cloud OsLogin V1beta Client class CreateSshPublicKeyRequest.

A request message for creating an SSH public key.

Generated from protobuf message google.cloud.oslogin.v1beta.CreateSshPublicKeyRequest

Namespace

Google \ Cloud \ OsLogin \ V1beta

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The unique ID for the user in format users/{user}.

↳ ssh_public_key Google\Cloud\OsLogin\Common\SshPublicKey

Required. The SSH public key and expiration time.

getParent

Required. The unique ID for the user in format users/{user}.

Returns
TypeDescription
string

setParent

Required. The unique ID for the user in format users/{user}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSshPublicKey

Required. The SSH public key and expiration time.

Returns
TypeDescription
Google\Cloud\OsLogin\Common\SshPublicKey|null

hasSshPublicKey

clearSshPublicKey

setSshPublicKey

Required. The SSH public key and expiration time.

Parameter
NameDescription
var Google\Cloud\OsLogin\Common\SshPublicKey
Returns
TypeDescription
$this