def METHOD_NAME(self, compartment_ids, list_func_ref):
    resources = []
    for compartment_id in compartment_ids:
        results = self._get_resources_with_compartment_and_params(compartment_id, list_func_ref)
        for result in results:
            resources.append(oci.util.to_dict(result))
    return resources