Thanks for your query.Based on the facts that you have posted it appears that you have undergone surgery for Left Inguinal Hernia
and have noticed swelling of the left spermatic cord
This is normal after surgery to get swelling of the cord after hernia surgery.
Take antibiotics and anti inflammatory drugs that treating surgeon might have prescribed you after surgery.
This will get cured in a month .