public void resetPassword(String userName, ResetPasswordPayload resetPasswordPayload) {
        resetPasswordWithServiceResponseAsync(userName, resetPasswordPayload).toBlocking().last().body();
    }
public void resetPassword ( String userName , ResetPasswordPayload resetPasswordPayload ) { resetPasswordWithServiceResponseAsync ( userName , resetPasswordPayload ) . toBlocking ( ) . last ( ) . body ( ) ; }
Resets the user password on an environment This operation can take a while to complete.

@param userName The name of the user.
@param resetPasswordPayload Represents the payload for resetting passwords.
@throws IllegalArgumentException thrown if parameters fail the validation
@throws CloudException thrown if the request is rejected by server
@throws RuntimeException all other wrapped checked exceptions if the request fails to be sent