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 \ V1Methods
__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 |
Google\Protobuf\Internal\RepeatedField |
setPosixAccounts
The list of POSIX accounts associated with the user.
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\OsLogin\Common\PosixAccount>
|
Returns | |
---|---|
Type | Description |
$this |
getSshPublicKeys
A map from SSH public key fingerprint to the associated key object.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\MapField |
setSshPublicKeys
A map from SSH public key fingerprint to the associated key object.
Parameter | |
---|---|
Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
Returns | |
---|---|
Type | Description |
$this |