public function getResourceGroups(Query $query = null) {
        if (!$query) {
            $query = new Query();
        }

        return $this->getCommand('GetResourceGroups', array(
            'page' => $query->page(),
            'limit' => $query->limit(),
        ))->execute();
    }