Google Cloud OsLogin V1 Client - Class LoginProfile (1.7.0)

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

The user profile information used for logging in to a virtual machine on Google Compute Engine.

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

Namespace

Google \ Cloud \ OsLogin \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. A unique user ID.

↳ posix_accounts array<Google\Cloud\OsLogin\Common\PosixAccount>

The list of POSIX accounts associated with the user.

↳ ssh_public_keys array|Google\Protobuf\Internal\MapField

A map from SSH public key fingerprint to the associated key object.

getName

Required. A unique user ID.

Returns
TypeDescription
string

setName

Required. A unique user ID.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPosixAccounts

The list of POSIX accounts associated with the user.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPosixAccounts

The list of POSIX accounts associated with the user.

Parameter
NameDescription
var array<Google\Cloud\OsLogin\Common\PosixAccount>
Returns
TypeDescription
$this

getSshPublicKeys

A map from SSH public key fingerprint to the associated key object.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setSshPublicKeys

A map from SSH public key fingerprint to the associated key object.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this