This is printed using ABS. Just print the parts connect then with 2 rods of 4 mm aluminum.
There is also a above tube version. For that you need to use some rubber between the frame tube and the fixings. Piece of old tire tube will do.
This is designed to the lock model in the picture only. Sent me a question if you need for another lock type.