Which entity is this text about?

Gustaf V was born in Drottningholm Palace in Ekero, Stockholm County, the son of Prince Oscar and Princess Sofia of Nassau. At birth Gustaf was created Duke of Varmland. Upon his father's accession to the throne in 1872, Gustaf became crown prince of both Sweden and Norway. On 8 December 1907, he succeeded his father on the Swedish throne, which had been separated from the Norwegian throne two years earlier.

When he ascended the throne, Gustaf V was, at least on paper, a near-autocrat. The 1809 Instrument of Government made the king both head of state and head of government, and ministers were solely responsible to him. However, his father had been forced to accept a government chosen by the majority in Parliament in 1905. Since then, prime ministers had been chosen according to parliamentary support.  At first, Gustaf V seemed to be willing to accept parliamentary rule. After the Liberals won a massive landslide in 1911, Gustaf appointed Liberal leader Karl Staaff as Prime Minister. However, during the runup to World War I, the elites objected to Staaff's defence policy. In February 1914, a large crowd of farmers gathered at the royal palace and demanded that the country's defences be strengthened. In his reply, the so-called Courtyard Speech--which was actually written by explorer Sven Hedin, an ardent conservative--Gustaf promised to strengthen the country's defences. Staaff was outraged, telling the king parliamentary rule called for the Crown to stay out of partisan politics. He was also angered that he had not been consulted in advance of the speech. However, Gustaf retorted that he still had the right to "communicate freely with the Swedish people." The Staaff government resigned in protest, and Gustaf appointed a government of civil servants headed by Hjalmar Hammarskjold (father of Dag Hammarskjold) in its place. To date, it is the last time that a Swedish king directly intervened in the governing of the country.  The 1917 elections showed a heavy gain for the Liberals and Social Democrats. Despite this, Gustaf initially tried to appoint a Conservative government headed by Johan Widen. However, Widen was unable to form a coalition. It was now apparent that Gustaf could no longer appoint a government entirely of his own choosing, nor could he keep a government in office against the will of Parliament. With no choice but to appoint a Liberal as prime minister, he appointed a Liberal-Social Democratic coalition government headed by Staaff's successor as Liberal leader, Nils Eden. The Eden government promptly arrogated most of the king's political powers to itself and enacted numerous reforms, most notably the institution of complete (male and female) universal suffrage in 1918-1919. While Gustaf still formally appointed the ministers, they now had to have the confidence of Parliament. He was now also bound to act on the ministers' advice. Although the provision in the Instrument of Government stating that "the King alone shall govern the realm" remained unchanged, for all intents and purposes the ministers did the actual governing. Gustaf accepted his reduced role, and reigned for the rest of his life as a model limited constitutional monarch. Parliamentarianism had become a de facto reality in Sweden, even if it would not be formalized until 1974.  Gustaf V was considered to have German sympathies during World War I. His political stance during the war was highly influenced by his wife, who felt a strong connection to her German homeland. On 18 December 1914, he sponsored a meeting in Malmo with the other two kings of Scandinavia to demonstrate unity. Another of Gustaf V's objectives was to dispel suspicions that he wanted to bring Sweden into the war on Germany's side.
Gustaf V of Sweden