code: public Observable<SyncAgentKeyPropertiesInner> generateKeyAsync(String resourceGroupName, String serverName, String syncAgentName) {
          return generateKeyWithServiceResponseAsync(resourceGroupName, serverName, syncAgentName).map(new Func1<ServiceResponse<SyncAgentKeyPropertiesInner>, SyncAgentKeyPropertiesInner>() {
              @Override
              public SyncAgentKeyPropertiesInner call(ServiceResponse<SyncAgentKeyPropertiesInner> response) {
                  return response.body();
              }
          });
      }
docs: Generates a sync agent key.
  
  @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  @param serverName The name of the server on which the sync agent is hosted.
  @param syncAgentName The name of the sync agent.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the SyncAgentKeyPropertiesInner object