def create(self, data, **kwargs):
        """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, RESTObject: The source and target issues

        Raises:
            GitlabAuthenticationError: If authentication is not correct
            GitlabCreateError: If the server cannot perform the request
        """
        self._check_missing_create_attrs(data)
        server_data = self.gitlab.http_post(self.path, post_data=data,
                                            **kwargs)
        source_issue = ProjectIssue(self._parent.manager,
                                    server_data['source_issue'])
        target_issue = ProjectIssue(self._parent.manager,
                                    server_data['target_issue'])
        return source_issue, target_issue
def create ( self , data , ** kwargs ) : self . _check_missing_create_attrs ( data ) server_data = self . gitlab . http_post ( self . path , post_data = data , ** kwargs ) source_issue = ProjectIssue ( self . _parent . manager , server_data [ 'source_issue' ] ) target_issue = ProjectIssue ( self . _parent . manager , server_data [ 'target_issue' ] ) return source_issue , target_issue
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, RESTObject: The source and target issues

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