Version 7 was just released!
The docs will be moved here soon.
Visit the external v7 docs site
getResources
A method that retrieves all Resources, including children, as a single flat list.
.getResources()
If you want to retrieve a list of top-level resources (resources that are not children of any other resource), then use getTopLevelResources instead.