示例#1
0
    def delete(cls, uid, **kwargs):
        """Remove method,
        args are forwarded to underlying requests.put call,
        id is required,
        json arg is usually necessary

        """
        path = cls.parse_path_arg(kwargs)
        path = "{0}/{1}".format(path, uid)
        return base.delete(path=path, **kwargs)
示例#2
0
    def delete(cls, uid, **kwargs):
        """Remove method,
        args are forwarded to underlying requests.put call,
        id is required,
        json arg is usually necessary

        """
        path = cls.parse_path_arg(cls.api_path, kwargs)
        if hasattr(cls, 'api_path_delete'):
            path = cls.parse_path_arg(cls.api_path_get, kwargs)
        path = "{0}/{1}".format(path, uid)
        return base.delete(path=path, **kwargs)
示例#3
0
    def delete(cls, uid, **kwargs):
        """Remove method,
        args are forwarded to underlying requests.put call,
        id is required,
        json arg is usually necessary

        """
        path = cls.parse_path_arg(cls.get_api_path(), kwargs)
        if hasattr(cls, 'api_path_delete'):
            path = cls.parse_path_arg(
                cls.api_path_delete, kwargs)  # pylint: disable=E1101
        path = "{0}/{1}".format(path, uid)
        return base.delete(path=path, **kwargs)