/var/www/flurhymez/vendor/google/apiclient-services/src/CloudOSLogin/Resource
Edit: /var/www/flurhymez/vendor/google/apiclient-services/src/CloudOSLogin/Resource/Users.php (2758B)
* $osloginService = new Google\Service\CloudOSLogin(...);
* $users = $osloginService->users;
*
*/
class Users extends \Google\Service\Resource
{
/**
* Retrieves the profile information used for logging in to a virtual machine on
* Google Compute Engine. (users.getLoginProfile)
*
* @param string $name Required. The unique ID for the user in format
* `users/{user}`.
* @param array $optParams Optional parameters.
*
* @opt_param string projectId The project ID of the Google Cloud Platform
* project.
* @opt_param string systemId A system ID for filtering the results of the
* request.
* @return LoginProfile
*/
public function getLoginProfile($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getLoginProfile', [$params], LoginProfile::class);
}
/**
* 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)
*
* @param string $parent Required. The unique ID for the user in format
* `users/{user}`.
* @param SshPublicKey $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string projectId The project ID of the Google Cloud Platform
* project.
* @return ImportSshPublicKeyResponse
*/
public function importSshPublicKey($parent, SshPublicKey $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('importSshPublicKey', [$params], ImportSshPublicKeyResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Users::class, 'Google_Service_CloudOSLogin_Resource_Users');