@cli.register_custom_action('<STR_LIT>',<EOL>('<STR_LIT>', '<STR_LIT>', '<STR_LIT:content>',<EOL>'<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>', '<STR_LIT>'))<EOL><INDENT>@exc.on_http_error(exc.GitlabCreateError)<EOL>def create(self, data, **kwargs):<DEDENT>
self._check_missing_create_attrs(data)<EOL>new_data = data.copy()<EOL>file_path = new_data.pop('<STR_LIT>').replace('<STR_LIT:/>', '<STR_LIT>')<EOL>path = '<STR_LIT>' % (self.path, file_path)<EOL>server_data = self.gitlab.http_post(path, post_data=new_data, **kwargs)<EOL>return self._obj_cls(self, server_data)<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)

        Returns:
            RESTObject: a new instance of the managed object class built with
                the data sent by the server

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