* $osloginService = new Google\Service\CloudOSLogin(...); * $sshPublicKey = $osloginService->sshPublicKey; * */ class UsersSshPublicKey extends \Google\Service\Resource { /** * Create an SSH public key (sshPublicKey.create) * * @param string $parent Required. The unique ID for the user in format * `users/{user}`. * @param SshPublicKey $postBody * @param array $optParams Optional parameters. * @return SshPublicKey */ public function create($parent, SshPublicKey $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('create', [$params], SshPublicKey::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(UsersSshPublicKey::class, 'Google_Service_CloudOSLogin_Resource_UsersSshPublicKey');