Unfortunately SDK V2 doesn't have the same API which can control relay directly.
To control relay in SDK V2, you need to create a door first then can control door using BS2DoorRelay - http://kb.supremainc.com/bs2sdk/doku.php?id=en:door_control_api#bs2doorrelay