@exc.on_http_error(exc.GitlabCreateError)<EOL><INDENT>def create(self, data, **kwargs):<DEDENT>
<EOL>base_path = '<STR_LIT>'<EOL>if '<STR_LIT>' in data and '<STR_LIT>' in data:<EOL><INDENT>path = base_path % data<EOL><DEDENT>else:<EOL><INDENT>path = self._compute_path(base_path)<EOL><DEDENT>return CreateMixin.create(self, data, path=path, **kwargs)<EOL>
Create a new object.

        Args:
            data (dict): Parameters to send to the server to create the
                         resource
            **kwargs: Extra options to send to the server (e.g. sudo or
                      'ref_name', 'stage', 'name', 'all')

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

        Returns:
            RESTObject: A new instance of the manage object class build with
                        the data sent by the server