

def ex_update_node(self, node, name=None, description=None, cpu_count=None, ram_mb=None):
    '\n        Update the node, the name, CPU or RAM\n\n        :param      node: Node which should be used\n        :type       node: :class:`Node`\n\n        :param      name: The new name (optional)\n        :type       name: ``str``\n\n        :param      description: The new description (optional)\n        :type       description: ``str``\n\n        :param      cpu_count: The new CPU count (optional)\n        :type       cpu_count: ``int``\n\n        :param      ram_mb: The new Memory in MB (optional)\n        :type       ram_mb: ``int``\n\n        :rtype: ``bool``\n        '
    data = {
        
    }
    if (name is not None):
        data['name'] = name
    if (description is not None):
        data['description'] = description
    if (cpu_count is not None):
        data['cpuCount'] = str(cpu_count)
    if (ram_mb is not None):
        data['memory'] = str(ram_mb)
    body = self.connection.request_with_orgId_api_1(('server/%s' % node.id), method='POST', data=urlencode(data, True)).object
    response_code = findtext(body, 'result', GENERAL_NS)
    return (response_code in ['IN_PROGRESS', 'SUCCESS'])

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/dimensiondata.py DimensionDataNodeDriver.ex_update_node/original