@on_http_error(GitlabLicenseError)<EOL><INDENT>def set_license(self, license, **kwargs):<DEDENT>
data = {'<STR_LIT>': license}<EOL>return self.http_post('<STR_LIT>', post_data=data, **kwargs)<EOL>
Add a new license.

        Args:
            license (str): The license string
            **kwargs: Extra options to send to the server (e.g. sudo)

        Raises:
            GitlabAuthenticationError: If authentication is not correct
            GitlabPostError: If the server cannot perform the request

        Returns:
            dict: The new license information