Google Cloud OsLogin V1 Client - Class LoginProfile (2.1.3)

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

setName

Required. A unique user ID.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getPosixAccounts

The list of POSIX accounts associated with the user.

Returns
Type
Description

setPosixAccounts

The list of POSIX accounts associated with the user.

Parameter
Name
Description
Returns
Type
Description
$this

getSshPublicKeys

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

Returns
Type
Description

setSshPublicKeys

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

Parameter
Name
Description
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: