@classmethod
def get(cls, storage_pool):
    """Get a storage_pool resource for a named pool

        Implements GET /1.0/storage-pools/<pool>/resources

        Needs the 'resources' api extension in the LXD server.

        :param storage_pool: a storage pool object on which to fetch resources
        :type storage_pool: :class:`pylxd.models.storage_pool.StoragePool`
        :returns: A storage resources object
        :rtype: :class:`pylxd.models.storage_pool.StorageResources`
        :raises: :class:`pylxd.exceptions.LXDAPIExtensionNotAvailable` if the
            'resources' api extension is missing.
        """
    storage_pool.client.assert_has_api_extension('resources')
    response = storage_pool.api.resources.get()
    resources = cls(storage_pool.client, **response.json()['metadata'])
    return resources
