Exemple #1
0
    def update(cls, uid, **kwargs):
        """Update 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.put(path=path, **kwargs)
Exemple #2
0
    def update(cls, uid, **kwargs):
        """Update 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_put'):
            path = cls.parse_path_arg(cls.api_path_get, kwargs)
        path = "{0}/{1}".format(path, uid)
        return base.put(path=path, **kwargs)
Exemple #3
0
    def update(cls, uid, **kwargs):
        """Update 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_put'):
            path = cls.parse_path_arg(
                cls.api_path_put, kwargs)  # pylint: disable=E1101
        path = "{0}/{1}".format(path, uid)
        return base.put(path=path, **kwargs)