Refactor template_resource.generate_class()
Refactor template_resource.generate_class()

Change-Id: I71b65536bf8f554048ed63c7035b1aaf60175117

steveb/heat,noironetworks/heat,steveb/heat,jasondunsmore/heat,jasondunsmore/heat,cwolferh/heat-scratch,gonzolino/heat,openstack/heat,dragorosson/heat,noironetworks/heat,dragorosson/heat,dims/heat,cwolferh/heat-scratch,openstack/heat,gonzolino/heat,dims/heat