code: public Observable<RunbookDraftUndoEditResultInner> undoEditAsync(String resourceGroupName, String automationAccountName, String runbookName) {
          return undoEditWithServiceResponseAsync(resourceGroupName, automationAccountName, runbookName).map(new Func1<ServiceResponse<RunbookDraftUndoEditResultInner>, RunbookDraftUndoEditResultInner>() {
              @Override
              public RunbookDraftUndoEditResultInner call(ServiceResponse<RunbookDraftUndoEditResultInner> response) {
                  return response.body();
              }
          });
      }
docs: Undo draft edit to last known published state identified by runbook name.
  
  @param resourceGroupName Name of an Azure Resource group.
  @param automationAccountName The name of the automation account.
  @param runbookName The runbook name.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the RunbookDraftUndoEditResultInner object