Return Computer Profile Use in Provisioning Template?

Found it here Foreman-xen: create_vm_from_builtin: <NoMethodError> undefined method `name' for nil:NilClass. Is there documentation on all available methods and variables for templates, including when not in safe mode?