Google Cloud OsLogin V1 Client - Class CreateSshPublicKeyRequest (2.1.3)

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

A request message for creating an SSH public key.

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

Namespace

Google \ Cloud \ OsLogin \ V1

Methods

__construct

Constructor.

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

setParent

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

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getSshPublicKey

Required. The SSH public key and expiration time.

Returns
Type
Description

hasSshPublicKey

clearSshPublicKey

setSshPublicKey

Required. The SSH public key and expiration time.

Parameter
Name
Description
Returns
Type
Description
$this

static::build

Parameters
Name
Description
parent
string

Required. The unique ID for the user in format users/{user} . Please see OsLoginServiceClient::userName() for help formatting this field.

sshPublicKey
Google\Cloud\OsLogin\Common\SshPublicKey

Required. The SSH public key and expiration time.

Returns
Type
Description
Create a Mobile Website
View Site in Mobile | Classic
Share by: