How to set stroke attributes

I want to change the stroke’s round corner into straight line through script. But I only find the ‘strokeWidth’ and ‘strokeHeight’ attributes of stroke from
Is there any method to list all attributes of stroke?
Please help.

The first step in figuring this out is to print the paths and its attributes.