code: public Observable<ServiceResponse<Void>> beginResetPasswordWithServiceResponseAsync(String userName, ResetPasswordPayload resetPasswordPayload) {
          if (userName == null) {
              throw new IllegalArgumentException("Parameter userName is required and cannot be null.");
          }
          if (resetPasswordPayload == null) {
              throw new IllegalArgumentException("Parameter resetPasswordPayload is required and cannot be null.");
          }
          if (this.client.apiVersion() == null) {
              throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
          }
          Validator.validate(resetPasswordPayload);
          return service.beginResetPassword(userName, resetPasswordPayload, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Void>>>() {
                  @Override
                  public Observable<ServiceResponse<Void>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponse<Void> clientResponse = beginResetPasswordDelegate(response);
                          return Observable.just(clientResponse);
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }
docs: 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
  @return the {@link ServiceResponse} object if successful.