class Users extends Resource (View source)

The "users" collection of methods.

Typical usage is:

 $osloginService = new Google\Service\CloudOSLogin(...);
 $users = $osloginService->users;

Methods

getLoginProfile(string $name, array $optParams = [])

Retrieves the profile information used for logging in to a virtual machine on Google Compute Engine. (users.getLoginProfile)

importSshPublicKey(string $parent, SshPublicKey $postBody, array $optParams = [])

Adds an SSH public key and returns the profile information. Default POSIX account information is set when no username and UID exist as part of the login profile. (users.importSshPublicKey)

Details

LoginProfile getLoginProfile(string $name, array $optParams = [])

Retrieves the profile information used for logging in to a virtual machine on Google Compute Engine. (users.getLoginProfile)

Parameters

string $name

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

array $optParams

Optional parameters.

Return Value

LoginProfile

Exceptions

Exception

ImportSshPublicKeyResponse importSshPublicKey(string $parent, SshPublicKey $postBody, array $optParams = [])

Adds an SSH public key and returns the profile information. Default POSIX account information is set when no username and UID exist as part of the login profile. (users.importSshPublicKey)

Parameters

string $parent

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

SshPublicKey $postBody
array $optParams

Optional parameters.

Return Value

ImportSshPublicKeyResponse

Exceptions

Exception