code: public Observable<ServiceResponse<Void>> resetPasswordWithServiceResponseAsync(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);
          Observable<Response<ResponseBody>> observable = service.resetPassword(userName, resetPasswordPayload, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
          return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken<Void>() { }.getType());
      }
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 observable for the request