Don't think the SDK has an airLoopHVACTemplate method. You're likely after airLoopHVAC, which the ThermalZone class inherits from HVACComponent. An example.
airLoopHVACTemplate