public final ImportSshPublicKeyResponse importSshPublicKey ( UserName parent , SshPublicKey sshPublicKey ) { ImportSshPublicKeyRequest request = ImportSshPublicKeyRequest . newBuilder ( ) . setParent ( parent == null ? null : parent . toString ( ) ) . setSshPublicKey ( sshPublicKey ) . build ( ) ; return importSshPublicKey ( request ) ; }
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 .