public function all()
    {
        // Get all objects from Rancher API
        $objects = $this->client->get($this->getEndpoint(), $this->prepareParams());

        // Decode the json response
        $objects = json_decode($objects);

        // Convert to entityClass
        return array_map(function ($object) {
            return $this->instantiateEntity($object);
        }, $objects->data);

    }