code: public Observable<AgentRegistrationInner> regenerateKeyAsync(String resourceGroupName, String automationAccountName, AgentRegistrationRegenerateKeyParameter parameters) {
          return regenerateKeyWithServiceResponseAsync(resourceGroupName, automationAccountName, parameters).map(new Func1<ServiceResponse<AgentRegistrationInner>, AgentRegistrationInner>() {
              @Override
              public AgentRegistrationInner call(ServiceResponse<AgentRegistrationInner> response) {
                  return response.body();
              }
          });
      }
docs: Regenerate a primary or secondary agent registration key.
  
  @param resourceGroupName Name of an Azure Resource group.
  @param automationAccountName The name of the automation account.
  @param parameters The name of the agent registration key to be regenerated
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the AgentRegistrationInner object