code: public function startSync(Query $query = null)
      {
          $query = null !== $query ? $query : new Query();
          $response = $this->client->syncRequest($query->getQueryData());
  
          return $this->buildResult($response);
      }
docs: Starts a new Synchronization.
  The result will contain all the resources currently present in the space.
  By calling Result::isDone(), it can be checked if there's another page of results,
  if so call `continueSync` to get the next page.
  
  A Query object can be used to return only a subset of the space.
  
  @param Query|null $query
  
  @return Result