It won its complete independence in 1917 .