can I replace the gas ram in Gamo Swarm 10x gen2 and put spring from HW30s

Why not sell it and use the money to buy a springer with that cocking weight? The weapon is engineered for the spring or piston. It is a total package. To alter it will destroy the efficiency if not properly tweaked. If you are an air rifle gunsmith and have the proper tools, you probably can get it to work. If not, you may end up with a valueless weapon that has no retail potential. This is nothing more than MHO. Good luck.